Unverified Commit 5c4a5b36 authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

Merge tag 'tegra-for-5.17-arm-dt' of...

Merge tag 'tegra-for-5.17-arm-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into arm/dt

ARM: tegra: Changes for v5.17-rc1

A large part of this is cleanups to existing device trees in order to
improve validation of the device trees using the dt-schema tooling.

This also contains a set of new device trees for various boards that
have been contributed by community members as well as fixes to existing
devices.

* tag 'tegra-for-5.17-arm-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux: (55 commits)
  ARM: tegra: Add host1x hotflush reset on Tegra124
  ARM: tegra: Add memory client hotflush resets on Tegra114
  ARM: tegra: Add back gpio-ranges properties
  ARM: tegra: paz00: Enable S/PDIF and HDMI audio
  ARM: tegra: acer-a500: Enable S/PDIF and HDMI audio
  ARM: tegra: Add HDMI audio graph to Tegra20 device-tree
  ARM: tegra: Add S/PDIF node to Tegra20 device-tree
  ARM: tegra20/30: Disable unused host1x hardware
  ARM: tegra: Add Memory Client resets to Tegra30 GR2D, GR3D and Host1x
  ARM: tegra: Add Memory Client resets to Tegra20 GR2D, GR3D and Host1x
  ARM: tegra: Add OPP tables and power domains to Tegra30 device-trees
  ARM: tegra: Add OPP tables and power domains to Tegra20 device-trees
  ARM: tegra: Add 500 MHz entry to Tegra30 memory OPP table
  ARM: tegra: Enable video decoder on Tegra114
  ARM: tegra: nexus7: Use common LVDS display device-tree
  ARM: tegra: Add CPU thermal zones to Nyan device-tree
  ARM: tegra: Enable CPU DFLL on Nyan
  ARM: tegra: Enable HDMI CEC on Nyan
  ARM: tegra: Add usb-role-switch property to USB OTG ports
  ARM: tegra: Add device-tree for 1080p version of Nyan Big
  ...

Link: https://lore.kernel.org/r/20211217162253.1801077-5-thierry.reding@gmail.com


Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents 0fd31910 bd048487
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -1317,6 +1317,7 @@ dtb-$(CONFIG_MACH_SUNIV) += \
	suniv-f1c100s-licheepi-nano.dtb
dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += \
	tegra20-acer-a500-picasso.dtb \
	tegra20-asus-tf101.dtb \
	tegra20-harmony.dtb \
	tegra20-colibri-eval-v3.dtb \
	tegra20-colibri-iris.dtb \
@@ -1333,12 +1334,18 @@ dtb-$(CONFIG_ARCH_TEGRA_3x_SOC) += \
	tegra30-asus-nexus7-grouper-PM269.dtb \
	tegra30-asus-nexus7-grouper-E1565.dtb \
	tegra30-asus-nexus7-tilapia-E1565.dtb \
	tegra30-asus-tf201.dtb \
	tegra30-asus-tf300t.dtb \
	tegra30-asus-tf300tg.dtb \
	tegra30-asus-tf700t.dtb \
	tegra30-beaver.dtb \
	tegra30-cardhu-a02.dtb \
	tegra30-cardhu-a04.dtb \
	tegra30-colibri-eval-v3.dtb \
	tegra30-ouya.dtb
	tegra30-ouya.dtb \
	tegra30-pegatron-chagall.dtb
dtb-$(CONFIG_ARCH_TEGRA_114_SOC) += \
	tegra114-asus-tf701t.dtb \
	tegra114-dalmore.dtb \
	tegra114-roth.dtb \
	tegra114-tn7.dtb
@@ -1347,6 +1354,7 @@ dtb-$(CONFIG_ARCH_TEGRA_124_SOC) += \
	tegra124-apalis-v1.2-eval.dtb \
	tegra124-jetson-tk1.dtb \
	tegra124-nyan-big.dtb \
	tegra124-nyan-big-fhd.dtb \
	tegra124-nyan-blaze.dtb \
	tegra124-venice2.dtb
dtb-$(CONFIG_ARCH_U8500) += \
+807 −0
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0

/dts-v1/;

#include <dt-bindings/input/gpio-keys.h>
#include <dt-bindings/input/input.h>

#include "tegra114.dtsi"

/ {
	model = "Asus Transformer Pad TF701T";
	compatible = "asus,tf701t", "nvidia,tegra114";
	chassis-type = "convertible";

	aliases {
		mmc0 = "/mmc@78000600"; /* eMMC */
		mmc1 = "/mmc@78000400"; /* uSD slot */
		mmc2 = "/mmc@78000000"; /* WiFi */

		rtc0 = &palmas;
		rtc1 = "/rtc@7000e000";

		serial0 = &uartd; /* Console */
		serial1 = &uartc; /* Bluetooth */
		serial2 = &uartb; /* GPS */
	};

	memory@80000000 {
		reg = <0x80000000 0x80000000>;
	};

	reserved-memory {
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

		linux,cma@80000000 {
			compatible = "shared-dma-pool";
			alloc-ranges = <0x80000000 0x30000000>;
			size = <0x10000000>;
			linux,cma-default;
			reusable;
		};

		trustzone@bfe00000 {
			reg = <0xbfe00000 0x200000>;
			no-map;
		};
	};

	host1x@50000000 {
		dsi@54300000 {
			status = "okay";

			avdd-dsi-csi-supply = <&tps65913_ldo2>;

			nvidia,ganged-mode = <&dsib>;

			panel_primary: panel@0 {
				compatible = "sharp,lq101r1sx01";
				reg = <0>;

				link2 = <&panel_secondary>;

				power-supply = <&vdd_lcd>;
				backlight = <&backlight>;
			};
		};

		dsi@54400000 {
			status = "okay";

			avdd-dsi-csi-supply = <&tps65913_ldo2>;

			panel_secondary: panel@0 {
				compatible = "sharp,lq101r1sx01";
				reg = <0>;
			};
		};
	};

	pinmux@70000868 {
		asus_pad_ec_default: asus-pad-ec-default {
			ec-interrupt {
				nvidia,pins = "kb_col5_pq5";
				nvidia,function = "kbc";
				nvidia,pull = <TEGRA_PIN_PULL_UP>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			};

			ec-request {
				nvidia,pins = "kb_col2_pq2";
				nvidia,function = "kbc";
				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
			};
		};

		backlight_default: backlight-default {
			backlight-enable {
				nvidia,pins = "gmi_ad10_ph2";
				nvidia,function = "gmi";
				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
			};
		};

		codec_default: codec-default {
			ldo1-en {
				nvidia,pins = "sdmmc1_wp_n_pv3";
				nvidia,function = "sdmmc1";
				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
			};

			interrupt {
				nvidia,pins = "gpio_w2_aud_pw2",
						"gpio_w3_aud_pw3";
				nvidia,function = "spi6";
				nvidia,pull = <TEGRA_PIN_PULL_UP>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			};
		};

		gpio_keys_default: gpio-keys-default {
			power {
				nvidia,pins = "kb_col0_pq0";
				nvidia,function = "kbc";
				nvidia,pull = <TEGRA_PIN_PULL_UP>;
				nvidia,tristate = <TEGRA_PIN_ENABLE>;
				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			};

			volume {
				nvidia,pins = "kb_row1_pr1",
						"kb_row2_pr2";
				nvidia,function = "rsvd2";
				nvidia,pull = <TEGRA_PIN_PULL_UP>;
				nvidia,tristate = <TEGRA_PIN_ENABLE>;
				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			};
		};

		gpio_hall_sensor_default: gpio-hall-sensor-default {
			ulpi_data4_po5 {
				nvidia,pins = "ulpi_data4_po5";
				nvidia,function = "spi2";
				nvidia,pull = <TEGRA_PIN_PULL_UP>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			};
		};

		hp_det_default: hp-det-default {
			gmi_iordy_pi5 {
				nvidia,pins = "kb_row7_pr7";
				nvidia,function = "rsvd2";
				nvidia,pull = <TEGRA_PIN_PULL_UP>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			};
		};

		imu_default: imu-default {
			kb_row3_pr3 {
				nvidia,pins = "kb_row3_pr3";
				nvidia,function = "rsvd3";
				nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			};
		};

		pwm_default: pwm-default {
			gmi_ad9_ph1 {
				nvidia,pins = "gmi_ad9_ph1";
				nvidia,function = "pwm1";
				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
			};
		};

		/* XXX make this something more sensible */
		pwm_sleep: pwm-sleep {
			gmi_ad9_ph1 {
				nvidia,pins = "gmi_ad9_ph1";
				nvidia,function = "pwm1";
				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
			};
		};

		sdmmc3_default: sdmmc3-default {
			sdmmc3_clk_pa6 {
				nvidia,pins = "sdmmc3_clk_pa6";
				nvidia,function = "sdmmc3";
				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			};

			sdmmc3_cmd_pa7 {
				nvidia,pins = "sdmmc3_cmd_pa7",
						"sdmmc3_dat0_pb7",
						"sdmmc3_dat1_pb6",
						"sdmmc3_dat2_pb5",
						"sdmmc3_dat3_pb4",
						"kb_col4_pq4",
						"sdmmc3_clk_lb_out_pee4",
						"sdmmc3_clk_lb_in_pee5",
						"sdmmc3_cd_n_pv2";
				nvidia,function = "sdmmc3";
				nvidia,pull = <TEGRA_PIN_PULL_UP>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
			};

			drive_sdio3 {
				nvidia,pins = "drive_sdio3";
				nvidia,high-speed-mode = <TEGRA_PIN_ENABLE>;
				nvidia,schmitt = <TEGRA_PIN_DISABLE>;
				nvidia,pull-down-strength = <22>;
				nvidia,pull-up-strength = <36>;
				nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
				nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
			};
		};

		sdmmc3_vdd_default: sdmmc3-vdd-default {
			gmi_clk_pk1 {
				nvidia,pins = "gmi_clk_pk1";
				nvidia,function = "gmi";
				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
			};
		};

		vdd_lcd_default: vdd-lcd-default {
			sdmmc4_clk_pcc4 {
				nvidia,pins = "sdmmc4_clk_pcc4";
				nvidia,function = "sdmmc4";
				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
				nvidia,tristate = <TEGRA_PIN_DISABLE>;
				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
			};
		};
	};

	serial@70006040 {
		/* GPS */
	};

	serial@70006200 {
		/* Bluetooth */
	};

	serial@70006300 {
		status = "okay";
	};

	pwm@7000a000 {
		status = "okay";

		pinctrl-names = "default", "sleep";
		pinctrl-0 = <&pwm_default>;
		pinctrl-1 = <&pwm_sleep>;
	};

	i2c@7000c000 {
		status = "okay";
		clock-frequency = <100000>;

		magnetometer@c {
			compatible = "asahi-kasei,ak09911";
			reg = <0xc>;

			vdd-supply = <&vdd_3v3_sys>;
		};

		rt5639: audio-codec@1c {
			compatible = "realtek,rt5639";
			reg = <0x1c>;

			interrupt-parent = <&gpio>;
			interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_EDGE_FALLING>;

			realtek,ldo1-en-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;

			pinctrl-names = "default";
			pinctrl-0 = <&codec_default>;
		};

		motion-tracker@68 {
			compatible = "invensense,mpu6500";
			reg = <0x68>;

			interrupt-parent = <&gpio>;
			interrupts = <TEGRA_GPIO(R, 3) IRQ_TYPE_LEVEL_HIGH>;

			mount-matrix =  "0", "-1", "0",
					"1",  "0", "0",
					"0",  "0", "1";

			pinctrl-names = "default";
			pinctrl-0 = <&imu_default>;
		};

		temp_sensor: temperature-sensor@4c {
			compatible = "onnn,nct1008";
			reg = <0x4c>;

			vcc-supply = <&vdd_3v3_sys>;
			#thermal-sensor-cells = <1>;
		};
	};

	i2c@7000c400 {
		status = "okay";
		clock-frequency = <100000>;

		power-sensor@44 {
			compatible = "ti,ina230";
			reg = <0x44>;
		};
	};

	i2c@7000c500 {
		status = "okay";
		clock-frequency = <400000>;

		light-sensor@1c {
			compatible = "dynaimage,al3320a";
			reg = <0x1c>;

			vdd-supply = <&vdd_3v3_sys>;
		};
	};

	i2c@7000c700 {
		/* HDMI DDC */
	};

	i2c@7000d000 {
		status = "okay";
		clock-frequency = <400000>;

		palmas: pmic@58 {
			compatible = "ti,tps65913", "ti,palmas";
			reg = <0x58>;
			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;

			#interrupt-cells = <2>;
			interrupt-controller;

			ti,system-power-controller;

			palmas_gpio: gpio {
				compatible = "ti,palmas-gpio";
				gpio-controller;
				#gpio-cells = <2>;
			};

			pmic {
				compatible = "ti,tps65913-pmic", "ti,palmas-pmic";

				ldo1-in-supply = <&tps65913_smps7>;
				ldo2-in-supply = <&tps65913_smps7>;
				ldo4-in-supply = <&tps65913_smps8>;
				ldo5-in-supply = <&tps65913_smps9>;
				ldo6-in-supply = <&tps65913_smps9>;
				ldo7-in-supply = <&tps65913_smps9>;
				ldo9-in-supply = <&tps65913_smps9>;

				regulators {
					tps65913_smps123: smps123 {
						regulator-name = "vdd-cpu";
						regulator-min-microvolt = <900000>;
						regulator-max-microvolt = <1350000>;
						regulator-always-on;
						regulator-boot-on;
						ti,roof-floor = <1>;
						ti,mode-sleep = <3>;
					};

					tps65913_smps45: smps45 {
						regulator-name = "vdd-core";
						regulator-min-microvolt = <900000>;
						regulator-max-microvolt = <1400000>;
						regulator-always-on;
						regulator-boot-on;
						ti,roof-floor = <3>;
					};

					smps6 {
						regulator-name = "va-lcd-hv";
						regulator-min-microvolt = <1000000>;
						regulator-max-microvolt = <1000000>;
						regulator-always-on;
						regulator-boot-on;
					};

					tps65913_smps7: smps7 {
						regulator-name = "vdd-ddr";
						regulator-min-microvolt = <1350000>;
						regulator-max-microvolt = <1350000>;
						regulator-always-on;
						regulator-boot-on;
					};

					tps65913_smps8: smps8 {
						regulator-name = "vdd-1v8";
						regulator-min-microvolt = <1800000>;
						regulator-max-microvolt = <1800000>;
						regulator-always-on;
						regulator-boot-on;
					};

					tps65913_smps9: smps9 {
						regulator-name = "vdd-sd";
						regulator-min-microvolt = <2900000>;
						regulator-max-microvolt = <2900000>;
						regulator-always-on;
					};

					tps65913_smps10_out1: smps10_out1 {
						regulator-name = "vd-smps10-out1";
						regulator-min-microvolt = <5000000>;
						regulator-max-microvolt = <5000000>;
						regulator-always-on;
						regulator-boot-on;
					};

					tps65913_smps10_out2: smps10_out2 {
						regulator-name = "vd-smps10-out2";
						regulator-min-microvolt = <5000000>;
						regulator-max-microvolt = <5000000>;
						regulator-always-on;
						regulator-boot-on;
					};

					tps65913_ldo1: ldo1 {
						regulator-name = "vdd-hdmi-pll";
						regulator-min-microvolt = <1050000>;
						regulator-max-microvolt = <1050000>;
						regulator-always-on;
						ti,roof-floor = <3>;
					};

					tps65913_ldo2: ldo2 {
						regulator-name = "vdd-2v8-dsi-csi";
						regulator-min-microvolt = <1200000>;
						regulator-max-microvolt = <1200000>;
						regulator-boot-on;
					};

					ldo3 {
						regulator-name = "vpp-fuse";
						regulator-min-microvolt = <1800000>;
						regulator-max-microvolt = <1800000>;
					};

					ldo4 {
						regulator-name = "vdd-1v2-cam";
						regulator-min-microvolt = <1200000>;
						regulator-max-microvolt = <1200000>;
					};

					ldo5 {
						regulator-name = "vdd-cam";
						regulator-min-microvolt = <2800000>;
						regulator-max-microvolt = <2800000>;
					};

					ldo6 {
						regulator-name = "vdd-dev";
						regulator-min-microvolt = <2850000>;
						regulator-max-microvolt = <2850000>;
						regulator-boot-on;
					};

					ldo7 {
						regulator-name = "vdd-2v8-cam";
						regulator-min-microvolt = <2800000>;
						regulator-max-microvolt = <2800000>;
					};

					tps65913_ldo8: ldo8 {
						regulator-name = "vdd-rtc";
						regulator-min-microvolt = <950000>;
						regulator-max-microvolt = <950000>;
						regulator-always-on;
						regulator-boot-on;
						ti,enable-ldo8-tracking;
					};

					tps65913_ldo9: ldo9 {
						regulator-name = "vdd-sdmmc";
						regulator-min-microvolt = <1800000>;
						regulator-max-microvolt = <2900000>;
					};

					tps65913_ldoln: ldoln {
						regulator-name = "vdd-hdmi";
						regulator-min-microvolt = <3300000>;
						regulator-max-microvolt = <3300000>;
					};

					ldousb {
						regulator-name = "vdd-usb";
						regulator-min-microvolt = <3300000>;
						regulator-max-microvolt = <3300000>;
						regulator-always-on;
						regulator-boot-on;
					};
				};
			};

			rtc {
				compatible = "ti,palmas-rtc";
				interrupt-parent = <&palmas>;
				interrupts = <8 0>;
			};

			pinmux {
				compatible = "ti,tps65913-pinctrl";
				ti,palmas-enable-dvfs1;

				pinctrl-names = "default";
				pinctrl-0 = <&palmas_default>;

				palmas_default: pinmux {
					pin_powergood {
						pins = "powergood";
						function = "powergood";
					};

					pin_vac {
						pins = "vac";
						function = "vac";
					};

					pin_gpio0 {
						pins = "gpio0";
						function = "gpio";
					};

					pin_gpio1 {
						pins = "gpio1";
						function = "gpio";
					};

					pin_gpio2 {
						pins = "gpio2";
						function = "gpio";
					};

					pin_gpio3 {
						pins = "gpio3";
						function = "gpio";
					};

					pin_gpio4 {
						pins = "gpio4";
						function = "gpio";
					};

					pin_gpio5 {
						pins = "gpio5";
						function = "gpio";
					};

					pin_gpio6 {
						pins = "gpio6";
						function = "gpio";
					};

					pin_gpio7 {
						pins = "gpio7";
						function = "gpio";
					};
				};
			};
		};
	};

	ahub@70080000 {
		i2s@70080300 {
			status = "okay";
		};
	};

	mmc@78000000 {
		/* WiFi */
	};

	/* MicroSD card */
	mmc@78000400 {
		status = "okay";

		bus-width = <4>;
		cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;

		nvidia,default-tap = <0x3>;
		nvidia,default-trim = <0x3>;

		vmmc-supply = <&vdd_usd>;
		vqmmc-supply = <&tps65913_ldo9>;

		pinctrl-names = "default";
		pinctrl-0 = <&sdmmc3_default>;
	};

	mmc@78000600 {
		/* eMMC */
	};

	usb@7d000000 {
		compatible = "nvidia,tegra114-udc";
		status = "okay";
		dr_mode = "peripheral";

		/* Peripheral USB via ASUS connector */
	};

	usb-phy@7d000000 {
		status = "okay";
	};

	usb@7d008000 {
		status = "okay";

		/* Host USB via dock */
	};

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

	backlight: backlight {
		compatible = "pwm-backlight";

		enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
		power-supply = <&vdd_5v0_sys>;
		pwms = <&pwm 1 1000000>;

		brightness-levels = <1 255>;
		num-interpolated-steps = <254>;
		default-brightness-level = <224>;

		pinctrl-names = "default";
		pinctrl-0 = <&backlight_default>;
	};

	/* PMIC has a built-in 32KHz oscillator which is used by PMC */
	clk32k_in: clock-32k {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <32768>;
		clock-output-names = "pmic-oscillator";
	};

	firmware {
		trusted-foundations {
			compatible = "tlm,trusted-foundations";
			tlm,version-major = <2>;
			tlm,version-minor = <8>;
		};
	};

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

		label = "GPIO Buttons";

		pinctrl-names = "default";
		pinctrl-0 = <&gpio_keys_default>;

		power {
			label = "Power";
			gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
			linux,code = <KEY_POWER>;
			debounce-interval = <10>;
			wakeup-source;
		};

		volume-up {
			label = "Volume Up";
			gpios = <&gpio TEGRA_GPIO(R, 2) GPIO_ACTIVE_LOW>;
			linux,code = <KEY_VOLUMEUP>;
			debounce-interval = <10>;
		};

		volume-down {
			label = "Volume Down";
			gpios = <&gpio TEGRA_GPIO(R, 1) GPIO_ACTIVE_LOW>;
			linux,code = <KEY_VOLUMEDOWN>;
			debounce-interval = <10>;
		};
	};

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

		label = "GPIO Hall Effect Sensor";

		pinctrl-names = "default";
		pinctrl-0 = <&gpio_hall_sensor_default>;

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

	sound {
		compatible = "asus,tegra-audio-rt5639-tf701t",
			     "nvidia,tegra-audio-rt5640";
		nvidia,model = "Asus Transformer Pad TF701T RT5639";

		nvidia,audio-routing =
			"Headphones", "HPOR",
			"Headphones", "HPOL",
			"Speakers", "SPORP",
			"Speakers", "SPORN",
			"Speakers", "SPOLP",
			"Speakers", "SPOLN",
			"Mic Jack", "MICBIAS1",
			"IN2P", "Mic Jack";

		nvidia,i2s-controller = <&tegra_i2s0>;
		nvidia,audio-codec = <&rt5639>;

		nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_LOW>;

		clocks = <&tegra_car TEGRA114_CLK_PLL_A>,
			 <&tegra_car TEGRA114_CLK_PLL_A_OUT0>,
			 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
		clock-names = "pll_a", "pll_a_out0", "mclk";

		assigned-clocks = <&tegra_car TEGRA114_CLK_EXTERN1>,
				  <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;

		assigned-clock-parents = <&tegra_car TEGRA114_CLK_PLL_A_OUT0>,
					 <&tegra_car TEGRA114_CLK_EXTERN1>;

		pinctrl-names = "default";
		pinctrl-0 = <&hp_det_default>;
	};

	vdd_5v0_sys: regulator-5v0-sys {
		compatible = "regulator-fixed";
		regulator-name = "vdd_5v0";
		regulator-min-microvolt = <5000000>;
		regulator-max-microvolt = <5000000>;
		regulator-always-on;
		regulator-boot-on;
	};

	vdd_3v3_sys: regulator-3v3-sys {
		compatible = "regulator-fixed";
		regulator-name = "vdd_3v3";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-always-on;
		regulator-boot-on;
	};

	vdd_lcd: regulator-vdd-lcd {
		compatible = "regulator-fixed";
		regulator-name = "vdd_lcd_1v8";
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
		vin-supply = <&tps65913_smps8>;
		enable-active-high;
		gpio = <&gpio TEGRA_GPIO(CC, 4) GPIO_ACTIVE_HIGH>;
		regulator-boot-on;

		pinctrl-names = "default";
		pinctrl-0 = <&vdd_lcd_default>;
	};

	vdd_usd: regulator-vdd-usd {
		compatible = "regulator-fixed";
		regulator-name = "vdd_sd_slot";
		regulator-min-microvolt = <2900000>;
		regulator-max-microvolt = <2900000>;
		vin-supply = <&tps65913_smps9>;
		enable-active-high;
		gpio = <&gpio TEGRA_GPIO(K, 1) GPIO_ACTIVE_HIGH>;

		pinctrl-names = "default";
		pinctrl-0 = <&sdmmc3_vdd_default>;
	};
};
+11 −10
Original line number Diff line number Diff line
@@ -894,7 +894,7 @@ ldo2 {
		};

		palmas: tps65913@58 {
			compatible = "ti,palmas";
			compatible = "ti,tps65913", "ti,palmas";
			reg = <0x58>;
			interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>;

@@ -1084,7 +1084,8 @@ pin_gpio6 {
	spi@7000da00 {
		status = "okay";
		spi-max-frequency = <25000000>;
		spi-flash@0 {

		flash@0 {
			compatible = "winbond,w25q32dw", "jedec,spi-nor";
			reg = <0>;
			spi-max-frequency = <20000000>;
@@ -1151,7 +1152,7 @@ backlight: backlight {
		default-brightness-level = <6>;
	};

	clk32k_in: clock@0 {
	clk32k_in: clock-32k {
		compatible = "fixed-clock";
		clock-frequency = <32768>;
		#clock-cells = <0>;
@@ -1186,7 +1187,7 @@ volume_up {
		};
	};

	vdd_ac_bat_reg: regulator@0 {
	vdd_ac_bat_reg: regulator-acbat {
		compatible = "regulator-fixed";
		regulator-name = "vdd_ac_bat";
		regulator-min-microvolt = <5000000>;
@@ -1194,7 +1195,7 @@ vdd_ac_bat_reg: regulator@0 {
		regulator-always-on;
	};

	dvdd_ts_reg: regulator@1 {
	dvdd_ts_reg: regulator-ts {
		compatible = "regulator-fixed";
		regulator-name = "dvdd_ts";
		regulator-min-microvolt = <1800000>;
@@ -1203,7 +1204,7 @@ dvdd_ts_reg: regulator@1 {
		gpio = <&gpio TEGRA_GPIO(H, 5) GPIO_ACTIVE_HIGH>;
	};

	usb1_vbus_reg: regulator@3 {
	usb1_vbus_reg: regulator-usb1 {
		compatible = "regulator-fixed";
		regulator-name = "usb1_vbus";
		regulator-min-microvolt = <5000000>;
@@ -1214,7 +1215,7 @@ usb1_vbus_reg: regulator@3 {
		vin-supply = <&tps65090_dcdc1_reg>;
	};

	usb3_vbus_reg: regulator@4 {
	usb3_vbus_reg: regulator-usb3 {
		compatible = "regulator-fixed";
		regulator-name = "usb2_vbus";
		regulator-min-microvolt = <5000000>;
@@ -1225,7 +1226,7 @@ usb3_vbus_reg: regulator@4 {
		vin-supply = <&tps65090_dcdc1_reg>;
	};

	vdd_hdmi_reg: regulator@5 {
	vdd_hdmi_reg: regulator-hdmi {
		compatible = "regulator-fixed";
		regulator-name = "vdd_hdmi_5v0";
		regulator-min-microvolt = <5000000>;
@@ -1233,7 +1234,7 @@ vdd_hdmi_reg: regulator@5 {
		vin-supply = <&tps65090_dcdc1_reg>;
	};

	vdd_cam_1v8_reg: regulator@6 {
	vdd_cam_1v8_reg: regulator-cam {
		compatible = "regulator-fixed";
		regulator-name = "vdd_cam_1v8_reg";
		regulator-min-microvolt = <1800000>;
@@ -1242,7 +1243,7 @@ vdd_cam_1v8_reg: regulator@6 {
		gpio = <&palmas_gpio 6 0>;
	};

	vdd_5v0_hdmi: regulator@7 {
	vdd_5v0_hdmi: regulator-hdmicon {
		compatible = "regulator-fixed";
		regulator-name = "VDD_5V0_HDMI_CON";
		regulator-min-microvolt = <5000000>;
+8 −8
Original line number Diff line number Diff line
@@ -801,7 +801,7 @@ regulator@43 {
		};

		palmas: pmic@58 {
			compatible = "ti,palmas";
			compatible = "ti,tps65913", "ti,palmas";
			reg = <0x58>;
			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;

@@ -1016,7 +1016,7 @@ backlight: backlight {
		enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
	};

	clk32k_in: clock@0 {
	clk32k_in: clock-32k {
		compatible = "fixed-clock";
		clock-frequency = <32768>;
		#clock-cells = <0>;
@@ -1045,7 +1045,7 @@ power {
		};
	};

	lcd_bl_en: regulator@0 {
	lcd_bl_en: regulator-lcden {
		compatible = "regulator-fixed";
		regulator-name = "lcd_bl_en";
		regulator-min-microvolt = <5000000>;
@@ -1053,7 +1053,7 @@ lcd_bl_en: regulator@0 {
		regulator-boot-on;
	};

	vdd_lcd: regulator@1 {
	vdd_lcd: regulator-lcd {
		compatible = "regulator-fixed";
		regulator-name = "vdd_lcd_1v8";
		regulator-min-microvolt = <1800000>;
@@ -1064,7 +1064,7 @@ vdd_lcd: regulator@1 {
		regulator-boot-on;
	};

	regulator@2 {
	regulator-1v8ts {
		compatible = "regulator-fixed";
		regulator-name = "vdd_1v8_ts";
		regulator-min-microvolt = <1800000>;
@@ -1073,7 +1073,7 @@ regulator@2 {
		regulator-boot-on;
	};

	regulator@3 {
	regulator-3v3ts {
		compatible = "regulator-fixed";
		regulator-name = "vdd_3v3_ts";
		regulator-min-microvolt = <3300000>;
@@ -1083,7 +1083,7 @@ regulator@3 {
		regulator-boot-on;
	};

	regulator@4 {
	regulator-1v8com {
		compatible = "regulator-fixed";
		regulator-name = "vdd_1v8_com";
		regulator-min-microvolt = <1800000>;
@@ -1094,7 +1094,7 @@ regulator@4 {
		regulator-boot-on;
	};

	regulator@5 {
	regulator-3v3com {
		compatible = "regulator-fixed";
		regulator-name = "vdd_3v3_com";
		regulator-min-microvolt = <3300000>;
+5 −5
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ i2c@7000d000 {
		clock-frequency = <400000>;

		palmas: pmic@58 {
			compatible = "ti,palmas";
			compatible = "ti,tps65913", "ti,palmas";
			reg = <0x58>;
			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;

@@ -273,7 +273,7 @@ backlight: backlight {
		power-supply = <&lcd_bl_en>;
	};

	clk32k_in: clock@0 {
	clk32k_in: clock-32k {
		compatible = "fixed-clock";
		clock-frequency = <32768>;
		#clock-cells = <0>;
@@ -303,7 +303,7 @@ volume_up {
	};

	/* FIXME: output of BQ24192 */
	vs_sys: regulator@0 {
	vs_sys: regulator-vs {
		compatible = "regulator-fixed";
		regulator-name = "VS_SYS";
		regulator-min-microvolt = <4200000>;
@@ -312,7 +312,7 @@ vs_sys: regulator@0 {
		regulator-boot-on;
	};

	lcd_bl_en: regulator@1 {
	lcd_bl_en: regulator-lcden {
		compatible = "regulator-fixed";
		regulator-name = "VDD_LCD_BL";
		regulator-min-microvolt = <16500000>;
@@ -323,7 +323,7 @@ lcd_bl_en: regulator@1 {
		regulator-boot-on;
	};

	vdd_lcd: regulator@2 {
	vdd_lcd: regulator-lcd {
		compatible = "regulator-fixed";
		regulator-name = "VD_LCD_1V8";
		regulator-min-microvolt = <1800000>;
Loading