Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /dts-v1/;
0003 
0004 #include "tegra20-tamonten.dtsi"
0005 
0006 / {
0007         model = "Avionic Design Medcom-Wide board";
0008         compatible = "ad,medcom-wide", "ad,tamonten", "nvidia,tegra20";
0009 
0010         aliases {
0011                 serial0 = &uartd;
0012         };
0013 
0014         chosen {
0015                 stdout-path = "serial0:115200n8";
0016         };
0017 
0018         pwm@7000a000 {
0019                 status = "okay";
0020         };
0021 
0022         host1x@50000000 {
0023                 dc@54200000 {
0024                         rgb {
0025                                 status = "okay";
0026                                 nvidia,panel = <&panel>;
0027                         };
0028                 };
0029         };
0030 
0031         i2c@7000c000 {
0032                 wm8903: wm8903@1a {
0033                         compatible = "wlf,wm8903";
0034                         reg = <0x1a>;
0035                         interrupt-parent = <&gpio>;
0036                         interrupts = <TEGRA_GPIO(X, 3) IRQ_TYPE_LEVEL_HIGH>;
0037 
0038                         gpio-controller;
0039                         #gpio-cells = <2>;
0040 
0041                         micdet-cfg = <0>;
0042                         micdet-delay = <100>;
0043                         gpio-cfg = <0xffffffff
0044                                     0xffffffff
0045                                     0
0046                                     0xffffffff
0047                                     0xffffffff>;
0048                 };
0049         };
0050 
0051         backlight: backlight {
0052                 compatible = "pwm-backlight";
0053                 pwms = <&pwm 0 5000000>;
0054 
0055                 brightness-levels = <0 4 8 16 32 64 128 255>;
0056                 default-brightness-level = <6>;
0057 
0058                 /* close enough */
0059                 power-supply = <&vdd_3v3_reg>;
0060         };
0061 
0062         panel: panel {
0063                 compatible = "innolux,n156bge-l21";
0064 
0065                 power-supply =  <&vdd_1v8_reg>; // <&vdd_3v3_reg>;
0066                 enable-gpios = <&gpio TEGRA_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
0067 
0068                 backlight = <&backlight>;
0069         };
0070 
0071         sound {
0072                 compatible = "ad,tegra-audio-wm8903-medcom-wide",
0073                              "nvidia,tegra-audio-wm8903";
0074                 nvidia,model = "Avionic Design Medcom-Wide";
0075 
0076                 nvidia,audio-routing =
0077                         "Headphone Jack", "HPOUTR",
0078                         "Headphone Jack", "HPOUTL",
0079                         "Int Spk", "ROP",
0080                         "Int Spk", "RON",
0081                         "Int Spk", "LOP",
0082                         "Int Spk", "LON",
0083                         "Mic Jack", "MICBIAS",
0084                         "IN1L", "Mic Jack";
0085 
0086                 nvidia,i2s-controller = <&tegra_i2s1>;
0087                 nvidia,audio-codec = <&wm8903>;
0088 
0089                 nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
0090                 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
0091 
0092                 clocks = <&tegra_car TEGRA20_CLK_PLL_A>,
0093                          <&tegra_car TEGRA20_CLK_PLL_A_OUT0>,
0094                          <&tegra_car TEGRA20_CLK_CDEV1>;
0095                 clock-names = "pll_a", "pll_a_out0", "mclk";
0096         };
0097 
0098         vcc_24v_reg: regulator-24v0 {
0099                 compatible = "regulator-fixed";
0100                 regulator-name = "vcc_24v";
0101                 regulator-min-microvolt = <24000000>;
0102                 regulator-max-microvolt = <24000000>;
0103                 regulator-always-on;
0104         };
0105 
0106         vdd_5v0_reg: regulator-5v0 {
0107                 compatible = "regulator-fixed";
0108                 regulator-name = "vdd_5v0";
0109                 vin-supply = <&vcc_24v_reg>;
0110                 regulator-min-microvolt = <5000000>;
0111                 regulator-max-microvolt = <5000000>;
0112                 regulator-always-on;
0113         };
0114 
0115         vdd_3v3_reg: regulator-3v3 {
0116                 compatible = "regulator-fixed";
0117                 regulator-name = "vdd_3v3";
0118                 vin-supply = <&vcc_24v_reg>;
0119                 regulator-min-microvolt = <3300000>;
0120                 regulator-max-microvolt = <3300000>;
0121                 regulator-always-on;
0122         };
0123 
0124         vdd_1v8_reg: regulator-1v8 {
0125                 compatible = "regulator-fixed";
0126                 regulator-name = "vdd_1v8";
0127                 vin-supply = <&vdd_3v3_reg>;
0128                 regulator-min-microvolt = <1800000>;
0129                 regulator-max-microvolt = <1800000>;
0130                 regulator-always-on;
0131         };
0132 };