Path: blob/master/Documentation/devicetree/bindings/display/allwinner,sun8i-a83t-dw-hdmi.yaml
26308 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/display/allwinner,sun8i-a83t-dw-hdmi.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Allwinner A83t DWC HDMI TX Encoder78description: |9The HDMI transmitter is a Synopsys DesignWare HDMI 1.4 TX controller10IP with Allwinner\'s own PHY IP. It supports audio and video outputs11and CEC.1213These DT bindings follow the Synopsys DWC HDMI TX bindings defined14in bridge/synopsys,dw-hdmi.yaml with the following device-specific15properties.1617maintainers:18- Chen-Yu Tsai <wens@csie.org>19- Maxime Ripard <mripard@kernel.org>2021properties:22"#phy-cells":23const: 02425compatible:26oneOf:27- const: allwinner,sun8i-a83t-dw-hdmi28- const: allwinner,sun50i-h6-dw-hdmi2930- items:31- enum:32- allwinner,sun8i-h3-dw-hdmi33- allwinner,sun8i-r40-dw-hdmi34- allwinner,sun50i-a64-dw-hdmi35- const: allwinner,sun8i-a83t-dw-hdmi3637reg:38maxItems: 13940reg-io-width:41const: 14243interrupts:44maxItems: 14546clocks:47minItems: 348items:49- description: Bus Clock50- description: Register Clock51- description: TMDS Clock52- description: HDMI CEC Clock53- description: HDCP Clock54- description: HDCP Bus Clock5556clock-names:57minItems: 358items:59- const: iahb60- const: isfr61- const: tmds62- const: cec63- const: hdcp64- const: hdcp-bus6566resets:67minItems: 168items:69- description: HDMI Controller Reset70- description: HDCP Reset7172reset-names:73minItems: 174items:75- const: ctrl76- const: hdcp7778phys:79maxItems: 180description:81Phandle to the DWC HDMI PHY.8283phy-names:84const: phy8586hvcc-supply:87description:88The VCC power supply of the controller8990ports:91$ref: /schemas/graph.yaml#/properties/ports9293properties:94port@0:95$ref: /schemas/graph.yaml#/properties/port96description: |97Input endpoints of the controller. Usually the associated98TCON.99100port@1:101$ref: /schemas/graph.yaml#/properties/port102description: |103Output endpoints of the controller. Usually an HDMI104connector.105106required:107- port@0108- port@1109110required:111- compatible112- reg113- reg-io-width114- interrupts115- clocks116- clock-names117- resets118- reset-names119- phys120- phy-names121- ports122123if:124properties:125compatible:126contains:127enum:128- allwinner,sun50i-h6-dw-hdmi129130then:131properties:132clocks:133minItems: 6134135clock-names:136minItems: 6137138resets:139minItems: 2140141reset-names:142minItems: 2143144145additionalProperties: false146147examples:148- |149#include <dt-bindings/interrupt-controller/arm-gic.h>150151/*152* This comes from the clock/sun8i-a83t-ccu.h and153* reset/sun8i-a83t-ccu.h headers, but we can't include them since154* it would trigger a bunch of warnings for redefinitions of155* symbols with the other example.156*/157#define CLK_BUS_HDMI 39158#define CLK_HDMI 93159#define CLK_HDMI_SLOW 94160#define RST_BUS_HDMI1 26161162hdmi@1ee0000 {163compatible = "allwinner,sun8i-a83t-dw-hdmi";164reg = <0x01ee0000 0x10000>;165reg-io-width = <1>;166interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;167clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>,168<&ccu CLK_HDMI>;169clock-names = "iahb", "isfr", "tmds";170resets = <&ccu RST_BUS_HDMI1>;171reset-names = "ctrl";172phys = <&hdmi_phy>;173phy-names = "phy";174pinctrl-names = "default";175pinctrl-0 = <&hdmi_pins>;176177ports {178#address-cells = <1>;179#size-cells = <0>;180181port@0 {182reg = <0>;183184endpoint {185remote-endpoint = <&tcon1_out_hdmi>;186};187};188189port@1 {190reg = <1>;191};192};193};194195/* Cleanup after ourselves */196#undef CLK_BUS_HDMI197#undef CLK_HDMI198#undef CLK_HDMI_SLOW199200- |201#include <dt-bindings/interrupt-controller/arm-gic.h>202203/*204* This comes from the clock/sun50i-h6-ccu.h and205* reset/sun50i-h6-ccu.h headers, but we can't include them since206* it would trigger a bunch of warnings for redefinitions of207* symbols with the other example.208*/209#define CLK_BUS_HDMI 126210#define CLK_BUS_HDCP 137211#define CLK_HDMI 123212#define CLK_HDMI_SLOW 124213#define CLK_HDMI_CEC 125214#define CLK_HDCP 136215#define RST_BUS_HDMI_SUB 57216#define RST_BUS_HDCP 62217218hdmi@6000000 {219compatible = "allwinner,sun50i-h6-dw-hdmi";220reg = <0x06000000 0x10000>;221reg-io-width = <1>;222interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;223clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>,224<&ccu CLK_HDMI>, <&ccu CLK_HDMI_CEC>,225<&ccu CLK_HDCP>, <&ccu CLK_BUS_HDCP>;226clock-names = "iahb", "isfr", "tmds", "cec", "hdcp",227"hdcp-bus";228resets = <&ccu RST_BUS_HDMI_SUB>, <&ccu RST_BUS_HDCP>;229reset-names = "ctrl", "hdcp";230phys = <&hdmi_phy>;231phy-names = "phy";232pinctrl-names = "default";233pinctrl-0 = <&hdmi_pins>;234235ports {236#address-cells = <1>;237#size-cells = <0>;238239port@0 {240reg = <0>;241242endpoint {243remote-endpoint = <&tcon_top_hdmi_out_hdmi>;244};245};246247port@1 {248reg = <1>;249};250};251};252253...254255256