Svyatoslav Ryhel | 7a25c38 | 2023-06-30 10:29:03 +0300 | [diff] [blame] | 1 | // 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 = &uarta; |
| 10 | }; |
| 11 | |
| 12 | aliases { |
| 13 | i2c0 = &pwr_i2c; |
| 14 | i2c1 = &gen1_i2c; |
| 15 | |
| 16 | mmc0 = &sdmmc4; /* eMMC */ |
| 17 | mmc1 = &sdmmc1; /* uSD slot */ |
| 18 | |
| 19 | rtc0 = &pmic; |
| 20 | rtc1 = "/rtc@7000e000"; |
| 21 | |
| 22 | usb0 = &usb1; |
| 23 | usb1 = &usb3; /* Dock 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 = <&panel>; |
| 37 | }; |
| 38 | }; |
| 39 | }; |
| 40 | |
| 41 | uarta: serial@70006000 { |
| 42 | status = "okay"; |
| 43 | }; |
| 44 | |
| 45 | pwm: pwm@7000a000 { |
| 46 | status = "okay"; |
| 47 | }; |
| 48 | |
| 49 | gen1_i2c: i2c@7000c000 { |
| 50 | status = "okay"; |
| 51 | clock-frequency = <100000>; |
| 52 | }; |
| 53 | |
| 54 | pwr_i2c: i2c@7000d000 { |
| 55 | status = "okay"; |
| 56 | clock-frequency = <400000>; |
| 57 | |
| 58 | /* Texas Instruments TPS659110 PMIC */ |
| 59 | pmic: tps65911@2d { |
| 60 | compatible = "ti,tps65911"; |
| 61 | reg = <0x2d>; |
| 62 | |
| 63 | interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; |
| 64 | #interrupt-cells = <2>; |
| 65 | interrupt-controller; |
| 66 | |
| 67 | ti,system-power-controller; |
| 68 | |
| 69 | #gpio-cells = <2>; |
| 70 | gpio-controller; |
| 71 | |
| 72 | regulators { |
| 73 | /* eMMC VDD */ |
| 74 | vcore_emmc: ldo1 { |
| 75 | regulator-name = "vdd_emmc_core"; |
| 76 | regulator-min-microvolt = <1000000>; |
| 77 | regulator-max-microvolt = <3300000>; |
| 78 | regulator-always-on; |
| 79 | }; |
| 80 | |
| 81 | /* uSD slot VDD */ |
| 82 | vdd_usd: ldo2 { |
| 83 | regulator-name = "vdd_usd"; |
| 84 | regulator-min-microvolt = <3100000>; |
| 85 | regulator-max-microvolt = <3100000>; |
| 86 | }; |
| 87 | |
| 88 | /* uSD slot VDDIO */ |
| 89 | vddio_usd: ldo3 { |
| 90 | regulator-name = "vddio_usd"; |
| 91 | regulator-min-microvolt = <1800000>; |
| 92 | regulator-max-microvolt = <3100000>; |
| 93 | }; |
| 94 | }; |
| 95 | }; |
| 96 | }; |
| 97 | |
| 98 | sdmmc1: sdhci@78000000 { |
| 99 | status = "okay"; |
| 100 | bus-width = <4>; |
| 101 | |
| 102 | cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>; |
| 103 | power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>; |
| 104 | |
| 105 | vmmc-supply = <&vdd_usd>; |
| 106 | vqmmc-supply = <&vddio_usd>; |
| 107 | }; |
| 108 | |
| 109 | sdmmc4: sdhci@78000600 { |
| 110 | status = "okay"; |
| 111 | bus-width = <8>; |
| 112 | non-removable; |
| 113 | }; |
| 114 | |
| 115 | /* USB via ASUS connector */ |
| 116 | usb1: usb@7d000000 { |
| 117 | status = "okay"; |
| 118 | dr_mode = "otg"; |
| 119 | }; |
| 120 | |
| 121 | /* Dock's USB port */ |
| 122 | usb3: usb@7d008000 { |
| 123 | status = "okay"; |
| 124 | }; |
| 125 | |
| 126 | backlight: backlight { |
| 127 | compatible = "pwm-backlight"; |
| 128 | |
| 129 | enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>; |
| 130 | power-supply = <&vdd_5v0_bl>; |
| 131 | pwms = <&pwm 0 4000000>; |
| 132 | |
| 133 | brightness-levels = <1 35 70 105 140 175 210 255>; |
| 134 | default-brightness-level = <5>; |
| 135 | }; |
| 136 | |
| 137 | /* PMIC has a built-in 32KHz oscillator which is used by PMC */ |
| 138 | clk32k_in: clock-32k { |
| 139 | compatible = "fixed-clock"; |
| 140 | #clock-cells = <0>; |
| 141 | clock-frequency = <32768>; |
| 142 | clock-output-names = "pmic-oscillator"; |
| 143 | }; |
| 144 | |
| 145 | gpio-keys { |
| 146 | compatible = "gpio-keys"; |
| 147 | |
| 148 | key-power { |
| 149 | label = "Power"; |
| 150 | gpios = <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_LOW>; |
| 151 | linux,code = <KEY_ENTER>; |
| 152 | }; |
| 153 | |
| 154 | key-volume-up { |
| 155 | label = "Volume Up"; |
| 156 | gpios = <&gpio TEGRA_GPIO(Q, 2) GPIO_ACTIVE_LOW>; |
| 157 | linux,code = <KEY_UP>; |
| 158 | }; |
| 159 | |
| 160 | key-volume-down { |
| 161 | label = "Volume Down"; |
| 162 | gpios = <&gpio TEGRA_GPIO(Q, 3) GPIO_ACTIVE_LOW>; |
| 163 | linux,code = <KEY_DOWN>; |
| 164 | }; |
| 165 | }; |
| 166 | |
| 167 | panel: panel { |
| 168 | compatible = "simple-panel"; |
| 169 | |
| 170 | power-supply = <&vdd_pnl_reg>; |
| 171 | enable-gpios = <&gpio TEGRA_GPIO(N, 6) GPIO_ACTIVE_HIGH>; |
| 172 | |
| 173 | backlight = <&backlight>; |
| 174 | |
| 175 | display-timings { |
| 176 | timing@0 { |
| 177 | /* 1280x800@60Hz */ |
| 178 | clock-frequency = <68000000>; |
| 179 | |
| 180 | hactive = <1280>; |
| 181 | hfront-porch = <48>; |
| 182 | hback-porch = <18>; |
| 183 | hsync-len = <30>; |
| 184 | |
| 185 | vactive = <800>; |
| 186 | vfront-porch = <3>; |
| 187 | vback-porch = <12>; |
| 188 | vsync-len = <5>; |
| 189 | }; |
| 190 | }; |
| 191 | }; |
| 192 | |
| 193 | vdd_pnl_reg: regulator-pnl { |
| 194 | compatible = "regulator-fixed"; |
| 195 | regulator-name = "vdd_panel"; |
| 196 | regulator-min-microvolt = <3300000>; |
| 197 | regulator-max-microvolt = <3300000>; |
| 198 | gpio = <&gpio TEGRA_GPIO(W, 1) GPIO_ACTIVE_HIGH>; |
| 199 | enable-active-high; |
| 200 | }; |
| 201 | |
| 202 | vdd_5v0_bl: regulator-bl { |
| 203 | compatible = "regulator-fixed"; |
| 204 | regulator-name = "vdd_5v0_bl"; |
| 205 | regulator-min-microvolt = <5000000>; |
| 206 | regulator-max-microvolt = <5000000>; |
| 207 | regulator-boot-on; |
| 208 | gpio = <&gpio TEGRA_GPIO(H, 3) GPIO_ACTIVE_HIGH>; |
| 209 | enable-active-high; |
| 210 | }; |
| 211 | }; |