145 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/display/rockchip/rockchip,inno-hdmi.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Rockchip Innosilicon HDMI controller8 9maintainers:10 - Sandy Huang <hjc@rock-chips.com>11 - Heiko Stuebner <heiko@sntech.de>12 13properties:14 compatible:15 enum:16 - rockchip,rk3036-inno-hdmi17 - rockchip,rk3128-inno-hdmi18 19 reg:20 maxItems: 121 22 interrupts:23 maxItems: 124 25 clocks:26 minItems: 127 items:28 - description: The HDMI controller main clock29 - description: The HDMI PHY reference clock30 31 clock-names:32 minItems: 133 items:34 - const: pclk35 - const: ref36 37 power-domains:38 maxItems: 139 40 "#sound-dai-cells":41 const: 042 43 ports:44 $ref: /schemas/graph.yaml#/properties/ports45 46 properties:47 port@0:48 $ref: /schemas/graph.yaml#/properties/port49 description:50 Port node with one endpoint connected to a vop node.51 52 port@1:53 $ref: /schemas/graph.yaml#/properties/port54 description:55 Port node with one endpoint connected to a hdmi-connector node.56 57 required:58 - port@059 - port@160 61required:62 - compatible63 - reg64 - interrupts65 - clocks66 - clock-names67 - pinctrl-068 - pinctrl-names69 - ports70 71allOf:72 - $ref: /schemas/sound/dai-common.yaml#73 - if:74 properties:75 compatible:76 contains:77 const: rockchip,rk3036-inno-hdmi78 79 then:80 properties:81 power-domains: false82 83 - if:84 properties:85 compatible:86 contains:87 const: rockchip,rk3128-inno-hdmi88 89 then:90 properties:91 clocks:92 minItems: 293 clock-names:94 minItems: 295 required:96 - power-domains97 98additionalProperties: false99 100examples:101 - |102 #include <dt-bindings/clock/rk3036-cru.h>103 #include <dt-bindings/interrupt-controller/arm-gic.h>104 #include <dt-bindings/pinctrl/rockchip.h>105 hdmi: hdmi@20034000 {106 compatible = "rockchip,rk3036-inno-hdmi";107 reg = <0x20034000 0x4000>;108 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;109 clocks = <&cru PCLK_HDMI>;110 clock-names = "pclk";111 pinctrl-names = "default";112 pinctrl-0 = <&hdmi_ctl>;113 #sound-dai-cells = <0>;114 115 ports {116 #address-cells = <1>;117 #size-cells = <0>;118 119 hdmi_in: port@0 {120 reg = <0>;121 hdmi_in_vop: endpoint {122 remote-endpoint = <&vop_out_hdmi>;123 };124 };125 126 hdmi_out: port@1 {127 reg = <1>;128 hdmi_out_con: endpoint {129 remote-endpoint = <&hdmi_con_in>;130 };131 };132 };133 };134 135 pinctrl {136 hdmi {137 hdmi_ctl: hdmi-ctl {138 rockchip,pins = <1 RK_PB0 1 &pcfg_pull_none>,139 <1 RK_PB1 1 &pcfg_pull_none>,140 <1 RK_PB2 1 &pcfg_pull_none>,141 <1 RK_PB3 1 &pcfg_pull_none>;142 };143 };144 };145