1/dts-v1/;
2
3#include <dt-bindings/input/linux-event-codes.h>
4
5#include "tegra186-p3310.dtsi"
6
7/ {
8	model = "NVIDIA Tegra186 P2771-0000 Development Board";
9	compatible = "nvidia,p2771-0000", "nvidia,tegra186";
10
11	i2c@3160000 {
12		power-monitor@42 {
13			compatible = "ti,ina3221";
14			reg = <0x42>;
15		};
16
17		power-monitor@43 {
18			compatible = "ti,ina3221";
19			reg = <0x43>;
20		};
21	};
22
23	/* SDMMC1 (SD/MMC) */
24	sdhci@3400000 {
25		status = "okay";
26
27		vmmc-supply = <&vdd_sd>;
28	};
29
30	gpio-keys {
31		compatible = "gpio-keys";
32
33		power {
34			label = "Power";
35			gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 0)
36					   GPIO_ACTIVE_LOW>;
37			linux,input-type = <EV_KEY>;
38			linux,code = <KEY_POWER>;
39			debounce-interval = <10>;
40			wakeup-source;
41		};
42
43		volume-up {
44			label = "Volume Up";
45			gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 1)
46					   GPIO_ACTIVE_LOW>;
47			linux,input-type = <EV_KEY>;
48			linux,code = <KEY_VOLUMEUP>;
49			debounce-interval = <10>;
50		};
51
52		volume-down {
53			label = "Volume Down";
54			gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 2)
55					   GPIO_ACTIVE_LOW>;
56			linux,input-type = <EV_KEY>;
57			linux,code = <KEY_VOLUMEDOWN>;
58			debounce-interval = <10>;
59		};
60	};
61
62	regulators {
63		vdd_sd: regulator@100 {
64			compatible = "regulator-fixed";
65			reg = <100>;
66
67			regulator-name = "SD_CARD_SW_PWR";
68			regulator-min-microvolt = <3300000>;
69			regulator-max-microvolt = <3300000>;
70
71			gpio = <&gpio TEGRA_MAIN_GPIO(P, 6) GPIO_ACTIVE_HIGH>;
72			enable-active-high;
73
74			vin-supply = <&vdd_3v3_sys>;
75		};
76	};
77};
78