1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2015 Heiko Stuebner <heiko@snt 3 * Copyright (c) 2015 Heiko Stuebner <heiko@sntech.de> 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/pwm/pwm.h> 8 #include <dt-bindings/pwm/pwm.h> 9 #include "rk3288.dtsi" 9 #include "rk3288.dtsi" 10 10 11 / { 11 / { 12 model = "Netxeon R89"; 12 model = "Netxeon R89"; 13 compatible = "netxeon,r89", "rockchip, 13 compatible = "netxeon,r89", "rockchip,rk3288"; 14 14 15 memory@0 { 15 memory@0 { 16 device_type = "memory"; 16 device_type = "memory"; 17 reg = <0x0 0x0 0x0 0x80000000> 17 reg = <0x0 0x0 0x0 0x80000000>; 18 }; 18 }; 19 19 20 ext_gmac: external-gmac-clock { 20 ext_gmac: external-gmac-clock { 21 compatible = "fixed-clock"; 21 compatible = "fixed-clock"; 22 clock-frequency = <125000000>; 22 clock-frequency = <125000000>; 23 clock-output-names = "ext_gmac 23 clock-output-names = "ext_gmac"; 24 #clock-cells = <0>; 24 #clock-cells = <0>; 25 }; 25 }; 26 26 27 gpio-keys { 27 gpio-keys { 28 compatible = "gpio-keys"; 28 compatible = "gpio-keys"; 29 autorepeat; 29 autorepeat; 30 30 31 pinctrl-names = "default"; 31 pinctrl-names = "default"; 32 pinctrl-0 = <&pwrbtn>; 32 pinctrl-0 = <&pwrbtn>; 33 33 34 key-power { 34 key-power { 35 gpios = <&gpio0 RK_PA5 35 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; 36 linux,code = <KEY_POWE 36 linux,code = <KEY_POWER>; 37 label = "GPIO Key Powe 37 label = "GPIO Key Power"; 38 linux,input-type = <1> 38 linux,input-type = <1>; 39 wakeup-source; 39 wakeup-source; 40 debounce-interval = <1 40 debounce-interval = <100>; 41 }; 41 }; 42 }; 42 }; 43 43 44 ir: ir-receiver { 44 ir: ir-receiver { 45 compatible = "gpio-ir-receiver 45 compatible = "gpio-ir-receiver"; 46 gpios = <&gpio7 RK_PA0 GPIO_AC 46 gpios = <&gpio7 RK_PA0 GPIO_ACTIVE_LOW>; 47 pinctrl-names = "default"; 47 pinctrl-names = "default"; 48 pinctrl-0 = <&ir_int>; 48 pinctrl-0 = <&ir_int>; 49 }; 49 }; 50 50 51 vcc_host: vcc-host-regulator { 51 vcc_host: vcc-host-regulator { 52 compatible = "regulator-fixed" 52 compatible = "regulator-fixed"; 53 enable-active-high; 53 enable-active-high; 54 gpio = <&gpio0 RK_PB6 GPIO_ACT 54 gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>; 55 pinctrl-names = "default"; 55 pinctrl-names = "default"; 56 pinctrl-0 = <&host_vbus_drv>; 56 pinctrl-0 = <&host_vbus_drv>; 57 regulator-name = "vcc_host"; 57 regulator-name = "vcc_host"; 58 regulator-always-on; 58 regulator-always-on; 59 regulator-boot-on; 59 regulator-boot-on; 60 }; 60 }; 61 61 62 vcc_otg: vcc-otg-regulator { 62 vcc_otg: vcc-otg-regulator { 63 compatible = "regulator-fixed" 63 compatible = "regulator-fixed"; 64 enable-active-high; 64 enable-active-high; 65 gpio = <&gpio0 RK_PB4 GPIO_ACT 65 gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; 66 pinctrl-names = "default"; 66 pinctrl-names = "default"; 67 pinctrl-0 = <&otg_vbus_drv>; 67 pinctrl-0 = <&otg_vbus_drv>; 68 regulator-name = "vcc_otg"; 68 regulator-name = "vcc_otg"; 69 regulator-always-on; 69 regulator-always-on; 70 regulator-boot-on; 70 regulator-boot-on; 71 }; 71 }; 72 72 73 vcc_sdmmc: sdmmc-regulator { 73 vcc_sdmmc: sdmmc-regulator { 74 compatible = "regulator-fixed" 74 compatible = "regulator-fixed"; 75 regulator-name = "sdmmc-supply 75 regulator-name = "sdmmc-supply"; 76 regulator-min-microvolt = <330 76 regulator-min-microvolt = <3300000>; 77 regulator-max-microvolt = <330 77 regulator-max-microvolt = <3300000>; 78 gpio = <&gpio7 RK_PB3 GPIO_ACT 78 gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_LOW>; 79 startup-delay-us = <100000>; 79 startup-delay-us = <100000>; 80 vin-supply = <&vcc_io>; 80 vin-supply = <&vcc_io>; 81 }; 81 }; 82 82 83 vcc_sys: sys-regulator { 83 vcc_sys: sys-regulator { 84 compatible = "regulator-fixed" 84 compatible = "regulator-fixed"; 85 regulator-name = "sys-supply"; 85 regulator-name = "sys-supply"; 86 regulator-min-microvolt = <500 86 regulator-min-microvolt = <5000000>; 87 regulator-max-microvolt = <500 87 regulator-max-microvolt = <5000000>; 88 regulator-always-on; 88 regulator-always-on; 89 regulator-boot-on; 89 regulator-boot-on; 90 }; 90 }; 91 }; 91 }; 92 92 93 &cpu0 { 93 &cpu0 { 94 cpu-supply = <&vdd_cpu>; 94 cpu-supply = <&vdd_cpu>; 95 }; 95 }; 96 96 97 &cpu1 { 97 &cpu1 { 98 cpu-supply = <&vdd_cpu>; 98 cpu-supply = <&vdd_cpu>; 99 }; 99 }; 100 100 101 &cpu2 { 101 &cpu2 { 102 cpu-supply = <&vdd_cpu>; 102 cpu-supply = <&vdd_cpu>; 103 }; 103 }; 104 104 105 &cpu3 { 105 &cpu3 { 106 cpu-supply = <&vdd_cpu>; 106 cpu-supply = <&vdd_cpu>; 107 }; 107 }; 108 108 109 &gmac { 109 &gmac { 110 phy-supply = <&vcc_lan>; 110 phy-supply = <&vcc_lan>; 111 phy-mode = "rgmii"; 111 phy-mode = "rgmii"; 112 clock_in_out = "input"; 112 clock_in_out = "input"; 113 snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ 113 snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; 114 snps,reset-active-low; 114 snps,reset-active-low; 115 snps,reset-delays-us = <0 10000 100000 115 snps,reset-delays-us = <0 10000 1000000>; 116 assigned-clocks = <&cru SCLK_MAC>; 116 assigned-clocks = <&cru SCLK_MAC>; 117 assigned-clock-parents = <&ext_gmac>; 117 assigned-clock-parents = <&ext_gmac>; 118 pinctrl-names = "default"; 118 pinctrl-names = "default"; 119 pinctrl-0 = <&rgmii_pins>; 119 pinctrl-0 = <&rgmii_pins>; 120 tx_delay = <0x30>; 120 tx_delay = <0x30>; 121 rx_delay = <0x10>; 121 rx_delay = <0x10>; 122 status = "okay"; 122 status = "okay"; 123 }; 123 }; 124 124 125 &hdmi { 125 &hdmi { 126 status = "okay"; 126 status = "okay"; 127 }; 127 }; 128 128 129 &i2c0 { 129 &i2c0 { 130 status = "okay"; 130 status = "okay"; 131 131 132 vdd_cpu: pmic@40 { 132 vdd_cpu: pmic@40 { 133 compatible = "silergy,syr827"; 133 compatible = "silergy,syr827"; 134 reg = <0x40>; 134 reg = <0x40>; 135 fcs,suspend-voltage-selector = 135 fcs,suspend-voltage-selector = <1>; 136 regulator-name = "VDD_CPU"; 136 regulator-name = "VDD_CPU"; 137 regulator-enable-ramp-delay = 137 regulator-enable-ramp-delay = <300>; 138 regulator-min-microvolt = <850 138 regulator-min-microvolt = <850000>; 139 regulator-max-microvolt = <135 139 regulator-max-microvolt = <1350000>; 140 regulator-ramp-delay = <8000>; 140 regulator-ramp-delay = <8000>; 141 regulator-always-on; 141 regulator-always-on; 142 regulator-boot-on; 142 regulator-boot-on; 143 vin-supply = <&vcc_sys>; 143 vin-supply = <&vcc_sys>; 144 }; 144 }; 145 145 146 vdd_gpu: pmic@41 { 146 vdd_gpu: pmic@41 { 147 compatible = "silergy,syr828"; 147 compatible = "silergy,syr828"; 148 reg = <0x41>; 148 reg = <0x41>; 149 fcs,suspend-voltage-selector = 149 fcs,suspend-voltage-selector = <1>; 150 regulator-name = "VDD_GPU"; 150 regulator-name = "VDD_GPU"; 151 regulator-enable-ramp-delay = 151 regulator-enable-ramp-delay = <300>; 152 regulator-min-microvolt = <850 152 regulator-min-microvolt = <850000>; 153 regulator-max-microvolt = <135 153 regulator-max-microvolt = <1350000>; 154 regulator-ramp-delay = <8000>; 154 regulator-ramp-delay = <8000>; 155 regulator-always-on; 155 regulator-always-on; 156 regulator-boot-on; 156 regulator-boot-on; 157 vin-supply = <&vcc_sys>; 157 vin-supply = <&vcc_sys>; 158 }; 158 }; 159 159 160 rtc@51 { 160 rtc@51 { 161 compatible = "haoyu,hym8563"; 161 compatible = "haoyu,hym8563"; 162 reg = <0x51>; 162 reg = <0x51>; 163 #clock-cells = <0>; 163 #clock-cells = <0>; 164 clock-output-names = "xin32k"; 164 clock-output-names = "xin32k"; 165 interrupt-parent = <&gpio0>; 165 interrupt-parent = <&gpio0>; 166 interrupts = <RK_PA4 IRQ_TYPE_ 166 interrupts = <RK_PA4 IRQ_TYPE_EDGE_FALLING>; 167 pinctrl-names = "default"; 167 pinctrl-names = "default"; 168 pinctrl-0 = <&pmic_int>; 168 pinctrl-0 = <&pmic_int>; 169 }; 169 }; 170 170 171 act8846: pmic@5a { 171 act8846: pmic@5a { 172 compatible = "active-semi,act8 172 compatible = "active-semi,act8846"; 173 reg = <0x5a>; 173 reg = <0x5a>; 174 pinctrl-names = "default"; 174 pinctrl-names = "default"; 175 pinctrl-0 = <&pmic_vsel>, <&pw 175 pinctrl-0 = <&pmic_vsel>, <&pwr_hold>; 176 system-power-controller; 176 system-power-controller; 177 177 178 regulators { 178 regulators { 179 vcc_ddr: REG1 { 179 vcc_ddr: REG1 { 180 regulator-name 180 regulator-name = "VCC_DDR"; 181 regulator-min- 181 regulator-min-microvolt = <1200000>; 182 regulator-max- 182 regulator-max-microvolt = <1200000>; 183 regulator-alwa 183 regulator-always-on; 184 }; 184 }; 185 185 186 vcc_io: REG2 { 186 vcc_io: REG2 { 187 regulator-name 187 regulator-name = "VCC_IO"; 188 regulator-min- 188 regulator-min-microvolt = <3300000>; 189 regulator-max- 189 regulator-max-microvolt = <3300000>; 190 regulator-alwa 190 regulator-always-on; 191 }; 191 }; 192 192 193 vdd_log: REG3 { 193 vdd_log: REG3 { 194 regulator-name 194 regulator-name = "VDD_LOG"; 195 regulator-min- 195 regulator-min-microvolt = <1000000>; 196 regulator-max- 196 regulator-max-microvolt = <1000000>; 197 regulator-alwa 197 regulator-always-on; 198 }; 198 }; 199 199 200 vcc_20: REG4 { 200 vcc_20: REG4 { 201 regulator-name 201 regulator-name = "VCC_20"; 202 regulator-min- 202 regulator-min-microvolt = <2000000>; 203 regulator-max- 203 regulator-max-microvolt = <2000000>; 204 regulator-alwa 204 regulator-always-on; 205 }; 205 }; 206 206 207 vccio_sd: REG5 { 207 vccio_sd: REG5 { 208 regulator-name 208 regulator-name = "VCCIO_SD"; 209 regulator-min- 209 regulator-min-microvolt = <3300000>; 210 regulator-max- 210 regulator-max-microvolt = <3300000>; 211 regulator-alwa 211 regulator-always-on; 212 }; 212 }; 213 213 214 vdd10_lcd: REG6 { 214 vdd10_lcd: REG6 { 215 regulator-name 215 regulator-name = "VDD10_LCD"; 216 regulator-min- 216 regulator-min-microvolt = <1000000>; 217 regulator-max- 217 regulator-max-microvolt = <1000000>; 218 regulator-alwa 218 regulator-always-on; 219 }; 219 }; 220 220 221 vcc_wl: REG7 { 221 vcc_wl: REG7 { 222 regulator-name 222 regulator-name = "VCC_WL"; 223 regulator-min- 223 regulator-min-microvolt = <3300000>; 224 regulator-max- 224 regulator-max-microvolt = <3300000>; 225 regulator-alwa 225 regulator-always-on; 226 }; 226 }; 227 227 228 vcca_33: REG8 { 228 vcca_33: REG8 { 229 regulator-name 229 regulator-name = "VCCA_33"; 230 regulator-min- 230 regulator-min-microvolt = <3300000>; 231 regulator-max- 231 regulator-max-microvolt = <3300000>; 232 regulator-alwa 232 regulator-always-on; 233 }; 233 }; 234 234 235 vcc_lan: REG9 { 235 vcc_lan: REG9 { 236 regulator-name 236 regulator-name = "VCC_LAN"; 237 regulator-min- 237 regulator-min-microvolt = <3300000>; 238 regulator-max- 238 regulator-max-microvolt = <3300000>; 239 regulator-alwa 239 regulator-always-on; 240 }; 240 }; 241 241 242 vdd_10: REG10 { 242 vdd_10: REG10 { 243 regulator-name 243 regulator-name = "VDD_10"; 244 regulator-min- 244 regulator-min-microvolt = <1000000>; 245 regulator-max- 245 regulator-max-microvolt = <1000000>; 246 regulator-alwa 246 regulator-always-on; 247 }; 247 }; 248 248 249 vcc_18: REG11 { 249 vcc_18: REG11 { 250 regulator-name 250 regulator-name = "VCC_18"; 251 regulator-min- 251 regulator-min-microvolt = <1800000>; 252 regulator-max- 252 regulator-max-microvolt = <1800000>; 253 regulator-alwa 253 regulator-always-on; 254 }; 254 }; 255 255 256 vcc18_lcd: REG12 { 256 vcc18_lcd: REG12 { 257 regulator-name 257 regulator-name = "VCC18_LCD"; 258 regulator-min- 258 regulator-min-microvolt = <1800000>; 259 regulator-max- 259 regulator-max-microvolt = <1800000>; 260 regulator-alwa 260 regulator-always-on; 261 }; 261 }; 262 }; 262 }; 263 }; 263 }; 264 }; 264 }; 265 265 266 &i2c5 { 266 &i2c5 { 267 status = "okay"; 267 status = "okay"; 268 }; 268 }; 269 269 270 &pinctrl { 270 &pinctrl { 271 pcfg_output_high: pcfg-output-high { 271 pcfg_output_high: pcfg-output-high { 272 output-high; 272 output-high; 273 }; 273 }; 274 274 275 pcfg_output_low: pcfg-output-low { 275 pcfg_output_low: pcfg-output-low { 276 output-low; 276 output-low; 277 }; 277 }; 278 278 279 act8846 { 279 act8846 { 280 pmic_vsel: pmic-vsel { 280 pmic_vsel: pmic-vsel { 281 rockchip,pins = <7 RK_ 281 rockchip,pins = <7 RK_PA1 RK_FUNC_GPIO &pcfg_output_low>; 282 }; 282 }; 283 283 284 pwr_hold: pwr-hold { 284 pwr_hold: pwr-hold { 285 rockchip,pins = <0 RK_ 285 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_output_high>; 286 }; 286 }; 287 }; 287 }; 288 288 289 buttons { 289 buttons { 290 pwrbtn: pwrbtn { 290 pwrbtn: pwrbtn { 291 rockchip,pins = <0 RK_ 291 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; 292 }; 292 }; 293 }; 293 }; 294 294 295 ir { 295 ir { 296 ir_int: ir-int { 296 ir_int: ir-int { 297 rockchip,pins = <7 RK_ 297 rockchip,pins = <7 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>; 298 }; 298 }; 299 }; 299 }; 300 300 301 pmic { 301 pmic { 302 pmic_int: pmic-int { 302 pmic_int: pmic-int { 303 rockchip,pins = <0 RK_ 303 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>; 304 }; 304 }; 305 }; 305 }; 306 306 307 usb { 307 usb { 308 host_vbus_drv: host-vbus-drv { 308 host_vbus_drv: host-vbus-drv { 309 rockchip,pins = <0 RK_ 309 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; 310 }; 310 }; 311 311 312 otg_vbus_drv: otg-vbus-drv { 312 otg_vbus_drv: otg-vbus-drv { 313 rockchip,pins = <0 RK_ 313 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; 314 }; 314 }; 315 }; 315 }; 316 }; 316 }; 317 317 318 &pwm0 { 318 &pwm0 { 319 status = "okay"; 319 status = "okay"; 320 }; 320 }; 321 321 322 &saradc { 322 &saradc { 323 vref-supply = <&vcc_18>; 323 vref-supply = <&vcc_18>; 324 status = "okay"; 324 status = "okay"; 325 }; 325 }; 326 326 327 &sdmmc { 327 &sdmmc { 328 bus-width = <4>; 328 bus-width = <4>; 329 cap-mmc-highspeed; 329 cap-mmc-highspeed; 330 cap-sd-highspeed; 330 cap-sd-highspeed; 331 card-detect-delay = <200>; 331 card-detect-delay = <200>; 332 disable-wp; 332 disable-wp; 333 pinctrl-names = "default"; 333 pinctrl-names = "default"; 334 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sd 334 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; 335 vmmc-supply = <&vcc_sdmmc>; 335 vmmc-supply = <&vcc_sdmmc>; 336 vqmmc-supply = <&vccio_sd>; 336 vqmmc-supply = <&vccio_sd>; 337 status = "okay"; 337 status = "okay"; 338 }; 338 }; 339 339 340 &tsadc { 340 &tsadc { 341 rockchip,hw-tshut-mode = <0>; 341 rockchip,hw-tshut-mode = <0>; 342 rockchip,hw-tshut-polarity = <0>; 342 rockchip,hw-tshut-polarity = <0>; 343 status = "okay"; 343 status = "okay"; 344 }; 344 }; 345 345 346 &uart0 { 346 &uart0 { 347 status = "okay"; 347 status = "okay"; 348 }; 348 }; 349 349 350 &uart1 { 350 &uart1 { 351 status = "okay"; 351 status = "okay"; 352 }; 352 }; 353 353 354 &uart2 { 354 &uart2 { 355 status = "okay"; 355 status = "okay"; 356 }; 356 }; 357 357 358 &uart3 { 358 &uart3 { 359 status = "okay"; 359 status = "okay"; 360 }; 360 }; 361 361 362 &uart4 { 362 &uart4 { 363 status = "okay"; 363 status = "okay"; 364 }; 364 }; 365 365 366 &usb_host0_ehci { 366 &usb_host0_ehci { 367 status = "okay"; 367 status = "okay"; 368 }; 368 }; 369 369 370 &usb_host1 { 370 &usb_host1 { 371 status = "okay"; 371 status = "okay"; 372 }; 372 }; 373 373 374 &usb_otg { 374 &usb_otg { 375 status = "okay"; 375 status = "okay"; 376 }; 376 }; 377 377 378 &usbphy { 378 &usbphy { 379 status = "okay"; 379 status = "okay"; 380 }; 380 }; 381 381 382 &vopb { 382 &vopb { 383 status = "okay"; 383 status = "okay"; 384 }; 384 }; 385 385 386 &vopb_mmu { 386 &vopb_mmu { 387 status = "okay"; 387 status = "okay"; 388 }; 388 }; 389 389 390 &vopl { 390 &vopl { 391 status = "okay"; 391 status = "okay"; 392 }; 392 }; 393 393 394 &vopl_mmu { 394 &vopl_mmu { 395 status = "okay"; 395 status = "okay"; 396 }; 396 }; 397 397 398 &wdt { 398 &wdt { 399 status = "okay"; 399 status = "okay"; 400 }; 400 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.