WIP FPC-III support
[linux/fpc-iii.git] / arch / arm64 / boot / dts / rockchip / px30-engicam-px30-core.dtsi
blobcdacd34836006794b40b158b5d10888df3deee5b
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Copyright (c) 2020 Fuzhou Rockchip Electronics Co., Ltd
4  * Copyright (c) 2020 Engicam srl
5  * Copyright (c) 2020 Amarula Solutons
6  * Copyright (c) 2020 Amarula Solutons(India)
7  */
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
12 / {
13         compatible = "engicam,px30-core", "rockchip,px30";
16 &cpu0 {
17         cpu-supply = <&vdd_arm>;
20 &cpu1 {
21         cpu-supply = <&vdd_arm>;
24 &cpu2 {
25         cpu-supply = <&vdd_arm>;
28 &cpu3 {
29         cpu-supply = <&vdd_arm>;
32 &emmc {
33         cap-mmc-highspeed;
34         mmc-hs200-1_8v;
35         non-removable;
36         status = "okay";
39 &i2c0 {
40         status = "okay";
42         rk809: pmic@20 {
43                 compatible = "rockchip,rk809";
44                 reg = <0x20>;
45                 interrupt-parent = <&gpio0>;
46                 interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>;
47                 pinctrl-names = "default";
48                 pinctrl-0 = <&pmic_int>;
49                 rockchip,system-power-controller;
50                 wakeup-source;
51                 #clock-cells = <1>;
52                 clock-output-names = "rk808-clkout1", "rk808-clkout2";
54                 vcc1-supply = <&vcc5v0_sys>;
55                 vcc2-supply = <&vcc5v0_sys>;
56                 vcc3-supply = <&vcc5v0_sys>;
57                 vcc4-supply = <&vcc5v0_sys>;
58                 vcc5-supply = <&vcc3v3_sys>;
59                 vcc6-supply = <&vcc3v3_sys>;
60                 vcc7-supply = <&vcc3v3_sys>;
61                 vcc8-supply = <&vcc3v3_sys>;
62                 vcc9-supply = <&vcc5v0_sys>;
64                 regulators {
65                         vdd_log: DCDC_REG1 {
66                                 regulator-name = "vdd_log";
67                                 regulator-always-on;
68                                 regulator-boot-on;
69                                 regulator-min-microvolt = <950000>;
70                                 regulator-max-microvolt = <1350000>;
71                                 regulator-ramp-delay = <6001>;
73                                 regulator-state-mem {
74                                         regulator-on-in-suspend;
75                                         regulator-suspend-microvolt = <950000>;
76                                 };
77                         };
79                         vdd_arm: DCDC_REG2 {
80                                 regulator-name = "vdd_arm";
81                                 regulator-always-on;
82                                 regulator-boot-on;
83                                 regulator-min-microvolt = <950000>;
84                                 regulator-max-microvolt = <1350000>;
85                                 regulator-ramp-delay = <6001>;
87                                 regulator-state-mem {
88                                         regulator-off-in-suspend;
89                                         regulator-suspend-microvolt = <950000>;
90                                 };
91                         };
93                         vcc_ddr: DCDC_REG3 {
94                                 regulator-name = "vcc_ddr";
95                                 regulator-always-on;
96                                 regulator-boot-on;
98                                 regulator-state-mem {
99                                         regulator-on-in-suspend;
100                                 };
101                         };
103                         vcc_3v3: DCDC_REG4 {
104                                 regulator-name = "vcc_3v3";
105                                 regulator-always-on;
106                                 regulator-boot-on;
107                                 regulator-min-microvolt = <3300000>;
108                                 regulator-max-microvolt = <3300000>;
110                                 regulator-state-mem {
111                                         regulator-on-in-suspend;
112                                         regulator-suspend-microvolt = <3300000>;
113                                 };
114                         };
116                         vcc3v3_sys: DCDC_REG5 {
117                                 regulator-name = "vcc3v3_sys";
118                                 regulator-always-on;
119                                 regulator-boot-on;
120                                 regulator-min-microvolt = <3300000>;
121                                 regulator-max-microvolt = <3300000>;
123                                 regulator-state-mem {
124                                         regulator-on-in-suspend;
125                                         regulator-suspend-microvolt = <3300000>;
126                                 };
127                         };
129                         vcc_1v0: LDO_REG1 {
130                                 regulator-name = "vcc_1v0";
131                                 regulator-always-on;
132                                 regulator-boot-on;
133                                 regulator-min-microvolt = <1000000>;
134                                 regulator-max-microvolt = <1000000>;
136                                 regulator-state-mem {
137                                         regulator-on-in-suspend;
138                                         regulator-suspend-microvolt = <1000000>;
139                                 };
140                         };
142                         vcc_1v8: LDO_REG2 {
143                                 regulator-name = "vcc_1v8";
144                                 regulator-always-on;
145                                 regulator-boot-on;
146                                 regulator-min-microvolt = <1800000>;
147                                 regulator-max-microvolt = <1800000>;
149                                 regulator-state-mem {
150                                         regulator-on-in-suspend;
151                                         regulator-suspend-microvolt = <1800000>;
152                                 };
153                         };
155                         vdd_1v0: LDO_REG3 {
156                                 regulator-name = "vdd_1v0";
157                                 regulator-always-on;
158                                 regulator-boot-on;
159                                 regulator-min-microvolt = <1000000>;
160                                 regulator-max-microvolt = <1000000>;
162                                 regulator-state-mem {
163                                         regulator-on-in-suspend;
164                                         regulator-suspend-microvolt = <1000000>;
165                                 };
166                         };
168                         vcc3v0_pmu: LDO_REG4 {
169                                 regulator-name = "vcc3v0_pmu";
170                                 regulator-always-on;
171                                 regulator-boot-on;
172                                 regulator-min-microvolt = <3300000>;
173                                 regulator-max-microvolt = <3300000>;
175                                 regulator-state-mem {
176                                         regulator-on-in-suspend;
177                                         regulator-suspend-microvolt = <3300000>;
179                                 };
180                         };
182                         vccio_sd: LDO_REG5 {
183                                 regulator-name = "vccio_sd";
184                                 regulator-always-on;
185                                 regulator-boot-on;
186                                 regulator-min-microvolt = <1800000>;
187                                 regulator-max-microvolt = <3300000>;
189                                 regulator-state-mem {
190                                         regulator-on-in-suspend;
191                                         regulator-suspend-microvolt = <3300000>;
192                                 };
193                         };
195                         vcc3v3_lcd: SWITCH_REG1 {
196                                 regulator-boot-on;
197                                 regulator-name = "vcc3v3_lcd";
198                         };
200                         vcc5v0_host: SWITCH_REG2 {
201                                 regulator-name = "vcc5v0_host";
202                                 regulator-always-on;
203                                 regulator-boot-on;
204                         };
205                 };
206         };
209 &io_domains {
210         vccio1-supply = <&vcc_3v3>;
211         vccio2-supply = <&vcc_3v3>;
212         vccio3-supply = <&vcc_3v3>;
213         vccio4-supply = <&vcc_3v3>;
214         vccio5-supply = <&vcc_3v3>;
215         vccio6-supply = <&vcc_1v8>;
216         status = "okay";
219 &pinctrl {
220         pmic {
221                 pmic_int: pmic_int {
222                         rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
223                 };
224         };
227 &pmu_io_domains {
228         pmuio1-supply = <&vcc_3v3>;
229         pmuio2-supply = <&vcc_3v3>;
230         status = "okay";
233 &tsadc {
234         rockchip,hw-tshut-mode = <1>;
235         rockchip,hw-tshut-polarity = <1>;
236         status = "okay";