Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: rockchip: enable pwm3 as pwm regulator for rk3066a based boards

Rayeager/Bqcurie2/Marsboard use pwm3 modulate the vdd_logic voltage,
so enable it.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>

authored by

Andy Yan and committed by
Heiko Stuebner
ac79e0ef 6cff705b

+48
+16
arch/arm/boot/dts/rk3066a-bqcurie2.dts
··· 53 53 reg = <0x60000000 0x40000000>; 54 54 }; 55 55 56 + vdd_log: vdd-log { 57 + compatible = "pwm-regulator"; 58 + pwms = <&pwm3 0 1000>; 59 + regulator-name = "vdd_log"; 60 + regulator-min-microvolt = <1200000>; 61 + regulator-max-microvolt = <1200000>; 62 + regulator-always-on; 63 + voltage-table = <1000000 100>, 64 + <1200000 42>; 65 + status = "okay"; 66 + }; 67 + 56 68 vcc_sd0: fixed-regulator { 57 69 compatible = "regulator-fixed"; 58 70 regulator-name = "sdmmc-supply"; ··· 213 201 214 202 bus-width = <4>; 215 203 disable-wp; 204 + }; 205 + 206 + &pwm3 { 207 + status = "okay"; 216 208 }; 217 209 218 210 &uart0 {
+16
arch/arm/boot/dts/rk3066a-marsboard.dts
··· 52 52 reg = <0x60000000 0x40000000>; 53 53 }; 54 54 55 + vdd_log: vdd-log { 56 + compatible = "pwm-regulator"; 57 + pwms = <&pwm3 0 1000>; 58 + regulator-name = "vdd_log"; 59 + regulator-min-microvolt = <1200000>; 60 + regulator-max-microvolt = <1200000>; 61 + regulator-always-on; 62 + voltage-table = <1000000 100>, 63 + <1200000 42>; 64 + status = "okay"; 65 + }; 66 + 55 67 vcc_sd0: sdmmc-regulator { 56 68 compatible = "regulator-fixed"; 57 69 regulator-name = "sdmmc-supply"; ··· 204 192 rockchip,pins = <RK_GPIO1 26 RK_FUNC_GPIO &pcfg_pull_none>; 205 193 }; 206 194 }; 195 + }; 196 + 197 + &pwm3 { 198 + status = "okay"; 207 199 }; 208 200 209 201 &uart0 {
+16
arch/arm/boot/dts/rk3066a-rayeager.dts
··· 74 74 }; 75 75 }; 76 76 77 + vdd_log: vdd-log { 78 + compatible = "pwm-regulator"; 79 + pwms = <&pwm3 0 1000>; 80 + regulator-name = "vdd_log"; 81 + regulator-min-microvolt = <1200000>; 82 + regulator-max-microvolt = <1200000>; 83 + regulator-always-on; 84 + voltage-table = <1000000 100>, 85 + <1200000 42>; 86 + status = "okay"; 87 + }; 88 + 77 89 vsys: vsys-regulator { 78 90 compatible = "regulator-fixed"; 79 91 regulator-name = "vsys"; ··· 440 428 }; 441 429 442 430 &pwm2 { 431 + status = "okay"; 432 + }; 433 + 434 + &pwm3 { 443 435 status = "okay"; 444 436 }; 445 437