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