From 9b4e23e511e9134a9de397aff50c76d3da867540 Mon Sep 17 00:00:00 2001 From: Wang Panzhenzhuan Date: Fri, 2 Apr 2021 10:54:38 +0800 Subject: [PATCH] dt-bindings: media: i2c: Document add nvp6324 Signed-off-by: Wang Panzhenzhuan Change-Id: I1a1e69b82e9ecd864d543eff96ca959ce75ab185 --- .../devicetree/bindings/media/i2c/nvp6324.txt | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/nvp6324.txt diff --git a/Documentation/devicetree/bindings/media/i2c/nvp6324.txt b/Documentation/devicetree/bindings/media/i2c/nvp6324.txt new file mode 100644 index 000000000000..780e0be66f10 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/nvp6324.txt @@ -0,0 +1,48 @@ +* Nextchip NVP6324 AHD to MIPI CSI2 decoder + +Required Properties: +- compatible: should be "jaguar1-v4l2" +- clocks: reference to the Single 27M Oscillator. +- clock-names: should be "xvclk". +- pd-gpios: High active nvp6324 powerdown gpio +- pd2-gpios: High active ahd camera powerdown gpio +- rst-gpios: High active nvp6324 reset gpio +- rst2-gpios: High active ahd camera reset gpio + +Optional Properties: +- rockchip,default_rect= <1920 1080>; // default resolution + +NVP6324 device address 0x30(7bit); +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: + +&i2c4 { + status = "okay"; + + jaguar1: jaguar1@30 { + compatible = "jaguar1-v4l2"; + status = "okay"; + reg = <0x30>; + clocks = <&cru CLK_CAM0_OUT>; + clock-names = "xvclk"; + power-domains = <&power RK3568_PD_VI>; + pd-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>; + /*pd2-gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;*/ + rst-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>; + /*rst2-gpios = <&gpio2 RK_PC5 GPIO_ACTIVE_HIGH>;*/ + rockchip,camera-module-index = <0>; + rockchip,camera-module-facing = "back"; + rockchip,camera-module-name = "jaguar1"; + rockchip,camera-module-lens-name = "jaguar1"; + rockchip,default_rect= <1920 1080>; // default resolution + port { + n4_out: endpoint { + remote-endpoint = <&mipi_in_ucam3>; + data-lanes = <1 2 3 4>; + }; + }; + }; +};