From: "Pali Rohár" <pali@kernel.org>
To: Robert Marko <robert.marko@sartura.hr>
Cc: Andrew Lunn <andrew@lunn.ch>,
gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com,
Rob Herring <robh+dt@kernel.org>,
linux-arm-kernel@lists.infradead.org,
devicetree <devicetree@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/4] arm64: dts: marvell: espressobin-ultra: add PHY and switch reset pins
Date: Sat, 24 Sep 2022 14:03:33 +0200 [thread overview]
Message-ID: <20220924120333.arrmvh4kujcobi3x@pali> (raw)
In-Reply-To: <CA+HBbNEhfSo-sb28j3A7MOM6wDFurGaeoU+3mmVmZbducoQ-Eg@mail.gmail.com>
On Tuesday 28 September 2021 18:02:19 Robert Marko wrote:
> On Tue, Sep 28, 2021 at 5:32 PM Pali Rohár <pali@kernel.org> wrote:
> >
> > On Monday 27 September 2021 17:41:58 Robert Marko wrote:
> > > Both the Topaz switch and 88E1512 PHY have their reset and interrupts
> > > connected to the SoC.
> > >
> > > So, define the Topaz and 88E1512 reset pins in the DTS.
> >
> > Are reset pins connected only on ultra variant? Or on all espressobin
> > variants? Because if they are on all variants then definitions should go
> > into common dtsi file.
> >
> > I see that "gpionb 2" is on v7 variant connected to LED2. So I'm not
> > sure if this one gpio is also shared or not.
>
> As far as I know only Ultra has the reset pins connected, on the v5 and v7 Topaz
> reset is tied to the system reset so it's not controllable.
> I checked both the v5 and v7 schematics and it's like that.
> >
> > > Defining the interrupt pins wont work as both the 88E1512 and the
> > > Topaz switch uses active LOW IRQ signals but the A37xx GPIO controller
> > > only supports edge triggers.
> > > 88E1512 would require special setup anyway as its INT pin is shared with
> > > the LED2 and you first need to configure it as INT.
> >
> > Do you plan to finish also this additional setup?
>
> Yes as the MOCHAbin board that I have sent the DTS for also has it connected
> so I can use it as Armada 7040 supports level triggers, unlike the A3720.
> It's in the queue but as a low priority, so I don't know when will I get to it.
I have WIP patch for A37xx gpio/pinctrl driver which adds support for
level interrupts. I think you would need it for testing...
> Regards,
> Robert
> >
> > > Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> > > ---
> > > arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts | 4 ++++
> > > 1 file changed, 4 insertions(+)
> > >
> > > diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts
> > > index 8a700afd0570..96855a10b4a0 100644
> > > --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts
> > > +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts
> > > @@ -118,12 +118,16 @@ &usb3 {
> > > &mdio {
> > > extphy: ethernet-phy@1 {
> > > reg = <1>;
> > > +
> > > + reset-gpios = <&gpionb 2 GPIO_ACTIVE_LOW>;
> > > };
> > > };
> > >
> > > &switch0 {
> > > reg = <3>;
> > >
> > > + reset-gpios = <&gpiosb 23 GPIO_ACTIVE_LOW>;
> > > +
> > > ports {
> > > switch0port1: port@1 {
> > > reg = <1>;
> > > --
> > > 2.31.1
> > >
>
>
>
> --
> Robert Marko
> Staff Embedded Linux Engineer
> Sartura Ltd.
> Lendavska ulica 16a
> 10000 Zagreb, Croatia
> Email: robert.marko@sartura.hr
> Web: www.sartura.hr
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-09-24 12:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-27 15:41 [PATCH 1/4] arm64: dts: marvell: espressobin-ultra: enable UART output by default Robert Marko
2021-09-27 15:41 ` [PATCH 2/4] arm64: dts: marvell: espressobin-ultra: fix SPI-NOR config Robert Marko
2021-09-27 15:41 ` [PATCH 3/4] arm64: dts: marvell: espressobin-ultra: add PHY and switch reset pins Robert Marko
2021-09-27 16:38 ` Andrew Lunn
2021-09-28 15:32 ` Pali Rohár
2021-09-28 16:02 ` Robert Marko
2022-09-24 12:03 ` Pali Rohár [this message]
2021-09-27 15:41 ` [PATCH 4/4] arm64: dts: marvell: espressobin-ultra: enable front USB3 port Robert Marko
2021-09-28 15:37 ` Pali Rohár
2021-09-28 16:02 ` Robert Marko
2021-09-27 16:37 ` [PATCH 1/4] arm64: dts: marvell: espressobin-ultra: enable UART output by default Andrew Lunn
2021-09-28 15:13 ` Pali Rohár
2021-09-28 15:49 ` Robert Marko
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=20220924120333.arrmvh4kujcobi3x@pali \
--to=pali@kernel.org \
--cc=andrew@lunn.ch \
--cc=devicetree@vger.kernel.org \
--cc=gregory.clement@bootlin.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robert.marko@sartura.hr \
--cc=robh+dt@kernel.org \
--cc=sebastian.hesselbarth@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