[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZtJIYsBa07nJE6os@apocalypse>
Date: Sat, 31 Aug 2024 00:32:02 +0200
From: Andrea della Porta <andrea.porta@...e.com>
To: Krzysztof Kozlowski <krzk@...nel.org>
Cc: Andrea della Porta <andrea.porta@...e.com>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Florian Fainelli <florian.fainelli@...adcom.com>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>,
Linus Walleij <linus.walleij@...aro.org>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Derek Kiernan <derek.kiernan@....com>,
Dragan Cvetic <dragan.cvetic@....com>,
Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Nicolas Ferre <nicolas.ferre@...rochip.com>,
Claudiu Beznea <claudiu.beznea@...on.dev>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Saravana Kannan <saravanak@...gle.com>,
Bjorn Helgaas <bhelgaas@...gle.com>, linux-clk@...r.kernel.org,
devicetree@...r.kernel.org, linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-gpio@...r.kernel.org, netdev@...r.kernel.org,
linux-pci@...r.kernel.org, linux-arch@...r.kernel.org,
Lee Jones <lee@...nel.org>, Andrew Lunn <andrew@...n.ch>,
Stefan Wahren <wahrenst@....net>
Subject: Re: [PATCH 10/11] net: macb: Add support for RP1's MACB variant
Hi Krzysztof,
On 10:49 Wed 21 Aug , Krzysztof Kozlowski wrote:
> On Tue, Aug 20, 2024 at 04:36:12PM +0200, Andrea della Porta wrote:
> > RaspberryPi RP1 contains Cadence's MACB core. Implement the
> > changes to be able to operate the customization in the RP1.
> >
> > Signed-off-by: Andrea della Porta <andrea.porta@...e.com>
>
>
> > @@ -5100,6 +5214,11 @@ static int macb_probe(struct platform_device *pdev)
> > }
> > }
> > }
> > +
> > + device_property_read_u8(&pdev->dev, "cdns,aw2w-max-pipe", &bp->aw2w_max_pipe);
> > + device_property_read_u8(&pdev->dev, "cdns,ar2r-max-pipe", &bp->ar2r_max_pipe);
>
> Where are the bindings?
As stated in the cover letter, this patch (and the dtb patch #11 for macb) is completely
unpolished and intended only for a quick test of the ethernet peripheral underneath
the RP1. As such, it's not intended to be upstreamed yet.
However, your feedback is really appreaciated and will be used in a future patch that
will deal with ethernet mac support.
>
> > + bp->use_aw2b_fill = device_property_read_bool(&pdev->dev, "cdns,use-aw2b-fill");
> > +
> > spin_lock_init(&bp->lock);
> >
> > /* setup capabilities */
> > @@ -5155,6 +5274,21 @@ static int macb_probe(struct platform_device *pdev)
> > else
> > bp->phy_interface = interface;
> >
> > + /* optional PHY reset-related properties */
> > + bp->phy_reset_gpio = devm_gpiod_get_optional(&pdev->dev, "phy-reset",
>
> Where is the binding?
Ditto.
>
> > + GPIOD_OUT_LOW);
> > + if (IS_ERR(bp->phy_reset_gpio)) {
> > + dev_err(&pdev->dev, "Failed to obtain phy-reset gpio\n");
> > + err = PTR_ERR(bp->phy_reset_gpio);
> > + goto err_out_free_netdev;
> > + }
> > +
> > + bp->phy_reset_ms = 10;
> > + of_property_read_u32(np, "phy-reset-duration", &bp->phy_reset_ms);
>
> Where is the binding?
Ditto.
Cheers,
Andrea
>
> > + /* A sane reset duration should not be longer than 1s */
> > + if (bp->phy_reset_ms > 1000)
> > + bp->phy_reset_ms = 1000;
> > +
> > /* IP specific init */
> > err = init(pdev);
>
> Best regards,
> Krzysztof
>
Powered by blists - more mailing lists