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