brintos

brintos / linux-shallow public Read only

0
0
Text · 3.1 KiB · b90b6d1 Raw
137 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/display/mediatek/mediatek,hdmi.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Mediatek HDMI Encoder8 9maintainers:10  - CK Hu <ck.hu@mediatek.com>11  - Jitao shi <jitao.shi@mediatek.com>12 13description: |14  The Mediatek HDMI encoder can generate HDMI 1.4a or MHL 2.0 signals from15  its parallel input.16 17properties:18  compatible:19    enum:20      - mediatek,mt2701-hdmi21      - mediatek,mt7623-hdmi22      - mediatek,mt8167-hdmi23      - mediatek,mt8173-hdmi24 25  reg:26    maxItems: 127 28  interrupts:29    maxItems: 130 31  clocks:32    items:33      - description: Pixel Clock34      - description: HDMI PLL35      - description: Bit Clock36      - description: S/PDIF Clock37 38  clock-names:39    items:40      - const: pixel41      - const: pll42      - const: bclk43      - const: spdif44 45  phys:46    maxItems: 147 48  phy-names:49    items:50      - const: hdmi51 52  mediatek,syscon-hdmi:53    $ref: /schemas/types.yaml#/definitions/phandle-array54    items:55      - items:56          - description: phandle to system configuration registers57          - description: register offset in the system configuration registers58    description: |59      phandle link and register offset to the system configuration registers.60 61  ports:62    $ref: /schemas/graph.yaml#/properties/ports63 64    properties:65      port@0:66        $ref: /schemas/graph.yaml#/properties/port67        description: |68          Input port node. This port should be connected to a DPI output port.69 70      port@1:71        $ref: /schemas/graph.yaml#/properties/port72        description: |73          Output port node. This port should be connected to the input port of a connector74          node that contains a ddc-i2c-bus property, or to the  input port of an attached75          bridge chip, such as a SlimPort transmitter.76 77    required:78      - port@079      - port@180 81required:82  - compatible83  - reg84  - interrupts85  - clocks86  - clock-names87  - phys88  - phy-names89  - mediatek,syscon-hdmi90  - ports91 92additionalProperties: false93 94examples:95  - |96    #include <dt-bindings/clock/mt8173-clk.h>97    #include <dt-bindings/interrupt-controller/arm-gic.h>98    #include <dt-bindings/interrupt-controller/irq.h>99    hdmi0: hdmi@14025000 {100        compatible = "mediatek,mt8173-hdmi";101        reg = <0x14025000 0x400>;102        interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_LOW>;103        clocks = <&mmsys CLK_MM_HDMI_PIXEL>,104             <&mmsys CLK_MM_HDMI_PLLCK>,105             <&mmsys CLK_MM_HDMI_AUDIO>,106             <&mmsys CLK_MM_HDMI_SPDIF>;107        clock-names = "pixel", "pll", "bclk", "spdif";108        pinctrl-names = "default";109        pinctrl-0 = <&hdmi_pin>;110        phys = <&hdmi_phy>;111        phy-names = "hdmi";112        mediatek,syscon-hdmi = <&mmsys 0x900>;113 114        ports {115          #address-cells = <1>;116          #size-cells = <0>;117 118          port@0 {119            reg = <0>;120 121            hdmi0_in: endpoint {122              remote-endpoint = <&dpi0_out>;123            };124          };125 126          port@1 {127            reg = <1>;128 129            hdmi0_out: endpoint {130              remote-endpoint = <&hdmi_con_in>;131            };132          };133        };134    };135 136...137