ARM: dts: imx6: skov: add pwm-regulator to control the panel's VCOM
authorUlrich Ölmann <u.oelmann@pengutronix.de>
Tue, 17 May 2022 07:18:14 +0000 (09:18 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 19 Jun 2022 01:41:35 +0000 (09:41 +0800)
Skov's i.MX6 based boards come in different flavors which have different panels
attached. For optimal contrast experience each panel type needs an individual
common voltage (VCOM) to drive its TFT backplane. The latter is generated by an
LCD bias supply IC controlled by a pwm as input signal. Introduce a pwm-
regulator to describe this hardware property and parameterize it appropriately
for the different boards.

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6q-skov-reve-mi1010ait-1cp1.dts
arch/arm/boot/dts/imx6qdl-skov-cpu.dtsi

index 7f1f19b74bfa5985dea38aeb7d1d6b129a7deb01..a3f247c722b438bcb91d6a22bee2633158b5fde7 100644 (file)
                >;
        };
 };
+
+&reg_tft_vcom {
+       regulator-min-microvolt = <3160000>;
+       regulator-max-microvolt = <3160000>;
+       voltage-table = <3160000 73>;
+};
index 77a91a97e6cf17b2a2a60c88ed37ecd9cc27b5cc..3def1b621c8efb353391ecd2829a7d625a207e37 100644 (file)
                gpio = <&gpio4 11 GPIO_ACTIVE_LOW>;
        };
 
+       reg_tft_vcom: regulator-tft-vcom {
+               compatible = "pwm-regulator";
+               pwms = <&pwm3 0 20000 0>;
+               regulator-name = "tft_vcom";
+               regulator-min-microvolt = <3600000>;
+               regulator-max-microvolt = <3600000>;
+               regulator-always-on;
+               voltage-table = <3600000 26>;
+       };
+
        reg_vcc_mmc: regulator-vcc-mmc {
                compatible = "regulator-fixed";
                pinctrl-names = "default";