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 = <TEGRA_MAIN_GPIO(Y, 0) GPIO_ACTIVE_LOW>;
30
31			#gpio-cells = <2>;
32			gpio-controller;
33		};
34
35		exp2: gpio@77 {
36			compatible = "ti,tca9539";
37			reg = <0x77>;
38
39			interrupt-parent = <&gpio>;
40			interrupts = <TEGRA_MAIN_GPIO(Y, 6) GPIO_ACTIVE_LOW>;
41
42			#gpio-cells = <2>;
43			gpio-controller;
44		};
45	};
46
47	/* SDMMC1 (SD/MMC) */
48	sdhci@3400000 {
49		status = "okay";
50
51		vmmc-supply = <&vdd_sd>;
52	};
53
54	hda@3510000 {
55		nvidia,model = "jetson-tx2-hda";
56		status = "okay";
57	};
58
59	pcie@10003000 {
60		status = "okay";
61
62		dvdd-pex-supply = <&vdd_pex>;
63		hvdd-pex-pll-supply = <&vdd_1v8>;
64		hvdd-pex-supply = <&vdd_1v8>;
65		vddio-pexctl-aud-supply = <&vdd_1v8>;
66
67		pci@1,0 {
68			nvidia,num-lanes = <4>;
69			status = "okay";
70		};
71
72		pci@2,0 {
73			nvidia,num-lanes = <0>;
74			status = "disabled";
75		};
76
77		pci@3,0 {
78			nvidia,num-lanes = <1>;
79			status = "disabled";
80		};
81	};
82
83	host1x@13e00000 {
84		status = "okay";
85
86		dpaux@15040000 {
87			status = "okay";
88		};
89
90		display-hub@15200000 {
91			status = "okay";
92		};
93
94		dsi@15300000 {
95			status = "disabled";
96		};
97
98		sor@15540000 {
99			status = "disabled";
100
101			nvidia,dpaux = <&dpaux1>;
102		};
103
104		sor@15580000 {
105			status = "okay";
106
107			avdd-io-supply = <&vdd_hdmi_1v05>;
108			vdd-pll-supply = <&vdd_1v8_ap>;
109			hdmi-supply = <&vdd_hdmi>;
110
111			nvidia,ddc-i2c-bus = <&ddc>;
112			nvidia,hpd-gpio = <&gpio TEGRA_MAIN_GPIO(P, 1) GPIO_ACTIVE_LOW>;
113		};
114
115		dpaux@155c0000 {
116			status = "okay";
117		};
118	};
119
120	gpio-keys {
121		compatible = "gpio-keys";
122
123		power {
124			label = "Power";
125			gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 0)
126					   GPIO_ACTIVE_LOW>;
127			linux,input-type = <EV_KEY>;
128			linux,code = <KEY_POWER>;
129			debounce-interval = <10>;
130			wakeup-event-action = <EV_ACT_ASSERTED>;
131			wakeup-source;
132		};
133
134		volume-up {
135			label = "Volume Up";
136			gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 1)
137					   GPIO_ACTIVE_LOW>;
138			linux,input-type = <EV_KEY>;
139			linux,code = <KEY_VOLUMEUP>;
140			debounce-interval = <10>;
141		};
142
143		volume-down {
144			label = "Volume Down";
145			gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 2)
146					   GPIO_ACTIVE_LOW>;
147			linux,input-type = <EV_KEY>;
148			linux,code = <KEY_VOLUMEDOWN>;
149			debounce-interval = <10>;
150		};
151	};
152
153	regulators {
154		vdd_sd: regulator@100 {
155			compatible = "regulator-fixed";
156			reg = <100>;
157
158			regulator-name = "SD_CARD_SW_PWR";
159			regulator-min-microvolt = <3300000>;
160			regulator-max-microvolt = <3300000>;
161
162			gpio = <&gpio TEGRA_MAIN_GPIO(P, 6) GPIO_ACTIVE_HIGH>;
163			enable-active-high;
164
165			vin-supply = <&vdd_3v3_sys>;
166		};
167
168		vdd_hdmi: regulator@101 {
169			compatible = "regulator-fixed";
170			reg = <101>;
171
172			regulator-name = "VDD_HDMI_5V0";
173			regulator-min-microvolt = <5000000>;
174			regulator-max-microvolt = <5000000>;
175
176			gpio = <&exp1 14 GPIO_ACTIVE_HIGH>;
177			enable-active-high;
178
179			vin-supply = <&vdd_5v0_sys>;
180		};
181	};
182};
183