Commit | Line | Data |
---|---|---|
b2441318 | 1 | // SPDX-License-Identifier: GPL-2.0 |
99575bce JL |
2 | /dts-v1/; |
3 | ||
59686a92 TR |
4 | #include <dt-bindings/input/linux-event-codes.h> |
5 | ||
99575bce JL |
6 | #include "tegra186-p3310.dtsi" |
7 | ||
8 | / { | |
9 | model = "NVIDIA Tegra186 P2771-0000 Development Board"; | |
10 | compatible = "nvidia,p2771-0000", "nvidia,tegra186"; | |
b0ddea85 | 11 | |
b693b3d7 TR |
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 | }; | |
b27d5250 TR |
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 | }; | |
b693b3d7 TR |
44 | }; |
45 | ||
b0ddea85 TR |
46 | /* SDMMC1 (SD/MMC) */ |
47 | sdhci@3400000 { | |
48 | status = "okay"; | |
49 | ||
50 | vmmc-supply = <&vdd_sd>; | |
51 | }; | |
52 | ||
59686a92 TR |
53 | gpio-keys { |
54 | compatible = "gpio-keys"; | |
55 | ||
56 | power { | |
57 | label = "Power"; | |
58 | gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 0) | |
59 | GPIO_ACTIVE_LOW>; | |
60 | linux,input-type = <EV_KEY>; | |
61 | linux,code = <KEY_POWER>; | |
62 | debounce-interval = <10>; | |
63 | wakeup-source; | |
64 | }; | |
65 | ||
66 | volume-up { | |
67 | label = "Volume Up"; | |
68 | gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 1) | |
69 | GPIO_ACTIVE_LOW>; | |
70 | linux,input-type = <EV_KEY>; | |
71 | linux,code = <KEY_VOLUMEUP>; | |
72 | debounce-interval = <10>; | |
73 | }; | |
74 | ||
75 | volume-down { | |
76 | label = "Volume Down"; | |
77 | gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 2) | |
78 | GPIO_ACTIVE_LOW>; | |
79 | linux,input-type = <EV_KEY>; | |
80 | linux,code = <KEY_VOLUMEDOWN>; | |
81 | debounce-interval = <10>; | |
82 | }; | |
83 | }; | |
84 | ||
b0ddea85 TR |
85 | regulators { |
86 | vdd_sd: regulator@100 { | |
87 | compatible = "regulator-fixed"; | |
88 | reg = <100>; | |
89 | ||
90 | regulator-name = "SD_CARD_SW_PWR"; | |
91 | regulator-min-microvolt = <3300000>; | |
92 | regulator-max-microvolt = <3300000>; | |
93 | ||
94 | gpio = <&gpio TEGRA_MAIN_GPIO(P, 6) GPIO_ACTIVE_HIGH>; | |
95 | enable-active-high; | |
96 | ||
97 | vin-supply = <&vdd_3v3_sys>; | |
98 | }; | |
99 | }; | |
99575bce | 100 | }; |