Path: blob/master/Documentation/devicetree/bindings/display/allwinner,sun8i-a83t-dw-hdmi.yaml
54758 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: 2143144additionalProperties: false145146examples:147- |148#include <dt-bindings/interrupt-controller/arm-gic.h>149150/*151* This comes from the clock/sun8i-a83t-ccu.h and152* reset/sun8i-a83t-ccu.h headers, but we can't include them since153* it would trigger a bunch of warnings for redefinitions of154* symbols with the other example.155*/156#define CLK_BUS_HDMI 39157#define CLK_HDMI 93158#define CLK_HDMI_SLOW 94159#define RST_BUS_HDMI1 26160161hdmi@1ee0000 {162compatible = "allwinner,sun8i-a83t-dw-hdmi";163reg = <0x01ee0000 0x10000>;164reg-io-width = <1>;165interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;166clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>,167<&ccu CLK_HDMI>;168clock-names = "iahb", "isfr", "tmds";169resets = <&ccu RST_BUS_HDMI1>;170reset-names = "ctrl";171phys = <&hdmi_phy>;172phy-names = "phy";173pinctrl-names = "default";174pinctrl-0 = <&hdmi_pins>;175176ports {177#address-cells = <1>;178#size-cells = <0>;179180port@0 {181reg = <0>;182183endpoint {184remote-endpoint = <&tcon1_out_hdmi>;185};186};187188port@1 {189reg = <1>;190};191};192};193194/* Cleanup after ourselves */195#undef CLK_BUS_HDMI196#undef CLK_HDMI197#undef CLK_HDMI_SLOW198199- |200#include <dt-bindings/interrupt-controller/arm-gic.h>201202/*203* This comes from the clock/sun50i-h6-ccu.h and204* reset/sun50i-h6-ccu.h headers, but we can't include them since205* it would trigger a bunch of warnings for redefinitions of206* symbols with the other example.207*/208#define CLK_BUS_HDMI 126209#define CLK_BUS_HDCP 137210#define CLK_HDMI 123211#define CLK_HDMI_SLOW 124212#define CLK_HDMI_CEC 125213#define CLK_HDCP 136214#define RST_BUS_HDMI_SUB 57215#define RST_BUS_HDCP 62216217hdmi@6000000 {218compatible = "allwinner,sun50i-h6-dw-hdmi";219reg = <0x06000000 0x10000>;220reg-io-width = <1>;221interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;222clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>,223<&ccu CLK_HDMI>, <&ccu CLK_HDMI_CEC>,224<&ccu CLK_HDCP>, <&ccu CLK_BUS_HDCP>;225clock-names = "iahb", "isfr", "tmds", "cec", "hdcp",226"hdcp-bus";227resets = <&ccu RST_BUS_HDMI_SUB>, <&ccu RST_BUS_HDCP>;228reset-names = "ctrl", "hdcp";229phys = <&hdmi_phy>;230phy-names = "phy";231pinctrl-names = "default";232pinctrl-0 = <&hdmi_pins>;233234ports {235#address-cells = <1>;236#size-cells = <0>;237238port@0 {239reg = <0>;240241endpoint {242remote-endpoint = <&tcon_top_hdmi_out_hdmi>;243};244};245246port@1 {247reg = <1>;248};249};250};251252...253254255