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