199575bceSJoseph Lo/dts-v1/;
299575bceSJoseph Lo
359686a92SThierry Reding#include <dt-bindings/input/linux-event-codes.h>
459686a92SThierry Reding
599575bceSJoseph Lo#include "tegra186-p3310.dtsi"
699575bceSJoseph Lo
799575bceSJoseph Lo/ {
899575bceSJoseph Lo	model = "NVIDIA Tegra186 P2771-0000 Development Board";
999575bceSJoseph Lo	compatible = "nvidia,p2771-0000", "nvidia,tegra186";
10b0ddea85SThierry Reding
11b693b3d7SThierry Reding	i2c@3160000 {
12b693b3d7SThierry Reding		power-monitor@42 {
13b693b3d7SThierry Reding			compatible = "ti,ina3221";
14b693b3d7SThierry Reding			reg = <0x42>;
15b693b3d7SThierry Reding		};
16b693b3d7SThierry Reding
17b693b3d7SThierry Reding		power-monitor@43 {
18b693b3d7SThierry Reding			compatible = "ti,ina3221";
19b693b3d7SThierry Reding			reg = <0x43>;
20b693b3d7SThierry Reding		};
21b693b3d7SThierry Reding	};
22b693b3d7SThierry Reding
23b0ddea85SThierry Reding	/* SDMMC1 (SD/MMC) */
24b0ddea85SThierry Reding	sdhci@3400000 {
25b0ddea85SThierry Reding		status = "okay";
26b0ddea85SThierry Reding
27b0ddea85SThierry Reding		vmmc-supply = <&vdd_sd>;
28b0ddea85SThierry Reding	};
29b0ddea85SThierry Reding
3059686a92SThierry Reding	gpio-keys {
3159686a92SThierry Reding		compatible = "gpio-keys";
3259686a92SThierry Reding
3359686a92SThierry Reding		power {
3459686a92SThierry Reding			label = "Power";
3559686a92SThierry Reding			gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 0)
3659686a92SThierry Reding					   GPIO_ACTIVE_LOW>;
3759686a92SThierry Reding			linux,input-type = <EV_KEY>;
3859686a92SThierry Reding			linux,code = <KEY_POWER>;
3959686a92SThierry Reding			debounce-interval = <10>;
4059686a92SThierry Reding			wakeup-source;
4159686a92SThierry Reding		};
4259686a92SThierry Reding
4359686a92SThierry Reding		volume-up {
4459686a92SThierry Reding			label = "Volume Up";
4559686a92SThierry Reding			gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 1)
4659686a92SThierry Reding					   GPIO_ACTIVE_LOW>;
4759686a92SThierry Reding			linux,input-type = <EV_KEY>;
4859686a92SThierry Reding			linux,code = <KEY_VOLUMEUP>;
4959686a92SThierry Reding			debounce-interval = <10>;
5059686a92SThierry Reding		};
5159686a92SThierry Reding
5259686a92SThierry Reding		volume-down {
5359686a92SThierry Reding			label = "Volume Down";
5459686a92SThierry Reding			gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 2)
5559686a92SThierry Reding					   GPIO_ACTIVE_LOW>;
5659686a92SThierry Reding			linux,input-type = <EV_KEY>;
5759686a92SThierry Reding			linux,code = <KEY_VOLUMEDOWN>;
5859686a92SThierry Reding			debounce-interval = <10>;
5959686a92SThierry Reding		};
6059686a92SThierry Reding	};
6159686a92SThierry Reding
62b0ddea85SThierry Reding	regulators {
63b0ddea85SThierry Reding		vdd_sd: regulator@100 {
64b0ddea85SThierry Reding			compatible = "regulator-fixed";
65b0ddea85SThierry Reding			reg = <100>;
66b0ddea85SThierry Reding
67b0ddea85SThierry Reding			regulator-name = "SD_CARD_SW_PWR";
68b0ddea85SThierry Reding			regulator-min-microvolt = <3300000>;
69b0ddea85SThierry Reding			regulator-max-microvolt = <3300000>;
70b0ddea85SThierry Reding
71b0ddea85SThierry Reding			gpio = <&gpio TEGRA_MAIN_GPIO(P, 6) GPIO_ACTIVE_HIGH>;
72b0ddea85SThierry Reding			enable-active-high;
73b0ddea85SThierry Reding
74b0ddea85SThierry Reding			vin-supply = <&vdd_3v3_sys>;
75b0ddea85SThierry Reding		};
76b0ddea85SThierry Reding	};
7799575bceSJoseph Lo};
78