1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2018 Oleg Ivanov <balbes-150@y 3 * Copyright (c) 2018 Oleg Ivanov <balbes-150@yandex.ru> 4 * Copyright (c) 2018 Martin Blumenstingl <mart 4 * Copyright (c) 2018 Martin Blumenstingl <martin.blumenstingl@googlemail.com> 5 */ 5 */ 6 6 7 /dts-v1/; 7 /dts-v1/; 8 8 9 #include "meson8m2.dtsi" 9 #include "meson8m2.dtsi" 10 10 11 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/input/input.h> 13 13 14 / { 14 / { 15 model = "Tronsmart MXIII Plus"; 15 model = "Tronsmart MXIII Plus"; 16 compatible = "tronsmart,mxiii-plus", " 16 compatible = "tronsmart,mxiii-plus", "amlogic,meson8m2"; 17 17 18 aliases { 18 aliases { 19 ethernet0 = ðmac; 19 ethernet0 = ðmac; 20 i2c0 = &i2c_AO; 20 i2c0 = &i2c_AO; 21 serial0 = &uart_AO; 21 serial0 = &uart_AO; 22 mmc0 = &sd_card_slot; 22 mmc0 = &sd_card_slot; 23 }; 23 }; 24 24 25 chosen { 25 chosen { 26 stdout-path = "serial0:115200n 26 stdout-path = "serial0:115200n8"; 27 }; 27 }; 28 28 29 memory { 29 memory { 30 device_type = "memory"; 30 device_type = "memory"; 31 reg = <0x40000000 0x80000000>; 31 reg = <0x40000000 0x80000000>; 32 }; 32 }; 33 33 34 adc-keys { 34 adc-keys { 35 compatible = "adc-keys"; 35 compatible = "adc-keys"; 36 io-channels = <&saradc 0>; 36 io-channels = <&saradc 0>; 37 io-channel-names = "buttons"; 37 io-channel-names = "buttons"; 38 keyup-threshold-microvolt = <1 38 keyup-threshold-microvolt = <1710000>; 39 39 40 button-function { 40 button-function { 41 label = "Function"; 41 label = "Function"; 42 linux,code = <KEY_FN>; 42 linux,code = <KEY_FN>; 43 press-threshold-microv 43 press-threshold-microvolt = <10000>; 44 }; 44 }; 45 }; 45 }; 46 46 47 sdio_pwrseq: sdio-pwrseq { 47 sdio_pwrseq: sdio-pwrseq { 48 compatible = "mmc-pwrseq-simpl 48 compatible = "mmc-pwrseq-simple"; 49 49 50 pinctrl-0 = <&xtal_32k_out_pin 50 pinctrl-0 = <&xtal_32k_out_pins>; 51 pinctrl-names = "default"; 51 pinctrl-names = "default"; 52 52 53 reset-gpios = <&gpio GPIOX_11 53 reset-gpios = <&gpio GPIOX_11 GPIO_ACTIVE_LOW>, 54 <&gpio_ao GPIOAO 54 <&gpio_ao GPIOAO_6 GPIO_ACTIVE_LOW>; 55 55 56 clocks = <&xtal_32k_out>; 56 clocks = <&xtal_32k_out>; 57 clock-names = "ext_clock"; 57 clock-names = "ext_clock"; 58 }; 58 }; 59 59 60 vcc_3v3: regulator-vcc3v3 { 60 vcc_3v3: regulator-vcc3v3 { 61 compatible = "regulator-fixed" 61 compatible = "regulator-fixed"; 62 regulator-name = "VCC3V3"; 62 regulator-name = "VCC3V3"; 63 regulator-min-microvolt = <330 63 regulator-min-microvolt = <3300000>; 64 regulator-max-microvolt = <330 64 regulator-max-microvolt = <3300000>; 65 }; 65 }; 66 66 67 xtal_32k_out: xtal-32k-out-clk { 67 xtal_32k_out: xtal-32k-out-clk { 68 compatible = "fixed-clock"; 68 compatible = "fixed-clock"; 69 #clock-cells = <0>; 69 #clock-cells = <0>; 70 clock-frequency = <32768>; 70 clock-frequency = <32768>; 71 clock-output-names = "xtal_32k 71 clock-output-names = "xtal_32k_out"; 72 }; 72 }; 73 }; 73 }; 74 74 75 &cpu0 { 75 &cpu0 { 76 cpu-supply = <&vcck>; 76 cpu-supply = <&vcck>; 77 }; 77 }; 78 78 79 ðmac { 79 ðmac { 80 status = "okay"; 80 status = "okay"; 81 81 82 pinctrl-0 = <ð_rgmii_pins>; 82 pinctrl-0 = <ð_rgmii_pins>; 83 pinctrl-names = "default"; 83 pinctrl-names = "default"; 84 84 85 phy-handle = <ð_phy0>; 85 phy-handle = <ð_phy0>; 86 phy-mode = "rgmii-id"; 86 phy-mode = "rgmii-id"; 87 87 88 mdio { 88 mdio { 89 compatible = "snps,dwmac-mdio" 89 compatible = "snps,dwmac-mdio"; 90 #address-cells = <1>; 90 #address-cells = <1>; 91 #size-cells = <0>; 91 #size-cells = <0>; 92 92 93 eth_phy0: ethernet-phy@0 { 93 eth_phy0: ethernet-phy@0 { 94 /* Realtek RTL8211F (0 94 /* Realtek RTL8211F (0x001cc916) */ 95 reg = <0>; 95 reg = <0>; 96 96 97 reset-assert-us = <100 97 reset-assert-us = <10000>; 98 reset-deassert-us = <8 98 reset-deassert-us = <80000>; 99 reset-gpios = <&gpio G 99 reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>; 100 }; 100 }; 101 }; 101 }; 102 }; 102 }; 103 103 104 &ir_receiver { 104 &ir_receiver { 105 status = "okay"; 105 status = "okay"; 106 pinctrl-0 = <&ir_recv_pins>; 106 pinctrl-0 = <&ir_recv_pins>; 107 pinctrl-names = "default"; 107 pinctrl-names = "default"; 108 }; 108 }; 109 109 110 &i2c_AO { 110 &i2c_AO { 111 status = "okay"; 111 status = "okay"; 112 pinctrl-0 = <&i2c_ao_pins>; 112 pinctrl-0 = <&i2c_ao_pins>; 113 pinctrl-names = "default"; 113 pinctrl-names = "default"; 114 114 115 pmic@32 { 115 pmic@32 { 116 compatible = "ricoh,rn5t618"; 116 compatible = "ricoh,rn5t618"; 117 reg = <0x32>; 117 reg = <0x32>; 118 system-power-controller; 118 system-power-controller; 119 119 120 regulators { 120 regulators { 121 vcck: DCDC1 { 121 vcck: DCDC1 { 122 regulator-name 122 regulator-name = "VCCK"; 123 regulator-min- 123 regulator-min-microvolt = <825000>; 124 regulator-max- 124 regulator-max-microvolt = <1150000>; 125 regulator-boot 125 regulator-boot-on; 126 regulator-alwa 126 regulator-always-on; 127 }; 127 }; 128 128 129 vddee: DCDC2 { 129 vddee: DCDC2 { 130 /* the output 130 /* the output is also used as VDDAO */ 131 regulator-name 131 regulator-name = "VDD_EE"; 132 regulator-min- 132 regulator-min-microvolt = <950000>; 133 regulator-max- 133 regulator-max-microvolt = <1150000>; 134 regulator-boot 134 regulator-boot-on; 135 regulator-alwa 135 regulator-always-on; 136 }; 136 }; 137 137 138 DCDC3 { 138 DCDC3 { 139 regulator-name 139 regulator-name = "VDD_DDR"; 140 regulator-min- 140 regulator-min-microvolt = <1500000>; 141 regulator-max- 141 regulator-max-microvolt = <1500000>; 142 regulator-boot 142 regulator-boot-on; 143 regulator-alwa 143 regulator-always-on; 144 }; 144 }; 145 145 146 LDO1 { 146 LDO1 { 147 regulator-name 147 regulator-name = "VDDIO_AO28"; 148 regulator-min- 148 regulator-min-microvolt = <2900000>; 149 regulator-max- 149 regulator-max-microvolt = <2900000>; 150 regulator-boot 150 regulator-boot-on; 151 regulator-alwa 151 regulator-always-on; 152 }; 152 }; 153 153 154 vddio_ao1v8: LDO2 { 154 vddio_ao1v8: LDO2 { 155 regulator-name 155 regulator-name = "VDDIO_AO18"; 156 regulator-min- 156 regulator-min-microvolt = <1800000>; 157 regulator-max- 157 regulator-max-microvolt = <1800000>; 158 regulator-boot 158 regulator-boot-on; 159 regulator-alwa 159 regulator-always-on; 160 }; 160 }; 161 161 162 LDO3 { 162 LDO3 { 163 regulator-name 163 regulator-name = "VCC1V8"; 164 regulator-min- 164 regulator-min-microvolt = <1800000>; 165 regulator-max- 165 regulator-max-microvolt = <1800000>; 166 regulator-boot 166 regulator-boot-on; 167 regulator-alwa 167 regulator-always-on; 168 }; 168 }; 169 169 170 LDO4 { 170 LDO4 { 171 regulator-name 171 regulator-name = "VCC2V8"; 172 regulator-min- 172 regulator-min-microvolt = <2850000>; 173 regulator-max- 173 regulator-max-microvolt = <2850000>; 174 regulator-boot 174 regulator-boot-on; 175 regulator-alwa 175 regulator-always-on; 176 }; 176 }; 177 177 178 LDO5 { 178 LDO5 { 179 regulator-name 179 regulator-name = "AVDD1V8"; 180 regulator-min- 180 regulator-min-microvolt = <1800000>; 181 regulator-max- 181 regulator-max-microvolt = <1800000>; 182 regulator-boot 182 regulator-boot-on; 183 regulator-alwa 183 regulator-always-on; 184 }; 184 }; 185 185 186 LDORTC1 { 186 LDORTC1 { 187 regulator-name 187 regulator-name = "VDD_LDO"; 188 regulator-min- 188 regulator-min-microvolt = <2700000>; 189 regulator-max- 189 regulator-max-microvolt = <2700000>; 190 regulator-boot 190 regulator-boot-on; 191 regulator-alwa 191 regulator-always-on; 192 }; 192 }; 193 193 194 LDORTC2 { 194 LDORTC2 { 195 regulator-name 195 regulator-name = "RTC_0V9"; 196 regulator-min- 196 regulator-min-microvolt = <900000>; 197 regulator-max- 197 regulator-max-microvolt = <900000>; 198 regulator-boot 198 regulator-boot-on; 199 regulator-alwa 199 regulator-always-on; 200 }; 200 }; 201 }; 201 }; 202 }; 202 }; 203 }; 203 }; 204 204 205 &mali { 205 &mali { 206 mali-supply = <&vddee>; 206 mali-supply = <&vddee>; 207 }; 207 }; 208 208 209 &saradc { 209 &saradc { 210 status = "okay"; 210 status = "okay"; 211 vref-supply = <&vddio_ao1v8>; 211 vref-supply = <&vddio_ao1v8>; 212 }; 212 }; 213 213 214 /* SDIO wifi */ 214 /* SDIO wifi */ 215 &sdhc { 215 &sdhc { 216 status = "okay"; 216 status = "okay"; 217 217 218 pinctrl-0 = <&sdxc_a_pins>; 218 pinctrl-0 = <&sdxc_a_pins>; 219 pinctrl-names = "default"; 219 pinctrl-names = "default"; 220 220 221 bus-width = <4>; 221 bus-width = <4>; 222 max-frequency = <50000000>; 222 max-frequency = <50000000>; 223 223 224 disable-wp; 224 disable-wp; 225 non-removable; 225 non-removable; 226 cap-mmc-highspeed; 226 cap-mmc-highspeed; 227 cap-sd-highspeed; 227 cap-sd-highspeed; 228 228 229 mmc-pwrseq = <&sdio_pwrseq>; 229 mmc-pwrseq = <&sdio_pwrseq>; 230 230 231 vmmc-supply = <&vcc_3v3>; 231 vmmc-supply = <&vcc_3v3>; 232 vqmmc-supply = <&vcc_3v3>; 232 vqmmc-supply = <&vcc_3v3>; 233 }; 233 }; 234 234 235 &sdio { 235 &sdio { 236 status = "okay"; 236 status = "okay"; 237 237 238 pinctrl-0 = <&sd_b_pins>; 238 pinctrl-0 = <&sd_b_pins>; 239 pinctrl-names = "default"; 239 pinctrl-names = "default"; 240 240 241 /* SD card */ 241 /* SD card */ 242 sd_card_slot: slot@1 { 242 sd_card_slot: slot@1 { 243 compatible = "mmc-slot"; 243 compatible = "mmc-slot"; 244 reg = <1>; 244 reg = <1>; 245 status = "okay"; 245 status = "okay"; 246 246 247 bus-width = <4>; 247 bus-width = <4>; 248 no-sdio; 248 no-sdio; 249 cap-mmc-highspeed; 249 cap-mmc-highspeed; 250 cap-sd-highspeed; 250 cap-sd-highspeed; 251 disable-wp; 251 disable-wp; 252 252 253 cd-gpios = <&gpio CARD_6 GPIO_ 253 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; 254 254 255 vmmc-supply = <&vcc_3v3>; 255 vmmc-supply = <&vcc_3v3>; 256 }; 256 }; 257 }; 257 }; 258 258 259 /* connected to the Bluetooth module */ 259 /* connected to the Bluetooth module */ 260 &uart_A { 260 &uart_A { 261 status = "okay"; 261 status = "okay"; 262 pinctrl-0 = <&uart_a1_pins>, <&uart_a1 262 pinctrl-0 = <&uart_a1_pins>, <&uart_a1_cts_rts_pins>; 263 pinctrl-names = "default"; 263 pinctrl-names = "default"; 264 uart-has-rtscts; 264 uart-has-rtscts; 265 265 266 bluetooth { 266 bluetooth { 267 compatible = "brcm,bcm20702a1" 267 compatible = "brcm,bcm20702a1"; 268 shutdown-gpios = <&gpio GPIOX_ 268 shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>; 269 max-speed = <2000000>; 269 max-speed = <2000000>; 270 }; 270 }; 271 }; 271 }; 272 272 273 &uart_AO { 273 &uart_AO { 274 status = "okay"; 274 status = "okay"; 275 pinctrl-0 = <&uart_ao_a_pins>; 275 pinctrl-0 = <&uart_ao_a_pins>; 276 pinctrl-names = "default"; 276 pinctrl-names = "default"; 277 }; 277 }; 278 278 279 &usb0 { 279 &usb0 { 280 status = "okay"; 280 status = "okay"; 281 }; 281 }; 282 282 283 &usb1 { 283 &usb1 { 284 status = "okay"; 284 status = "okay"; 285 }; 285 }; 286 286 287 &usb0_phy { 287 &usb0_phy { 288 status = "okay"; 288 status = "okay"; 289 }; 289 }; 290 290 291 &usb1_phy { 291 &usb1_phy { 292 status = "okay"; 292 status = "okay"; 293 }; 293 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.