1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2018 Theobroma Systems Design 3 * Copyright (c) 2018 Theobroma Systems Design und Consulting GmbH 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 #include "rk3368.dtsi" 7 #include "rk3368.dtsi" 8 8 9 / { 9 / { 10 aliases { 10 aliases { 11 ethernet0 = &gmac; 11 ethernet0 = &gmac; 12 mmc0 = &emmc; 12 mmc0 = &emmc; 13 }; 13 }; 14 14 15 chosen { 15 chosen { 16 stdout-path = "serial0:115200n 16 stdout-path = "serial0:115200n8"; 17 }; 17 }; 18 18 19 ext_gmac: gmac-clk { 19 ext_gmac: gmac-clk { 20 compatible = "fixed-clock"; 20 compatible = "fixed-clock"; 21 clock-frequency = <125000000>; 21 clock-frequency = <125000000>; 22 clock-output-names = "ext_gmac 22 clock-output-names = "ext_gmac"; 23 #clock-cells = <0>; 23 #clock-cells = <0>; 24 }; 24 }; 25 25 26 i2cmux1 { 26 i2cmux1 { 27 compatible = "i2c-mux-gpio"; 27 compatible = "i2c-mux-gpio"; 28 #address-cells = <1>; 28 #address-cells = <1>; 29 #size-cells = <0>; 29 #size-cells = <0>; 30 i2c-parent = <&i2c1>; 30 i2c-parent = <&i2c1>; 31 mux-gpios = <&gpio1 RK_PA7 GPI 31 mux-gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>; 32 32 33 /* Q7_GP0_I2C */ 33 /* Q7_GP0_I2C */ 34 i2c_gp0: i2c@0 { 34 i2c_gp0: i2c@0 { 35 reg = <0>; 35 reg = <0>; 36 #address-cells = <1>; 36 #address-cells = <1>; 37 #size-cells = <0>; 37 #size-cells = <0>; 38 }; 38 }; 39 39 40 /* Q7_SMB */ 40 /* Q7_SMB */ 41 i2c_smb: i2c@1 { 41 i2c_smb: i2c@1 { 42 reg = <1>; 42 reg = <1>; 43 #address-cells = <1>; 43 #address-cells = <1>; 44 #size-cells = <0>; 44 #size-cells = <0>; 45 }; 45 }; 46 }; 46 }; 47 47 48 i2cmux2 { 48 i2cmux2 { 49 compatible = "i2c-mux-gpio"; 49 compatible = "i2c-mux-gpio"; 50 #address-cells = <1>; 50 #address-cells = <1>; 51 #size-cells = <0>; 51 #size-cells = <0>; 52 i2c-parent = <&i2c2>; 52 i2c-parent = <&i2c2>; 53 mux-gpios = <&gpio1 RK_PB4 GPI 53 mux-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>; 54 54 55 /* Q7_LVDS_BLC_I2C */ 55 /* Q7_LVDS_BLC_I2C */ 56 i2c_lvds_blc: i2c@0 { 56 i2c_lvds_blc: i2c@0 { 57 reg = <0>; 57 reg = <0>; 58 #address-cells = <1>; 58 #address-cells = <1>; 59 #size-cells = <0>; 59 #size-cells = <0>; 60 60 61 fan: fan@18 { 61 fan: fan@18 { 62 compatible = " 62 compatible = "ti,amc6821"; 63 reg = <0x18>; 63 reg = <0x18>; >> 64 #cooling-cells = <2>; 64 }; 65 }; 65 66 66 rtc_twi: rtc@6f { 67 rtc_twi: rtc@6f { 67 compatible = " 68 compatible = "isil,isl1208"; 68 reg = <0x6f>; 69 reg = <0x6f>; 69 }; 70 }; 70 }; 71 }; 71 72 72 /* Q7_GP2_I2C = LVDS_DID_CLK/D 73 /* Q7_GP2_I2C = LVDS_DID_CLK/DAT */ 73 i2c_gp2: i2c@1 { 74 i2c_gp2: i2c@1 { 74 reg = <1>; 75 reg = <1>; 75 #address-cells = <1>; 76 #address-cells = <1>; 76 #size-cells = <0>; 77 #size-cells = <0>; 77 }; 78 }; 78 }; 79 }; 79 80 80 leds { 81 leds { 81 compatible = "gpio-leds"; 82 compatible = "gpio-leds"; 82 pinctrl-names = "default"; 83 pinctrl-names = "default"; 83 pinctrl-0 = <&module_led_pins> 84 pinctrl-0 = <&module_led_pins>; 84 85 85 module_led1: led-1 { 86 module_led1: led-1 { 86 label = "module_led1"; 87 label = "module_led1"; 87 gpios = <&gpio2 RK_PB5 88 gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>; 88 linux,default-trigger 89 linux,default-trigger = "heartbeat"; 89 panic-indicator; 90 panic-indicator; 90 }; 91 }; 91 92 92 module_led2: led-2 { 93 module_led2: led-2 { 93 label = "module_led2"; 94 label = "module_led2"; 94 gpios = <&gpio3 RK_PA3 95 gpios = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; 95 default-state = "off"; 96 default-state = "off"; 96 }; 97 }; 97 }; 98 }; 98 99 99 vcc_sys: vcc-sys-regulator { 100 vcc_sys: vcc-sys-regulator { 100 compatible = "regulator-fixed" 101 compatible = "regulator-fixed"; 101 regulator-name = "vcc_sys"; 102 regulator-name = "vcc_sys"; 102 regulator-min-microvolt = <500 103 regulator-min-microvolt = <5000000>; 103 regulator-max-microvolt = <500 104 regulator-max-microvolt = <5000000>; 104 regulator-always-on; 105 regulator-always-on; 105 regulator-boot-on; 106 regulator-boot-on; 106 }; 107 }; 107 }; 108 }; 108 109 109 &cpu_l0 { 110 &cpu_l0 { 110 cpu-supply = <&vdd_cpu>; 111 cpu-supply = <&vdd_cpu>; 111 }; 112 }; 112 113 113 &cpu_l1 { 114 &cpu_l1 { 114 cpu-supply = <&vdd_cpu>; 115 cpu-supply = <&vdd_cpu>; 115 }; 116 }; 116 117 117 &cpu_l2 { 118 &cpu_l2 { 118 cpu-supply = <&vdd_cpu>; 119 cpu-supply = <&vdd_cpu>; 119 }; 120 }; 120 121 121 &cpu_l3 { 122 &cpu_l3 { 122 cpu-supply = <&vdd_cpu>; 123 cpu-supply = <&vdd_cpu>; 123 }; 124 }; 124 125 125 &cpu_b0 { 126 &cpu_b0 { 126 cpu-supply = <&vdd_cpu>; 127 cpu-supply = <&vdd_cpu>; 127 }; 128 }; 128 129 129 &cpu_b1 { 130 &cpu_b1 { 130 cpu-supply = <&vdd_cpu>; 131 cpu-supply = <&vdd_cpu>; 131 }; 132 }; 132 133 133 &cpu_b2 { 134 &cpu_b2 { 134 cpu-supply = <&vdd_cpu>; 135 cpu-supply = <&vdd_cpu>; 135 }; 136 }; 136 137 137 &cpu_b3 { 138 &cpu_b3 { 138 cpu-supply = <&vdd_cpu>; 139 cpu-supply = <&vdd_cpu>; 139 }; 140 }; 140 141 141 &emmc { 142 &emmc { 142 bus-width = <8>; 143 bus-width = <8>; 143 clock-frequency = <150000000>; 144 clock-frequency = <150000000>; 144 mmc-hs200-1_8v; 145 mmc-hs200-1_8v; 145 non-removable; 146 non-removable; 146 vmmc-supply = <&vcc33_io>; 147 vmmc-supply = <&vcc33_io>; 147 vqmmc-supply = <&vcc_18>; 148 vqmmc-supply = <&vcc_18>; 148 pinctrl-names = "default"; 149 pinctrl-names = "default"; 149 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, 150 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>; 150 status = "okay"; 151 status = "okay"; 151 }; 152 }; 152 153 153 &gmac { 154 &gmac { 154 assigned-clocks = <&cru SCLK_MAC>; 155 assigned-clocks = <&cru SCLK_MAC>; 155 assigned-clock-parents = <&ext_gmac>; 156 assigned-clock-parents = <&ext_gmac>; 156 clock_in_out = "input"; 157 clock_in_out = "input"; 157 phy-supply = <&vcc33_io>; 158 phy-supply = <&vcc33_io>; 158 phy-mode = "rgmii"; 159 phy-mode = "rgmii"; 159 pinctrl-names = "default"; 160 pinctrl-names = "default"; 160 pinctrl-0 = <&rgmii_pins>; 161 pinctrl-0 = <&rgmii_pins>; 161 snps,reset-active-low; 162 snps,reset-active-low; 162 snps,reset-delays-us = <0 10000 50000> 163 snps,reset-delays-us = <0 10000 50000>; 163 snps,reset-gpio = <&gpio3 RK_PB3 GPIO_ 164 snps,reset-gpio = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>; 164 tx_delay = <0x10>; 165 tx_delay = <0x10>; 165 rx_delay = <0x10>; 166 rx_delay = <0x10>; 166 status = "okay"; 167 status = "okay"; 167 }; 168 }; 168 169 169 &i2c0 { 170 &i2c0 { 170 status = "okay"; 171 status = "okay"; 171 172 172 rk808: pmic@1b { 173 rk808: pmic@1b { 173 compatible = "rockchip,rk808"; 174 compatible = "rockchip,rk808"; 174 reg = <0x1b>; 175 reg = <0x1b>; 175 interrupt-parent = <&gpio0>; 176 interrupt-parent = <&gpio0>; 176 interrupts = <RK_PA5 IRQ_TYPE_ 177 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>; 177 clock-output-names = "xin32k", 178 clock-output-names = "xin32k", "rk808-clkout2"; 178 #clock-cells = <1>; 179 #clock-cells = <1>; 179 pinctrl-names = "default"; 180 pinctrl-names = "default"; 180 pinctrl-0 = <&pmic_int_l>, <&p 181 pinctrl-0 = <&pmic_int_l>, <&pmic_sleep>; 181 rockchip,system-power-controll 182 rockchip,system-power-controller; 182 vcc1-supply = <&vcc_sys>; 183 vcc1-supply = <&vcc_sys>; 183 vcc2-supply = <&vcc_sys>; 184 vcc2-supply = <&vcc_sys>; 184 vcc3-supply = <&vcc_sys>; 185 vcc3-supply = <&vcc_sys>; 185 vcc4-supply = <&vcc_sys>; 186 vcc4-supply = <&vcc_sys>; 186 vcc6-supply = <&vcc_sys>; 187 vcc6-supply = <&vcc_sys>; 187 vcc7-supply = <&vcc_sys>; 188 vcc7-supply = <&vcc_sys>; 188 vcc8-supply = <&vcc_sys>; 189 vcc8-supply = <&vcc_sys>; 189 vcc9-supply = <&vcc_sys>; 190 vcc9-supply = <&vcc_sys>; 190 vcc10-supply = <&vcc_sys>; 191 vcc10-supply = <&vcc_sys>; 191 vcc11-supply = <&vcc_sys>; 192 vcc11-supply = <&vcc_sys>; 192 vcc12-supply = <&vcc_sys>; 193 vcc12-supply = <&vcc_sys>; 193 194 194 regulators { 195 regulators { 195 vdd_cpu: DCDC_REG1 { 196 vdd_cpu: DCDC_REG1 { 196 regulator-name 197 regulator-name = "vdd_cpu"; 197 regulator-min- 198 regulator-min-microvolt = <700000>; 198 regulator-max- 199 regulator-max-microvolt = <1500000>; 199 regulator-alwa 200 regulator-always-on; 200 regulator-boot 201 regulator-boot-on; 201 }; 202 }; 202 203 203 vdd_log: DCDC_REG2 { 204 vdd_log: DCDC_REG2 { 204 regulator-name 205 regulator-name = "vdd_log"; 205 regulator-min- 206 regulator-min-microvolt = <700000>; 206 regulator-max- 207 regulator-max-microvolt = <1500000>; 207 regulator-alwa 208 regulator-always-on; 208 regulator-boot 209 regulator-boot-on; 209 }; 210 }; 210 211 211 vcc_ddr: DCDC_REG3 { 212 vcc_ddr: DCDC_REG3 { 212 regulator-name 213 regulator-name = "vcc_ddr"; 213 regulator-alwa 214 regulator-always-on; 214 regulator-boot 215 regulator-boot-on; 215 }; 216 }; 216 217 217 vcc33_io: DCDC_REG4 { 218 vcc33_io: DCDC_REG4 { 218 regulator-name 219 regulator-name = "vcc33_io"; 219 regulator-min- 220 regulator-min-microvolt = <3300000>; 220 regulator-max- 221 regulator-max-microvolt = <3300000>; 221 regulator-alwa 222 regulator-always-on; 222 regulator-boot 223 regulator-boot-on; 223 }; 224 }; 224 225 225 vcc33_video: LDO_REG2 226 vcc33_video: LDO_REG2 { 226 regulator-name 227 regulator-name = "vcc33_video"; 227 regulator-min- 228 regulator-min-microvolt = <3300000>; 228 regulator-max- 229 regulator-max-microvolt = <3300000>; 229 regulator-alwa 230 regulator-always-on; 230 regulator-boot 231 regulator-boot-on; 231 }; 232 }; 232 233 233 vdd10_pll: LDO_REG3 { 234 vdd10_pll: LDO_REG3 { 234 regulator-name 235 regulator-name = "vdd10_pll"; 235 regulator-min- 236 regulator-min-microvolt = <1000000>; 236 regulator-max- 237 regulator-max-microvolt = <1000000>; 237 regulator-alwa 238 regulator-always-on; 238 regulator-boot 239 regulator-boot-on; 239 }; 240 }; 240 241 241 vdd10_video: LDO_REG6 242 vdd10_video: LDO_REG6 { 242 regulator-name 243 regulator-name = "vdd10_video"; 243 regulator-min- 244 regulator-min-microvolt = <1000000>; 244 regulator-max- 245 regulator-max-microvolt = <1000000>; 245 regulator-alwa 246 regulator-always-on; 246 regulator-boot 247 regulator-boot-on; 247 }; 248 }; 248 249 249 vcc_18: LDO_REG7 { 250 vcc_18: LDO_REG7 { 250 regulator-alwa 251 regulator-always-on; 251 regulator-boot 252 regulator-boot-on; 252 regulator-min- 253 regulator-min-microvolt = <1800000>; 253 regulator-max- 254 regulator-max-microvolt = <1800000>; 254 regulator-name 255 regulator-name = "vcc_18"; 255 }; 256 }; 256 257 257 vcc18_video: LDO_REG8 258 vcc18_video: LDO_REG8 { 258 regulator-name 259 regulator-name = "vcc18_video"; 259 regulator-min- 260 regulator-min-microvolt = <1800000>; 260 regulator-max- 261 regulator-max-microvolt = <1800000>; 261 regulator-alwa 262 regulator-always-on; 262 regulator-boot 263 regulator-boot-on; 263 }; 264 }; 264 }; 265 }; 265 }; 266 }; 266 }; 267 }; 267 268 268 &i2c1 { 269 &i2c1 { 269 status = "okay"; 270 status = "okay"; 270 }; 271 }; 271 272 272 &i2c2 { 273 &i2c2 { 273 status = "okay"; 274 status = "okay"; 274 }; 275 }; 275 276 276 /* The RK3368-uQ7 "Lion" has most IO voltages 277 /* The RK3368-uQ7 "Lion" has most IO voltages hardwired to 3.3V. */ 277 &io_domains { 278 &io_domains { 278 audio-supply = <&vcc33_io>; 279 audio-supply = <&vcc33_io>; 279 dvp-supply = <&vcc33_io>; 280 dvp-supply = <&vcc33_io>; 280 flash0-supply = <&vcc_18>; 281 flash0-supply = <&vcc_18>; 281 gpio30-supply = <&vcc33_io>; 282 gpio30-supply = <&vcc33_io>; 282 gpio1830-supply = <&vcc33_io>; 283 gpio1830-supply = <&vcc33_io>; 283 sdcard-supply = <&vcc33_io>; 284 sdcard-supply = <&vcc33_io>; 284 wifi-supply = <&vcc33_io>; 285 wifi-supply = <&vcc33_io>; 285 status = "okay"; 286 status = "okay"; 286 }; 287 }; 287 288 288 &pinctrl { 289 &pinctrl { 289 leds { 290 leds { 290 module_led_pins: module-led-pi 291 module_led_pins: module-led-pins { 291 rockchip,pins = 292 rockchip,pins = 292 <2 RK_PB5 RK_F 293 <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, 293 <3 RK_PA3 RK_F 294 <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; 294 }; 295 }; 295 }; 296 }; 296 pmic { 297 pmic { 297 pmic_int_l: pmic-int-l { 298 pmic_int_l: pmic-int-l { 298 rockchip,pins = <0 RK_ 299 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; 299 }; 300 }; 300 301 301 pmic_sleep: pmic-sleep { 302 pmic_sleep: pmic-sleep { 302 rockchip,pins = <0 RK_ 303 rockchip,pins = <0 RK_PA0 2 &pcfg_pull_none>; 303 }; 304 }; 304 }; 305 }; 305 }; 306 }; 306 307 307 &pmu_io_domains { 308 &pmu_io_domains { 308 pmu-supply = <&vcc33_io>; 309 pmu-supply = <&vcc33_io>; 309 vop-supply = <&vcc33_io>; 310 vop-supply = <&vcc33_io>; 310 status = "okay"; 311 status = "okay"; 311 }; 312 }; 312 313 313 &spi1 { 314 &spi1 { 314 status = "okay"; 315 status = "okay"; 315 316 316 norflash: flash@0 { 317 norflash: flash@0 { 317 compatible = "jedec,spi-nor"; 318 compatible = "jedec,spi-nor"; 318 reg = <0>; 319 reg = <0>; 319 spi-max-frequency = <50000000> 320 spi-max-frequency = <50000000>; 320 }; 321 }; 321 }; 322 }; 322 323 323 &uart1 { 324 &uart1 { 324 status = "okay"; 325 status = "okay"; 325 }; 326 }; 326 327 327 &uart3 { 328 &uart3 { 328 status = "okay"; 329 status = "okay"; 329 }; 330 }; 330 331 331 &usb_host0_ehci { 332 &usb_host0_ehci { 332 status = "okay"; 333 status = "okay"; 333 }; 334 }; 334 335 335 &wdt { 336 &wdt { 336 status = "okay"; 337 status = "okay"; 337 }; 338 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.