blob: aa207a70c7ee4b5cf5641448c5f02dc875655d88 [file] [log] [blame]
Svyatoslav Ryhelfcb1d912023-06-30 10:29:05 +03001// SPDX-License-Identifier: GPL-2.0
2
3#include <dt-bindings/input/input.h>
Svyatoslav Ryhelfcb1d912023-06-30 10:29:05 +03004#include "tegra30.dtsi"
5
6/ {
7 chosen {
8 stdout-path = &uartd;
9 };
10
11 aliases {
12 i2c0 = &pwr_i2c;
13 i2c1 = &gen2_i2c;
14
15 mmc0 = &sdmmc4; /* eMMC */
16
17 rtc0 = &pmic;
18 rtc1 = "/rtc@7000e000";
19
20 spi0 = &dsi_spi;
21
22 usb0 = &micro_usb;
23 };
24
25 memory {
26 device_type = "memory";
27 reg = <0x80000000 0x40000000>;
28 };
29
30 host1x@50000000 {
31 dc@54200000 {
32 rgb {
33 status = "okay";
34
35 nvidia,panel = <&bridge>;
36 };
37 };
38 };
39
40 uartd: serial@70006300 {
41 status = "okay";
42 };
43
44 gen2_i2c: i2c@7000c400 {
45 status = "okay";
46 clock-frequency = <400000>;
47
48 backlight: lm3533@36 {
49 compatible = "ti,lm3533";
50 reg = <0x36>;
51
52 enable-gpios = <&gpio TEGRA_GPIO(N, 6) GPIO_ACTIVE_HIGH>;
53 default-brightness-level = <128>;
54 };
55
56 muic@44 {
57 compatible = "maxim,max14526-muic";
58 reg = <0x44>;
59
60 maxim,ap-usb;
61
62 usif-gpios = <&gpio TEGRA_GPIO(Y, 3) GPIO_ACTIVE_HIGH>;
63 dp2t-gpios = <&gpio TEGRA_GPIO(CC, 2) GPIO_ACTIVE_HIGH>;
64 };
65 };
66
67 pwr_i2c: i2c@7000d000 {
68 status = "okay";
69 clock-frequency = <400000>;
70
71 pmic: max77663@1c {
72 compatible = "maxim,max77663";
73 reg = <0x1c>;
74
75 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
76 #interrupt-cells = <2>;
77 interrupt-controller;
78
79 #gpio-cells = <2>;
80 gpio-controller;
81
82 system-power-controller;
83
84 regulators {
85 vdd_1v8_vio: sd2 {
86 regulator-name = "vdd_1v8_gen";
87 regulator-min-microvolt = <1800000>;
88 regulator-max-microvolt = <1800000>;
89 regulator-always-on;
90 regulator-boot-on;
91 };
92
Svyatoslav Ryhel8d4c8822023-10-03 09:36:40 +030093 avdd_3v3_periph: ldo2 {
94 regulator-name = "avdd_usb";
95 regulator-min-microvolt = <3300000>;
96 regulator-max-microvolt = <3300000>;
97 regulator-always-on;
98 regulator-boot-on;
99 };
100
Svyatoslav Ryhelfcb1d912023-06-30 10:29:05 +0300101 vdd_usd: ldo3 {
102 regulator-name = "vdd_sdmmc3";
103 regulator-min-microvolt = <3000000>;
104 regulator-max-microvolt = <3000000>;
105 regulator-always-on;
106 regulator-boot-on;
107 };
108
109 vcore_emmc: ldo5 {
110 regulator-name = "vdd_ddr_rx";
111 regulator-min-microvolt = <2850000>;
112 regulator-max-microvolt = <2850000>;
Svyatoslav Ryhel19756932023-08-26 18:32:55 +0300113 regulator-boot-on;
Svyatoslav Ryhelfcb1d912023-06-30 10:29:05 +0300114 };
115 };
116 };
117 };
118
119 dsi_spi: spi@7000dc00 {
120 status = "okay";
121 spi-max-frequency = <25000000>;
122
123 bridge: bridge-spi@2 {
124 compatible = "solomon,ssd2825";
125 reg = <2>;
126
127 spi-cpol;
128 spi-cpha;
129
130 spi-max-frequency = <1000000>;
131
132 power-gpios = <&gpio TEGRA_GPIO(B, 1) GPIO_ACTIVE_HIGH>;
133 reset-gpios = <&gpio TEGRA_GPIO(O, 2) GPIO_ACTIVE_HIGH>;
134
135 clocks = <&ssd2825_refclk>;
136 clock-names = "tx_clk";
137
138 panel = <&panel>;
139 };
140 };
141
142 sdmmc4: sdhci@78000600 {
143 status = "okay";
144 bus-width = <8>;
145 non-removable;
146
147 vmmc-supply = <&vcore_emmc>;
148 vqmmc-supply = <&vdd_1v8_vio>;
149 };
150
151 micro_usb: usb@7d000000 {
152 status = "okay";
153 dr_mode = "otg";
154 };
155
156 /* PMIC has a built-in 32KHz oscillator which is used by PMC */
157 clk32k_in: clock-32k {
158 compatible = "fixed-clock";
159 #clock-cells = <0>;
160 clock-frequency = <32768>;
161 clock-output-names = "pmic-oscillator";
162 };
163
164 ssd2825_refclk: clock-ssd2825 {
165 compatible = "fixed-clock";
166 #clock-cells = <0>;
167 clock-frequency = <24000000>;
168 clock-output-names = "ssd2825-refclk";
169 };
170
171 gpio-keys {
172 compatible = "gpio-keys";
173
174 key-power {
175 label = "Power";
176 gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>;
177 linux,code = <KEY_ENTER>;
178 };
179
180 key-volume-down {
181 label = "Volume Down";
182 gpios = <&gpio TEGRA_GPIO(O, 4) GPIO_ACTIVE_LOW>;
183 linux,code = <KEY_DOWN>;
184 };
185 };
186};