Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions arch/arm/boot/dts/tegra30-microsoft-surface-rt-efi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@
regulator-max-microvolt = <3300000>;
regulator-always-on;
};

cover-i2c {
compatible = "i2c-hotplug-gpio";

#address-cells = <1>;
#size-cells = <0>;

interrupts-extended = <&gpio TEGRA_GPIO(S,0) IRQ_TYPE_EDGE_BOTH>;
detect-gpios = <&gpio TEGRA_GPIO(S,0) GPIO_ACTIVE_HIGH>;

i2c-parent = <&i2c1>;

cover@0 {
compatible = "hid-over-i2c";
reg = <0x00>;
hid-descr-addr = <0x0041>;
interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(O, 5) IRQ_TYPE_LEVEL_LOW>;
};
};
};

&pmic {
Expand Down
56 changes: 36 additions & 20 deletions arch/arm/boot/dts/tegra30-microsoft-surface-rt.dts
Original file line number Diff line number Diff line change
Expand Up @@ -93,26 +93,6 @@
clock-frequency = <400000>;
};

cover-i2c {
compatible = "i2c-hotplug-gpio";

#address-cells = <1>;
#size-cells = <0>;

interrupts-extended = <&gpio TEGRA_GPIO(S,0) IRQ_TYPE_EDGE_BOTH>;
detect-gpios = <&gpio TEGRA_GPIO(S,0) GPIO_ACTIVE_HIGH>;

i2c-parent = <&i2c1>;

cover@0 {
compatible = "hid-over-i2c";
reg = <0x00>;
hid-descr-addr = <0x0041>;
interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(O, 5) IRQ_TYPE_LEVEL_LOW>;
};
};

i2c@7000c400 {
status = "okay";
clock-frequency = <400000>;
Expand Down Expand Up @@ -158,6 +138,14 @@
};
};
};

nct1008: temperature-sensor@4c {
compatible = "onnn,nct1008";
reg = <0x4c>;
interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(DD, 5) IRQ_TYPE_EDGE_FALLING>;
#thermal-sensor-cells = <1>;
};
};

spi@7000da00 {
Expand Down Expand Up @@ -190,6 +178,8 @@
vqmmc-supply = <&ldo5_reg>;
bus-width = <4>;
power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>;
cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
wp-gpios = <&gpio TEGRA_GPIO(T, 3) GPIO_ACTIVE_HIGH>;
};

/* internal 32/64GB eMMC - SDMMC-4 */
Expand All @@ -204,8 +194,19 @@
};

usb-phy@7d000000 {
vbus-supply = <&usb_vbus_reg>;
status = "okay";
};

usb_vbus_reg: regulator@103 {
compatible = "regulator-fixed";
regulator-name = "usb_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
gpio = <&gpio TEGRA_GPIO(EE, 0) GPIO_ACTIVE_HIGH>;
gpio-open-drain;
};

backlight: backlight {
compatible = "pwm-backlight";
Expand Down Expand Up @@ -270,6 +271,21 @@
debounce-interval = <10>;
};
};

gpio-hall-sensor {
compatible = "gpio-keys";

label = "GPIO Hall Effect Sensor";

hall-sensor {
label = "Hall Effect Sensor";
gpios = <&gpio TEGRA_GPIO(L, 1) GPIO_ACTIVE_HIGH>;
linux,input-type = <EV_SW>;
linux,code = <SW_LID>;
linux,can-disable;
wakeup-source;
};
};

/* IDT V103 */
lvds-encoder {
Expand Down