Svyatoslav Ryhel | 4c5fe37 | 2023-06-30 10:29:06 +0300 | [diff] [blame] | 1 | // 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 Ryhel | 4c5fe37 | 2023-06-30 10:29:06 +0300 | [diff] [blame] | 8 | #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 = µ_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 Ryhel | d27e001 | 2023-10-03 09:36:39 +0300 | [diff] [blame] | 68 | ti,system-power-controller; |
| 69 | |
Svyatoslav Ryhel | 4c5fe37 | 2023-06-30 10:29:06 +0300 | [diff] [blame] | 70 | regulators { |
Svyatoslav Ryhel | d27e001 | 2023-10-03 09:36:39 +0300 | [diff] [blame] | 71 | 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 Ryhel | 4c5fe37 | 2023-06-30 10:29:06 +0300 | [diff] [blame] | 79 | /* DSI VDD */ |
| 80 | avdd_dsi_csi: ldo1 { |
| 81 | regulator-name = "avdd_dsi_csi"; |
| 82 | regulator-min-microvolt = <1200000>; |
| 83 | regulator-max-microvolt = <1200000>; |
Svyatoslav Ryhel | 8c8fb85 | 2023-08-26 18:35:35 +0300 | [diff] [blame] | 84 | regulator-boot-on; |
Svyatoslav Ryhel | 4c5fe37 | 2023-06-30 10:29:06 +0300 | [diff] [blame] | 85 | }; |
| 86 | }; |
| 87 | }; |
| 88 | }; |
| 89 | |
| 90 | sdmmc4: sdhci@78000600 { |
| 91 | status = "okay"; |
| 92 | bus-width = <8>; |
| 93 | non-removable; |
Svyatoslav Ryhel | d27e001 | 2023-10-03 09:36:39 +0300 | [diff] [blame] | 94 | |
| 95 | vmmc-supply = <&vcore_emmc>; |
| 96 | vqmmc-supply = <&vdd_1v8_vio>; |
Svyatoslav Ryhel | 4c5fe37 | 2023-06-30 10:29:06 +0300 | [diff] [blame] | 97 | }; |
| 98 | |
| 99 | micro_usb: usb@7d000000 { |
| 100 | status = "okay"; |
| 101 | dr_mode = "otg"; |
| 102 | }; |
| 103 | |
Svyatoslav Ryhel | 6c43861 | 2023-08-25 20:23:14 +0300 | [diff] [blame] | 104 | usb-phy@7d000000 { |
| 105 | status = "okay"; |
| 106 | nvidia,hssync-start-delay = <0>; |
| 107 | nvidia,xcvr-lsfslew = <2>; |
| 108 | nvidia,xcvr-lsrslew = <2>; |
| 109 | }; |
| 110 | |
Svyatoslav Ryhel | 4c5fe37 | 2023-06-30 10:29:06 +0300 | [diff] [blame] | 111 | backlight: backlight { |
| 112 | compatible = "nvidia,tegra-pwm-backlight"; |
| 113 | |
| 114 | nvidia,pwm-source = <1>; |
| 115 | nvidia,default-brightness = <0x8E>; |
| 116 | }; |
| 117 | |
| 118 | /* PMIC has a built-in 32KHz oscillator which is used by PMC */ |
| 119 | clk32k_in: clock-32k { |
| 120 | compatible = "fixed-clock"; |
| 121 | #clock-cells = <0>; |
| 122 | clock-frequency = <32768>; |
| 123 | clock-output-names = "pmic-oscillator"; |
| 124 | }; |
| 125 | |
| 126 | gpio-keys { |
| 127 | compatible = "gpio-keys"; |
| 128 | |
| 129 | key-power { |
| 130 | label = "Power"; |
| 131 | gpios = <&gpio TEGRA_GPIO(U, 6) GPIO_ACTIVE_LOW>; |
| 132 | linux,code = <KEY_ENTER>; |
| 133 | }; |
| 134 | |
| 135 | key-volume-up { |
| 136 | label = "Volume Up"; |
| 137 | gpios = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_LOW>; |
| 138 | linux,code = <KEY_UP>; |
| 139 | }; |
| 140 | |
| 141 | key-volume-down { |
| 142 | label = "Volume Down"; |
| 143 | gpios = <&gpio TEGRA_GPIO(W, 3) GPIO_ACTIVE_LOW>; |
| 144 | linux,code = <KEY_DOWN>; |
| 145 | }; |
| 146 | }; |
| 147 | |
| 148 | panel: panel { |
| 149 | compatible = "htc,edge-panel"; |
| 150 | |
| 151 | reset-gpios = <&gpio TEGRA_GPIO(N, 6) GPIO_ACTIVE_LOW>; |
| 152 | |
| 153 | vdd-supply = <&vdd_3v3_panel>; |
| 154 | vddio-supply = <&vdd_1v8_panel>; |
| 155 | |
| 156 | backlight = <&backlight>; |
| 157 | }; |
| 158 | |
| 159 | vcore_emmc: regulator-emmc { |
| 160 | compatible = "regulator-fixed"; |
| 161 | regulator-name = "vdd_2v85_sdmmc"; |
| 162 | regulator-min-microvolt = <2850000>; |
| 163 | regulator-max-microvolt = <2850000>; |
| 164 | gpio = <&gpio TEGRA_GPIO(M, 3) GPIO_ACTIVE_HIGH>; |
| 165 | enable-active-high; |
| 166 | }; |
| 167 | |
| 168 | vdd_3v3_panel: regulator-lcm { |
| 169 | compatible = "regulator-fixed"; |
| 170 | regulator-name = "v_lcm_3v3"; |
| 171 | regulator-min-microvolt = <3300000>; |
| 172 | regulator-max-microvolt = <3300000>; |
| 173 | gpio = <&gpio TEGRA_GPIO(E, 2) GPIO_ACTIVE_HIGH>; |
| 174 | enable-active-high; |
| 175 | }; |
| 176 | |
| 177 | vdd_1v8_panel: regulator-lcmio { |
| 178 | compatible = "regulator-fixed"; |
| 179 | regulator-name = "v_lcmio_1v8"; |
| 180 | regulator-min-microvolt = <1800000>; |
| 181 | regulator-max-microvolt = <1800000>; |
| 182 | gpio = <&gpio TEGRA_GPIO(E, 5) GPIO_ACTIVE_HIGH>; |
| 183 | enable-active-high; |
| 184 | }; |
| 185 | }; |