xref: /freebsd/sys/contrib/device-tree/src/arm/nvidia/tegra20-plutux.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 Plutux board";
8*f126890aSEmmanuel Vadot	compatible = "ad,plutux", "ad,tamonten", "nvidia,tegra20";
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot	host1x@50000000 {
11*f126890aSEmmanuel Vadot		hdmi@54280000 {
12*f126890aSEmmanuel Vadot			status = "okay";
13*f126890aSEmmanuel Vadot		};
14*f126890aSEmmanuel Vadot	};
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot	i2c@7000c000 {
17*f126890aSEmmanuel Vadot		wm8903: wm8903@1a {
18*f126890aSEmmanuel Vadot			compatible = "wlf,wm8903";
19*f126890aSEmmanuel Vadot			reg = <0x1a>;
20*f126890aSEmmanuel Vadot			interrupt-parent = <&gpio>;
21*f126890aSEmmanuel Vadot			interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>;
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot			gpio-controller;
24*f126890aSEmmanuel Vadot			#gpio-cells = <2>;
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot			micdet-cfg = <0>;
27*f126890aSEmmanuel Vadot			micdet-delay = <100>;
28*f126890aSEmmanuel Vadot			gpio-cfg = <0xffffffff
29*f126890aSEmmanuel Vadot				    0xffffffff
30*f126890aSEmmanuel Vadot				    0
31*f126890aSEmmanuel Vadot				    0xffffffff
32*f126890aSEmmanuel Vadot				    0xffffffff>;
33*f126890aSEmmanuel Vadot		};
34*f126890aSEmmanuel Vadot	};
35*f126890aSEmmanuel Vadot
36*f126890aSEmmanuel Vadot	sound {
37*f126890aSEmmanuel Vadot		compatible = "ad,tegra-audio-plutux",
38*f126890aSEmmanuel Vadot			     "nvidia,tegra-audio-wm8903";
39*f126890aSEmmanuel Vadot		nvidia,model = "Avionic Design Plutux";
40*f126890aSEmmanuel Vadot
41*f126890aSEmmanuel Vadot		nvidia,audio-routing =
42*f126890aSEmmanuel Vadot			"Headphone Jack", "HPOUTR",
43*f126890aSEmmanuel Vadot			"Headphone Jack", "HPOUTL",
44*f126890aSEmmanuel Vadot			"Int Spk", "ROP",
45*f126890aSEmmanuel Vadot			"Int Spk", "RON",
46*f126890aSEmmanuel Vadot			"Int Spk", "LOP",
47*f126890aSEmmanuel Vadot			"Int Spk", "LON",
48*f126890aSEmmanuel Vadot			"Mic Jack", "MICBIAS",
49*f126890aSEmmanuel Vadot			"IN1L", "Mic Jack";
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot		nvidia,i2s-controller = <&tegra_i2s1>;
52*f126890aSEmmanuel Vadot		nvidia,audio-codec = <&wm8903>;
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot		nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
55*f126890aSEmmanuel Vadot		nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
56*f126890aSEmmanuel Vadot
57*f126890aSEmmanuel Vadot		clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
58*f126890aSEmmanuel Vadot			 <&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
59*f126890aSEmmanuel Vadot			 <&tegra_car TEGRA20_CLK_CDEV1>;
60*f126890aSEmmanuel Vadot		clock-names = "pll_a", "pll_a_out0", "mclk";
61*f126890aSEmmanuel Vadot	};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot	vcc_24v_reg: regulator-24v0 {
64*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
65*f126890aSEmmanuel Vadot		regulator-name = "vcc_24v";
66*f126890aSEmmanuel Vadot		regulator-min-microvolt = <24000000>;
67*f126890aSEmmanuel Vadot		regulator-max-microvolt = <24000000>;
68*f126890aSEmmanuel Vadot		regulator-always-on;
69*f126890aSEmmanuel Vadot	};
70*f126890aSEmmanuel Vadot
71*f126890aSEmmanuel Vadot	vdd_5v0_reg: regulator-5v0 {
72*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
73*f126890aSEmmanuel Vadot		regulator-name = "vdd_5v0";
74*f126890aSEmmanuel Vadot		vin-supply = <&vcc_24v_reg>;
75*f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
76*f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
77*f126890aSEmmanuel Vadot		regulator-always-on;
78*f126890aSEmmanuel Vadot	};
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot	vdd_3v3_reg: regulator-3v3 {
81*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
82*f126890aSEmmanuel Vadot		regulator-name = "vdd_3v3";
83*f126890aSEmmanuel Vadot		vin-supply = <&vcc_24v_reg>;
84*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
85*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
86*f126890aSEmmanuel Vadot		regulator-always-on;
87*f126890aSEmmanuel Vadot	};
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot	vdd_1v8_reg: regulator-1v8 {
90*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
91*f126890aSEmmanuel Vadot		regulator-name = "vdd_1v8";
92*f126890aSEmmanuel Vadot		vin-supply = <&vdd_3v3_reg>;
93*f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
94*f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
95*f126890aSEmmanuel Vadot		regulator-always-on;
96*f126890aSEmmanuel Vadot	};
97*f126890aSEmmanuel Vadot};
98