From nobody Mon Feb 9 13:57:45 2026 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 3CF6E331A63 for ; Thu, 22 Jan 2026 15:27:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769095651; cv=none; b=bPKaaytPkPidxnKgOtAXVoDE1HAEj2gUkzj3zo4q1PoTR9FWiCx+oU0excYCPyFccEzcT+eM9KsFPGm/zPPWdtbDli7syqZQw1Wpty1fAWY91Z590KuL4NkGFqaOMoKLK/T5y07Z+YZUtGE9aJVHmrw9WYWgjyNkT9Zi9nsS0G8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769095651; c=relaxed/simple; bh=yf2aPzz4UTyPSbv5ojv4evhBkQRP5VUgGqfXtk4W1B4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oDhi0QAy0hSva6JOlFIXgZp/oZInXIt8AY7hNhsarzy/zJS+PUAcWZXNUuwpjSvIOwxcIimi6zFPud4h5KTRE5ekk1S+bxOFIzBpR03XERRbCECXq4G6U22uX8ar9tmRn4ZU2vsP+RbGUSlUoVweHQ319pzTnk726QgpPAY099k= 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=ksqyuMOY; arc=none smtp.client-ip=209.85.221.43 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="ksqyuMOY" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-432d256c2e6so1042455f8f.3 for ; Thu, 22 Jan 2026 07:27:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769095646; x=1769700446; 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=67NAYtQ7tXtXTvo7lx+0/H0CjnIzqwXkUlVV+IQgLuM=; b=ksqyuMOYIwgfDCPSSoeseMFgkSK5kWSvniEv5mZhiYgWBceFSkcddl3iirBvJ4f8LW fZY5Da2meXceBC6d8zvOhsVgNtQPv8MOCVmUPJ9iiGxP9Sejq77ialGjMHNxn8Cpi+rs OejtBMtAg6wNfFeraWCSNNXwD5O8qqMz7toNEdhrYsLvIYFCzmJVUKwM8thrjBPLgj6C R17pzl+ClmlJ0TYyfosqyfw+r+soOSwoGOVp7yC+x52jFahaiscEd3BKuiLZGoAztNp5 sEnq4uAg5GpDuxf/06qekwXm0gW4GlJFKKNOCBdqLpb0R3ioibNab1et+iQo5PUNj20b V55Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769095646; x=1769700446; 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=67NAYtQ7tXtXTvo7lx+0/H0CjnIzqwXkUlVV+IQgLuM=; b=Na5HCi1X499G1TPCkMZoOsSOrFnTknbVYX1PVz0bpP444jAXG2LqOT/dx8V5kXWA+o yEukn9j+T/2E5Om8syIUZFf8JwVIfaYaBoHRivfqNnq7DRcHPkJdsnOzaihum67XRxAK JDoQhwVh9NAO+WMNNFwk2sRqli4VjDrO81L5biTNG333IGgKZAbUtwPu+kaet12VyStS rHpUxuwn+dBfOFMUmyqVQy+YOqL4vK04eeuKvFIuvr/o101IL/TRbPztoKwVgPWr0U5U FxPpK8PaXqTwtWVkFcOby3rzCGEKKD7OikU0ktu/b33YrU7t0q0dzA4v8ScTc1YdJRhi Lkew== X-Forwarded-Encrypted: i=1; AJvYcCVObPRbJ2oqrzYQA9gVPYgeRBu2z+iPKFUvBRv4pwZy3HQzv06dSsCjcqCwUpdri79tcVstosWKo7j/Mmc=@vger.kernel.org X-Gm-Message-State: AOJu0YxEyZeisApGu3AS9stSOd9ZayvedFH4gVtCW6ccAXYv7DYVG0Nv ub0+FeEhQ2wnPzBOmsMd0EXBi0FAvdGHf1hg3X9PBIBm2DBhTtMqORgF X-Gm-Gg: AZuq6aKsbNREXj45WbYcipvmWSqySxFHQIbNROXrZSITd5FDABvsllFtTQaylSMj4F6 BbVViSHSSceGYCFpb/G7A78L2YRYm9Vpa7Hs19Ua+qEXRoQPcfBOqOO+P7Iy8MNIVYgEcLBZ/tk dWCZaRycO9SRbtkdF4Bzo/jtfjm/IjZThqetZPYjvKxjIyK8s0HiFkvBI9bS5wvDFmO4523MNbL QLazY4N6S7cDcJVMfJEjNh9NNSndGz9tBL4AOJMo0IleKRk+mY7R8hCHWN2Q3l/EyAtrn8qz5/i mep+tH2JhOs/HpT/Nn7z8yjdri/if4RRWhfD3952w1T84hHEQiwX1woDXQpKfmCrvySAajKldZA Mjys5hwrPPd1ZawUiYhoYD6PH2d9Zg2rhe+15Ey7z7DzGec6vNxgx/OIeXVnpB2IASfuYsN06vI FZ8ryJ4Rj4zMs= X-Received: by 2002:a05:6000:2303:b0:435:a363:f29e with SMTP id ffacd0b85a97d-435a363f552mr8627619f8f.11.1769095646287; Thu, 22 Jan 2026 07:27:26 -0800 (PST) Received: from xeon ([188.163.112.49]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4358f138e26sm20762642f8f.17.2026.01.22.07.27.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jan 2026 07:27:26 -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 v1 2/3] ARM: tegra: lg-x3: add USB and power related nodes Date: Thu, 22 Jan 2026 17:27:12 +0200 Message-ID: <20260122152713.8311-3-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260122152713.8311-1-clamor95@gmail.com> References: <20260122152713.8311-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 d71d1d6694f8..25c238562b9a 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