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