arm64: dts: rockchip: fix vcc3v3_lcd{0,1}_n regulators in rk3568-evb1-10
authorMichael Riesch <michael.riesch@wolfvision.net>
Sat, 29 Jan 2022 16:24:39 +0000 (17:24 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 29 Jan 2022 17:36:33 +0000 (18:36 +0100)
The voltages VCC3V3_LCD{0,1} can be enabled with the pins GPIO0_C7 and
GPIO0_C5, respectively. This patch modifies the device tree in order to
reflect this.

Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
Link: https://lore.kernel.org/r/20220129162440.5415-1-michael.riesch@wolfvision.net
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts

index 184e2aa2416af3bbe13e14089b7f3ff4318356ab..197aaf7ee348d9beeb6584952012370f6b55a944 100644 (file)
        vcc3v3_lcd0_n: vcc3v3-lcd0-n {
                compatible = "regulator-fixed";
                regulator-name = "vcc3v3_lcd0_n";
-               regulator-boot-on;
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               enable-active-high;
+               gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
+               vin-supply = <&vcc3v3_sys>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&vcc3v3_lcd0_n_en>;
 
                regulator-state-mem {
                        regulator-off-in-suspend;
        vcc3v3_lcd1_n: vcc3v3-lcd1-n {
                compatible = "regulator-fixed";
                regulator-name = "vcc3v3_lcd1_n";
-               regulator-boot-on;
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               enable-active-high;
+               gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
+               vin-supply = <&vcc3v3_sys>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&vcc3v3_lcd1_n_en>;
 
                regulator-state-mem {
                        regulator-off-in-suspend;
 };
 
 &pinctrl {
+       display {
+               vcc3v3_lcd0_n_en: vcc3v3_lcd0_n_en {
+                       rockchip,pins = <0 RK_PC7 0 &pcfg_pull_none>;
+               };
+               vcc3v3_lcd1_n_en: vcc3v3_lcd1_n_en {
+                       rockchip,pins = <0 RK_PC5 0 &pcfg_pull_none>;
+               };
+       };
+
        pmic {
                pmic_int: pmic_int {
                        rockchip,pins =