1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2724ba675SRob Herring/* 3724ba675SRob Herring * Copyright (c) 2016 Andy Yan <andy.yan@rock-chips.com> 4724ba675SRob Herring */ 5724ba675SRob Herring 6724ba675SRob Herring/dts-v1/; 7724ba675SRob Herring#include <dt-bindings/input/input.h> 8724ba675SRob Herring#include "rk3188.dtsi" 9724ba675SRob Herring 10724ba675SRob Herring/ { 11724ba675SRob Herring model = "Rockchip PX3-EVB"; 12724ba675SRob Herring compatible = "rockchip,px3-evb", "rockchip,px3", "rockchip,rk3188"; 13724ba675SRob Herring 14724ba675SRob Herring aliases { 15724ba675SRob Herring mmc0 = &mmc0; 16724ba675SRob Herring mmc1 = &emmc; 17724ba675SRob Herring }; 18724ba675SRob Herring 19724ba675SRob Herring chosen { 20724ba675SRob Herring stdout-path = "serial2:115200n8"; 21724ba675SRob Herring }; 22724ba675SRob Herring 23724ba675SRob Herring memory@60000000 { 24724ba675SRob Herring reg = <0x60000000 0x80000000>; 25724ba675SRob Herring device_type = "memory"; 26724ba675SRob Herring }; 27724ba675SRob Herring 28724ba675SRob Herring gpio-keys { 29724ba675SRob Herring compatible = "gpio-keys"; 30724ba675SRob Herring autorepeat; 31724ba675SRob Herring 32724ba675SRob Herring key-power { 33724ba675SRob Herring gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; 34724ba675SRob Herring linux,code = <KEY_POWER>; 35724ba675SRob Herring label = "GPIO Key Power"; 36724ba675SRob Herring linux,input-type = <1>; 37724ba675SRob Herring wakeup-source; 38724ba675SRob Herring debounce-interval = <100>; 39724ba675SRob Herring }; 40724ba675SRob Herring }; 41724ba675SRob Herring 42*2c3944d9SJohan Jonker vcc_sys: regulator-vsys { 43724ba675SRob Herring compatible = "regulator-fixed"; 44724ba675SRob Herring regulator-name = "vsys"; 45724ba675SRob Herring regulator-min-microvolt = <5000000>; 46724ba675SRob Herring regulator-max-microvolt = <5000000>; 47724ba675SRob Herring regulator-boot-on; 48724ba675SRob Herring }; 49724ba675SRob Herring}; 50724ba675SRob Herring 51724ba675SRob Herring&cpu0 { 52724ba675SRob Herring cpu-supply = <&vdd_cpu>; 53724ba675SRob Herring}; 54724ba675SRob Herring 55724ba675SRob Herring&cpu1 { 56724ba675SRob Herring cpu-supply = <&vdd_cpu>; 57724ba675SRob Herring}; 58724ba675SRob Herring 59724ba675SRob Herring&cpu2 { 60724ba675SRob Herring cpu-supply = <&vdd_cpu>; 61724ba675SRob Herring}; 62724ba675SRob Herring 63724ba675SRob Herring&cpu3 { 64724ba675SRob Herring cpu-supply = <&vdd_cpu>; 65724ba675SRob Herring}; 66724ba675SRob Herring 67724ba675SRob Herring&emmc { 68724ba675SRob Herring bus-width = <8>; 69724ba675SRob Herring cap-mmc-highspeed; 70724ba675SRob Herring non-removable; 71724ba675SRob Herring pinctrl-names = "default"; 72724ba675SRob Herring pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>; 73724ba675SRob Herring status = "okay"; 74724ba675SRob Herring}; 75724ba675SRob Herring 76724ba675SRob Herring&i2c0 { 77724ba675SRob Herring status = "okay"; 78724ba675SRob Herring 79724ba675SRob Herring accelerometer@18 { 80724ba675SRob Herring compatible = "bosch,bma250"; 81724ba675SRob Herring reg = <0x18>; 82724ba675SRob Herring interrupt-parent = <&gpio0>; 83724ba675SRob Herring interrupts = <RK_PB7 IRQ_TYPE_LEVEL_LOW>; 84724ba675SRob Herring }; 85724ba675SRob Herring}; 86724ba675SRob Herring 87724ba675SRob Herring&i2c1 { 88724ba675SRob Herring status = "okay"; 89724ba675SRob Herring clock-frequency = <400000>; 90724ba675SRob Herring 91724ba675SRob Herring rk808: pmic@1c { 92724ba675SRob Herring compatible = "rockchip,rk818"; 93724ba675SRob Herring reg = <0x1c>; 94724ba675SRob Herring interrupt-parent = <&gpio0>; 95724ba675SRob Herring interrupts = <RK_PB3 IRQ_TYPE_LEVEL_LOW>; 96724ba675SRob Herring rockchip,system-power-controller; 97724ba675SRob Herring wakeup-source; 98724ba675SRob Herring #clock-cells = <1>; 99724ba675SRob Herring clock-output-names = "xin32k", "rk808-clkout2"; 100724ba675SRob Herring 101724ba675SRob Herring vcc1-supply = <&vcc_sys>; 102724ba675SRob Herring vcc2-supply = <&vcc_sys>; 103724ba675SRob Herring vcc3-supply = <&vcc_sys>; 104724ba675SRob Herring vcc4-supply = <&vcc_sys>; 105724ba675SRob Herring vcc6-supply = <&vcc_sys>; 106724ba675SRob Herring vcc7-supply = <&vcc_sys>; 107724ba675SRob Herring vcc8-supply = <&vcc_io>; 108724ba675SRob Herring vcc9-supply = <&vcc_io>; 109724ba675SRob Herring 110724ba675SRob Herring regulators { 111724ba675SRob Herring vdd_cpu: DCDC_REG1 { 112724ba675SRob Herring regulator-always-on; 113724ba675SRob Herring regulator-boot-on; 114724ba675SRob Herring regulator-min-microvolt = <750000>; 115724ba675SRob Herring regulator-max-microvolt = <1350000>; 116724ba675SRob Herring regulator-name = "vdd_arm"; 117724ba675SRob Herring regulator-state-mem { 118724ba675SRob Herring regulator-off-in-suspend; 119724ba675SRob Herring }; 120724ba675SRob Herring }; 121724ba675SRob Herring 122724ba675SRob Herring vdd_gpu: DCDC_REG2 { 123724ba675SRob Herring regulator-always-on; 124724ba675SRob Herring regulator-boot-on; 125724ba675SRob Herring regulator-min-microvolt = <850000>; 126724ba675SRob Herring regulator-max-microvolt = <1250000>; 127724ba675SRob Herring regulator-name = "vdd_gpu"; 128724ba675SRob Herring regulator-state-mem { 129724ba675SRob Herring regulator-on-in-suspend; 130724ba675SRob Herring regulator-suspend-microvolt = <1000000>; 131724ba675SRob Herring }; 132724ba675SRob Herring }; 133724ba675SRob Herring 134724ba675SRob Herring vcc_ddr: DCDC_REG3 { 135724ba675SRob Herring regulator-always-on; 136724ba675SRob Herring regulator-boot-on; 137724ba675SRob Herring regulator-name = "vcc_ddr"; 138724ba675SRob Herring regulator-state-mem { 139724ba675SRob Herring regulator-on-in-suspend; 140724ba675SRob Herring }; 141724ba675SRob Herring }; 142724ba675SRob Herring 143724ba675SRob Herring vcc_io: DCDC_REG4 { 144724ba675SRob Herring regulator-always-on; 145724ba675SRob Herring regulator-boot-on; 146724ba675SRob Herring regulator-min-microvolt = <3300000>; 147724ba675SRob Herring regulator-max-microvolt = <3300000>; 148724ba675SRob Herring regulator-name = "vcc_io"; 149724ba675SRob Herring regulator-state-mem { 150724ba675SRob Herring regulator-on-in-suspend; 151724ba675SRob Herring regulator-suspend-microvolt = <3300000>; 152724ba675SRob Herring }; 153724ba675SRob Herring }; 154724ba675SRob Herring 155724ba675SRob Herring vcc_cif: LDO_REG1 { 156724ba675SRob Herring regulator-min-microvolt = <3300000>; 157724ba675SRob Herring regulator-max-microvolt = <3300000>; 158724ba675SRob Herring regulator-name = "vcc_cif"; 159724ba675SRob Herring }; 160724ba675SRob Herring 161724ba675SRob Herring vcc_jetta33: LDO_REG2 { 162724ba675SRob Herring regulator-always-on; 163724ba675SRob Herring regulator-boot-on; 164724ba675SRob Herring regulator-min-microvolt = <3300000>; 165724ba675SRob Herring regulator-max-microvolt = <3300000>; 166724ba675SRob Herring regulator-name = "vcc_jetta33"; 167724ba675SRob Herring }; 168724ba675SRob Herring 169724ba675SRob Herring vdd_10: LDO_REG3 { 170724ba675SRob Herring regulator-always-on; 171724ba675SRob Herring regulator-boot-on; 172724ba675SRob Herring regulator-min-microvolt = <1000000>; 173724ba675SRob Herring regulator-max-microvolt = <1000000>; 174724ba675SRob Herring regulator-name = "vdd_10"; 175724ba675SRob Herring regulator-state-mem { 176724ba675SRob Herring regulator-on-in-suspend; 177724ba675SRob Herring regulator-suspend-microvolt = <1000000>; 178724ba675SRob Herring }; 179724ba675SRob Herring }; 180724ba675SRob Herring 181724ba675SRob Herring lvds_12: LDO_REG4 { 182724ba675SRob Herring regulator-min-microvolt = <1800000>; 183724ba675SRob Herring regulator-max-microvolt = <1800000>; 184724ba675SRob Herring regulator-name = "lvds_12"; 185724ba675SRob Herring }; 186724ba675SRob Herring 187724ba675SRob Herring lvds_25: LDO_REG5 { 188724ba675SRob Herring regulator-min-microvolt = <1800000>; 189724ba675SRob Herring regulator-max-microvolt = <3300000>; 190724ba675SRob Herring regulator-name = "lvds_25"; 191724ba675SRob Herring }; 192724ba675SRob Herring 193724ba675SRob Herring cif_18: LDO_REG6 { 194724ba675SRob Herring regulator-min-microvolt = <1000000>; 195724ba675SRob Herring regulator-max-microvolt = <1000000>; 196724ba675SRob Herring regulator-name = "cif_18"; 197724ba675SRob Herring }; 198724ba675SRob Herring 199724ba675SRob Herring vcc_sd: LDO_REG7 { 200724ba675SRob Herring regulator-min-microvolt = <1800000>; 201724ba675SRob Herring regulator-max-microvolt = <3300000>; 202724ba675SRob Herring regulator-name = "vcc_sd"; 203724ba675SRob Herring regulator-state-mem { 204724ba675SRob Herring regulator-on-in-suspend; 205724ba675SRob Herring regulator-suspend-microvolt = <3300000>; 206724ba675SRob Herring }; 207724ba675SRob Herring }; 208724ba675SRob Herring 209724ba675SRob Herring wl_18: LDO_REG8 { 210724ba675SRob Herring regulator-min-microvolt = <1800000>; 211724ba675SRob Herring regulator-max-microvolt = <3300000>; 212724ba675SRob Herring regulator-name = "wl_18"; 213724ba675SRob Herring }; 214724ba675SRob Herring 215724ba675SRob Herring lcd_33: SWITCH_REG { 216724ba675SRob Herring regulator-name = "lcd_33"; 217724ba675SRob Herring }; 218724ba675SRob Herring }; 219724ba675SRob Herring }; 220724ba675SRob Herring 221724ba675SRob Herring}; 222724ba675SRob Herring 223724ba675SRob Herring&i2c2 { 224724ba675SRob Herring gsl1680: touchscreen@40 { 225724ba675SRob Herring compatible = "silead,gsl1680"; 226724ba675SRob Herring reg = <0x40>; 227724ba675SRob Herring interrupt-parent = <&gpio1>; 228724ba675SRob Herring interrupts = <RK_PB7 IRQ_TYPE_EDGE_FALLING>; 229724ba675SRob Herring power-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>; 230724ba675SRob Herring touchscreen-size-x = <800>; 231724ba675SRob Herring touchscreen-size-y = <1280>; 232724ba675SRob Herring silead,max-fingers = <5>; 233724ba675SRob Herring }; 234724ba675SRob Herring}; 235724ba675SRob Herring 236724ba675SRob Herring&mmc0 { 237724ba675SRob Herring status = "okay"; 238724ba675SRob Herring pinctrl-names = "default"; 239724ba675SRob Herring pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>; 240724ba675SRob Herring vmmc-supply = <&vcc_sd>; 241724ba675SRob Herring 242724ba675SRob Herring bus-width = <4>; 243724ba675SRob Herring cap-mmc-highspeed; 244724ba675SRob Herring cap-sd-highspeed; 245724ba675SRob Herring disable-wp; 246724ba675SRob Herring}; 247724ba675SRob Herring 248724ba675SRob Herring&pinctrl { 249724ba675SRob Herring pcfg_output_low: pcfg-output-low { 250724ba675SRob Herring output-low; 251724ba675SRob Herring }; 252724ba675SRob Herring 253724ba675SRob Herring usb { 254724ba675SRob Herring host_vbus_drv: host-vbus-drv { 255724ba675SRob Herring rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; 256724ba675SRob Herring }; 257724ba675SRob Herring otg_vbus_drv: otg-vbus-drv { 258724ba675SRob Herring rockchip,pins = <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>; 259724ba675SRob Herring }; 260724ba675SRob Herring }; 261724ba675SRob Herring}; 262724ba675SRob Herring 263724ba675SRob Herring&pwm1 { 264724ba675SRob Herring status = "okay"; 265724ba675SRob Herring}; 266724ba675SRob Herring 267724ba675SRob Herring&pwm2 { 268724ba675SRob Herring status = "okay"; 269724ba675SRob Herring}; 270724ba675SRob Herring 271724ba675SRob Herring&pwm3 { 272724ba675SRob Herring status = "okay"; 273724ba675SRob Herring}; 274724ba675SRob Herring 275724ba675SRob Herring&uart0 { 276724ba675SRob Herring status = "okay"; 277724ba675SRob Herring}; 278724ba675SRob Herring 279724ba675SRob Herring&uart1 { 280724ba675SRob Herring status = "okay"; 281724ba675SRob Herring}; 282724ba675SRob Herring 283724ba675SRob Herring&uart2 { 284724ba675SRob Herring status = "okay"; 285724ba675SRob Herring}; 286724ba675SRob Herring 287724ba675SRob Herring&uart3 { 288724ba675SRob Herring status = "okay"; 289724ba675SRob Herring}; 290724ba675SRob Herring 291724ba675SRob Herring&usbphy { 292724ba675SRob Herring status = "okay"; 293724ba675SRob Herring}; 294724ba675SRob Herring 295724ba675SRob Herring&usb_host { 296724ba675SRob Herring status = "okay"; 297724ba675SRob Herring}; 298724ba675SRob Herring 299724ba675SRob Herring&usb_otg { 300724ba675SRob Herring status = "okay"; 301724ba675SRob Herring}; 302724ba675SRob Herring 303724ba675SRob Herring&wdt { 304724ba675SRob Herring status = "okay"; 305724ba675SRob Herring}; 306