18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/dts-v1/;
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#include "tegra20-tamonten.dtsi"
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci/ {
78c2ecf20Sopenharmony_ci	model = "Avionic Design Medcom-Wide board";
88c2ecf20Sopenharmony_ci	compatible = "ad,medcom-wide", "ad,tamonten", "nvidia,tegra20";
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci	aliases {
118c2ecf20Sopenharmony_ci		serial0 = &uartd;
128c2ecf20Sopenharmony_ci	};
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci	chosen {
158c2ecf20Sopenharmony_ci		stdout-path = "serial0:115200n8";
168c2ecf20Sopenharmony_ci	};
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci	pwm@7000a000 {
198c2ecf20Sopenharmony_ci		status = "okay";
208c2ecf20Sopenharmony_ci	};
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci	host1x@50000000 {
238c2ecf20Sopenharmony_ci		dc@54200000 {
248c2ecf20Sopenharmony_ci			rgb {
258c2ecf20Sopenharmony_ci				status = "okay";
268c2ecf20Sopenharmony_ci				nvidia,panel = <&panel>;
278c2ecf20Sopenharmony_ci			};
288c2ecf20Sopenharmony_ci		};
298c2ecf20Sopenharmony_ci	};
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci	i2c@7000c000 {
328c2ecf20Sopenharmony_ci		wm8903: wm8903@1a {
338c2ecf20Sopenharmony_ci			compatible = "wlf,wm8903";
348c2ecf20Sopenharmony_ci			reg = <0x1a>;
358c2ecf20Sopenharmony_ci			interrupt-parent = <&gpio>;
368c2ecf20Sopenharmony_ci			interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>;
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci			gpio-controller;
398c2ecf20Sopenharmony_ci			#gpio-cells = <2>;
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci			micdet-cfg = <0>;
428c2ecf20Sopenharmony_ci			micdet-delay = <100>;
438c2ecf20Sopenharmony_ci			gpio-cfg = <0xffffffff
448c2ecf20Sopenharmony_ci				    0xffffffff
458c2ecf20Sopenharmony_ci				    0
468c2ecf20Sopenharmony_ci				    0xffffffff
478c2ecf20Sopenharmony_ci				    0xffffffff>;
488c2ecf20Sopenharmony_ci		};
498c2ecf20Sopenharmony_ci	};
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci	backlight: backlight {
528c2ecf20Sopenharmony_ci		compatible = "pwm-backlight";
538c2ecf20Sopenharmony_ci		pwms = <&pwm 0 5000000>;
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci		brightness-levels = <0 4 8 16 32 64 128 255>;
568c2ecf20Sopenharmony_ci		default-brightness-level = <6>;
578c2ecf20Sopenharmony_ci	};
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci	panel: panel {
608c2ecf20Sopenharmony_ci		compatible = "innolux,n156bge-l21";
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci		power-supply =  <&vdd_1v8_reg>; // <&vdd_3v3_reg>;
638c2ecf20Sopenharmony_ci		enable-gpios = <&gpio TEGRA_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci		backlight = <&backlight>;
668c2ecf20Sopenharmony_ci	};
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ci	sound {
698c2ecf20Sopenharmony_ci		compatible = "ad,tegra-audio-wm8903-medcom-wide",
708c2ecf20Sopenharmony_ci			     "nvidia,tegra-audio-wm8903";
718c2ecf20Sopenharmony_ci		nvidia,model = "Avionic Design Medcom-Wide";
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci		nvidia,audio-routing =
748c2ecf20Sopenharmony_ci			"Headphone Jack", "HPOUTR",
758c2ecf20Sopenharmony_ci			"Headphone Jack", "HPOUTL",
768c2ecf20Sopenharmony_ci			"Int Spk", "ROP",
778c2ecf20Sopenharmony_ci			"Int Spk", "RON",
788c2ecf20Sopenharmony_ci			"Int Spk", "LOP",
798c2ecf20Sopenharmony_ci			"Int Spk", "LON",
808c2ecf20Sopenharmony_ci			"Mic Jack", "MICBIAS",
818c2ecf20Sopenharmony_ci			"IN1L", "Mic Jack";
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci		nvidia,i2s-controller = <&tegra_i2s1>;
848c2ecf20Sopenharmony_ci		nvidia,audio-codec = <&wm8903>;
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci		nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
878c2ecf20Sopenharmony_ci		nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci		clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
908c2ecf20Sopenharmony_ci			 <&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
918c2ecf20Sopenharmony_ci			 <&tegra_car TEGRA20_CLK_CDEV1>;
928c2ecf20Sopenharmony_ci		clock-names = "pll_a", "pll_a_out0", "mclk";
938c2ecf20Sopenharmony_ci	};
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci	vcc_24v_reg: regulator@100 {
968c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
978c2ecf20Sopenharmony_ci		regulator-name = "vcc_24v";
988c2ecf20Sopenharmony_ci		regulator-min-microvolt = <24000000>;
998c2ecf20Sopenharmony_ci		regulator-max-microvolt = <24000000>;
1008c2ecf20Sopenharmony_ci		regulator-always-on;
1018c2ecf20Sopenharmony_ci	};
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_ci	vdd_5v0_reg: regulator@101 {
1048c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1058c2ecf20Sopenharmony_ci		regulator-name = "vdd_5v0";
1068c2ecf20Sopenharmony_ci		vin-supply = <&vcc_24v_reg>;
1078c2ecf20Sopenharmony_ci		regulator-min-microvolt = <5000000>;
1088c2ecf20Sopenharmony_ci		regulator-max-microvolt = <5000000>;
1098c2ecf20Sopenharmony_ci		regulator-always-on;
1108c2ecf20Sopenharmony_ci	};
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_ci	vdd_3v3_reg: regulator@102 {
1138c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1148c2ecf20Sopenharmony_ci		regulator-name = "vdd_3v3";
1158c2ecf20Sopenharmony_ci		vin-supply = <&vcc_24v_reg>;
1168c2ecf20Sopenharmony_ci		regulator-min-microvolt = <3300000>;
1178c2ecf20Sopenharmony_ci		regulator-max-microvolt = <3300000>;
1188c2ecf20Sopenharmony_ci		regulator-always-on;
1198c2ecf20Sopenharmony_ci	};
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci	vdd_1v8_reg: regulator@103 {
1228c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
1238c2ecf20Sopenharmony_ci		regulator-name = "vdd_1v8";
1248c2ecf20Sopenharmony_ci		vin-supply = <&vdd_3v3_reg>;
1258c2ecf20Sopenharmony_ci		regulator-min-microvolt = <1800000>;
1268c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1800000>;
1278c2ecf20Sopenharmony_ci		regulator-always-on;
1288c2ecf20Sopenharmony_ci	};
1298c2ecf20Sopenharmony_ci};
130