Merge tag 'sound-5.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[muen/linux.git] / arch / arm64 / boot / dts / nvidia / tegra186-p2771-0000.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include <dt-bindings/input/linux-event-codes.h>
5 #include <dt-bindings/input/gpio-keys.h>
6
7 #include "tegra186-p3310.dtsi"
8
9 / {
10         model = "NVIDIA Tegra186 P2771-0000 Development Board";
11         compatible = "nvidia,p2771-0000", "nvidia,tegra186";
12
13         i2c@3160000 {
14                 power-monitor@42 {
15                         compatible = "ti,ina3221";
16                         reg = <0x42>;
17                 };
18
19                 power-monitor@43 {
20                         compatible = "ti,ina3221";
21                         reg = <0x43>;
22                 };
23
24                 exp1: gpio@74 {
25                         compatible = "ti,tca9539";
26                         reg = <0x74>;
27
28                         interrupt-parent = <&gpio>;
29                         interrupts = <TEGRA186_MAIN_GPIO(Y, 0)
30                                       GPIO_ACTIVE_LOW>;
31
32                         #gpio-cells = <2>;
33                         gpio-controller;
34                 };
35
36                 exp2: gpio@77 {
37                         compatible = "ti,tca9539";
38                         reg = <0x77>;
39
40                         interrupt-parent = <&gpio>;
41                         interrupts = <TEGRA186_MAIN_GPIO(Y, 6)
42                                       GPIO_ACTIVE_LOW>;
43
44                         #gpio-cells = <2>;
45                         gpio-controller;
46                 };
47         };
48
49         /* SDMMC1 (SD/MMC) */
50         sdhci@3400000 {
51                 status = "okay";
52
53                 vmmc-supply = <&vdd_sd>;
54         };
55
56         hda@3510000 {
57                 nvidia,model = "jetson-tx2-hda";
58                 status = "okay";
59         };
60
61         pcie@10003000 {
62                 status = "okay";
63
64                 dvdd-pex-supply = <&vdd_pex>;
65                 hvdd-pex-pll-supply = <&vdd_1v8>;
66                 hvdd-pex-supply = <&vdd_1v8>;
67                 vddio-pexctl-aud-supply = <&vdd_1v8>;
68
69                 pci@1,0 {
70                         nvidia,num-lanes = <4>;
71                         status = "okay";
72                 };
73
74                 pci@2,0 {
75                         nvidia,num-lanes = <0>;
76                         status = "disabled";
77                 };
78
79                 pci@3,0 {
80                         nvidia,num-lanes = <1>;
81                         status = "disabled";
82                 };
83         };
84
85         host1x@13e00000 {
86                 status = "okay";
87
88                 dpaux@15040000 {
89                         status = "okay";
90                 };
91
92                 display-hub@15200000 {
93                         status = "okay";
94                 };
95
96                 dsi@15300000 {
97                         status = "disabled";
98                 };
99
100                 sor@15540000 {
101                         status = "disabled";
102
103                         nvidia,dpaux = <&dpaux1>;
104                 };
105
106                 sor@15580000 {
107                         status = "okay";
108
109                         avdd-io-supply = <&vdd_hdmi_1v05>;
110                         vdd-pll-supply = <&vdd_1v8_ap>;
111                         hdmi-supply = <&vdd_hdmi>;
112
113                         nvidia,ddc-i2c-bus = <&ddc>;
114                         nvidia,hpd-gpio = <&gpio TEGRA186_MAIN_GPIO(P, 1)
115                                                  GPIO_ACTIVE_LOW>;
116                 };
117
118                 dpaux@155c0000 {
119                         status = "okay";
120                 };
121         };
122
123         gpio-keys {
124                 compatible = "gpio-keys";
125
126                 power {
127                         label = "Power";
128                         gpios = <&gpio_aon TEGRA186_AON_GPIO(FF, 0)
129                                            GPIO_ACTIVE_LOW>;
130                         linux,input-type = <EV_KEY>;
131                         linux,code = <KEY_POWER>;
132                         debounce-interval = <10>;
133                         wakeup-event-action = <EV_ACT_ASSERTED>;
134                         wakeup-source;
135                 };
136
137                 volume-up {
138                         label = "Volume Up";
139                         gpios = <&gpio_aon TEGRA186_AON_GPIO(FF, 1)
140                                            GPIO_ACTIVE_LOW>;
141                         linux,input-type = <EV_KEY>;
142                         linux,code = <KEY_VOLUMEUP>;
143                         debounce-interval = <10>;
144                 };
145
146                 volume-down {
147                         label = "Volume Down";
148                         gpios = <&gpio_aon TEGRA186_AON_GPIO(FF, 2)
149                                            GPIO_ACTIVE_LOW>;
150                         linux,input-type = <EV_KEY>;
151                         linux,code = <KEY_VOLUMEDOWN>;
152                         debounce-interval = <10>;
153                 };
154         };
155
156         regulators {
157                 vdd_sd: regulator@100 {
158                         compatible = "regulator-fixed";
159                         reg = <100>;
160
161                         regulator-name = "SD_CARD_SW_PWR";
162                         regulator-min-microvolt = <3300000>;
163                         regulator-max-microvolt = <3300000>;
164
165                         gpio = <&gpio TEGRA186_MAIN_GPIO(P, 6)
166                                       GPIO_ACTIVE_HIGH>;
167                         enable-active-high;
168
169                         vin-supply = <&vdd_3v3_sys>;
170                 };
171
172                 vdd_hdmi: regulator@101 {
173                         compatible = "regulator-fixed";
174                         reg = <101>;
175
176                         regulator-name = "VDD_HDMI_5V0";
177                         regulator-min-microvolt = <5000000>;
178                         regulator-max-microvolt = <5000000>;
179
180                         gpio = <&exp1 14 GPIO_ACTIVE_HIGH>;
181                         enable-active-high;
182
183                         vin-supply = <&vdd_5v0_sys>;
184                 };
185         };
186 };