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