xref: /freebsd/sys/contrib/device-tree/src/arm/nvidia/tegra20-medcom-wide.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/dts-v1/;
3*f126890aSEmmanuel Vadot
4*f126890aSEmmanuel Vadot#include "tegra20-tamonten.dtsi"
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/ {
7*f126890aSEmmanuel Vadot	model = "Avionic Design Medcom-Wide board";
8*f126890aSEmmanuel Vadot	compatible = "ad,medcom-wide", "ad,tamonten", "nvidia,tegra20";
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot	aliases {
11*f126890aSEmmanuel Vadot		serial0 = &uartd;
12*f126890aSEmmanuel Vadot	};
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	chosen {
15*f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
16*f126890aSEmmanuel Vadot	};
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot	host1x@50000000 {
19*f126890aSEmmanuel Vadot		dc@54200000 {
20*f126890aSEmmanuel Vadot			rgb {
21*f126890aSEmmanuel Vadot				status = "okay";
22*f126890aSEmmanuel Vadot				nvidia,panel = <&panel>;
23*f126890aSEmmanuel Vadot			};
24*f126890aSEmmanuel Vadot		};
25*f126890aSEmmanuel Vadot	};
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot	pwm@7000a000 {
28*f126890aSEmmanuel Vadot		status = "okay";
29*f126890aSEmmanuel Vadot	};
30*f126890aSEmmanuel Vadot
31*f126890aSEmmanuel Vadot	i2c@7000c000 {
32*f126890aSEmmanuel Vadot		wm8903: wm8903@1a {
33*f126890aSEmmanuel Vadot			compatible = "wlf,wm8903";
34*f126890aSEmmanuel Vadot			reg = <0x1a>;
35*f126890aSEmmanuel Vadot			interrupt-parent = <&gpio>;
36*f126890aSEmmanuel Vadot			interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>;
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot			gpio-controller;
39*f126890aSEmmanuel Vadot			#gpio-cells = <2>;
40*f126890aSEmmanuel Vadot
41*f126890aSEmmanuel Vadot			micdet-cfg = <0>;
42*f126890aSEmmanuel Vadot			micdet-delay = <100>;
43*f126890aSEmmanuel Vadot			gpio-cfg = <0xffffffff
44*f126890aSEmmanuel Vadot				    0xffffffff
45*f126890aSEmmanuel Vadot				    0
46*f126890aSEmmanuel Vadot				    0xffffffff
47*f126890aSEmmanuel Vadot				    0xffffffff>;
48*f126890aSEmmanuel Vadot		};
49*f126890aSEmmanuel Vadot	};
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot	backlight: backlight {
52*f126890aSEmmanuel Vadot		compatible = "pwm-backlight";
53*f126890aSEmmanuel Vadot		pwms = <&pwm 0 5000000>;
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel Vadot		brightness-levels = <0 4 8 16 32 64 128 255>;
56*f126890aSEmmanuel Vadot		default-brightness-level = <6>;
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot		/* close enough */
59*f126890aSEmmanuel Vadot		power-supply = <&vdd_3v3_reg>;
60*f126890aSEmmanuel Vadot	};
61*f126890aSEmmanuel Vadot
62*f126890aSEmmanuel Vadot	panel: panel {
63*f126890aSEmmanuel Vadot		compatible = "innolux,n156bge-l21";
64*f126890aSEmmanuel Vadot
65*f126890aSEmmanuel Vadot		power-supply =  <&vdd_1v8_reg>; // <&vdd_3v3_reg>;
66*f126890aSEmmanuel Vadot		enable-gpios = <&gpio TEGRA_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot		backlight = <&backlight>;
69*f126890aSEmmanuel Vadot	};
70*f126890aSEmmanuel Vadot
71*f126890aSEmmanuel Vadot	sound {
72*f126890aSEmmanuel Vadot		compatible = "ad,tegra-audio-wm8903-medcom-wide",
73*f126890aSEmmanuel Vadot			     "nvidia,tegra-audio-wm8903";
74*f126890aSEmmanuel Vadot		nvidia,model = "Avionic Design Medcom-Wide";
75*f126890aSEmmanuel Vadot
76*f126890aSEmmanuel Vadot		nvidia,audio-routing =
77*f126890aSEmmanuel Vadot			"Headphone Jack", "HPOUTR",
78*f126890aSEmmanuel Vadot			"Headphone Jack", "HPOUTL",
79*f126890aSEmmanuel Vadot			"Int Spk", "ROP",
80*f126890aSEmmanuel Vadot			"Int Spk", "RON",
81*f126890aSEmmanuel Vadot			"Int Spk", "LOP",
82*f126890aSEmmanuel Vadot			"Int Spk", "LON",
83*f126890aSEmmanuel Vadot			"Mic Jack", "MICBIAS",
84*f126890aSEmmanuel Vadot			"IN1L", "Mic Jack";
85*f126890aSEmmanuel Vadot
86*f126890aSEmmanuel Vadot		nvidia,i2s-controller = <&tegra_i2s1>;
87*f126890aSEmmanuel Vadot		nvidia,audio-codec = <&wm8903>;
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot		nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
90*f126890aSEmmanuel Vadot		nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
91*f126890aSEmmanuel Vadot
92*f126890aSEmmanuel Vadot		clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
93*f126890aSEmmanuel Vadot			 <&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
94*f126890aSEmmanuel Vadot			 <&tegra_car TEGRA20_CLK_CDEV1>;
95*f126890aSEmmanuel Vadot		clock-names = "pll_a", "pll_a_out0", "mclk";
96*f126890aSEmmanuel Vadot	};
97*f126890aSEmmanuel Vadot
98*f126890aSEmmanuel Vadot	vcc_24v_reg: regulator-24v0 {
99*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
100*f126890aSEmmanuel Vadot		regulator-name = "vcc_24v";
101*f126890aSEmmanuel Vadot		regulator-min-microvolt = <24000000>;
102*f126890aSEmmanuel Vadot		regulator-max-microvolt = <24000000>;
103*f126890aSEmmanuel Vadot		regulator-always-on;
104*f126890aSEmmanuel Vadot	};
105*f126890aSEmmanuel Vadot
106*f126890aSEmmanuel Vadot	vdd_5v0_reg: regulator-5v0 {
107*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
108*f126890aSEmmanuel Vadot		regulator-name = "vdd_5v0";
109*f126890aSEmmanuel Vadot		vin-supply = <&vcc_24v_reg>;
110*f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
111*f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
112*f126890aSEmmanuel Vadot		regulator-always-on;
113*f126890aSEmmanuel Vadot	};
114*f126890aSEmmanuel Vadot
115*f126890aSEmmanuel Vadot	vdd_3v3_reg: regulator-3v3 {
116*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
117*f126890aSEmmanuel Vadot		regulator-name = "vdd_3v3";
118*f126890aSEmmanuel Vadot		vin-supply = <&vcc_24v_reg>;
119*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
120*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
121*f126890aSEmmanuel Vadot		regulator-always-on;
122*f126890aSEmmanuel Vadot	};
123*f126890aSEmmanuel Vadot
124*f126890aSEmmanuel Vadot	vdd_1v8_reg: regulator-1v8 {
125*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
126*f126890aSEmmanuel Vadot		regulator-name = "vdd_1v8";
127*f126890aSEmmanuel Vadot		vin-supply = <&vdd_3v3_reg>;
128*f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
129*f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
130*f126890aSEmmanuel Vadot		regulator-always-on;
131*f126890aSEmmanuel Vadot	};
132*f126890aSEmmanuel Vadot};
133