Add the dt-binding for the StarFive JH7110 Innosilicon HDMI controller (DRM bridge).
This device is the second child of the starfive,jh7110-hdmi-subsystem node. It consumes register access clocks (sys, mclk, bclk) from the voutcrg and both the pixel clock (pclk) and the PHY from its hdmi_phy sibling. Signed-off-by: Michal Wilczynski <[email protected]> --- .../starfive,jh7110-inno-hdmi-controller.yaml | 121 +++++++++++++++++++++ 1 file changed, 121 insertions(+) diff --git a/Documentation/devicetree/bindings/display/bridge/starfive,jh7110-inno-hdmi-controller.yaml b/Documentation/devicetree/bindings/display/bridge/starfive,jh7110-inno-hdmi-controller.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ea489a7722d0279b3ed67bc2576ec144e31bd05d --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/starfive,jh7110-inno-hdmi-controller.yaml @@ -0,0 +1,121 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/starfive,jh7110-inno-hdmi-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 Innosilicon HDMI Controller + +maintainers: + - Michal Wilczynski <[email protected]> + +description: + The controller portion of the StarFive JH7110 INNO HDMI IP. + +properties: + compatible: + const: starfive,jh7110-inno-hdmi-controller + + interrupts: + maxItems: 1 + + clocks: + items: + - description: The HDMI controller main clock + - description: Audio master clock + - description: Audio bit clock, from the I2S transmitter + - description: The pixel clock, generated by the PHY + + clock-names: + items: + - const: pclk + - const: mclk + - const: bclk + - const: pixel + + resets: + maxItems: 1 + + phys: + maxItems: 1 + + starfive,vout-syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the dom_vout_syscon system controller, which holds the mux + selecting the DC8200 output that drives the HDMI transmitter. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: + Input from the DC8200. The remote port number selects the DC8200 + panel and the remote endpoint number the interface on that panel, + 0 for DPI and 1 for DP. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Output to the HDMI connector. + + required: + - port@0 + - port@1 + +required: + - compatible + - interrupts + - clocks + - clock-names + - resets + - phys + - starfive,vout-syscon + - ports + +additionalProperties: false + +examples: + # Shown as a child of the HDMI subsystem node; see + # Documentation/devicetree/bindings/mfd/starfive,jh7110-hdmi-subsystem.yaml + # for the full node. + - | + #include <dt-bindings/clock/starfive,jh7110-crg.h> + #include <dt-bindings/reset/starfive,jh7110-crg.h> + + controller { + compatible = "starfive,jh7110-inno-hdmi-controller"; + clocks = <&voutcrg JH7110_VOUTCLK_HDMI_TX_SYS>, + <&voutcrg JH7110_VOUTCLK_HDMI_TX_MCLK>, + <&voutcrg JH7110_VOUTCLK_HDMI_TX_BCLK>, + <&hdmi_phy>; + clock-names = "pclk", "mclk", "bclk", "pixel"; + interrupts = <99>; + phys = <&hdmi_phy>; + resets = <&voutcrg JH7110_VOUTRST_HDMI_TX_HDMI>; + starfive,vout-syscon = <&vout_syscon>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + endpoint { + remote-endpoint = <&dpu_out_dpi0>; + }; + }; + + port@1 { + reg = <1>; + + endpoint { + remote-endpoint = <&hdmi_con_in>; + }; + }; + }; + }; + +... -- 2.34.1
