blob: b0b999996c7652cf134d5b536d464bb47ab2f72e [file] [log] [blame]
#include "tegra124.dtsi"
/ {
gpio: gpio@6000d000 {
gpio-init-names = "default";
gpio-init-0 = <&gpio_default>;
gpio_default: default {
gpio-input = < TEGRA_GPIO(C, 7)
TEGRA_GPIO(G, 2)
TEGRA_GPIO(G, 3)
TEGRA_GPIO(H, 4)
TEGRA_GPIO(I, 5)
TEGRA_GPIO(I, 6)
TEGRA_GPIO(J, 0)
TEGRA_GPIO(K, 2)
TEGRA_GPIO(K, 3)
TEGRA_GPIO(N, 7)
TEGRA_GPIO(O, 2)
TEGRA_GPIO(O, 3)
TEGRA_GPIO(O, 5)
TEGRA_GPIO(O, 7)
TEGRA_GPIO(Q, 1)
TEGRA_GPIO(Q, 6)
TEGRA_GPIO(Q, 7)
TEGRA_GPIO(R, 4)
TEGRA_GPIO(S, 0)
TEGRA_GPIO(S, 1)
TEGRA_GPIO(S, 4)
TEGRA_GPIO(U, 2)
TEGRA_GPIO(U, 5)
TEGRA_GPIO(U, 6)
TEGRA_GPIO(V, 0)
TEGRA_GPIO(V, 1)
TEGRA_GPIO(W, 2)
/*key*/
TEGRA_GPIO(Q, 0)
TEGRA_GPIO(Q, 5)
TEGRA_GPIO(V, 2)
/*key*/
/*headset*/
TEGRA_GPIO(S, 2)
TEGRA_GPIO(W, 3)
TEGRA_GPIO(B, 0)
/*headset*/
TEGRA_GPIO(BB, 6)
TEGRA_GPIO(BB, 7)
TEGRA_GPIO(CC, 1)
TEGRA_GPIO(CC, 2)>;
gpio-output-low = <TEGRA_GPIO(G, 0)
TEGRA_GPIO(G, 1)
TEGRA_GPIO(H, 2)
TEGRA_GPIO(H, 3)
TEGRA_GPIO(H, 5)
TEGRA_GPIO(H, 6)
TEGRA_GPIO(H, 7)
TEGRA_GPIO(I, 0)
/*key*/
TEGRA_GPIO(I, 3)
/*key*/
TEGRA_GPIO(I, 4)
/*headset*/
TEGRA_GPIO(J, 7)
TEGRA_GPIO(S, 3)
/*headset*/
TEGRA_GPIO(K, 0)
TEGRA_GPIO(K, 1)
TEGRA_GPIO(K, 5)
TEGRA_GPIO(O, 0)
TEGRA_GPIO(O, 6)
TEGRA_GPIO(Q, 3)
TEGRA_GPIO(R, 1)
TEGRA_GPIO(R, 2)
TEGRA_GPIO(R, 5)
TEGRA_GPIO(S, 3)
TEGRA_GPIO(S, 6)
TEGRA_GPIO(U, 3)
TEGRA_GPIO(V, 3)
TEGRA_GPIO(X, 1)
TEGRA_GPIO(X, 3)
TEGRA_GPIO(X, 4)
TEGRA_GPIO(X, 5)
TEGRA_GPIO(X, 7)
TEGRA_GPIO(BB, 3)
TEGRA_GPIO(BB, 5)
TEGRA_GPIO(CC, 5)
TEGRA_GPIO(EE, 1)>;
gpio-output-high = <TEGRA_GPIO(B, 4)
TEGRA_GPIO(I, 2)
TEGRA_GPIO(K, 4)
TEGRA_GPIO(S, 5)
TEGRA_GPIO(R, 0)
TEGRA_GPIO(R, 3)
TEGRA_GPIO(X, 2)
TEGRA_GPIO(Q, 2)
/*headset*/
TEGRA_GPIO(Q, 4)
/*headset*/
TEGRA_GPIO(EE, 5)>;
};
};
host1x {
dsi {
nvidia,dsi-controller-vs = <1>;
status = "okay";
};
};
serial@70006000 {
compatible = "nvidia,tegra114-hsuart";
status = "okay";
};
serial@70006040 {
compatible = "nvidia,tegra114-hsuart";
status = "okay";
};
serial@70006200 {
compatible = "nvidia,tegra114-hsuart";
status = "okay";
};
serial@70006300 {
compatible = "nvidia,tegra114-hsuart";
status = "okay";
};
memory@0x80000000 {
device_type = "memory";
reg = <0x80000000 0x80000000>;
};
i2c@7000c000 {
status = "okay";
clock-frequency = <400000>;
};
i2c@7000c400 {
status = "okay";
clock-frequency = <400000>;
};
i2c@7000c500 {
status = "okay";
clock-frequency = <400000>;
};
i2c@7000c700 {
status = "okay";
clock-frequency = <400000>;
};
i2c@7000d000 {
status = "okay";
clock-frequency = <400000>;
nvidia,bit-banging-xfer-after-shutdown;
/include/ "tegra124-flounder-power.dtsi"
};
i2c@7000d100 {
status = "okay";
clock-frequency = <400000>;
};
spi@7000d400 {
status = "okay";
spi-max-frequency = <25000000>;
};
spi@7000d800 {
status = "okay";
spi-max-frequency = <25000000>;
};
spi@7000da00 {
status = "okay";
spi-max-frequency = <25000000>;
};
spi@7000dc00 {
status = "okay";
spi-max-frequency = <25000000>;
};
gpio-keys {
compatible = "gpio-keys";
power {
label = "Power";
gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
linux,code = <KEY_POWER>;
gpio-key,wakeup;
debounce-interval = <20>;
};
volume_down {
label = "Volume Down";
gpios = <&gpio TEGRA_GPIO(Q, 5) GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEDOWN>;
debounce-interval = <20>;
};
volume_up {
label = "Volume Up";
gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEUP>;
debounce-interval = <20>;
};
};
regulators {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
vdd_ac_bat_reg: regulator@0 {
compatible = "regulator-fixed";
reg = <0>;
regulator-name = "vdd_ac_bat";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
consumers {
c1 {
regulator-consumer-supply = "vdd_sys_bl";
};
};
};
usb0_vbus: regulator@1 {
compatible = "regulator-fixed-sync";
reg = <1>;
regulator-name = "usb0-vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio 108 0>; /* TEGRA_PN4 */
enable-active-high;
gpio-open-drain;
consumers {
c1 {
regulator-consumer-supply = "usb_vbus0";
regulator-consumer-device = "tegra-xhci";
};
};
};
usb1_vbus: regulator@2 {
compatible = "regulator-fixed-sync";
reg = <2>;
regulator-name = "usb1-vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
gpio = <&gpio 109 0>; /* TEGRA_PN5 */
gpio-open-drain;
vin-supply = <&palmas_smps10_out2>;
consumers {
c1 {
regulator-consumer-supply = "usb_vbus";
regulator-consumer-device = "tegra-ehci.1";
};
c2 {
regulator-consumer-supply = "usb_vbus1";
regulator-consumer-device = "tegra-xhci";
};
};
};
usb2_vbus: regulator@3 {
compatible = "regulator-fixed-sync";
reg = <3>;
regulator-name = "usb2-vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
gpio = <&gpio 249 0>; /* TEGRA_PFF1 */
gpio-open-drain;
vin-supply = <&palmas_smps10_out2>;
consumers {
c1 {
regulator-consumer-supply = "usb_vbus";
regulator-consumer-device = "tegra-ehci.2";
};
c2 {
regulator-consumer-supply = "usb_vbus2";
regulator-consumer-device = "tegra-xhci";
};
};
};
avdd_lcd: regulator@4 {
compatible = "regulator-fixed-sync";
reg = <4>;
regulator-name = "avdd-lcd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&palmas_gpio 3 0>;
enable-active-high;
vin-supply = <&palmas_smps9>;
consumers {
c1 {
regulator-consumer-supply = "avdd_lcd";
};
};
};
vdd_lcd: regulator@5 {
compatible = "regulator-fixed-sync";
reg = <5>;
regulator-name = "vdd-lcd";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
enable-active-high;
gpio = <&palmas_gpio 4 0>;
vin-supply = <&palmas_smps8>;
consumers {
c1 {
regulator-consumer-supply = "vdd_lcd_1v2_s";
};
};
};
ldoen: regulator@6 {
compatible = "regulator-fixed-sync";
reg = <6>;
regulator-name = "ldoen";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1200000>;
enable-active-high;
gpio = <&palmas_gpio 6 0>;
vin-supply = <&palmas_smps8>;
consumers {
c1 {
regulator-consumer-supply = "ldoen";
regulator-consumer-device = "1-0052";
};
};
};
vpp_fuse: regulator@7 {
compatible = "regulator-fixed-sync";
reg = <7>;
regulator-name = "vpp-fuse";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
enable-active-high;
gpio = <&palmas_gpio 7 0>;
vin-supply = <&palmas_smps8>;
consumers {
c1 {
regulator-consumer-supply = "vpp_fuse";
};
};
};
en_lcd_bl: regulator@8 {
compatible = "regulator-fixed-sync";
reg = <8>;
regulator-name = "en-lcd-bl";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
gpio = <&gpio 134 0>; /* TEGRA_PQ6 */
consumers {
c1 {
regulator-consumer-supply = "vdd_lcd_bl_en";
};
};
};
};
};