Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (c) 2016 Andy Yan <andy.yan@rock-chips.com>
0004  */
0005 
0006 /dts-v1/;
0007 #include <dt-bindings/input/input.h>
0008 #include "rk3188.dtsi"
0009 
0010 / {
0011         model = "Rockchip PX3-EVB";
0012         compatible = "rockchip,px3-evb", "rockchip,px3", "rockchip,rk3188";
0013 
0014         aliases {
0015                 mmc0 = &mmc0;
0016                 mmc1 = &emmc;
0017         };
0018 
0019         chosen {
0020                 stdout-path = "serial2:115200n8";
0021         };
0022 
0023         memory@60000000 {
0024                 reg = <0x60000000 0x80000000>;
0025                 device_type = "memory";
0026         };
0027 
0028         gpio-keys {
0029                 compatible = "gpio-keys";
0030                 autorepeat;
0031 
0032                 key-power {
0033                         gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
0034                         linux,code = <KEY_POWER>;
0035                         label = "GPIO Key Power";
0036                         linux,input-type = <1>;
0037                         wakeup-source;
0038                         debounce-interval = <100>;
0039                 };
0040         };
0041 
0042         vcc_sys: vsys-regulator {
0043                 compatible = "regulator-fixed";
0044                 regulator-name = "vsys";
0045                 regulator-min-microvolt = <5000000>;
0046                 regulator-max-microvolt = <5000000>;
0047                 regulator-boot-on;
0048         };
0049 };
0050 
0051 &cpu0 {
0052         cpu-supply = <&vdd_cpu>;
0053 };
0054 
0055 &cpu1 {
0056         cpu-supply = <&vdd_cpu>;
0057 };
0058 
0059 &cpu2 {
0060         cpu-supply = <&vdd_cpu>;
0061 };
0062 
0063 &cpu3 {
0064         cpu-supply = <&vdd_cpu>;
0065 };
0066 
0067 &emmc {
0068         bus-width = <8>;
0069         cap-mmc-highspeed;
0070         non-removable;
0071         pinctrl-names = "default";
0072         pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_rst>;
0073         status = "okay";
0074 };
0075 
0076 &i2c0 {
0077         status = "okay";
0078 
0079         accelerometer@18 {
0080                 compatible = "bosch,bma250";
0081                 reg = <0x18>;
0082                 interrupt-parent = <&gpio0>;
0083                 interrupts = <RK_PB7 IRQ_TYPE_LEVEL_LOW>;
0084         };
0085 };
0086 
0087 &i2c1 {
0088         status = "okay";
0089         clock-frequency = <400000>;
0090 
0091         rk808: pmic@1c {
0092                 compatible = "rockchip,rk818";
0093                 reg = <0x1c>;
0094                 interrupt-parent = <&gpio0>;
0095                 interrupts = <RK_PB3 IRQ_TYPE_LEVEL_LOW>;
0096                 rockchip,system-power-controller;
0097                 wakeup-source;
0098                 #clock-cells = <1>;
0099                 clock-output-names = "xin32k", "rk808-clkout2";
0100 
0101                 vcc1-supply = <&vcc_sys>;
0102                 vcc2-supply = <&vcc_sys>;
0103                 vcc3-supply = <&vcc_sys>;
0104                 vcc4-supply = <&vcc_sys>;
0105                 vcc6-supply = <&vcc_sys>;
0106                 vcc7-supply = <&vcc_sys>;
0107                 vcc8-supply = <&vcc_io>;
0108                 vcc9-supply = <&vcc_io>;
0109 
0110                 regulators {
0111                         vdd_cpu: DCDC_REG1 {
0112                                 regulator-always-on;
0113                                 regulator-boot-on;
0114                                 regulator-min-microvolt = <750000>;
0115                                 regulator-max-microvolt = <1350000>;
0116                                 regulator-name = "vdd_arm";
0117                                 regulator-state-mem {
0118                                         regulator-off-in-suspend;
0119                                 };
0120                         };
0121 
0122                         vdd_gpu: DCDC_REG2 {
0123                                 regulator-always-on;
0124                                 regulator-boot-on;
0125                                 regulator-min-microvolt = <850000>;
0126                                 regulator-max-microvolt = <1250000>;
0127                                 regulator-name = "vdd_gpu";
0128                                 regulator-state-mem {
0129                                         regulator-on-in-suspend;
0130                                         regulator-suspend-microvolt = <1000000>;
0131                                 };
0132                         };
0133 
0134                         vcc_ddr: DCDC_REG3 {
0135                                 regulator-always-on;
0136                                 regulator-boot-on;
0137                                 regulator-name = "vcc_ddr";
0138                                 regulator-state-mem {
0139                                         regulator-on-in-suspend;
0140                                 };
0141                         };
0142 
0143                         vcc_io: DCDC_REG4 {
0144                                 regulator-always-on;
0145                                 regulator-boot-on;
0146                                 regulator-min-microvolt = <3300000>;
0147                                 regulator-max-microvolt = <3300000>;
0148                                 regulator-name = "vcc_io";
0149                                 regulator-state-mem {
0150                                         regulator-on-in-suspend;
0151                                         regulator-suspend-microvolt = <3300000>;
0152                                 };
0153                         };
0154 
0155                         vcc_cif: LDO_REG1 {
0156                                  regulator-min-microvolt = <3300000>;
0157                                  regulator-max-microvolt = <3300000>;
0158                                  regulator-name = "vcc_cif";
0159                         };
0160 
0161                         vcc_jetta33: LDO_REG2 {
0162                                 regulator-always-on;
0163                                 regulator-boot-on;
0164                                 regulator-min-microvolt = <3300000>;
0165                                 regulator-max-microvolt = <3300000>;
0166                                 regulator-name = "vcc_jetta33";
0167                         };
0168 
0169                         vdd_10: LDO_REG3 {
0170                                 regulator-always-on;
0171                                 regulator-boot-on;
0172                                 regulator-min-microvolt = <1000000>;
0173                                 regulator-max-microvolt = <1000000>;
0174                                 regulator-name = "vdd_10";
0175                                 regulator-state-mem {
0176                                         regulator-on-in-suspend;
0177                                         regulator-suspend-microvolt = <1000000>;
0178                                 };
0179                         };
0180 
0181                         lvds_12: LDO_REG4 {
0182                                 regulator-min-microvolt = <1800000>;
0183                                 regulator-max-microvolt = <1800000>;
0184                                 regulator-name = "lvds_12";
0185                         };
0186 
0187                         lvds_25: LDO_REG5 {
0188                                 regulator-min-microvolt = <1800000>;
0189                                 regulator-max-microvolt = <3300000>;
0190                                 regulator-name = "lvds_25";
0191                         };
0192 
0193                         cif_18: LDO_REG6 {
0194                                 regulator-min-microvolt = <1000000>;
0195                                 regulator-max-microvolt = <1000000>;
0196                                 regulator-name = "cif_18";
0197                         };
0198 
0199                         vcc_sd: LDO_REG7 {
0200                                 regulator-min-microvolt = <1800000>;
0201                                 regulator-max-microvolt = <3300000>;
0202                                 regulator-name = "vcc_sd";
0203                                 regulator-state-mem {
0204                                         regulator-on-in-suspend;
0205                                         regulator-suspend-microvolt = <3300000>;
0206                                 };
0207                         };
0208 
0209                         wl_18: LDO_REG8 {
0210                                 regulator-min-microvolt = <1800000>;
0211                                 regulator-max-microvolt = <3300000>;
0212                                 regulator-name = "wl_18";
0213                         };
0214 
0215                         lcd_33: SWITCH_REG {
0216                                 regulator-name = "lcd_33";
0217                         };
0218                 };
0219         };
0220 
0221 };
0222 
0223 &i2c2 {
0224         gsl1680: touchscreen@40 {
0225                 compatible = "silead,gsl1680";
0226                 reg = <0x40>;
0227                 interrupt-parent = <&gpio1>;
0228                 interrupts = <RK_PB7 IRQ_TYPE_EDGE_FALLING>;
0229                 power-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
0230                 touchscreen-size-x = <800>;
0231                 touchscreen-size-y = <1280>;
0232                 silead,max-fingers = <5>;
0233         };
0234 };
0235 
0236 &mmc0 {
0237         status = "okay";
0238         pinctrl-names = "default";
0239         pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
0240         vmmc-supply = <&vcc_sd>;
0241 
0242         bus-width = <4>;
0243         cap-mmc-highspeed;
0244         cap-sd-highspeed;
0245         disable-wp;
0246 };
0247 
0248 &pinctrl {
0249         pcfg_output_low: pcfg-output-low {
0250                 output-low;
0251         };
0252 
0253         usb {
0254                 host_vbus_drv: host-vbus-drv {
0255                         rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
0256                 };
0257                 otg_vbus_drv: otg-vbus-drv {
0258                         rockchip,pins = <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>;
0259                 };
0260         };
0261 };
0262 
0263 &pwm1 {
0264         status = "okay";
0265 };
0266 
0267 &pwm2 {
0268         status = "okay";
0269 };
0270 
0271 &pwm3 {
0272         status = "okay";
0273 };
0274 
0275 &uart0 {
0276         status = "okay";
0277 };
0278 
0279 &uart1 {
0280         status = "okay";
0281 };
0282 
0283 &uart2 {
0284         status = "okay";
0285 };
0286 
0287 &uart3 {
0288         status = "okay";
0289 };
0290 
0291 &usbphy {
0292         status = "okay";
0293 };
0294 
0295 &usb_host {
0296         status = "okay";
0297 };
0298 
0299 &usb_otg {
0300         status = "okay";
0301 };
0302 
0303 &wdt {
0304         status = "okay";
0305 };