hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/arch/arm/boot/dts/s5pv210-aquila.dts
....@@ -11,6 +11,7 @@
1111 */
1212
1313 /dts-v1/;
14
+#include <dt-bindings/gpio/gpio.h>
1415 #include <dt-bindings/input/input.h>
1516 #include "s5pv210.dtsi"
1617
....@@ -32,42 +33,40 @@
3233 0x40000000 0x18000000>;
3334 };
3435
35
- regulators {
36
- compatible = "simple-bus";
37
- #address-cells = <1>;
38
- #size-cells = <0>;
36
+ pmic_ap_clk: clock-0 {
37
+ /* Workaround for missing clock on PMIC */
38
+ compatible = "fixed-clock";
39
+ #clock-cells = <0>;
40
+ clock-frequency = <32768>;
41
+ };
3942
40
- vtf_reg: fixed-regulator@0 {
41
- compatible = "regulator-fixed";
42
- reg = <0>;
43
- regulator-name = "V_TF_2.8V";
44
- regulator-min-microvolt = <2800000>;
45
- regulator-max-microvolt = <2800000>;
46
- gpio = <&mp05 4 0>;
47
- enable-active-high;
48
- };
43
+ vtf_reg: regulator-0 {
44
+ compatible = "regulator-fixed";
45
+ regulator-name = "V_TF_2.8V";
46
+ regulator-min-microvolt = <2800000>;
47
+ regulator-max-microvolt = <2800000>;
48
+ gpio = <&mp05 4 GPIO_ACTIVE_HIGH>;
49
+ enable-active-high;
50
+ };
4951
50
- pda_reg: fixed-regulator@1 {
51
- compatible = "regulator-fixed";
52
- regulator-name = "VCC_1.8V_PDA";
53
- regulator-min-microvolt = <1800000>;
54
- regulator-max-microvolt = <1800000>;
55
- reg = <1>;
56
- };
52
+ pda_reg: regulator-1 {
53
+ compatible = "regulator-fixed";
54
+ regulator-name = "VCC_1.8V_PDA";
55
+ regulator-min-microvolt = <1800000>;
56
+ regulator-max-microvolt = <1800000>;
57
+ };
5758
58
- bat_reg: fixed-regulator@2 {
59
- compatible = "regulator-fixed";
60
- regulator-name = "V_BAT";
61
- regulator-min-microvolt = <3700000>;
62
- regulator-max-microvolt = <3700000>;
63
- reg = <2>;
64
- };
59
+ bat_reg: regulator-2 {
60
+ compatible = "regulator-fixed";
61
+ regulator-name = "V_BAT";
62
+ regulator-min-microvolt = <3700000>;
63
+ regulator-max-microvolt = <3700000>;
6564 };
6665
6766 i2c_pmic: i2c-pmic {
6867 compatible = "i2c-gpio";
69
- gpios = <&gpj4 0 0>, /* sda */
70
- <&gpj4 3 0>; /* scl */
68
+ sda-gpios = <&gpj4 0 GPIO_ACTIVE_HIGH>;
69
+ scl-gpios = <&gpj4 3 GPIO_ACTIVE_HIGH>;
7170 i2c-gpio,delay-us = <2>; /* ~100 kHz */
7271 #address-cells = <1>;
7372 #size-cells = <0>;
....@@ -77,13 +76,13 @@
7776 reg = <0x66>;
7877
7978 max8998,pmic-buck1-default-dvs-idx = <0>;
80
- max8998,pmic-buck1-dvs-gpios = <&gph0 3 0>,
81
- <&gph0 4 0>;
79
+ max8998,pmic-buck1-dvs-gpios = <&gph0 3 GPIO_ACTIVE_HIGH>,
80
+ <&gph0 4 GPIO_ACTIVE_HIGH>;
8281 max8998,pmic-buck1-dvs-voltage = <1200000>, <1200000>,
8382 <1200000>, <1200000>;
8483
8584 max8998,pmic-buck2-default-dvs-idx = <0>;
86
- max8998,pmic-buck2-dvs-gpio = <&gph0 5 0>;
85
+ max8998,pmic-buck2-dvs-gpio = <&gph0 5 GPIO_ACTIVE_HIGH>;
8786 max8998,pmic-buck2-dvs-voltage = <1200000>, <1200000>;
8887
8988 regulators {
....@@ -228,6 +227,11 @@
228227 regulator-always-on;
229228 };
230229
230
+ ap32khz_reg: EN32KHz-AP {
231
+ regulator-name = "32KHz AP";
232
+ regulator-always-on;
233
+ };
234
+
231235 vichg_reg: ENVICHG {
232236 regulator-name = "VICHG";
233237 };
....@@ -273,37 +277,37 @@
273277 <&keypad_col0>, <&keypad_col1>, <&keypad_col2>;
274278 status = "okay";
275279
276
- key_1 {
280
+ key-1 {
277281 keypad,row = <0>;
278282 keypad,column = <1>;
279283 linux,code = <KEY_CONNECT>;
280284 };
281285
282
- key_2 {
286
+ key-2 {
283287 keypad,row = <0>;
284288 keypad,column = <2>;
285289 linux,code = <KEY_BACK>;
286290 };
287291
288
- key_3 {
292
+ key-3 {
289293 keypad,row = <1>;
290294 keypad,column = <1>;
291295 linux,code = <KEY_CAMERA_FOCUS>;
292296 };
293297
294
- key_4 {
298
+ key-4 {
295299 keypad,row = <1>;
296300 keypad,column = <2>;
297301 linux,code = <KEY_VOLUMEUP>;
298302 };
299303
300
- key_5 {
304
+ key-5 {
301305 keypad,row = <2>;
302306 keypad,column = <1>;
303307 linux,code = <KEY_CAMERA>;
304308 };
305309
306
- key_6 {
310
+ key-6 {
307311 keypad,row = <2>;
308312 keypad,column = <2>;
309313 linux,code = <KEY_VOLUMEDOWN>;
....@@ -326,6 +330,11 @@
326330 status = "okay";
327331 };
328332
333
+&rtc {
334
+ clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>;
335
+ clock-names = "rtc", "rtc_src";
336
+};
337
+
329338 &sdhci0 {
330339 bus-width = <4>;
331340 non-removable;