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