Skip to content

Commit 1dfc515

Browse files
JosephChen2017rkhuangtao
authored andcommitted
ARM: dts: rk3066a-rayeager: add vdd_logic regulator
The vdd_logic is a pwm regulator. Since '#pwm-cells = <2>', there is not polarity invert support by pwm driver, so we have to add property 'pwm-dutycycle-range = <100 0>' to support polarity invert by pwm regulator driver itself. Change-Id: Ie5d2cda67ce19dc792f96263836bab658d385681 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
1 parent 0012af6 commit 1dfc515

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

arch/arm/boot/dts/rk3066a-rayeager.dts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,20 @@
5959
pinctrl-0 = <&ir_int>;
6060
};
6161

62+
vdd_logic: vdd-logic {
63+
compatible = "pwm-regulator";
64+
65+
pwms = <&pwm3 0 25000>;
66+
pwm-dutycycle-range = <100 0>;
67+
68+
regulator-name = "vdd_logic";
69+
regulator-always-on;
70+
regulator-boot-on;
71+
regulator-min-microvolt = <925000>;
72+
regulator-max-microvolt = <1400000>;
73+
status = "okay";
74+
};
75+
6276
keys: gpio-keys {
6377
compatible = "gpio-keys";
6478
#address-cells = <1>;
@@ -500,6 +514,10 @@
500514
status = "okay";
501515
};
502516

517+
&pwm3 {
518+
status = "okay";
519+
};
520+
503521
&saradc {
504522
vref-supply = <&vcc_25>;
505523
status = "okay";

0 commit comments

Comments
 (0)