|
| 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 = &uarta; |
| 11 | + }; |
| 12 | + |
| 13 | + aliases { |
| 14 | + mmc0 = &sdmmc4; /* eMMC */ |
| 15 | + |
| 16 | + rtc1 = "/rtc@7000e000"; |
| 17 | + |
| 18 | + usb0 = &usb1; |
| 19 | + }; |
| 20 | + |
| 21 | + memory { |
| 22 | + device_type = "memory"; |
| 23 | + reg = <0x80000000 0x40000000>; |
| 24 | + }; |
| 25 | + |
| 26 | + uarta: serial@70006000 { |
| 27 | + status = "okay"; |
| 28 | + }; |
| 29 | + |
| 30 | + pwm: pwm@7000a000 { |
| 31 | + status = "okay"; |
| 32 | + }; |
| 33 | + |
| 34 | + sdmmc4: sdhci@78000600 { |
| 35 | + status = "okay"; |
| 36 | + bus-width = <8>; |
| 37 | + non-removable; |
| 38 | + }; |
| 39 | + |
| 40 | + usb1: usb@7d000000 { |
| 41 | + status = "okay"; |
| 42 | + dr_mode = "otg"; |
| 43 | + }; |
| 44 | + |
| 45 | + backlight: backlight { |
| 46 | + compatible = "pwm-backlight"; |
| 47 | + |
| 48 | + enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>; |
| 49 | + power-supply = <&vdd_5v0_bl>; |
| 50 | + pwms = <&pwm 0 50000>; |
| 51 | + |
| 52 | + brightness-levels = <0 4 8 16 32 64 128 255>; |
| 53 | + default-brightness-level = <6>; |
| 54 | + }; |
| 55 | + |
| 56 | + clocks { |
| 57 | + compatible = "simple-bus"; |
| 58 | + #address-cells = <1>; |
| 59 | + #size-cells = <0>; |
| 60 | + |
| 61 | + clk32k_in: clock@0 { |
| 62 | + compatible = "fixed-clock"; |
| 63 | + reg=<0>; |
| 64 | + #clock-cells = <0>; |
| 65 | + clock-frequency = <32768>; |
| 66 | + }; |
| 67 | + }; |
| 68 | + |
| 69 | + gpio-keyboard { |
| 70 | + compatible = "gpio-keys-input"; |
| 71 | + |
| 72 | + power { |
| 73 | + label = "Power"; |
| 74 | + gpios = <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_LOW>; |
| 75 | + linux,code = <KEY_ENTER>; |
| 76 | + }; |
| 77 | + |
| 78 | + volume-up { |
| 79 | + label = "Volume Up"; |
| 80 | + gpios = <&gpio TEGRA_GPIO(Q, 2) GPIO_ACTIVE_LOW>; |
| 81 | + linux,code = <KEY_UP>; |
| 82 | + }; |
| 83 | + |
| 84 | + volume-down { |
| 85 | + label = "Volume Down"; |
| 86 | + gpios = <&gpio TEGRA_GPIO(Q, 3) GPIO_ACTIVE_LOW>; |
| 87 | + linux,code = <KEY_DOWN>; |
| 88 | + }; |
| 89 | + }; |
| 90 | + |
| 91 | + panel: panel { |
| 92 | + compatible = "simple-panel"; |
| 93 | + |
| 94 | + power-supply = <&vdd_pnl_reg>; |
| 95 | + enable-gpios = <&gpio TEGRA_GPIO(N, 6) GPIO_ACTIVE_HIGH>; |
| 96 | + |
| 97 | + backlight = <&backlight>; |
| 98 | + }; |
| 99 | + |
| 100 | + regulators { |
| 101 | + compatible = "simple-bus"; |
| 102 | + #address-cells = <1>; |
| 103 | + #size-cells = <0>; |
| 104 | + |
| 105 | + vdd_pnl_reg: regulator@0 { |
| 106 | + compatible = "regulator-fixed"; |
| 107 | + reg = <0>; |
| 108 | + regulator-name = "vdd_panel"; |
| 109 | + regulator-min-microvolt = <3300000>; |
| 110 | + regulator-max-microvolt = <3300000>; |
| 111 | + gpio = <&gpio TEGRA_GPIO(W, 1) GPIO_ACTIVE_HIGH>; |
| 112 | + enable-active-high; |
| 113 | + }; |
| 114 | + |
| 115 | + vdd_5v0_bl: regulator@1 { |
| 116 | + compatible = "regulator-fixed"; |
| 117 | + reg = <1>; |
| 118 | + regulator-name = "vdd_5v0_bl"; |
| 119 | + regulator-min-microvolt = <5000000>; |
| 120 | + regulator-max-microvolt = <5000000>; |
| 121 | + regulator-boot-on; |
| 122 | + gpio = <&gpio TEGRA_GPIO(H, 3) GPIO_ACTIVE_HIGH>; |
| 123 | + enable-active-high; |
| 124 | + }; |
| 125 | + }; |
| 126 | +}; |
0 commit comments