[RESEND PATCH v4 02/21] dt-bindings: display: tegra: vi: add 'vip' property and example
The Tegra20 VI peripheral can receive parallel input from the VIP parallel input module. Add it to the allowed properties and augment the existing nvidia,tegra20-vi example to show a 'vip' property. Signed-off-by: Luca Ceresoli Reviewed-by: Rob Herring --- Changed in RESEND,v4: - Add Reviewed-by: Rob Herring Changed in v4: - complete the removal of 'channel@0' Changed in v3 (suggested by Rob Herring): - drop 'endpoint', unneeded as there's no extra properties in the endpoints Changed in v2 (suggested by Krzysztof Kozlowski): - rename "i2c3" -> "ic2" - add review tag --- .../display/tegra/nvidia,tegra20-vi.yaml | 59 +++ MAINTAINERS | 1 + 2 files changed, 60 insertions(+) diff --git a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml index a42bf33d1e7d..2181855a0920 100644 --- a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml +++ b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml @@ -73,6 +73,18 @@ properties: avdd-dsi-csi-supply: description: DSI/CSI power supply. Must supply 1.2 V. + vip: +$ref: /schemas/display/tegra/nvidia,tegra20-vip.yaml + + ports: +$ref: /schemas/graph.yaml#/properties/ports + +properties: + port@0: +$ref: /schemas/graph.yaml#/properties/port +description: + Input from the VIP (parallel input capture) module + patternProperties: "^csi@[0-9a-f]+$": type: object @@ -108,6 +120,22 @@ examples: #include #include +i2c { +#address-cells = <1>; +#size-cells = <0>; +camera@48 { +compatible = "aptina,mt9v111"; +reg = <0x48>; +clocks = <&camera_clk>; + +port { +mt9v111_out: endpoint { +remote-endpoint = <&vi_vip_in>; +}; +}; +}; +}; + vi@5408 { compatible = "nvidia,tegra20-vi"; reg = <0x5408 0x0004>; @@ -115,6 +143,37 @@ examples: clocks = <&tegra_car TEGRA20_CLK_VI>; resets = <&tegra_car 100>; reset-names = "vi"; + +vip { +compatible = "nvidia,tegra20-vip"; +ports { +#address-cells = <1>; +#size-cells = <0>; +port@0 { +reg = <0>; +vi_vip_in: endpoint { +remote-endpoint = <&mt9v111_out>; +}; +}; +port@1 { +reg = <1>; +vi_vip_out: endpoint { +remote-endpoint = <&vi_in>; +}; +}; +}; +}; + +ports { +#address-cells = <1>; +#size-cells = <0>; +port@0 { +reg = <0>; +vi_in: endpoint { +remote-endpoint = <&vi_vip_out>; +}; +}; +}; }; - | diff --git a/MAINTAINERS b/MAINTAINERS index 40c069c23d61..9442f3458924 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20626,6 +20626,7 @@ L: linux-me...@vger.kernel.org L: linux-te...@vger.kernel.org S: Maintained F: Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-host1x.yaml +F: Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml F: Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vip.yaml F: drivers/staging/media/tegra-video/ -- 2.34.1
Re: [PATCH v4 02/21] dt-bindings: display: tegra: vi: add 'vip' property and example
On Mon, 30 Jan 2023 15:15:44 +0100, Luca Ceresoli wrote: > The Tegra20 VI peripheral can receive parallel input from the VIP parallel > input module. Add it to the allowed properties and augment the existing > nvidia,tegra20-vi example to show a 'vip' property. > > Signed-off-by: Luca Ceresoli > > --- > > Changed in v4: > - complete the removal of 'channel@0' > > Changed in v3 (suggested by Rob Herring): > - drop 'endpoint', unneeded as there's no extra properties in the >endpoints > > Changed in v2 (suggested by Krzysztof Kozlowski): > - rename "i2c3" -> "ic2" > - add review tag > --- > .../display/tegra/nvidia,tegra20-vi.yaml | 59 +++ > MAINTAINERS | 1 + > 2 files changed, 60 insertions(+) > Reviewed-by: Rob Herring
[PATCH v4 02/21] dt-bindings: display: tegra: vi: add 'vip' property and example
The Tegra20 VI peripheral can receive parallel input from the VIP parallel input module. Add it to the allowed properties and augment the existing nvidia,tegra20-vi example to show a 'vip' property. Signed-off-by: Luca Ceresoli --- Changed in v4: - complete the removal of 'channel@0' Changed in v3 (suggested by Rob Herring): - drop 'endpoint', unneeded as there's no extra properties in the endpoints Changed in v2 (suggested by Krzysztof Kozlowski): - rename "i2c3" -> "ic2" - add review tag --- .../display/tegra/nvidia,tegra20-vi.yaml | 59 +++ MAINTAINERS | 1 + 2 files changed, 60 insertions(+) diff --git a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml index 782a4b10150a..46c5e00595bd 100644 --- a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml +++ b/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml @@ -74,6 +74,18 @@ properties: avdd-dsi-csi-supply: description: DSI/CSI power supply. Must supply 1.2 V. + vip: +$ref: /schemas/display/tegra/nvidia,tegra20-vip.yaml + + ports: +$ref: /schemas/graph.yaml#/properties/ports + +properties: + port@0: +$ref: /schemas/graph.yaml#/properties/port +description: + Input from the VIP (parallel input capture) module + patternProperties: "^csi@[0-9a-f]+$": type: object @@ -109,6 +121,22 @@ examples: #include #include +i2c { +#address-cells = <1>; +#size-cells = <0>; +camera@48 { +compatible = "aptina,mt9v111"; +reg = <0x48>; +clocks = <&camera_clk>; + +port { +mt9v111_out: endpoint { +remote-endpoint = <&vi_vip_in>; +}; +}; +}; +}; + vi@5408 { compatible = "nvidia,tegra20-vi"; reg = <0x5408 0x0004>; @@ -116,6 +144,37 @@ examples: clocks = <&tegra_car TEGRA20_CLK_VI>; resets = <&tegra_car 100>; reset-names = "vi"; + +vip { +compatible = "nvidia,tegra20-vip"; +ports { +#address-cells = <1>; +#size-cells = <0>; +port@0 { +reg = <0>; +vi_vip_in: endpoint { +remote-endpoint = <&mt9v111_out>; +}; +}; +port@1 { +reg = <1>; +vi_vip_out: endpoint { +remote-endpoint = <&vi_in>; +}; +}; +}; +}; + +ports { +#address-cells = <1>; +#size-cells = <0>; +port@0 { +reg = <0>; +vi_in: endpoint { +remote-endpoint = <&vi_vip_out>; +}; +}; +}; }; - | diff --git a/MAINTAINERS b/MAINTAINERS index 5dc335adee46..b62a51052797 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20593,6 +20593,7 @@ L: linux-me...@vger.kernel.org L: linux-te...@vger.kernel.org S: Maintained F: Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-host1x.yaml +F: Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vi.yaml F: Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-vip.yaml F: drivers/staging/media/tegra-video/ -- 2.34.1