mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Svyatoslav Ryhel <clamor95@gmail.com>
To: Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Thierry Reding <thierry.reding@gmail.com>,
	Jonathan Hunter <jonathanh@nvidia.com>,
	Svyatoslav Ryhel <clamor95@gmail.com>
Cc: devicetree@vger.kernel.org, linux-tegra@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v1 06/11] ARM: nvidia: tf701t: adjust sensors nodes
Date: Tue,  6 Aug 2024 15:39:01 +0300	[thread overview]
Message-ID: <20240806123906.161218-7-clamor95@gmail.com> (raw)
In-Reply-To: <20240806123906.161218-1-clamor95@gmail.com>

Complete and adjust magnetometer, thermal sensor, motion tracker,
power and light sensors according to available sources.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
 .../boot/dts/nvidia/tegra114-asus-tf701t.dts  | 21 ++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/nvidia/tegra114-asus-tf701t.dts b/arch/arm/boot/dts/nvidia/tegra114-asus-tf701t.dts
index 00c3325878b9..9408d6930e68 100644
--- a/arch/arm/boot/dts/nvidia/tegra114-asus-tf701t.dts
+++ b/arch/arm/boot/dts/nvidia/tegra114-asus-tf701t.dts
@@ -1158,7 +1158,14 @@ magnetometer@c {
 			compatible = "asahi-kasei,ak09911";
 			reg = <0xc>;
 
-			vdd-supply = <&vdd_3v3_sys>;
+			/* no DRDY (polling) */
+
+			vdd-supply = <&vdd_2v85_sen>;
+			vid-supply = <&vdd_1v8_vio>;
+
+			mount-matrix =  "0",  "1", "0",
+					"1",  "0", "0",
+					"0",  "0","-1";
 		};
 
 		rt5639: audio-codec@1c {
@@ -1175,7 +1182,10 @@ temp_sensor: temperature-sensor@4c {
 			compatible = "onnn,nct1008";
 			reg = <0x4c>;
 
-			vcc-supply = <&vdd_3v3_sys>;
+			interrupt-parent = <&gpio>;
+			interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_EDGE_FALLING>;
+
+			vcc-supply = <&vdd_1v8_vio>;
 			#thermal-sensor-cells = <1>;
 		};
 
@@ -1186,6 +1196,9 @@ motion-tracker@68 {
 			interrupt-parent = <&gpio>;
 			interrupts = <TEGRA_GPIO(R, 3) IRQ_TYPE_LEVEL_HIGH>;
 
+			vdd-supply = <&vdd_2v85_sen>;
+			vddio-supply = <&vdd_1v8_vio>;
+
 			mount-matrix =  "0", "-1", "0",
 					"1",  "0", "0",
 					"0",  "0", "1";
@@ -1199,6 +1212,8 @@ i2c@7000c400 {
 		power-sensor@44 {
 			compatible = "ti,ina230";
 			reg = <0x44>;
+
+			shunt-resistor = <5000>;
 		};
 	};
 
@@ -1210,7 +1225,7 @@ light-sensor@1c {
 			compatible = "dynaimage,al3320a";
 			reg = <0x1c>;
 
-			vdd-supply = <&vdd_3v3_sys>;
+			vdd-supply = <&vdd_1v8_vio>;
 		};
 	};
 
-- 
2.43.0


  parent reply	other threads:[~2024-08-06 12:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-06 12:38 [PATCH v1 00/11] Tegra114: complete TF701T device tree Svyatoslav Ryhel
2024-08-06 12:38 ` [PATCH v1 01/11] ARM: nvidia: tf701t: use unimomentary pinmux setup Svyatoslav Ryhel
2024-08-06 12:38 ` [PATCH v1 02/11] ARM: nvidia: tf701t: bind VDE device Svyatoslav Ryhel
2024-08-06 12:38 ` [PATCH v1 03/11] ARM: nvidia: tf701t: correct and complete PMIC and PMC bindings Svyatoslav Ryhel
2024-08-06 12:38 ` [PATCH v1 04/11] ARM: nvidia: tf701t: add HDMI bindings Svyatoslav Ryhel
2024-08-06 12:39 ` [PATCH v1 05/11] ARM: nvidia: tf701t: add Bluetooth node Svyatoslav Ryhel
2024-08-06 13:33   ` Krzysztof Kozlowski
2024-08-29 15:27     ` Thierry Reding
2024-08-06 12:39 ` Svyatoslav Ryhel [this message]
2024-08-06 12:39 ` [PATCH v1 07/11] ARM: nvidia: tf701t: complete sound bindings Svyatoslav Ryhel
2024-08-06 12:39 ` [PATCH v1 08/11] ARM: nvidia: tf701t: bind WIFI SDIO and EMMC Svyatoslav Ryhel
2024-08-06 12:39 ` [PATCH v1 09/11] ARM: nvidia: tf701t: re-group GPIO keys Svyatoslav Ryhel
2024-08-06 12:39 ` [PATCH v1 10/11] ARM: nvidia: tf701t: use dedicated backlight regulator Svyatoslav Ryhel
2024-08-06 12:39 ` [PATCH v1 11/11] ARM: nvidia: tf701t: configure USB Svyatoslav Ryhel
2024-08-06 13:43 ` [PATCH v1 00/11] Tegra114: complete TF701T device tree Rob Herring (Arm)
2024-08-29 15:26 ` Thierry Reding

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240806123906.161218-7-clamor95@gmail.com \
    --to=clamor95@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jonathanh@nvidia.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=thierry.reding@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®