Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Svyatoslav Ryhel" <clamor95@gmail.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org,
	krzk+dt@kernel.org
Subject: Re: [PATCH v1 2/9 RESEND] ARM: tegra: lg-x3: Set PMIC's RTC address
Date: Tue, 12 May 2026 01:11:06 +0000	[thread overview]
Message-ID: <20260512011106.B7301C2BCFB@smtp.kernel.org> (raw)
In-Reply-To: <20260511074859.24930-3-clamor95@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The DT patch sets a non-standard RTC address (0x48) via a secondary `reg` property, but the rtc-max77686 driver ignores it and uses a hardcoded address (0x68). As a result, the commit fails to fix the RTC, leaving it non-functional.
--

commit 034a90db28ba53add991c38ac94042a85b474aec
Author: Svyatoslav Ryhel <clamor95@gmail.com>

ARM: tegra: lg-x3: Set PMIC's RTC address

This commit updates the device tree for LG X3 devices by adding a secondary
I2C address for the max77663 PMIC's RTC module. The intention is to
override the default RTC address because it is located at a non-standard
address on this board.

> diff --git a/arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi b/arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi
> --- a/arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi
> +++ b/arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi
> @@ -1297,7 +1297,8 @@ pwr_i2c: i2c@7000d000 {
>  
>  		pmic: max77663@1c {
>  			compatible = "maxim,max77663";
> -			reg = <0x1c>;
> +			reg = <0x1c>, <0x48>;
> +			reg-names = "pmic", "rtc";

Does the rtc-max77686 driver actually parse this secondary reg property?

Looking at the driver, it appears to use a hardcoded address via
devm_i2c_new_dummy_device(..., info->drv_data->rtc_i2c_addr), where
rtc_i2c_addr is fixed to 0x68.

Without companion changes to the driver to read the reg property or use
i2c_new_ancillary_device(), it seems the driver will still attempt to access
the RTC at 0x68 and ignore the 0x48 address specified here.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260511074859.24930-1-clamor95@gmail.com?part=2

  reply	other threads:[~2026-05-12  1:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-11  7:48 [PATCH v1 0/9 RESEND] ARM: tegra: complete a few Tegra30 device trees Svyatoslav Ryhel
2026-05-11  7:48 ` [PATCH v1 1/9 RESEND] ARM: tegra: lg-x3: Complete video device graph Svyatoslav Ryhel
2026-05-12  0:47   ` sashiko-bot
2026-05-11  7:48 ` [PATCH v1 2/9 RESEND] ARM: tegra: lg-x3: Set PMIC's RTC address Svyatoslav Ryhel
2026-05-12  1:11   ` sashiko-bot [this message]
2026-05-11  7:48 ` [PATCH v1 3/9 RESEND] ARM: tegra: p880: Lower CPU thermal limit Svyatoslav Ryhel
2026-05-11  7:48 ` [PATCH v1 4/9 RESEND] ARM: tegra: grouper: Add support for front camera Svyatoslav Ryhel
2026-05-12  1:58   ` sashiko-bot
2026-05-11  7:48 ` [PATCH v1 5/9 RESEND] ARM: tegra: transformer: " Svyatoslav Ryhel
2026-05-12  2:23   ` sashiko-bot
2026-05-11  7:48 ` [PATCH v1 6/9 RESEND] ARM: tegra: transformers: Add connector node for common trees Svyatoslav Ryhel
2026-05-12  2:40   ` sashiko-bot
2026-05-11  7:48 ` [PATCH v1 7/9 RESEND] ARM: tegra: tf600t: Configure panel Svyatoslav Ryhel
2026-05-12  3:27   ` sashiko-bot
2026-05-11  7:48 ` [PATCH v1 8/9 RESEND] ARM: tegra: tf600t: Drop backlight regulator Svyatoslav Ryhel
2026-05-11  7:48 ` [PATCH v1 9/9 RESEND] ARM: tegra: tf600t: Invert accelerometer calibration matrix Svyatoslav Ryhel
2026-05-12  3:39   ` sashiko-bot

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=20260512011106.B7301C2BCFB@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=clamor95@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko@lists.linux.dev \
    /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