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