Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[linux-2.6-block.git] / arch / arm64 / boot / dts / nvidia / tegra186-p2771-0000.dts
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         gpio-keys {
78                 compatible = "gpio-keys";
79
80                 power {
81                         label = "Power";
82                         gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 0)
83                                            GPIO_ACTIVE_LOW>;
84                         linux,input-type = <EV_KEY>;
85                         linux,code = <KEY_POWER>;
86                         debounce-interval = <10>;
87                         wakeup-source;
88                 };
89
90                 volume-up {
91                         label = "Volume Up";
92                         gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 1)
93                                            GPIO_ACTIVE_LOW>;
94                         linux,input-type = <EV_KEY>;
95                         linux,code = <KEY_VOLUMEUP>;
96                         debounce-interval = <10>;
97                 };
98
99                 volume-down {
100                         label = "Volume Down";
101                         gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 2)
102                                            GPIO_ACTIVE_LOW>;
103                         linux,input-type = <EV_KEY>;
104                         linux,code = <KEY_VOLUMEDOWN>;
105                         debounce-interval = <10>;
106                 };
107         };
108
109         regulators {
110                 vdd_sd: regulator@100 {
111                         compatible = "regulator-fixed";
112                         reg = <100>;
113
114                         regulator-name = "SD_CARD_SW_PWR";
115                         regulator-min-microvolt = <3300000>;
116                         regulator-max-microvolt = <3300000>;
117
118                         gpio = <&gpio TEGRA_MAIN_GPIO(P, 6) GPIO_ACTIVE_HIGH>;
119                         enable-active-high;
120
121                         vin-supply = <&vdd_3v3_sys>;
122                 };
123         };
124 };