blob: 6e52fc5a53eeb54f91191aadd7a3ce183e60e264 [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 Ryhelfcb1d912023-06-30 10:29:05 +0300113 };
114 };
115 };
116 };
117
118 dsi_spi: spi@7000dc00 {
119 status = "okay";
120 spi-max-frequency = <25000000>;
121
122 bridge: bridge-spi@2 {
123 compatible = "solomon,ssd2825";
124 reg = <2>;
125
126 spi-cpol;
127 spi-cpha;
128
129 spi-max-frequency = <1000000>;
130
131 power-gpios = <&gpio TEGRA_GPIO(B, 1) GPIO_ACTIVE_HIGH>;
132 reset-gpios = <&gpio TEGRA_GPIO(O, 2) GPIO_ACTIVE_HIGH>;
133
134 clocks = <&ssd2825_refclk>;
135 clock-names = "tx_clk";
136
137 panel = <&panel>;
138 };
139 };
140
141 sdmmc4: sdhci@78000600 {
142 status = "okay";
143 bus-width = <8>;
144 non-removable;
145
146 vmmc-supply = <&vcore_emmc>;
147 vqmmc-supply = <&vdd_1v8_vio>;
148 };
149
150 micro_usb: usb@7d000000 {
151 status = "okay";
152 dr_mode = "otg";
153 };
154
155 /* PMIC has a built-in 32KHz oscillator which is used by PMC */
156 clk32k_in: clock-32k {
157 compatible = "fixed-clock";
158 #clock-cells = <0>;
159 clock-frequency = <32768>;
160 clock-output-names = "pmic-oscillator";
161 };
162
163 ssd2825_refclk: clock-ssd2825 {
164 compatible = "fixed-clock";
165 #clock-cells = <0>;
166 clock-frequency = <24000000>;
167 clock-output-names = "ssd2825-refclk";
168 };
169
170 gpio-keys {
171 compatible = "gpio-keys";
172
173 key-power {
174 label = "Power";
175 gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>;
176 linux,code = <KEY_ENTER>;
177 };
178
179 key-volume-down {
180 label = "Volume Down";
181 gpios = <&gpio TEGRA_GPIO(O, 4) GPIO_ACTIVE_LOW>;
182 linux,code = <KEY_DOWN>;
183 };
184 };
185};