Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
0004  */
0005 
0006 /dts-v1/;
0007 #include "rk3368.dtsi"
0008 #include <dt-bindings/input/input.h>
0009 
0010 / {
0011         model = "Rockchip PX5 EVB";
0012         compatible = "rockchip,px5-evb", "rockchip,px5", "rockchip,rk3368";
0013 
0014         aliases {
0015                 mmc0 = &sdmmc;
0016                 mmc1 = &emmc;
0017         };
0018 
0019         chosen {
0020                 stdout-path = "serial4:115200n8";
0021         };
0022 
0023         memory@0 {
0024                 reg = <0x0 0x0 0x0 0x40000000>;
0025                 device_type = "memory";
0026         };
0027 
0028         keys: gpio-keys {
0029                 compatible = "gpio-keys";
0030                 pinctrl-names = "default";
0031                 pinctrl-0 = <&pwr_key>;
0032 
0033                 key-power {
0034                         gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
0035                         label = "GPIO Power";
0036                         linux,code = <KEY_POWER>;
0037                         wakeup-source;
0038                 };
0039         };
0040 
0041         vcc_sys: vcc-sys-regulator {
0042                 compatible = "regulator-fixed";
0043                 regulator-name = "vcc_sys";
0044                 regulator-min-microvolt = <5000000>;
0045                 regulator-max-microvolt = <5000000>;
0046                 regulator-always-on;
0047                 regulator-boot-on;
0048         };
0049 };
0050 
0051 &emmc {
0052         status = "okay";
0053         bus-width = <8>;
0054         cap-mmc-highspeed;
0055         clock-frequency = <150000000>;
0056         mmc-hs200-1_8v;
0057         no-sdio;
0058         no-sd;
0059         non-removable;
0060         pinctrl-names = "default";
0061         pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>;
0062         vmmc-supply = <&vcc_io>;
0063         vqmmc-supply = <&vcc18_flash>;
0064 };
0065 
0066 &i2c0 {
0067         status = "okay";
0068 
0069         rk808: pmic@1b {
0070                 compatible = "rockchip,rk808";
0071                 reg = <0x1b>;
0072                 interrupt-parent = <&gpio0>;
0073                 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
0074                 pinctrl-names = "default";
0075                 pinctrl-0 = <&pmic_int>, <&pmic_sleep>;
0076                 rockchip,system-power-controller;
0077                 vcc1-supply = <&vcc_sys>;
0078                 vcc2-supply = <&vcc_sys>;
0079                 vcc3-supply = <&vcc_sys>;
0080                 vcc4-supply = <&vcc_sys>;
0081                 vcc6-supply = <&vcc_sys>;
0082                 vcc7-supply = <&vcc_sys>;
0083                 vcc8-supply = <&vcc_io>;
0084                 vcc9-supply = <&vcc_sys>;
0085                 vcc10-supply = <&vcc_sys>;
0086                 vcc11-supply = <&vcc_sys>;
0087                 vcc12-supply = <&vcc_io>;
0088                 clock-output-names = "xin32k", "rk808-clkout2";
0089                 #clock-cells = <1>;
0090 
0091                 regulators {
0092                         vdd_cpu: DCDC_REG1 {
0093                                 regulator-always-on;
0094                                 regulator-boot-on;
0095                                 regulator-min-microvolt = <700000>;
0096                                 regulator-max-microvolt = <1500000>;
0097                                 regulator-name = "vdd_cpu";
0098                         };
0099 
0100                         vdd_log: DCDC_REG2 {
0101                                 regulator-always-on;
0102                                 regulator-boot-on;
0103                                 regulator-min-microvolt = <700000>;
0104                                 regulator-max-microvolt = <1500000>;
0105                                 regulator-name = "vdd_log";
0106                         };
0107 
0108                         vcc_ddr: DCDC_REG3 {
0109                                 regulator-always-on;
0110                                 regulator-boot-on;
0111                                 regulator-name = "vcc_ddr";
0112                         };
0113 
0114                         vcc_io: DCDC_REG4 {
0115                                 regulator-always-on;
0116                                 regulator-boot-on;
0117                                 regulator-min-microvolt = <3300000>;
0118                                 regulator-max-microvolt = <3300000>;
0119                                 regulator-name = "vcc_io";
0120                         };
0121 
0122                         vcc18_flash: LDO_REG1 {
0123                                 regulator-always-on;
0124                                 regulator-boot-on;
0125                                 regulator-min-microvolt = <1800000>;
0126                                 regulator-max-microvolt = <1800000>;
0127                                 regulator-name = "vcc18_flash";
0128                         };
0129 
0130                         vcca_33: LDO_REG2 {
0131                                 regulator-always-on;
0132                                 regulator-boot-on;
0133                                 regulator-min-microvolt = <3300000>;
0134                                 regulator-max-microvolt = <3300000>;
0135                                 regulator-name = "vcca_33";
0136                         };
0137 
0138                         vdd_10: LDO_REG3 {
0139                                 regulator-always-on;
0140                                 regulator-boot-on;
0141                                 regulator-min-microvolt = <1000000>;
0142                                 regulator-max-microvolt = <1000000>;
0143                                 regulator-name = "vdd_10";
0144                         };
0145 
0146                         avdd_33: LDO_REG4 {
0147                                 regulator-min-microvolt = <3300000>;
0148                                 regulator-max-microvolt = <3300000>;
0149                                 regulator-name = "avdd_33";
0150                         };
0151 
0152                         vccio_sd: LDO_REG5 {
0153                                 regulator-always-on;
0154                                 regulator-boot-on;
0155                                 regulator-min-microvolt = <1800000>;
0156                                 regulator-max-microvolt = <3300000>;
0157                                 regulator-name = "vccio_sd";
0158                         };
0159 
0160                         vdd10_lcd: LDO_REG6 {
0161                                 regulator-always-on;
0162                                 regulator-boot-on;
0163                                 regulator-min-microvolt = <1000000>;
0164                                 regulator-max-microvolt = <1000000>;
0165                                 regulator-name = "vdd10_lcd";
0166                         };
0167 
0168                         vcc_18: LDO_REG7 {
0169                                 regulator-always-on;
0170                                 regulator-boot-on;
0171                                 regulator-min-microvolt = <1800000>;
0172                                 regulator-max-microvolt = <1800000>;
0173                                 regulator-name = "vcc_18";
0174                         };
0175 
0176                         vcc18_lcd: LDO_REG8 {
0177                                 regulator-always-on;
0178                                 regulator-boot-on;
0179                                 regulator-min-microvolt = <1800000>;
0180                                 regulator-max-microvolt = <1800000>;
0181                                 regulator-name = "vcc18_lcd";
0182                         };
0183 
0184                         vcc_sd: SWITCH_REG1 {
0185                                 regulator-name = "vcc_sd";
0186                         };
0187 
0188                         vcc33_lcd: SWITCH_REG2 {
0189                                 regulator-always-on;
0190                                 regulator-boot-on;
0191                                 regulator-name = "vcc33_lcd";
0192                         };
0193                 };
0194         };
0195 };
0196 
0197 &i2c1 {
0198         status = "okay";
0199 
0200         accelerometer@18 {
0201                 compatible = "bosch,bma250";
0202                 reg = <0x18>;
0203                 interrupt-parent = <&gpio2>;
0204                 interrupts = <RK_PC1 IRQ_TYPE_LEVEL_LOW>;
0205         };
0206 };
0207 
0208 &i2c2 {
0209         status = "okay";
0210 
0211         gsl1680: touchscreen@40 {
0212                 compatible = "silead,gsl1680";
0213                 reg = <0x40>;
0214                 interrupt-parent = <&gpio3>;
0215                 interrupts = <RK_PD4 IRQ_TYPE_EDGE_FALLING>;
0216                 power-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>;
0217                 touchscreen-size-x = <800>;
0218                 touchscreen-size-y = <1280>;
0219                 silead,max-fingers = <5>;
0220         };
0221 };
0222 
0223 &pinctrl {
0224         keys {
0225                 pwr_key: pwr-key {
0226                         rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
0227                 };
0228         };
0229 
0230         pmic {
0231                 pmic_sleep: pmic-sleep {
0232                         rockchip,pins = <0 RK_PA0 2 &pcfg_pull_none>;
0233                 };
0234 
0235                 pmic_int: pmic-int {
0236                         rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
0237                 };
0238         };
0239 };
0240 
0241 &sdmmc {
0242         status = "okay";
0243         bus-width = <4>;
0244         cap-mmc-highspeed;
0245         cap-sd-highspeed;
0246         card-detect-delay = <200>;
0247         no-sdio;
0248         sd-uhs-sdr12;
0249         sd-uhs-sdr25;
0250         pinctrl-names = "default";
0251         pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_bus4>, <&sdmmc_cd>;
0252         rockchip,default-sample-phase = <90>;
0253         vmmc-supply = <&vcc_sd>;
0254         vqmmc-supply = <&vccio_sd>;
0255 };
0256 
0257 &tsadc {
0258         status = "okay";
0259         rockchip,hw-tshut-mode = <0>; /* CRU */
0260         rockchip,hw-tshut-polarity = <1>; /* high */
0261 };
0262 
0263 &uart4 {
0264         status = "okay";
0265 };
0266 
0267 &usb_host0_ehci {
0268         status = "okay";
0269 };
0270 
0271 &usb_otg {
0272         status = "okay";
0273 };
0274 
0275 &wdt {
0276         status = "okay";
0277 };