All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Fainelli <florian.fainelli@broadcom.com>
To: William Zhang <william.zhang@broadcom.com>,
	Linus Walleij <linusw@kernel.org>
Cc: "Anand Gore" <anand.gore@broadcom.com>,
	"Kursad Oney" <kursad.oney@broadcom.com>,
	"Rafał Miłecki" <rafal@milecki.pl>,
	"Broadcom internal kernel review list"
	<bcm-kernel-feedback-list@broadcom.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 6/7] ARM: dts: bcm63138: Add I2C block
Date: Mon, 16 Mar 2026 13:53:35 -0700	[thread overview]
Message-ID: <cde82a14-671d-4dea-9212-740467dce128@broadcom.com> (raw)
In-Reply-To: <CAHi4H7EeeotJEi_k+khUOP8Bgc7XG0uc6y9_MrUvSCNaK_Rj1w@mail.gmail.com>

On 2/19/26 10:29, William Zhang wrote:
> On Wed, Feb 18, 2026 at 1:31 AM Linus Walleij <linusw@kernel.org> wrote:
>>
>> The BCM63138 has a brcmper I2C block.
> I remember there was some discussion on whether this driver really
> works on DSL chips.
> Did you have any way to test it?

I did a long time back and staged my changes in this branch:

https://github.com/torvalds/linux/compare/master...ffainelli:linux:bcm63148

where the SFP could be discovered properly on the BCM963148REF board.

> 
>>
>> The interrupt is at INTERRUPT_ID_I2C whic is
>> (ISR_TABLE3_OFFSET + 19) = 96+115, convert back
>> to SPI interrupt 115-32 = 83.
>>
>> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
>> ---
>>   arch/arm/boot/dts/broadcom/bcm63138.dtsi | 9 +++++++++
>>   1 file changed, 9 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/broadcom/bcm63138.dtsi b/arch/arm/boot/dts/broadcom/bcm63138.dtsi
>> index 8e41c7130406..4ca4ec2ffed6 100644
>> --- a/arch/arm/boot/dts/broadcom/bcm63138.dtsi
>> +++ b/arch/arm/boot/dts/broadcom/bcm63138.dtsi
>> @@ -312,6 +312,15 @@ bootlut: bootlut@8000 {
>>                          reg = <0x8000 0x50>;
>>                  };
>>
>> +               i2c0: i2c@be00 {
>> +                       compatible = "brcm,brcmper-i2c";
>> +                       reg = <0xbe00 0x60>;
> reg offset 0x3e00 as  the translation window starts from 0xfffe8000.
> Patch for 63148 has the same issue.

Agreed, offset 0x3e00 is also what I used:

https://github.com/torvalds/linux/commit/01e1e67b294127562294802914ca0741ae7808f8

> 
>> +                       interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
>> +                       #address-cells = <1>;
>> +                       #size-cells = <0>;
>> +                       status = "disabled";
>> +               };
>> +
>>                  pl081_dma: dma-controller@d000 {
>>                          compatible = "arm,pl081", "arm,primecell";
>>                          // The magic B105F00D info is missing
>>
>> --
>> 2.53.0
>>


-- 
Florian


  reply	other threads:[~2026-03-16 20:53 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-18  9:30 [PATCH v2 0/7] ARM: dts: broadcom-bcmbca: Fixes amd I2C buses Linus Walleij
2026-02-18  9:30 ` [PATCH v2 1/7] ARM: dts: bcm6878: Fix PL081 DMA block IRQ Linus Walleij
2026-03-16 20:48   ` Florian Fainelli
2026-02-18  9:30 ` [PATCH v2 2/7] ARM: dts: bcm63138: Fix DMA IRQ Linus Walleij
2026-02-19 18:29   ` William Zhang
2026-03-16 20:48   ` Florian Fainelli
2026-02-18  9:30 ` [PATCH v2 3/7] ARM: dts: bcm6846: Add I2C bus block Linus Walleij
2026-03-17  1:32   ` William Zhang
2026-03-17 17:48   ` Florian Fainelli
2026-02-18  9:30 ` [PATCH v2 4/7] ARM: dts: bcm6855: Add I2C bus blocks Linus Walleij
2026-03-17  1:34   ` William Zhang
2026-03-17 17:48   ` Florian Fainelli
2026-02-18  9:30 ` [PATCH v2 5/7] ARM: dts: bcm6878: Add I2C bus block Linus Walleij
2026-03-17  1:36   ` William Zhang
2026-03-17 17:49   ` Florian Fainelli
2026-02-18  9:30 ` [PATCH v2 6/7] ARM: dts: bcm63138: Add I2C block Linus Walleij
2026-02-19 18:29   ` William Zhang
2026-03-16 20:53     ` Florian Fainelli [this message]
2026-03-17  1:42       ` William Zhang
2026-03-17 17:49   ` Florian Fainelli
2026-03-17 18:07     ` Florian Fainelli
2026-02-18  9:30 ` [PATCH v2 7/7] ARM: dts: bcm63148: " Linus Walleij
2026-03-17  1:40   ` William Zhang
2026-03-17 17:50   ` Florian Fainelli
2026-03-17 18:07     ` Florian Fainelli

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=cde82a14-671d-4dea-9212-740467dce128@broadcom.com \
    --to=florian.fainelli@broadcom.com \
    --cc=anand.gore@broadcom.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=kursad.oney@broadcom.com \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=rafal@milecki.pl \
    --cc=william.zhang@broadcom.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.