arm64: dts: rockchip: add vcc_mipi regulator to rock-3a
authorMichael Riesch <michael.riesch@wolfvision.net>
Tue, 12 Jul 2022 13:32:03 +0000 (15:32 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 29 Aug 2022 10:55:19 +0000 (12:55 +0200)
The Radxa ROCK3 Model A features a voltage regulator that provides
a 3V3 supply to the MIPI DSI connector. Add this regulator to the
device tree of the board.

Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
Link: https://lore.kernel.org/r/20220712133204.2524942-2-michael.riesch@wolfvision.net
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts

index a848a2a2ab68f72d251dcdd0873c8c0f377ec2e8..e883afa83617a9a2f29aed58793477edf696048c 100644 (file)
                        regulator-off-in-suspend;
                };
        };
+
+       vcc_mipi: vcc-mipi {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&vcc_mipi_en>;
+               regulator-name = "vcc_mipi";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               vin-supply = <&vcc3v3_sys>;
+
+               regulator-state-mem {
+                       regulator-off-in-suspend;
+               };
+       };
 };
 
 &combphy0 {
                };
        };
 
+       display {
+               vcc_mipi_en: vcc_mipi_en {
+                       rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+
        ethernet {
                eth_phy_rst: eth_phy_rst {
                        rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;