diff --git a/arch/arm/boot/dts/tegra30-microsoft-surface-rt-efi.dts b/arch/arm/boot/dts/tegra30-microsoft-surface-rt-efi.dts index ab3dc578b13b3..dbef66804de13 100644 --- a/arch/arm/boot/dts/tegra30-microsoft-surface-rt-efi.dts +++ b/arch/arm/boot/dts/tegra30-microsoft-surface-rt-efi.dts @@ -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 = ; + }; + }; }; &pmic { diff --git a/arch/arm/boot/dts/tegra30-microsoft-surface-rt.dts b/arch/arm/boot/dts/tegra30-microsoft-surface-rt.dts index 9d48e1177cd92..41912a7e857b6 100644 --- a/arch/arm/boot/dts/tegra30-microsoft-surface-rt.dts +++ b/arch/arm/boot/dts/tegra30-microsoft-surface-rt.dts @@ -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 = ; - }; - }; - i2c@7000c400 { status = "okay"; clock-frequency = <400000>; @@ -158,6 +138,14 @@ }; }; }; + + nct1008: temperature-sensor@4c { + compatible = "onnn,nct1008"; + reg = <0x4c>; + interrupt-parent = <&gpio>; + interrupts = ; + #thermal-sensor-cells = <1>; + }; }; spi@7000da00 { @@ -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 */ @@ -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"; @@ -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 = ; + linux,code = ; + linux,can-disable; + wakeup-source; + }; + }; /* IDT V103 */ lvds-encoder {