1/* 2 * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd 3 * 4 * This file is dual-licensed: you can use it either under the terms 5 * of the GPL or the X11 license, at your option. Note that this dual 6 * licensing only applies to this file, and not this project as a 7 * whole. 8 * 9 * a) This file is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU General Public License as 11 * published by the Free Software Foundation; either version 2 of the 12 * License, or (at your option) any later version. 13 * 14 * This file is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * Or, alternatively, 20 * 21 * b) Permission is hereby granted, free of charge, to any person 22 * obtaining a copy of this software and associated documentation 23 * files (the "Software"), to deal in the Software without 24 * restriction, including without limitation the rights to use, 25 * copy, modify, merge, publish, distribute, sublicense, and/or 26 * sell copies of the Software, and to permit persons to whom the 27 * Software is furnished to do so, subject to the following 28 * conditions: 29 * 30 * The above copyright notice and this permission notice shall be 31 * included in all copies or substantial portions of the Software. 32 * 33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40 * OTHER DEALINGS IN THE SOFTWARE. 41 */ 42 43/dts-v1/; 44#include "rk3368.dtsi" 45#include <dt-bindings/input/input.h> 46 47/ { 48 model = "Rockchip PX5 EVB"; 49 compatible = "rockchip,px5-evb", "rockchip,px5", "rockchip,rk3368"; 50 51 chosen { 52 stdout-path = "serial4:115200n8"; 53 }; 54 55 memory@0 { 56 reg = <0x0 0x0 0x0 0x40000000>; 57 device_type = "memory"; 58 }; 59 60 keys: gpio-keys { 61 compatible = "gpio-keys"; 62 pinctrl-names = "default"; 63 pinctrl-0 = <&pwr_key>; 64 65 power { 66 gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; 67 label = "GPIO Power"; 68 linux,code = <KEY_POWER>; 69 wakeup-source; 70 }; 71 }; 72 73 vcc_sys: vcc-sys-regulator { 74 compatible = "regulator-fixed"; 75 regulator-name = "vcc_sys"; 76 regulator-min-microvolt = <5000000>; 77 regulator-max-microvolt = <5000000>; 78 regulator-always-on; 79 regulator-boot-on; 80 }; 81}; 82 83&emmc { 84 status = "okay"; 85 bus-width = <8>; 86 cap-mmc-highspeed; 87 clock-frequency = <150000000>; 88 disable-wp; 89 mmc-hs200-1_8v; 90 no-sdio; 91 no-sd; 92 non-removable; 93 pinctrl-names = "default"; 94 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>; 95 vmmc-supply = <&vcc_io>; 96 vqmmc-supply = <&vcc18_flash>; 97}; 98 99&i2c0 { 100 status = "okay"; 101 102 rk808: pmic@1b { 103 compatible = "rockchip,rk808"; 104 reg = <0x1b>; 105 interrupt-parent = <&gpio0>; 106 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>; 107 pinctrl-names = "default"; 108 pinctrl-0 = <&pmic_int>, <&pmic_sleep>; 109 rockchip,system-power-controller; 110 vcc1-supply = <&vcc_sys>; 111 vcc2-supply = <&vcc_sys>; 112 vcc3-supply = <&vcc_sys>; 113 vcc4-supply = <&vcc_sys>; 114 vcc6-supply = <&vcc_sys>; 115 vcc7-supply = <&vcc_sys>; 116 vcc8-supply = <&vcc_io>; 117 vcc9-supply = <&vcc_sys>; 118 vcc10-supply = <&vcc_sys>; 119 vcc11-supply = <&vcc_sys>; 120 vcc12-supply = <&vcc_io>; 121 clock-output-names = "xin32k", "rk808-clkout2"; 122 #clock-cells = <1>; 123 124 regulators { 125 vdd_cpu: DCDC_REG1 { 126 regulator-always-on; 127 regulator-boot-on; 128 regulator-min-microvolt = <700000>; 129 regulator-max-microvolt = <1500000>; 130 regulator-name = "vdd_cpu"; 131 }; 132 133 vdd_log: DCDC_REG2 { 134 regulator-always-on; 135 regulator-boot-on; 136 regulator-min-microvolt = <700000>; 137 regulator-max-microvolt = <1500000>; 138 regulator-name = "vdd_log"; 139 }; 140 141 vcc_ddr: DCDC_REG3 { 142 regulator-always-on; 143 regulator-boot-on; 144 regulator-name = "vcc_ddr"; 145 }; 146 147 vcc_io: DCDC_REG4 { 148 regulator-always-on; 149 regulator-boot-on; 150 regulator-min-microvolt = <3300000>; 151 regulator-max-microvolt = <3300000>; 152 regulator-name = "vcc_io"; 153 }; 154 155 vcc18_flash: LDO_REG1 { 156 regulator-always-on; 157 regulator-boot-on; 158 regulator-min-microvolt = <1800000>; 159 regulator-max-microvolt = <1800000>; 160 regulator-name = "vcc18_flash"; 161 }; 162 163 vcca_33: LDO_REG2 { 164 regulator-always-on; 165 regulator-boot-on; 166 regulator-min-microvolt = <3300000>; 167 regulator-max-microvolt = <3300000>; 168 regulator-name = "vcca_33"; 169 }; 170 171 vdd_10: LDO_REG3 { 172 regulator-always-on; 173 regulator-boot-on; 174 regulator-min-microvolt = <1000000>; 175 regulator-max-microvolt = <1000000>; 176 regulator-name = "vdd_10"; 177 }; 178 179 avdd_33: LDO_REG4 { 180 regulator-min-microvolt = <3300000>; 181 regulator-max-microvolt = <3300000>; 182 regulator-name = "avdd_33"; 183 }; 184 185 vccio_sd: LDO_REG5 { 186 regulator-always-on; 187 regulator-boot-on; 188 regulator-min-microvolt = <1800000>; 189 regulator-max-microvolt = <3300000>; 190 regulator-name = "vccio_sd"; 191 }; 192 193 vdd10_lcd: LDO_REG6 { 194 regulator-always-on; 195 regulator-boot-on; 196 regulator-min-microvolt = <1000000>; 197 regulator-max-microvolt = <1000000>; 198 regulator-name = "vdd10_lcd"; 199 }; 200 201 vcc_18: LDO_REG7 { 202 regulator-always-on; 203 regulator-boot-on; 204 regulator-min-microvolt = <1800000>; 205 regulator-max-microvolt = <1800000>; 206 regulator-name = "vcc_18"; 207 }; 208 209 vcc18_lcd: LDO_REG8 { 210 regulator-always-on; 211 regulator-boot-on; 212 regulator-min-microvolt = <1800000>; 213 regulator-max-microvolt = <1800000>; 214 regulator-name = "vcc18_lcd"; 215 }; 216 217 vcc_sd: SWITCH_REG1 { 218 regulator-name = "vcc_sd"; 219 }; 220 221 vcc33_lcd: SWITCH_REG2 { 222 regulator-always-on; 223 regulator-boot-on; 224 regulator-name = "vcc33_lcd"; 225 }; 226 }; 227 }; 228}; 229 230&i2c1 { 231 status = "okay"; 232 233 accelerometer@18 { 234 compatible = "bosch,bma250"; 235 reg = <0x18>; 236 interrupt-parent = <&gpio2>; 237 interrupts = <RK_PC1 IRQ_TYPE_LEVEL_LOW>; 238 }; 239}; 240 241&i2c2 { 242 status = "okay"; 243 244 gsl1680: touchscreen@40 { 245 compatible = "silead,gsl1680"; 246 reg = <0x40>; 247 interrupt-parent = <&gpio3>; 248 interrupts = <RK_PD4 IRQ_TYPE_EDGE_FALLING>; 249 power-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>; 250 touchscreen-size-x = <800>; 251 touchscreen-size-y = <1280>; 252 silead,max-fingers = <5>; 253 }; 254}; 255 256&pinctrl { 257 keys { 258 pwr_key: pwr-key { 259 rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_none>; 260 }; 261 }; 262 263 pmic { 264 pmic_sleep: pmic-sleep { 265 rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>; 266 }; 267 268 pmic_int: pmic-int { 269 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>; 270 }; 271 }; 272}; 273 274&sdmmc { 275 status = "okay"; 276 bus-width = <4>; 277 cap-mmc-highspeed; 278 cap-sd-highspeed; 279 card-detect-delay = <200>; 280 no-emmc; 281 no-sdio; 282 sd-uhs-sdr12; 283 sd-uhs-sdr25; 284 pinctrl-names = "default"; 285 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_bus4>, <&sdmmc_cd>; 286 rockchip,default-sample-phase = <90>; 287 vmmc-supply = <&vcc_sd>; 288 vqmmc-supply = <&vccio_sd>; 289}; 290 291&tsadc { 292 status = "okay"; 293 rockchip,hw-tshut-mode = <0>; /* CRU */ 294 rockchip,hw-tshut-polarity = <1>; /* high */ 295}; 296 297&uart4 { 298 status = "okay"; 299}; 300 301&usb_host0_ehci { 302 status = "okay"; 303}; 304 305&usb_otg { 306 status = "okay"; 307}; 308 309&wdt { 310 status = "okay"; 311}; 312