blob: 5c7b2deae5df9ea0e04e8f9f9459124c5e6cda7d [file] [log] [blame]
Svyatoslav Ryhel4c5fe372023-06-30 10:29:06 +03001// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4/* This dts file describes the HTC One X smartphone */
5/* CPU Speedo ID 4, Soc Speedo ID 1, CPU Process: 1, Core Process: 0 */
6
7#include <dt-bindings/input/input.h>
Svyatoslav Ryhel4c5fe372023-06-30 10:29:06 +03008#include "tegra30.dtsi"
9
10/ {
11 model = "HTC One X";
12 compatible = "htc,endeavoru", "nvidia,tegra30";
13
14 chosen {
15 stdout-path = &uarta;
16 };
17
18 aliases {
19 i2c0 = &pwr_i2c;
20
21 mmc0 = &sdmmc4; /* eMMC */
22
23 rtc0 = &pmic;
24 rtc1 = "/rtc@7000e000";
25
26 usb0 = &micro_usb;
27 };
28
29 memory {
30 device_type = "memory";
31 reg = <0x80000000 0x40000000>;
32 };
33
34 host1x@50000000 {
35 dc@54200000 {
36 clocks = <&tegra_car TEGRA30_CLK_DISP1>,
37 <&tegra_car TEGRA30_CLK_PLL_D_OUT0>;
38
39 rgb {
40 status = "okay";
41
42 nvidia,panel = <&dsia>;
43 };
44 };
45
46 dsia: dsi@54300000 {
47 status = "okay";
48
49 avdd-dsi-csi-supply = <&avdd_dsi_csi>;
50
51 panel = <&panel>;
52 };
53 };
54
55 uarta: serial@70006000 {
56 status = "okay";
57 };
58
59 pwr_i2c: i2c@7000d000 {
60 status = "okay";
61 clock-frequency = <100000>;
62
63 /* Texas Instruments TPS80032 PMIC */
64 pmic: tps80032@48 {
65 compatible = "ti,tps80032";
66 reg = <0x48>;
67
Svyatoslav Ryheld27e0012023-10-03 09:36:39 +030068 ti,system-power-controller;
69
Svyatoslav Ryhel4c5fe372023-06-30 10:29:06 +030070 regulators {
Svyatoslav Ryheld27e0012023-10-03 09:36:39 +030071 vdd_1v8_vio: smps5 {
72 regulator-name = "vdd_1v8_gen";
73 regulator-min-microvolt = <1800000>;
74 regulator-max-microvolt = <1800000>;
75 regulator-always-on;
76 regulator-boot-on;
77 };
78
Svyatoslav Ryhel4c5fe372023-06-30 10:29:06 +030079 /* DSI VDD */
80 avdd_dsi_csi: ldo1 {
81 regulator-name = "avdd_dsi_csi";
82 regulator-min-microvolt = <1200000>;
83 regulator-max-microvolt = <1200000>;
Svyatoslav Ryhel4c5fe372023-06-30 10:29:06 +030084 };
85 };
86 };
87 };
88
89 sdmmc4: sdhci@78000600 {
90 status = "okay";
91 bus-width = <8>;
92 non-removable;
Svyatoslav Ryheld27e0012023-10-03 09:36:39 +030093
94 vmmc-supply = <&vcore_emmc>;
95 vqmmc-supply = <&vdd_1v8_vio>;
Svyatoslav Ryhel4c5fe372023-06-30 10:29:06 +030096 };
97
98 micro_usb: usb@7d000000 {
99 status = "okay";
100 dr_mode = "otg";
101 };
102
103 backlight: backlight {
104 compatible = "nvidia,tegra-pwm-backlight";
105
106 nvidia,pwm-source = <1>;
107 nvidia,default-brightness = <0x8E>;
108 };
109
110 /* PMIC has a built-in 32KHz oscillator which is used by PMC */
111 clk32k_in: clock-32k {
112 compatible = "fixed-clock";
113 #clock-cells = <0>;
114 clock-frequency = <32768>;
115 clock-output-names = "pmic-oscillator";
116 };
117
118 gpio-keys {
119 compatible = "gpio-keys";
120
121 key-power {
122 label = "Power";
123 gpios = <&gpio TEGRA_GPIO(U, 6) GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_ENTER>;
125 };
126
127 key-volume-up {
128 label = "Volume Up";
129 gpios = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_LOW>;
130 linux,code = <KEY_UP>;
131 };
132
133 key-volume-down {
134 label = "Volume Down";
135 gpios = <&gpio TEGRA_GPIO(W, 3) GPIO_ACTIVE_LOW>;
136 linux,code = <KEY_DOWN>;
137 };
138 };
139
140 panel: panel {
141 compatible = "htc,edge-panel";
142
143 reset-gpios = <&gpio TEGRA_GPIO(N, 6) GPIO_ACTIVE_LOW>;
144
145 vdd-supply = <&vdd_3v3_panel>;
146 vddio-supply = <&vdd_1v8_panel>;
147
148 backlight = <&backlight>;
149 };
150
151 vcore_emmc: regulator-emmc {
152 compatible = "regulator-fixed";
153 regulator-name = "vdd_2v85_sdmmc";
154 regulator-min-microvolt = <2850000>;
155 regulator-max-microvolt = <2850000>;
156 gpio = <&gpio TEGRA_GPIO(M, 3) GPIO_ACTIVE_HIGH>;
157 enable-active-high;
158 };
159
160 vdd_3v3_panel: regulator-lcm {
161 compatible = "regulator-fixed";
162 regulator-name = "v_lcm_3v3";
163 regulator-min-microvolt = <3300000>;
164 regulator-max-microvolt = <3300000>;
165 gpio = <&gpio TEGRA_GPIO(E, 2) GPIO_ACTIVE_HIGH>;
166 enable-active-high;
167 };
168
169 vdd_1v8_panel: regulator-lcmio {
170 compatible = "regulator-fixed";
171 regulator-name = "v_lcmio_1v8";
172 regulator-min-microvolt = <1800000>;
173 regulator-max-microvolt = <1800000>;
174 gpio = <&gpio TEGRA_GPIO(E, 5) GPIO_ACTIVE_HIGH>;
175 enable-active-high;
176 };
177};