From nobody Mon Feb 9 16:13:18 2026 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7929732D451 for ; Mon, 26 Jan 2026 10:15:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769422514; cv=none; b=EOhnkIQZ7Xke1AbNVxIBspqNUra5VRm7qV6l7AlcSbkewpqly0vv1MY9DtuJHOIt1/HgoLbEJb/JOzpfgW0rGcS23F4JanDTMpJovCoMEMwwglDu/fjjcU4Fh5raqzqQOzpxf+u4Lui+Oi+AYupDdYAzPpiQo1Ad6yeppcZCEk0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769422514; c=relaxed/simple; bh=99gnZcZxjVKePLKi790JFN3qskIt6IL6hQQaLwg09j4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uMkOJj+h3h4RU8XxilEVowAXsWiRhJSPV976zpOF3XjbLdAO8sPgc2sPUl6Cz3WJN2Xi7QYF6sDWCAUFNVzRJdpIvk+/pBv4aJlzDRpbCgE0nq002KW9KOCkfVHhH4B1JR+j1sTOhvT/GdeE+GCpM9fhlT18TFhY0aqA9clQeB4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bs5USPRo; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bs5USPRo" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-47f5c2283b6so32819145e9.1 for ; Mon, 26 Jan 2026 02:15:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769422511; x=1770027311; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nApJ7Qkf2Z+O7u87Az7F+sJc0V4S0WdNi4tOh3+T5Po=; b=bs5USPRok7e89JHN3GO/yTHMznKv6Cu2s11LbHYgyEfstouFKS7cEy5Sg/XKK/l1VM v2RMxWh9o9vVA92tbsKAu469lfn0Q6OQmuWcek3UsaySHK1Ha7htvfnx8UwLvy7jpETk 80N/Fh661LOp7TPwtqmp4geFpGCQxxPZbZixxpDEeYOVI5D5rimrCgKuLE5LVsd/hJGF xZJWKpijvInIgyof2ldgkxzy/dOcgQucdt5aHx/+sjQSXGJLIfVde73E+3+LHUxKTbGE lx+k4k032z6BxxToVeBKuctL8biMcuKeRNfJiS72sCvuwYVcHx1ogHCOp+bSmVp6YaHK Umww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769422511; x=1770027311; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=nApJ7Qkf2Z+O7u87Az7F+sJc0V4S0WdNi4tOh3+T5Po=; b=jQN8mqfrN6acoWimZ5B7zvklOK04uAO+rCxvMsgmmTQgG/bL4S/hca9bnNeKTBjYlf Nm5PYB8vtGx53y6FSWc/L+Wiqbg3eZxvTUBMfhNkuIyRtzEaSB/vhJUlf2J7acatadQL RNhb6t65vfFaUJCr1/IlXrdJ2ferrueUKWCIu3E3VIlZwlPMintq8AJq+9GcqrDU4weH RxgqDXJJPFrtIzRpfmZC0dZ16harlYC61HglC1H0awnq9k2zfHWEQ3mY/1PtsAZYMFsU Q7fDO8PaAaX6CB+Y7+6uDVajtoERGao9umEn4OC3TF9bv5smzko8qsQNjrTUuKEQRjPY UtVQ== X-Forwarded-Encrypted: i=1; AJvYcCXWmiXj7n4PSI8Q/C/11TANP2yNkGawqbDIvQZ685D05O7VJdZnKbc4Z3kWI14CW0hE0vfwbH9s9EmqezU=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5Ycjz8cG97ptzwVl1fqOGUlRdnuJkp1VMCKiH8TOtqTAqQdgL BSblDrpiCc62ipm19dYlzdurcVCfi38C0W4FmpxNa0Sz93s+iit2PDmb X-Gm-Gg: AZuq6aIKgEGzPb8YTWAW820KUA6etTMgyOJKMti4Gs2tcG5HUQQ6LQRsZGO9NWGnvr7 Z4GIWlUke6weHCFaQfM+3OWw/V3AW8U5O+4p3trYeeL58wxBvKT4pB8gN0XPRl5oteGTVus9bU3 hIxSiS1il3+p9xJLTdjMGXcKhnXxWdfETnqHzQpi7eBNNIXfv8QJpGgPaEbFOsjAugn3D3oj8pX Cd8bwaF1We5g/yKggq7BDjDgIntCNOX9UHyUt0t8Ms4ebuE2JobbVtRpH2wkg1+PsbRtH6Gderk 0P67GlfkxHLsHKaInkETOyvtzKzr/eVuCDYkB8kNVr78rhk5SLlHBsbeUH5wOmF5O36tBK45EM0 PzOgngW2BW+J3Byp8sh0Ye7ToeA4XCBGtoePxtK1txTUMzU439ao+lrC+MmpykT13oQi+drrVnz jj X-Received: by 2002:a05:600c:b86:b0:475:e067:f23d with SMTP id 5b1f17b1804b1-4805d0643d0mr68648265e9.25.1769422510747; Mon, 26 Jan 2026 02:15:10 -0800 (PST) Received: from xeon ([188.163.112.49]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4804d8a5c32sm319771795e9.11.2026.01.26.02.15.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jan 2026 02:15:10 -0800 (PST) From: Svyatoslav Ryhel To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Thierry Reding , Jonathan Hunter , Svyatoslav Ryhel , =?UTF-8?q?Jonas=20Schw=C3=B6bel?= Cc: devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] ARM: tegra: lg-x3: add USB and power related nodes Date: Mon, 26 Jan 2026 12:10:16 +0200 Message-ID: <20260126101018.24450-3-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260126101018.24450-1-clamor95@gmail.com> References: <20260126101018.24450-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add missing charger, MUIC and ADC sensor nodes. Reconfigure USB, set one of the ADC channels as the fuel gauge temperature sensor and add a battery thermal zone. Signed-off-by: Svyatoslav Ryhel --- arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi | 93 ++++++++++++++++++++- 1 file changed, 91 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi b/arch/arm/boot/dt= s/nvidia/tegra30-lg-x3.dtsi index 6eea8eacd7d5..768e201456d8 100644 --- a/arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi +++ b/arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi @@ -1070,6 +1070,38 @@ rmi4-f11@11 { syna,clip-y-low =3D <0>; }; }; + + max14526: muic@44 { + compatible =3D "maxim,max14526"; + reg =3D <0x44>; + + interrupt-parent =3D <&gpio>; + interrupts =3D ; + + muic_con: connector { + compatible =3D "usb-b-connector"; + label =3D "micro-USB"; + type =3D "micro"; + }; + + port { + #address-cells =3D <1>; + #size-cells =3D <0>; + + muic_to_charger: endpoint@0 { + reg =3D <0>; + remote-endpoint =3D <&charger_input>; + }; + }; + }; + + tsc2007: adc@48 { + compatible =3D "ti,tsc2007"; + reg =3D <0x48>; + + ti,x-plate-ohms =3D <1>; + #io-channel-cells =3D <1>; + }; }; =20 cam_i2c: i2c@7000c500 { @@ -1326,6 +1358,22 @@ ldo8 { }; }; =20 + max8971: charger@35 { + compatible =3D "maxim,max8971"; + reg =3D <0x35>; + + interrupt-parent =3D <&gpio>; + interrupts =3D ; + + monitored-battery =3D <&battery>; + + port { + charger_input: endpoint { + remote-endpoint =3D <&muic_to_charger>; + }; + }; + }; + fuel-gauge@36 { compatible =3D "maxim,max17043"; reg =3D <0x36>; @@ -1334,6 +1382,10 @@ fuel-gauge@36 { interrupts =3D ; =20 monitored-battery =3D <&battery>; + power-supplies =3D <&max8971>; + + io-channels =3D <&tbattery 0>; + io-channel-names =3D "temp"; =20 maxim,alert-low-soc-level =3D <10>; wakeup-source; @@ -1514,12 +1566,13 @@ sdmmc4: mmc@78000600 { usb@7d000000 { compatible =3D "nvidia,tegra30-udc"; status =3D "okay"; - dr_mode =3D "peripheral"; + dr_mode =3D "otg"; + extcon =3D <&max14526>, <&max14526>; }; =20 usb-phy@7d000000 { status =3D "okay"; - dr_mode =3D "peripheral"; + dr_mode =3D "otg"; nvidia,hssync-start-delay =3D <0>; nvidia,xcvr-lsfslew =3D <2>; nvidia,xcvr-lsrslew =3D <2>; @@ -1803,7 +1856,43 @@ sound { <&tegra_car TEGRA30_CLK_EXTERN1>; }; =20 + tbattery: thermal-sensor-battery { + compatible =3D "generic-adc-thermal"; + #thermal-sensor-cells =3D <0>; + + io-channels =3D <&tsc2007 4>; + io-channel-names =3D "sensor-channel"; + #io-channel-cells =3D <1>; + + temperature-lookup-table =3D < + (-50000) 4100 (-40000) 3980 (-30000) 3815 (-20000) 3610 + (-10000) 3285 0 2880 10000 2445 20000 1955 + 30000 1440 40000 1125 50000 840 60000 665 + 70000 465 80000 350 90000 230 100000 185 >; + }; + thermal-zones { + battery-thermal { + polling-delay-passive =3D <0>; /* milliseconds */ + polling-delay =3D <20000>; /* milliseconds */ + + thermal-sensors =3D <&tbattery>; + + trips { + battery-alert { + temperature =3D <55000>; + hysteresis =3D <2000>; + type =3D "hot"; + }; + + battery-crit { + temperature =3D <60000>; + hysteresis =3D <2000>; + type =3D "critical"; + }; + }; + }; + /* * NCT72 has two sensors: * --=20 2.51.0