arm64: dts: Revert "specify console via command line"
[linux/fpc-iii.git] / arch / arm64 / boot / dts / rockchip / rk3368-px5-evb.dts
blob5ffd7b4d3036cdab0da3e3af6280824b80b53e78
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
4  */
6 /dts-v1/;
7 #include "rk3368.dtsi"
8 #include <dt-bindings/input/input.h>
10 / {
11         model = "Rockchip PX5 EVB";
12         compatible = "rockchip,px5-evb", "rockchip,px5", "rockchip,rk3368";
14         chosen {
15                 stdout-path = "serial4:115200n8";
16         };
18         memory@0 {
19                 reg = <0x0 0x0 0x0 0x40000000>;
20                 device_type = "memory";
21         };
23         keys: gpio-keys {
24                 compatible = "gpio-keys";
25                 pinctrl-names = "default";
26                 pinctrl-0 = <&pwr_key>;
28                 power {
29                         gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
30                         label = "GPIO Power";
31                         linux,code = <KEY_POWER>;
32                         wakeup-source;
33                 };
34         };
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         };
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>;
61 &i2c0 {
62         status = "okay";
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>;
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                         };
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                         };
103                         vcc_ddr: DCDC_REG3 {
104                                 regulator-always-on;
105                                 regulator-boot-on;
106                                 regulator-name = "vcc_ddr";
107                         };
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                         };
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                         };
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                         };
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                         };
141                         avdd_33: LDO_REG4 {
142                                 regulator-min-microvolt = <3300000>;
143                                 regulator-max-microvolt = <3300000>;
144                                 regulator-name = "avdd_33";
145                         };
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                         };
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                         };
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                         };
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                         };
179                         vcc_sd: SWITCH_REG1 {
180                                 regulator-name = "vcc_sd";
181                         };
183                         vcc33_lcd: SWITCH_REG2 {
184                                 regulator-always-on;
185                                 regulator-boot-on;
186                                 regulator-name = "vcc33_lcd";
187                         };
188                 };
189         };
192 &i2c1 {
193         status = "okay";
195         accelerometer@18 {
196                 compatible = "bosch,bma250";
197                 reg = <0x18>;
198                 interrupt-parent = <&gpio2>;
199                 interrupts = <RK_PC1 IRQ_TYPE_LEVEL_LOW>;
200         };
203 &i2c2 {
204         status = "okay";
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         };
218 &pinctrl {
219         keys {
220                 pwr_key: pwr-key {
221                         rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
222                 };
223         };
225         pmic {
226                 pmic_sleep: pmic-sleep {
227                         rockchip,pins = <0 RK_PA0 2 &pcfg_pull_none>;
228                 };
230                 pmic_int: pmic-int {
231                         rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
232                 };
233         };
236 &sdmmc {
237         status = "okay";
238         bus-width = <4>;
239         cap-mmc-highspeed;
240         cap-sd-highspeed;
241         card-detect-delay = <200>;
242         no-sdio;
243         sd-uhs-sdr12;
244         sd-uhs-sdr25;
245         pinctrl-names = "default";
246         pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_bus4>, <&sdmmc_cd>;
247         rockchip,default-sample-phase = <90>;
248         vmmc-supply = <&vcc_sd>;
249         vqmmc-supply = <&vccio_sd>;
252 &tsadc {
253         status = "okay";
254         rockchip,hw-tshut-mode = <0>; /* CRU */
255         rockchip,hw-tshut-polarity = <1>; /* high */
258 &uart4 {
259         status = "okay";
262 &usb_host0_ehci {
263         status = "okay";
266 &usb_otg {
267         status = "okay";
270 &wdt {
271         status = "okay";