arm64: dts: rockchip: add vcc_cam regulator to rock-3a
authorMichael Riesch <michael.riesch@wolfvision.net>
Tue, 12 Jul 2022 13:32:02 +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 CSI 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-1-michael.riesch@wolfvision.net
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts

index 6b5093a1a6cf5ca242309eb635b7adac49a4185e..a848a2a2ab68f72d251dcdd0873c8c0f377ec2e8 100644 (file)
                regulator-max-microvolt = <5000000>;
                vin-supply = <&vcc5v0_usb>;
        };
+
+       vcc_cam: vcc-cam {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&vcc_cam_en>;
+               regulator-name = "vcc_cam";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               vin-supply = <&vcc3v3_sys>;
+
+               regulator-state-mem {
+                       regulator-off-in-suspend;
+               };
+       };
 };
 
 &combphy0 {
 };
 
 &pinctrl {
+       cam {
+               vcc_cam_en: vcc_cam_en {
+                       rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+
        ethernet {
                eth_phy_rst: eth_phy_rst {
                        rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;