1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd 4 */ 5 6/dts-v1/; 7#include "rk3368.dtsi" 8#include <dt-bindings/input/input.h> 9 10/ { 11 model = "Rockchip PX5 EVB"; 12 compatible = "rockchip,px5-evb", "rockchip,px5", "rockchip,rk3368"; 13 14 chosen { 15 stdout-path = "serial4:115200n8"; 16 }; 17 18 memory@0 { 19 reg = <0x0 0x0 0x0 0x40000000>; 20 device_type = "memory"; 21 }; 22 23 keys: gpio-keys { 24 compatible = "gpio-keys"; 25 pinctrl-names = "default"; 26 pinctrl-0 = <&pwr_key>; 27 28 power { 29 gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; 30 label = "GPIO Power"; 31 linux,code = <KEY_POWER>; 32 wakeup-source; 33 }; 34 }; 35 36 vcc_sys: vcc-sys-regulator { 37 compatible = "regulator-fixed"; 38 regulator-name = "vcc_sys"; 39 regulator-min-microvolt = <5000000>; 40 regulator-max-microvolt = <5000000>; 41 regulator-always-on; 42 regulator-boot-on; 43 }; 44}; 45 46&emmc { 47 status = "okay"; 48 bus-width = <8>; 49 cap-mmc-highspeed; 50 clock-frequency = <150000000>; 51 mmc-hs200-1_8v; 52 no-sdio; 53 no-sd; 54 non-removable; 55 pinctrl-names = "default"; 56 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>; 57 vmmc-supply = <&vcc_io>; 58 vqmmc-supply = <&vcc18_flash>; 59}; 60 61&i2c0 { 62 status = "okay"; 63 64 rk808: pmic@1b { 65 compatible = "rockchip,rk808"; 66 reg = <0x1b>; 67 interrupt-parent = <&gpio0>; 68 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>; 69 pinctrl-names = "default"; 70 pinctrl-0 = <&pmic_int>, <&pmic_sleep>; 71 rockchip,system-power-controller; 72 vcc1-supply = <&vcc_sys>; 73 vcc2-supply = <&vcc_sys>; 74 vcc3-supply = <&vcc_sys>; 75 vcc4-supply = <&vcc_sys>; 76 vcc6-supply = <&vcc_sys>; 77 vcc7-supply = <&vcc_sys>; 78 vcc8-supply = <&vcc_io>; 79 vcc9-supply = <&vcc_sys>; 80 vcc10-supply = <&vcc_sys>; 81 vcc11-supply = <&vcc_sys>; 82 vcc12-supply = <&vcc_io>; 83 clock-output-names = "xin32k", "rk808-clkout2"; 84 #clock-cells = <1>; 85 86 regulators { 87 vdd_cpu: DCDC_REG1 { 88 regulator-always-on; 89 regulator-boot-on; 90 regulator-min-microvolt = <700000>; 91 regulator-max-microvolt = <1500000>; 92 regulator-name = "vdd_cpu"; 93 }; 94 95 vdd_log: DCDC_REG2 { 96 regulator-always-on; 97 regulator-boot-on; 98 regulator-min-microvolt = <700000>; 99 regulator-max-microvolt = <1500000>; 100 regulator-name = "vdd_log"; 101 }; 102 103 vcc_ddr: DCDC_REG3 { 104 regulator-always-on; 105 regulator-boot-on; 106 regulator-name = "vcc_ddr"; 107 }; 108 109 vcc_io: DCDC_REG4 { 110 regulator-always-on; 111 regulator-boot-on; 112 regulator-min-microvolt = <3300000>; 113 regulator-max-microvolt = <3300000>; 114 regulator-name = "vcc_io"; 115 }; 116 117 vcc18_flash: LDO_REG1 { 118 regulator-always-on; 119 regulator-boot-on; 120 regulator-min-microvolt = <1800000>; 121 regulator-max-microvolt = <1800000>; 122 regulator-name = "vcc18_flash"; 123 }; 124 125 vcca_33: LDO_REG2 { 126 regulator-always-on; 127 regulator-boot-on; 128 regulator-min-microvolt = <3300000>; 129 regulator-max-microvolt = <3300000>; 130 regulator-name = "vcca_33"; 131 }; 132 133 vdd_10: LDO_REG3 { 134 regulator-always-on; 135 regulator-boot-on; 136 regulator-min-microvolt = <1000000>; 137 regulator-max-microvolt = <1000000>; 138 regulator-name = "vdd_10"; 139 }; 140 141 avdd_33: LDO_REG4 { 142 regulator-min-microvolt = <3300000>; 143 regulator-max-microvolt = <3300000>; 144 regulator-name = "avdd_33"; 145 }; 146 147 vccio_sd: LDO_REG5 { 148 regulator-always-on; 149 regulator-boot-on; 150 regulator-min-microvolt = <1800000>; 151 regulator-max-microvolt = <3300000>; 152 regulator-name = "vccio_sd"; 153 }; 154 155 vdd10_lcd: LDO_REG6 { 156 regulator-always-on; 157 regulator-boot-on; 158 regulator-min-microvolt = <1000000>; 159 regulator-max-microvolt = <1000000>; 160 regulator-name = "vdd10_lcd"; 161 }; 162 163 vcc_18: LDO_REG7 { 164 regulator-always-on; 165 regulator-boot-on; 166 regulator-min-microvolt = <1800000>; 167 regulator-max-microvolt = <1800000>; 168 regulator-name = "vcc_18"; 169 }; 170 171 vcc18_lcd: LDO_REG8 { 172 regulator-always-on; 173 regulator-boot-on; 174 regulator-min-microvolt = <1800000>; 175 regulator-max-microvolt = <1800000>; 176 regulator-name = "vcc18_lcd"; 177 }; 178 179 vcc_sd: SWITCH_REG1 { 180 regulator-name = "vcc_sd"; 181 }; 182 183 vcc33_lcd: SWITCH_REG2 { 184 regulator-always-on; 185 regulator-boot-on; 186 regulator-name = "vcc33_lcd"; 187 }; 188 }; 189 }; 190}; 191 192&i2c1 { 193 status = "okay"; 194 195 accelerometer@18 { 196 compatible = "bosch,bma250"; 197 reg = <0x18>; 198 interrupt-parent = <&gpio2>; 199 interrupts = <RK_PC1 IRQ_TYPE_LEVEL_LOW>; 200 }; 201}; 202 203&i2c2 { 204 status = "okay"; 205 206 gsl1680: touchscreen@40 { 207 compatible = "silead,gsl1680"; 208 reg = <0x40>; 209 interrupt-parent = <&gpio3>; 210 interrupts = <RK_PD4 IRQ_TYPE_EDGE_FALLING>; 211 power-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>; 212 touchscreen-size-x = <800>; 213 touchscreen-size-y = <1280>; 214 silead,max-fingers = <5>; 215 }; 216}; 217 218&pinctrl { 219 keys { 220 pwr_key: pwr-key { 221 rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_none>; 222 }; 223 }; 224 225 pmic { 226 pmic_sleep: pmic-sleep { 227 rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>; 228 }; 229 230 pmic_int: pmic-int { 231 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>; 232 }; 233 }; 234}; 235 236&sdmmc { 237 status = "okay"; 238 bus-width = <4>; 239 cap-mmc-highspeed; 240 cap-sd-highspeed; 241 card-detect-delay = <200>; 242 no-emmc; 243 no-sdio; 244 sd-uhs-sdr12; 245 sd-uhs-sdr25; 246 pinctrl-names = "default"; 247 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_bus4>, <&sdmmc_cd>; 248 rockchip,default-sample-phase = <90>; 249 vmmc-supply = <&vcc_sd>; 250 vqmmc-supply = <&vccio_sd>; 251}; 252 253&tsadc { 254 status = "okay"; 255 rockchip,hw-tshut-mode = <0>; /* CRU */ 256 rockchip,hw-tshut-polarity = <1>; /* high */ 257}; 258 259&uart4 { 260 status = "okay"; 261}; 262 263&usb_host0_ehci { 264 status = "okay"; 265}; 266 267&usb_otg { 268 status = "okay"; 269}; 270 271&wdt { 272 status = "okay"; 273}; 274