ARM: dts: r8a7742-iwg21d-q7-dbcm-ca: Add missing camera regulators
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 14 Oct 2021 14:44:12 +0000 (16:44 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 15 Nov 2021 08:59:30 +0000 (09:59 +0100)
make dtbs_check:

    arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dt.yaml: ov5640@3c: 'AVDD-supply' is a required property
    From schema: Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml
    arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dt.yaml: ov5640@3c: 'DVDD-supply' is a required property
    From schema: Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml
    arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dt.yaml: ov5640@3c: 'DOVDD-supply' is a required property
    From schema: Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml

Fix this by describing the missing regulators.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Link: https://lore.kernel.org/r/300149c730931914b77e17df6bcce89b67c3005f.1634222546.git.geert+renesas@glider.be
arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts
arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ov5640-single.dtsi

index 33db5938f2d45c6ec21df0c232d16b8f537f3333..3c8a7c8b1fdd56d33c47a89e3a4c022cd7c1da5e 100644 (file)
                #clock-cells = <0>;
                clock-frequency = <26000000>;
        };
+
+       reg_1p8v: 1p8v {
+               compatible = "regulator-fixed";
+               regulator-name = "1P8V";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
+               regulator-always-on;
+       };
+
+       reg_2p8v: 2p8v {
+               compatible = "regulator-fixed";
+               regulator-name = "2P8V";
+               regulator-min-microvolt = <2800000>;
+               regulator-max-microvolt = <2800000>;
+               regulator-always-on;
+       };
 };
 
 &avb {
index 70c72ba4fe724a70eb308603b0d51849d0595f1a..40cef0b1d1e6267f469d3777ed92cd2f9c155277 100644 (file)
@@ -17,6 +17,9 @@
                reg = <0x3c>;
                clocks = <&MCLK_CAM>;
                clock-names = "xclk";
+               AVDD-supply = <&reg_2p8v>;
+               DOVDD-supply = <&reg_2p8v>;
+               DVDD-supply = <&reg_1p8v>;
                status = "okay";
 
                port {