@@ -41,6 +41,12 @@ number as described in RK808 datasheet.
41
41
- valid values for n are 1 to 9.
42
42
- SWITCH_REGn
43
43
- valid values for n are 1 to 2.
44
+
45
+ The gpio_slp pin is for controlling the pmic states, as below:
46
+ reset
47
+ power down
48
+ sleep
49
+
44
50
Standard regulator bindings are used inside regulator subnodes. Check
45
51
Documentation/devicetree/bindings/regulator/regulator.txt
46
52
for more details
@@ -51,12 +57,16 @@ Example:
51
57
reg = <0x20>;
52
58
interrupt-parent = <&gpio0>;
53
59
interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
54
- pinctrl-names = "default";
60
+ pinctrl-names = "default", "pmic-sleep",
61
+ "pmic-power-off", "pmic-reset";
55
62
pinctrl-0 = <&pmic_int>;
63
+ pinctrl-1 = <&soc_slppin_slp>, <&rk817_slppin_slp>;
64
+ pinctrl-2 = <&soc_slppin_gpio>, <&rk817_slppin_pwrdn>;
65
+ pinctrl-3 = <&soc_slppin_rst>, <&rk817_slppin_rst>;
56
66
rockchip,system-power-controller;
57
67
wakeup-source;
58
68
#clock-cells = <1>;
59
- clock-output-names = "xin32k ", "rk808-clkout2";
69
+ clock-output-names = "rk808-clkout1 ", "rk808-clkout2";
60
70
61
71
vcc1-supply = <&vcc5v0_sys>;
62
72
vcc2-supply = <&vcc5v0_sys>;
@@ -68,66 +78,69 @@ Example:
68
78
vcc8-supply = <&vcc3v3_sys>;
69
79
vcc9-supply = <&vcc5v0_sys>;
70
80
71
- vcc5v0_sys: vccsys{
72
- compatible = "regulator-fixed";
73
- regulator-name = "vcc5v0_sys";
74
- regulator-always-on;
75
- regulator-boot-on;
76
- regulator-min-microvolt = <5000000>;
77
- regulator-max-microvolt = <5000000>;
81
+ pwrkey {
82
+ status = "okay";
78
83
};
79
84
80
- rk817_pin0_ts: rk817_pin0_ts {
81
- pins = "gpio0";
82
- function = "pin_fun0";
83
- };
85
+ pinctrl_rk8xx: pinctrl_rk8xx {
86
+ gpio-controller;
87
+ #gpio-cells = <2>;
84
88
85
- rk817_pin0_gpio: rk817_pin0_gpio {
86
- pins = "gpio0 ";
87
- function = "gpio ";
88
- };
89
+ rk817_slppin_null: rk817_slppin_null {
90
+ pins = "gpio_slp ";
91
+ function = "pin_fun0 ";
92
+ };
89
93
90
- rk817_pin1_gt: rk817_pin1_gt {
91
- pins = "gpio1";
92
- function = "pin_fun0";
93
- };
94
+ rk817_slppin_slp: rk817_slppin_slp {
95
+ pins = "gpio_slp";
96
+ function = "pin_fun1";
97
+ };
98
+
99
+ rk817_slppin_pwrdn: rk817_slppin_pwrdn {
100
+ pins = "gpio_slp";
101
+ function = "pin_fun2";
102
+ };
94
103
95
- rk817_pin1_gpio: rk817_pin1_gpio {
96
- pins = "gpio1";
97
- function = "gpio";
104
+ rk817_slppin_rst: rk817_slppin_rst {
105
+ pins = "gpio_slp";
106
+ function = "pin_fun3";
107
+ };
98
108
};
99
109
100
110
regulators {
101
- vdd_arm : DCDC_REG1 {
111
+ vdd_logic : DCDC_REG1 {
102
112
regulator-always-on;
103
113
regulator-boot-on;
104
114
regulator-min-microvolt = <950000>;
105
115
regulator-max-microvolt = <1350000>;
106
116
regulator-ramp-delay = <6001>;
107
- regulator-name = "vdd_arm";
117
+ regulator-initial-mode = <0x1>;
118
+ regulator-name = "vdd_logic";
108
119
regulator-state-mem {
109
120
regulator-on-in-suspend;
110
- regulator-suspend-microvolt = <700000 >;
121
+ regulator-suspend-microvolt = <950000 >;
111
122
};
112
123
};
113
124
114
- vdd_logic : DCDC_REG2 {
125
+ vdd_arm : DCDC_REG2 {
115
126
regulator-always-on;
116
127
regulator-boot-on;
117
128
regulator-min-microvolt = <950000>;
118
129
regulator-max-microvolt = <1350000>;
119
130
regulator-ramp-delay = <6001>;
120
- regulator-name = "vdd_logic";
131
+ regulator-initial-mode = <0x1>;
132
+ regulator-name = "vdd_arm";
121
133
regulator-state-mem {
122
134
regulator-off-in-suspend;
123
- regulator-suspend-microvolt = <800000 >;
135
+ regulator-suspend-microvolt = <950000 >;
124
136
};
125
137
};
126
138
127
139
vcc_ddr: DCDC_REG3 {
128
140
regulator-always-on;
129
141
regulator-boot-on;
130
142
regulator-name = "vcc_ddr";
143
+ regulator-initial-mode = <0x1>;
131
144
regulator-state-mem {
132
145
regulator-on-in-suspend;
133
146
};
@@ -138,6 +151,7 @@ Example:
138
151
regulator-boot-on;
139
152
regulator-min-microvolt = <3000000>;
140
153
regulator-max-microvolt = <3000000>;
154
+ regulator-initial-mode = <0x1>;
141
155
regulator-name = "vcc_3v0";
142
156
regulator-state-mem {
143
157
regulator-off-in-suspend;
@@ -178,7 +192,7 @@ Example:
178
192
179
193
regulator-name = "vcc1v0_soc";
180
194
regulator-state-mem {
181
- regulator-off -in-suspend;
195
+ regulator-on -in-suspend;
182
196
regulator-suspend-microvolt = <1000000>;
183
197
};
184
198
};
@@ -191,7 +205,7 @@ Example:
191
205
192
206
regulator-name = "vcc3v0_pmu";
193
207
regulator-state-mem {
194
- regulator-off -in-suspend;
208
+ regulator-on -in-suspend;
195
209
regulator-suspend-microvolt = <3000000>;
196
210
197
211
};
@@ -276,7 +290,6 @@ Example:
276
290
};
277
291
278
292
vcc3v3_lcd: SWITCH_REG1 {
279
- regulator-always-on;
280
293
regulator-boot-on;
281
294
regulator-name = "vcc3v3_lcd";
282
295
};
@@ -287,7 +300,16 @@ Example:
287
300
regulator-name = "vcc5v0_host";
288
301
};
289
302
};
290
- };
291
-
292
-
293
303
304
+ rk809_codec: codec {
305
+ #sound-dai-cells = <0>;
306
+ compatible = "rockchip,rk809-codec", "rockchip,rk817-codec";
307
+ clocks = <&cru SCLK_I2S1_OUT>;
308
+ clock-names = "mclk";
309
+ pinctrl-names = "default";
310
+ pinctrl-0 = <&i2s1_2ch_mclk>;
311
+ hp-volume = <20>;
312
+ spk-volume = <3>;
313
+ status = "okay";
314
+ };
315
+ }
0 commit comments