1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2016 Andreas Färber 3 * Copyright (c) 2016 Andreas Färber 4 * Copyright (c) 2016 BayLibre, Inc. 4 * Copyright (c) 2016 BayLibre, Inc. 5 * Author: Kevin Hilman <khilman@kernel.org> 5 * Author: Kevin Hilman <khilman@kernel.org> 6 */ 6 */ 7 7 8 #include "meson-gxbb.dtsi" 8 #include "meson-gxbb.dtsi" 9 9 10 / { 10 / { 11 aliases { 11 aliases { 12 serial0 = &uart_AO; 12 serial0 = &uart_AO; 13 ethernet0 = ðmac; 13 ethernet0 = ðmac; 14 }; 14 }; 15 15 16 chosen { 16 chosen { 17 stdout-path = "serial0:115200n 17 stdout-path = "serial0:115200n8"; 18 }; 18 }; 19 19 20 memory@0 { 20 memory@0 { 21 device_type = "memory"; 21 device_type = "memory"; 22 reg = <0x0 0x0 0x0 0x40000000> 22 reg = <0x0 0x0 0x0 0x40000000>; 23 }; 23 }; 24 24 25 usb_pwr: regulator-usb-pwrs { 25 usb_pwr: regulator-usb-pwrs { 26 compatible = "regulator-fixed" 26 compatible = "regulator-fixed"; 27 27 28 regulator-name = "USB_PWR"; 28 regulator-name = "USB_PWR"; 29 29 30 regulator-min-microvolt = <500 30 regulator-min-microvolt = <5000000>; 31 regulator-max-microvolt = <500 31 regulator-max-microvolt = <5000000>; 32 32 33 /* signal name in schematic: U 33 /* signal name in schematic: USB_PWR_EN */ 34 gpio = <&gpio GPIODV_24 GPIO_A 34 gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>; 35 enable-active-high; 35 enable-active-high; 36 }; 36 }; 37 37 38 vddio_card: gpio-regulator { 38 vddio_card: gpio-regulator { 39 compatible = "regulator-gpio"; 39 compatible = "regulator-gpio"; 40 40 41 regulator-name = "VDDIO_CARD"; 41 regulator-name = "VDDIO_CARD"; 42 regulator-min-microvolt = <180 42 regulator-min-microvolt = <1800000>; 43 regulator-max-microvolt = <330 43 regulator-max-microvolt = <3300000>; 44 44 45 gpios = <&gpio_ao GPIOAO_5 GPI 45 gpios = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>; 46 gpios-states = <1>; 46 gpios-states = <1>; 47 47 48 /* Based on P200 schematics, s 48 /* Based on P200 schematics, signal CARD_1.8V/3.3V_CTR */ 49 states = <1800000 0>, 49 states = <1800000 0>, 50 <3300000 1>; 50 <3300000 1>; 51 51 52 regulator-settling-time-up-us 52 regulator-settling-time-up-us = <10000>; 53 regulator-settling-time-down-u 53 regulator-settling-time-down-us = <150000>; 54 }; 54 }; 55 55 56 vddio_boot: regulator-vddio-boot { !! 56 vddio_boot: regulator-vddio_boot { 57 compatible = "regulator-fixed" 57 compatible = "regulator-fixed"; 58 regulator-name = "VDDIO_BOOT"; 58 regulator-name = "VDDIO_BOOT"; 59 regulator-min-microvolt = <180 59 regulator-min-microvolt = <1800000>; 60 regulator-max-microvolt = <180 60 regulator-max-microvolt = <1800000>; 61 }; 61 }; 62 62 63 vddao_3v3: regulator-vddao-3v3 { !! 63 vddao_3v3: regulator-vddao_3v3 { 64 compatible = "regulator-fixed" 64 compatible = "regulator-fixed"; 65 regulator-name = "VDDAO_3V3"; 65 regulator-name = "VDDAO_3V3"; 66 regulator-min-microvolt = <330 66 regulator-min-microvolt = <3300000>; 67 regulator-max-microvolt = <330 67 regulator-max-microvolt = <3300000>; 68 }; 68 }; 69 69 70 vcc_3v3: regulator-vcc-3v3 { !! 70 vcc_3v3: regulator-vcc_3v3 { 71 compatible = "regulator-fixed" 71 compatible = "regulator-fixed"; 72 regulator-name = "VCC_3V3"; 72 regulator-name = "VCC_3V3"; 73 regulator-min-microvolt = <330 73 regulator-min-microvolt = <3300000>; 74 regulator-max-microvolt = <330 74 regulator-max-microvolt = <3300000>; 75 }; 75 }; 76 76 77 emmc_pwrseq: emmc-pwrseq { 77 emmc_pwrseq: emmc-pwrseq { 78 compatible = "mmc-pwrseq-emmc" 78 compatible = "mmc-pwrseq-emmc"; 79 reset-gpios = <&gpio BOOT_9 GP 79 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; 80 }; 80 }; 81 81 82 wifi32k: wifi32k { 82 wifi32k: wifi32k { 83 compatible = "pwm-clock"; 83 compatible = "pwm-clock"; 84 #clock-cells = <0>; 84 #clock-cells = <0>; 85 clock-frequency = <32768>; 85 clock-frequency = <32768>; 86 pwms = <&pwm_ef 0 30518 0>; /* 86 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ 87 }; 87 }; 88 88 89 sdio_pwrseq: sdio-pwrseq { 89 sdio_pwrseq: sdio-pwrseq { 90 compatible = "mmc-pwrseq-simpl 90 compatible = "mmc-pwrseq-simple"; 91 reset-gpios = <&gpio GPIOX_6 G 91 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; 92 clocks = <&wifi32k>; 92 clocks = <&wifi32k>; 93 clock-names = "ext_clock"; 93 clock-names = "ext_clock"; 94 }; 94 }; 95 95 96 cvbs_connector: cvbs-connector { 96 cvbs_connector: cvbs-connector { 97 compatible = "composite-video- 97 compatible = "composite-video-connector"; 98 98 99 port { 99 port { 100 cvbs_connector_in: end 100 cvbs_connector_in: endpoint { 101 remote-endpoin 101 remote-endpoint = <&cvbs_vdac_out>; 102 }; 102 }; 103 }; 103 }; 104 }; 104 }; 105 105 106 hdmi-connector { 106 hdmi-connector { 107 compatible = "hdmi-connector"; 107 compatible = "hdmi-connector"; 108 type = "a"; 108 type = "a"; 109 109 110 port { 110 port { 111 hdmi_connector_in: end 111 hdmi_connector_in: endpoint { 112 remote-endpoin 112 remote-endpoint = <&hdmi_tx_tmds_out>; 113 }; 113 }; 114 }; 114 }; 115 }; 115 }; 116 }; 116 }; 117 117 118 &cec_AO { 118 &cec_AO { 119 status = "okay"; 119 status = "okay"; 120 pinctrl-0 = <&ao_cec_pins>; 120 pinctrl-0 = <&ao_cec_pins>; 121 pinctrl-names = "default"; 121 pinctrl-names = "default"; 122 hdmi-phandle = <&hdmi_tx>; 122 hdmi-phandle = <&hdmi_tx>; 123 }; 123 }; 124 124 125 &cvbs_vdac_port { 125 &cvbs_vdac_port { 126 cvbs_vdac_out: endpoint { 126 cvbs_vdac_out: endpoint { 127 remote-endpoint = <&cvbs_conne 127 remote-endpoint = <&cvbs_connector_in>; 128 }; 128 }; 129 }; 129 }; 130 130 131 &hdmi_tx { 131 &hdmi_tx { 132 status = "okay"; 132 status = "okay"; 133 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i 133 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; 134 pinctrl-names = "default"; 134 pinctrl-names = "default"; 135 }; 135 }; 136 136 137 &hdmi_tx_tmds_port { 137 &hdmi_tx_tmds_port { 138 hdmi_tx_tmds_out: endpoint { 138 hdmi_tx_tmds_out: endpoint { 139 remote-endpoint = <&hdmi_conne 139 remote-endpoint = <&hdmi_connector_in>; 140 }; 140 }; 141 }; 141 }; 142 142 143 &ir { 143 &ir { 144 status = "okay"; 144 status = "okay"; 145 pinctrl-0 = <&remote_input_ao_pins>; 145 pinctrl-0 = <&remote_input_ao_pins>; 146 pinctrl-names = "default"; 146 pinctrl-names = "default"; 147 }; 147 }; 148 148 149 &pwm_ef { 149 &pwm_ef { 150 status = "okay"; 150 status = "okay"; 151 pinctrl-0 = <&pwm_e_pins>; 151 pinctrl-0 = <&pwm_e_pins>; 152 pinctrl-names = "default"; 152 pinctrl-names = "default"; 153 clocks = <&clkc CLKID_FCLK_DIV4>; 153 clocks = <&clkc CLKID_FCLK_DIV4>; 154 clock-names = "clkin0"; 154 clock-names = "clkin0"; 155 }; 155 }; 156 156 157 /* Wireless SDIO Module */ 157 /* Wireless SDIO Module */ 158 &sd_emmc_a { 158 &sd_emmc_a { 159 status = "okay"; 159 status = "okay"; 160 pinctrl-0 = <&sdio_pins>; 160 pinctrl-0 = <&sdio_pins>; 161 pinctrl-1 = <&sdio_clk_gate_pins>; 161 pinctrl-1 = <&sdio_clk_gate_pins>; 162 pinctrl-names = "default", "clk-gate"; 162 pinctrl-names = "default", "clk-gate"; 163 #address-cells = <1>; 163 #address-cells = <1>; 164 #size-cells = <0>; 164 #size-cells = <0>; 165 165 166 bus-width = <4>; 166 bus-width = <4>; 167 cap-sd-highspeed; 167 cap-sd-highspeed; 168 max-frequency = <50000000>; 168 max-frequency = <50000000>; 169 169 170 non-removable; 170 non-removable; 171 disable-wp; 171 disable-wp; 172 172 173 /* WiFi firmware requires power to be 173 /* WiFi firmware requires power to be kept while in suspend */ 174 keep-power-in-suspend; 174 keep-power-in-suspend; 175 175 176 mmc-pwrseq = <&sdio_pwrseq>; 176 mmc-pwrseq = <&sdio_pwrseq>; 177 177 178 vmmc-supply = <&vddao_3v3>; 178 vmmc-supply = <&vddao_3v3>; 179 vqmmc-supply = <&vddio_boot>; 179 vqmmc-supply = <&vddio_boot>; 180 180 181 brcmf: wifi@1 { 181 brcmf: wifi@1 { 182 reg = <1>; 182 reg = <1>; 183 compatible = "brcm,bcm4329-fma 183 compatible = "brcm,bcm4329-fmac"; 184 }; 184 }; 185 }; 185 }; 186 186 187 /* SD card */ 187 /* SD card */ 188 &sd_emmc_b { 188 &sd_emmc_b { 189 status = "okay"; 189 status = "okay"; 190 pinctrl-0 = <&sdcard_pins>; 190 pinctrl-0 = <&sdcard_pins>; 191 pinctrl-1 = <&sdcard_clk_gate_pins>; 191 pinctrl-1 = <&sdcard_clk_gate_pins>; 192 pinctrl-names = "default", "clk-gate"; 192 pinctrl-names = "default", "clk-gate"; 193 193 194 bus-width = <4>; 194 bus-width = <4>; 195 cap-sd-highspeed; 195 cap-sd-highspeed; 196 sd-uhs-sdr12; 196 sd-uhs-sdr12; 197 sd-uhs-sdr25; 197 sd-uhs-sdr25; 198 sd-uhs-sdr50; 198 sd-uhs-sdr50; 199 max-frequency = <100000000>; 199 max-frequency = <100000000>; 200 disable-wp; 200 disable-wp; 201 201 202 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_L 202 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; 203 203 204 vmmc-supply = <&vddao_3v3>; 204 vmmc-supply = <&vddao_3v3>; 205 vqmmc-supply = <&vddio_card>; 205 vqmmc-supply = <&vddio_card>; 206 }; 206 }; 207 207 208 /* eMMC */ 208 /* eMMC */ 209 &sd_emmc_c { 209 &sd_emmc_c { 210 status = "okay"; 210 status = "okay"; 211 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pi 211 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; 212 pinctrl-1 = <&emmc_clk_gate_pins>; 212 pinctrl-1 = <&emmc_clk_gate_pins>; 213 pinctrl-names = "default", "clk-gate"; 213 pinctrl-names = "default", "clk-gate"; 214 214 215 bus-width = <8>; 215 bus-width = <8>; 216 cap-mmc-highspeed; 216 cap-mmc-highspeed; 217 max-frequency = <200000000>; 217 max-frequency = <200000000>; 218 non-removable; 218 non-removable; 219 disable-wp; 219 disable-wp; 220 mmc-ddr-1_8v; 220 mmc-ddr-1_8v; 221 mmc-hs200-1_8v; 221 mmc-hs200-1_8v; 222 222 223 mmc-pwrseq = <&emmc_pwrseq>; 223 mmc-pwrseq = <&emmc_pwrseq>; 224 vmmc-supply = <&vcc_3v3>; 224 vmmc-supply = <&vcc_3v3>; 225 vqmmc-supply = <&vddio_boot>; 225 vqmmc-supply = <&vddio_boot>; 226 }; 226 }; 227 227 228 /* This UART is brought out to the DB9 connect 228 /* This UART is brought out to the DB9 connector */ 229 &uart_AO { 229 &uart_AO { 230 status = "okay"; 230 status = "okay"; 231 pinctrl-0 = <&uart_ao_a_pins>; 231 pinctrl-0 = <&uart_ao_a_pins>; 232 pinctrl-names = "default"; 232 pinctrl-names = "default"; 233 }; 233 }; 234 234 235 &usb0_phy { 235 &usb0_phy { 236 status = "okay"; 236 status = "okay"; 237 phy-supply = <&usb_pwr>; 237 phy-supply = <&usb_pwr>; 238 }; 238 }; 239 239 240 &usb1_phy { 240 &usb1_phy { 241 status = "okay"; 241 status = "okay"; 242 }; 242 }; 243 243 244 &usb0 { 244 &usb0 { 245 status = "okay"; 245 status = "okay"; 246 }; 246 }; 247 247 248 &usb1 { 248 &usb1 { 249 status = "okay"; 249 status = "okay"; 250 }; 250 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.