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 disable-wp; 52 mmc-hs200-1_8v; 53 no-sdio; 54 no-sd; 55 non-removable; 56 pinctrl-names = "default"; 57 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>; 58 vmmc-supply = <&vcc_io>; 59 vqmmc-supply = <&vcc18_flash>; 60}; 61 62&i2c0 { 63 status = "okay"; 64 65 rk808: pmic@1b { 66 compatible = "rockchip,rk808"; 67 reg = <0x1b>; 68 interrupt-parent = <&gpio0>; 69 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>; 70 pinctrl-names = "default"; 71 pinctrl-0 = <&pmic_int>, <&pmic_sleep>; 72 rockchip,system-power-controller; 73 vcc1-supply = <&vcc_sys>; 74 vcc2-supply = <&vcc_sys>; 75 vcc3-supply = <&vcc_sys>; 76 vcc4-supply = <&vcc_sys>; 77 vcc6-supply = <&vcc_sys>; 78 vcc7-supply = <&vcc_sys>; 79 vcc8-supply = <&vcc_io>; 80 vcc9-supply = <&vcc_sys>; 81 vcc10-supply = <&vcc_sys>; 82 vcc11-supply = <&vcc_sys>; 83 vcc12-supply = <&vcc_io>; 84 clock-output-names = "xin32k", "rk808-clkout2"; 85 #clock-cells = <1>; 86 87 regulators { 88 vdd_cpu: DCDC_REG1 { 89 regulator-always-on; 90 regulator-boot-on; 91 regulator-min-microvolt = <700000>; 92 regulator-max-microvolt = <1500000>; 93 regulator-name = "vdd_cpu"; 94 }; 95 96 vdd_log: DCDC_REG2 { 97 regulator-always-on; 98 regulator-boot-on; 99 regulator-min-microvolt = <700000>; 100 regulator-max-microvolt = <1500000>; 101 regulator-name = "vdd_log"; 102 }; 103 104 vcc_ddr: DCDC_REG3 { 105 regulator-always-on; 106 regulator-boot-on; 107 regulator-name = "vcc_ddr"; 108 }; 109 110 vcc_io: DCDC_REG4 { 111 regulator-always-on; 112 regulator-boot-on; 113 regulator-min-microvolt = <3300000>; 114 regulator-max-microvolt = <3300000>; 115 regulator-name = "vcc_io"; 116 }; 117 118 vcc18_flash: LDO_REG1 { 119 regulator-always-on; 120 regulator-boot-on; 121 regulator-min-microvolt = <1800000>; 122 regulator-max-microvolt = <1800000>; 123 regulator-name = "vcc18_flash"; 124 }; 125 126 vcca_33: LDO_REG2 { 127 regulator-always-on; 128 regulator-boot-on; 129 regulator-min-microvolt = <3300000>; 130 regulator-max-microvolt = <3300000>; 131 regulator-name = "vcca_33"; 132 }; 133 134 vdd_10: LDO_REG3 { 135 regulator-always-on; 136 regulator-boot-on; 137 regulator-min-microvolt = <1000000>; 138 regulator-max-microvolt = <1000000>; 139 regulator-name = "vdd_10"; 140 }; 141 142 avdd_33: LDO_REG4 { 143 regulator-min-microvolt = <3300000>; 144 regulator-max-microvolt = <3300000>; 145 regulator-name = "avdd_33"; 146 }; 147 148 vccio_sd: LDO_REG5 { 149 regulator-always-on; 150 regulator-boot-on; 151 regulator-min-microvolt = <1800000>; 152 regulator-max-microvolt = <3300000>; 153 regulator-name = "vccio_sd"; 154 }; 155 156 vdd10_lcd: LDO_REG6 { 157 regulator-always-on; 158 regulator-boot-on; 159 regulator-min-microvolt = <1000000>; 160 regulator-max-microvolt = <1000000>; 161 regulator-name = "vdd10_lcd"; 162 }; 163 164 vcc_18: LDO_REG7 { 165 regulator-always-on; 166 regulator-boot-on; 167 regulator-min-microvolt = <1800000>; 168 regulator-max-microvolt = <1800000>; 169 regulator-name = "vcc_18"; 170 }; 171 172 vcc18_lcd: LDO_REG8 { 173 regulator-always-on; 174 regulator-boot-on; 175 regulator-min-microvolt = <1800000>; 176 regulator-max-microvolt = <1800000>; 177 regulator-name = "vcc18_lcd"; 178 }; 179 180 vcc_sd: SWITCH_REG1 { 181 regulator-name = "vcc_sd"; 182 }; 183 184 vcc33_lcd: SWITCH_REG2 { 185 regulator-always-on; 186 regulator-boot-on; 187 regulator-name = "vcc33_lcd"; 188 }; 189 }; 190 }; 191}; 192 193&i2c1 { 194 status = "okay"; 195 196 accelerometer@18 { 197 compatible = "bosch,bma250"; 198 reg = <0x18>; 199 interrupt-parent = <&gpio2>; 200 interrupts = <RK_PC1 IRQ_TYPE_LEVEL_LOW>; 201 }; 202}; 203 204&i2c2 { 205 status = "okay"; 206 207 gsl1680: touchscreen@40 { 208 compatible = "silead,gsl1680"; 209 reg = <0x40>; 210 interrupt-parent = <&gpio3>; 211 interrupts = <RK_PD4 IRQ_TYPE_EDGE_FALLING>; 212 power-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>; 213 touchscreen-size-x = <800>; 214 touchscreen-size-y = <1280>; 215 silead,max-fingers = <5>; 216 }; 217}; 218 219&pinctrl { 220 keys { 221 pwr_key: pwr-key { 222 rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_none>; 223 }; 224 }; 225 226 pmic { 227 pmic_sleep: pmic-sleep { 228 rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>; 229 }; 230 231 pmic_int: pmic-int { 232 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>; 233 }; 234 }; 235}; 236 237&sdmmc { 238 status = "okay"; 239 bus-width = <4>; 240 cap-mmc-highspeed; 241 cap-sd-highspeed; 242 card-detect-delay = <200>; 243 no-emmc; 244 no-sdio; 245 sd-uhs-sdr12; 246 sd-uhs-sdr25; 247 pinctrl-names = "default"; 248 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_bus4>, <&sdmmc_cd>; 249 rockchip,default-sample-phase = <90>; 250 vmmc-supply = <&vcc_sd>; 251 vqmmc-supply = <&vccio_sd>; 252}; 253 254&tsadc { 255 status = "okay"; 256 rockchip,hw-tshut-mode = <0>; /* CRU */ 257 rockchip,hw-tshut-polarity = <1>; /* high */ 258}; 259 260&uart4 { 261 status = "okay"; 262}; 263 264&usb_host0_ehci { 265 status = "okay"; 266}; 267 268&usb_otg { 269 status = "okay"; 270}; 271 272&wdt { 273 status = "okay"; 274}; 275