From: Lorenzo Bianconi <lorenzo@kernel.org>
To: Conor Dooley <conor@kernel.org>
Cc: netdev@vger.kernel.org, nbd@nbd.name,
lorenzo.bianconi83@gmail.com, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
devicetree@vger.kernel.org, catalin.marinas@arm.com,
will@kernel.org, upstream@airoha.com,
angelogioacchino.delregno@collabora.com,
benjamin.larsson@genexis.eu, linux-clk@vger.kernel.org,
rkannoth@marvell.com, sgoutham@marvell.com, andrew@lunn.ch
Subject: Re: [PATCH v2 net-next 1/2] dt-bindings: net: airoha: Add EN7581 ethernet controller
Date: Wed, 19 Jun 2024 08:42:50 +0200 [thread overview]
Message-ID: <ZnJ96o2i29Wjq4Pp@lore-desk> (raw)
In-Reply-To: <20240618-synthetic-favored-31cbf735705d@spud>
[-- Attachment #1: Type: text/plain, Size: 4844 bytes --]
> On Tue, Jun 18, 2024 at 09:49:02AM +0200, Lorenzo Bianconi wrote:
> > Introduce device-tree binding documentation for Airoha EN7581 ethernet
> > mac controller.
> >
> > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> > ---
> > This patch is based on the following one not applied yet on clk tree:
> > dt-bindings: clock: airoha: Add reset support to EN7581 clock binding
> > https://patchwork.kernel.org/project/linux-clk/patch/ac557b6f4029cb3428d4c0ed1582d0c602481fb6.1718282056.git.lorenzo@kernel.org/
>
> Why introduce that dep? What's here is just an example, you can use the
> "raw" numbers (or any made up numbers really) and not have to depend on
> that.
ack, fine. I will fix it in v3.
Regards,
Lorenzo
>
> Thanks,
> Conor.
>
> > ---
> > .../bindings/net/airoha,en7581.yaml | 106 ++++++++++++++++++
> > 1 file changed, 106 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/net/airoha,en7581.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/net/airoha,en7581.yaml b/Documentation/devicetree/bindings/net/airoha,en7581.yaml
> > new file mode 100644
> > index 000000000000..09e7b5eed3ae
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/net/airoha,en7581.yaml
> > @@ -0,0 +1,106 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/net/airoha,en7581.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Airoha EN7581 Frame Engine Ethernet controller
> > +
> > +allOf:
> > + - $ref: ethernet-controller.yaml#
> > +
> > +maintainers:
> > + - Lorenzo Bianconi <lorenzo@kernel.org>
> > +
> > +description:
> > + The frame engine ethernet controller can be found on Airoha SoCs.
> > + These SoCs have dual GMAC ports.
> > +
> > +properties:
> > + compatible:
> > + enum:
> > + - airoha,en7581-eth
> > +
> > + reg:
> > + items:
> > + - description: Frame engine base address
> > + - description: QDMA0 base address
> > + - description: QDMA1 base address
> > +
> > + reg-names:
> > + items:
> > + - const: fe
> > + - const: qdma0
> > + - const: qdma1
> > +
> > + interrupts:
> > + maxItems: 10
> > +
> > + resets:
> > + maxItems: 7
> > +
> > + reset-names:
> > + items:
> > + - const: fe
> > + - const: pdma
> > + - const: qdma
> > + - const: xsi-mac
> > + - const: hsi0-mac
> > + - const: hsi1-mac
> > + - const: hsi-mac
> > +
> > + "#address-cells":
> > + const: 1
> > +
> > + "#size-cells":
> > + const: 0
> > +
> > +required:
> > + - compatible
> > + - reg
> > + - interrupts
> > + - resets
> > + - reset-names
> > +
> > +unevaluatedProperties: false
> > +
> > +examples:
> > + - |
> > + #include <dt-bindings/interrupt-controller/arm-gic.h>
> > + #include <dt-bindings/interrupt-controller/irq.h>
> > + #include <dt-bindings/clock/en7523-clk.h>
> > + #include <dt-bindings/reset/airoha,en7581-reset.h>
> > +
> > + soc {
> > + #address-cells = <2>;
> > + #size-cells = <2>;
> > +
> > + eth0: ethernet@1fb50000 {
>
> The label here is unused and should be removed.
>
> > + compatible = "airoha,en7581-eth";
> > + reg = <0 0x1fb50000 0 0x2600>,
> > + <0 0x1fb54000 0 0x2000>,
> > + <0 0x1fb56000 0 0x2000>;
> > + reg-names = "fe", "qdma0", "qdma1";
> > +
>
> Unusual whitespace.
>
> Those are nits:
>
> Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
>
> > + resets = <&scuclk EN7581_FE_RST>,
> > + <&scuclk EN7581_FE_PDMA_RST>,
> > + <&scuclk EN7581_FE_QDMA_RST>,
> > + <&scuclk EN7581_XSI_MAC_RST>,
> > + <&scuclk EN7581_DUAL_HSI0_MAC_RST>,
> > + <&scuclk EN7581_DUAL_HSI1_MAC_RST>,
> > + <&scuclk EN7581_HSI_MAC_RST>;
> > + reset-names = "fe", "pdma", "qdma", "xsi-mac",
> > + "hsi0-mac", "hsi1-mac", "hsi-mac";
> > +
> > + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
> > + <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
> > + <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
> > + <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
> > + <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
> > + <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
> > + <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
> > + <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
> > + <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
> > + <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
> > + };
> > + };
> > --
> > 2.45.1
> >
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2024-06-19 6:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-18 7:49 [PATCH v2 net-next 0/2] Introduce EN7581 ethernet support Lorenzo Bianconi
2024-06-18 7:49 ` [PATCH v2 net-next 1/2] dt-bindings: net: airoha: Add EN7581 ethernet controller Lorenzo Bianconi
2024-06-18 11:32 ` Rob Herring (Arm)
2024-06-18 17:46 ` Conor Dooley
2024-06-19 6:42 ` Lorenzo Bianconi [this message]
2024-06-18 17:47 ` Conor Dooley
2024-06-19 6:58 ` Lorenzo Bianconi
2024-06-18 7:49 ` [PATCH v2 net-next 2/2] net: airoha: Introduce ethernet support for EN7581 SoC Lorenzo Bianconi
2024-06-18 13:46 ` Andrew Lunn
2024-06-19 7:19 ` Lorenzo Bianconi
2024-06-24 15:58 ` kernel test robot
2024-06-24 20:05 ` Arnd Bergmann
2024-06-28 17:27 ` Lorenzo Bianconi
2024-06-28 19:34 ` Arnd Bergmann
2024-06-28 19:57 ` Felix Fietkau
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=ZnJ96o2i29Wjq4Pp@lore-desk \
--to=lorenzo@kernel.org \
--cc=andrew@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=benjamin.larsson@genexis.eu \
--cc=catalin.marinas@arm.com \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=lorenzo.bianconi83@gmail.com \
--cc=nbd@nbd.name \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rkannoth@marvell.com \
--cc=robh+dt@kernel.org \
--cc=sgoutham@marvell.com \
--cc=upstream@airoha.com \
--cc=will@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).