1*b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*b97ee269SEmmanuel Vadot%YAML 1.2 3*b97ee269SEmmanuel Vadot--- 4*b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/display/tegra/nvidia,tegra20-hdmi.yaml# 5*b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*b97ee269SEmmanuel Vadot 7*b97ee269SEmmanuel Vadottitle: NVIDIA Tegra HDMI Output Encoder 8*b97ee269SEmmanuel Vadot 9*b97ee269SEmmanuel Vadotmaintainers: 10*b97ee269SEmmanuel Vadot - Thierry Reding <thierry.reding@gmail.com> 11*b97ee269SEmmanuel Vadot - Jon Hunter <jonathanh@nvidia.com> 12*b97ee269SEmmanuel Vadot 13*b97ee269SEmmanuel Vadotproperties: 14*b97ee269SEmmanuel Vadot $nodename: 15*b97ee269SEmmanuel Vadot pattern: "^hdmi@[0-9a-f]+$" 16*b97ee269SEmmanuel Vadot 17*b97ee269SEmmanuel Vadot compatible: 18*b97ee269SEmmanuel Vadot oneOf: 19*b97ee269SEmmanuel Vadot - enum: 20*b97ee269SEmmanuel Vadot - nvidia,tegra20-hdmi 21*b97ee269SEmmanuel Vadot - nvidia,tegra30-hdmi 22*b97ee269SEmmanuel Vadot - nvidia,tegra114-hdmi 23*b97ee269SEmmanuel Vadot - nvidia,tegra124-hdmi 24*b97ee269SEmmanuel Vadot 25*b97ee269SEmmanuel Vadot - items: 26*b97ee269SEmmanuel Vadot - const: nvidia,tegra132-hdmi 27*b97ee269SEmmanuel Vadot - const: nvidia,tegra124-hdmi 28*b97ee269SEmmanuel Vadot 29*b97ee269SEmmanuel Vadot reg: 30*b97ee269SEmmanuel Vadot maxItems: 1 31*b97ee269SEmmanuel Vadot 32*b97ee269SEmmanuel Vadot interrupts: 33*b97ee269SEmmanuel Vadot maxItems: 1 34*b97ee269SEmmanuel Vadot 35*b97ee269SEmmanuel Vadot clocks: 36*b97ee269SEmmanuel Vadot items: 37*b97ee269SEmmanuel Vadot - description: module clock 38*b97ee269SEmmanuel Vadot - description: parent clock 39*b97ee269SEmmanuel Vadot 40*b97ee269SEmmanuel Vadot clock-names: 41*b97ee269SEmmanuel Vadot items: 42*b97ee269SEmmanuel Vadot - const: hdmi 43*b97ee269SEmmanuel Vadot - const: parent 44*b97ee269SEmmanuel Vadot 45*b97ee269SEmmanuel Vadot resets: 46*b97ee269SEmmanuel Vadot items: 47*b97ee269SEmmanuel Vadot - description: module reset 48*b97ee269SEmmanuel Vadot 49*b97ee269SEmmanuel Vadot reset-names: 50*b97ee269SEmmanuel Vadot items: 51*b97ee269SEmmanuel Vadot - const: hdmi 52*b97ee269SEmmanuel Vadot 53*b97ee269SEmmanuel Vadot operating-points-v2: 54*b97ee269SEmmanuel Vadot $ref: "/schemas/types.yaml#/definitions/phandle" 55*b97ee269SEmmanuel Vadot 56*b97ee269SEmmanuel Vadot power-domains: 57*b97ee269SEmmanuel Vadot items: 58*b97ee269SEmmanuel Vadot - description: phandle to the core power domain 59*b97ee269SEmmanuel Vadot 60*b97ee269SEmmanuel Vadot hdmi-supply: 61*b97ee269SEmmanuel Vadot description: supply for the +5V HDMI connector pin 62*b97ee269SEmmanuel Vadot 63*b97ee269SEmmanuel Vadot vdd-supply: 64*b97ee269SEmmanuel Vadot description: regulator for supply voltage 65*b97ee269SEmmanuel Vadot 66*b97ee269SEmmanuel Vadot pll-supply: 67*b97ee269SEmmanuel Vadot description: regulator for PLL 68*b97ee269SEmmanuel Vadot 69*b97ee269SEmmanuel Vadot nvidia,ddc-i2c-bus: 70*b97ee269SEmmanuel Vadot description: phandle of an I2C controller used for DDC EDID 71*b97ee269SEmmanuel Vadot probing 72*b97ee269SEmmanuel Vadot $ref: "/schemas/types.yaml#/definitions/phandle" 73*b97ee269SEmmanuel Vadot 74*b97ee269SEmmanuel Vadot nvidia,hpd-gpio: 75*b97ee269SEmmanuel Vadot description: specifies a GPIO used for hotplug detection 76*b97ee269SEmmanuel Vadot maxItems: 1 77*b97ee269SEmmanuel Vadot 78*b97ee269SEmmanuel Vadot nvidia,edid: 79*b97ee269SEmmanuel Vadot description: supplies a binary EDID blob 80*b97ee269SEmmanuel Vadot $ref: "/schemas/types.yaml#/definitions/uint8-array" 81*b97ee269SEmmanuel Vadot 82*b97ee269SEmmanuel Vadot nvidia,panel: 83*b97ee269SEmmanuel Vadot description: phandle of a display panel 84*b97ee269SEmmanuel Vadot $ref: "/schemas/types.yaml#/definitions/phandle" 85*b97ee269SEmmanuel Vadot 86*b97ee269SEmmanuel Vadot "#sound-dai-cells": 87*b97ee269SEmmanuel Vadot const: 0 88*b97ee269SEmmanuel Vadot 89*b97ee269SEmmanuel VadotadditionalProperties: false 90*b97ee269SEmmanuel Vadot 91*b97ee269SEmmanuel Vadotrequired: 92*b97ee269SEmmanuel Vadot - compatible 93*b97ee269SEmmanuel Vadot - reg 94*b97ee269SEmmanuel Vadot - interrupts 95*b97ee269SEmmanuel Vadot - clocks 96*b97ee269SEmmanuel Vadot - clock-names 97*b97ee269SEmmanuel Vadot - resets 98*b97ee269SEmmanuel Vadot - reset-names 99*b97ee269SEmmanuel Vadot - pll-supply 100*b97ee269SEmmanuel Vadot - vdd-supply 101*b97ee269SEmmanuel Vadot - nvidia,ddc-i2c-bus 102*b97ee269SEmmanuel Vadot - nvidia,hpd-gpio 103*b97ee269SEmmanuel Vadot 104*b97ee269SEmmanuel Vadotexamples: 105*b97ee269SEmmanuel Vadot - | 106*b97ee269SEmmanuel Vadot #include <dt-bindings/clock/tegra124-car.h> 107*b97ee269SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 108*b97ee269SEmmanuel Vadot #include <dt-bindings/gpio/tegra-gpio.h> 109*b97ee269SEmmanuel Vadot 110*b97ee269SEmmanuel Vadot hdmi@54280000 { 111*b97ee269SEmmanuel Vadot compatible = "nvidia,tegra124-hdmi"; 112*b97ee269SEmmanuel Vadot reg = <0x54280000 0x00040000>; 113*b97ee269SEmmanuel Vadot interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; 114*b97ee269SEmmanuel Vadot clocks = <&tegra_car TEGRA124_CLK_HDMI>, 115*b97ee269SEmmanuel Vadot <&tegra_car TEGRA124_CLK_PLL_D2_OUT0>; 116*b97ee269SEmmanuel Vadot clock-names = "hdmi", "parent"; 117*b97ee269SEmmanuel Vadot resets = <&tegra_car 51>; 118*b97ee269SEmmanuel Vadot reset-names = "hdmi"; 119*b97ee269SEmmanuel Vadot 120*b97ee269SEmmanuel Vadot hdmi-supply = <&vdd_5v0_hdmi>; 121*b97ee269SEmmanuel Vadot pll-supply = <&vdd_hdmi_pll>; 122*b97ee269SEmmanuel Vadot vdd-supply = <&vdd_3v3_hdmi>; 123*b97ee269SEmmanuel Vadot 124*b97ee269SEmmanuel Vadot nvidia,ddc-i2c-bus = <&hdmi_ddc>; 125*b97ee269SEmmanuel Vadot nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>; 126*b97ee269SEmmanuel Vadot }; 127