From f0630e6f87bf96196673f6a69308974c0247da8f Mon Sep 17 00:00:00 2001 From: Zefa Chen Date: Mon, 1 Apr 2019 16:43:08 +0800 Subject: [PATCH] dt-bindings: Document add gc5025 Change-Id: I66c091aea3c135cc2c03b867b78d22b3e699cefe Signed-off-by: Zefa Chen --- .../devicetree/bindings/media/i2c/gc5025.txt | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/gc5025.txt diff --git a/Documentation/devicetree/bindings/media/i2c/gc5025.txt b/Documentation/devicetree/bindings/media/i2c/gc5025.txt new file mode 100644 index 000000000000..d2bc1e571478 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/gc5025.txt @@ -0,0 +1,44 @@ +* GalaxyCore GC5025 MIPI sensor + +Required Properties: +- compatible: should be "galaxycore,gc5025" +- clocks: reference to the 24M xvclk input clock. +- clock-names: should be "xvclk". +- dovdd-supply: Digital I/O voltage supply, 1.8 volts +- avdd-supply: Analog voltage supply, 2.8 volts +- dvdd-supply: Digital core voltage supply, 1.2 volts +- reset-gpios: Low active reset gpio + +The device node must contain one 'port' child node for its digital output +video port, in accordance with the video interface bindings defined in +Documentation/devicetree/bindings/media/video-interfaces.txt. + +Example: +//rk3399 evb board +&i2c1 { + status = "okay"; + gc5025: gc5025@37 { + compatible = "galaxycore,gc5025"; + status = "okay"; + reg = <0x37>; + clocks = <&cru SCLK_CIF_OUT>; + clock-names = "xvclk"; + + //reset pin control by hardware,used this pin switch to mipi input + //1->mipi input, 0->hdmi in + reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; + pwdn-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + pinctrl-names = "rockchip,camera_default"; + pinctrl-0 = <&cif_clkout>; + rockchip,camera-module-index = <0>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "RK-CMK-5M-1-v1"; + rockchip,camera-module-lens-name = "CK5502"; + port { + ucam_out0: endpoint { + remote-endpoint = <&mipi_in_ucam0>; + data-lanes = <1 2>; + }; + }; + }; +};