netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx emaclite driver binding
@ 2022-06-09 16:53 Radhey Shyam Pandey
  2022-06-14  9:09 ` Paolo Abeni
  2022-06-15  8:30 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 8+ messages in thread
From: Radhey Shyam Pandey @ 2022-06-09 16:53 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt,
	harini.katakam
  Cc: netdev, devicetree, linux-kernel, git, Radhey Shyam Pandey

Add basic description for the xilinx emaclite driver DT bindings.

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
---
Changes since v1:
- Move ethernet-controller.yaml reference after maintainers.
- Drop interrupt second cell in example node.
- Set local-mac-address to all 0s in example node.
- Put the reg after compatible in DTS code.

Changes since RFC:
- Add ethernet-controller yaml reference.
- 4 space indent for DTS example.
---
 .../bindings/net/xlnx,emaclite.yaml           | 63 +++++++++++++++++++
 1 file changed, 63 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/xlnx,emaclite.yaml

diff --git a/Documentation/devicetree/bindings/net/xlnx,emaclite.yaml b/Documentation/devicetree/bindings/net/xlnx,emaclite.yaml
new file mode 100644
index 000000000000..92d8ade988f6
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/xlnx,emaclite.yaml
@@ -0,0 +1,63 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/xlnx,emaclite.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Xilinx Emaclite Ethernet controller
+
+maintainers:
+  - Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
+  - Harini Katakam <harini.katakam@amd.com>
+
+allOf:
+  - $ref: ethernet-controller.yaml#
+
+properties:
+  compatible:
+    enum:
+      - xlnx,opb-ethernetlite-1.01.a
+      - xlnx,opb-ethernetlite-1.01.b
+      - xlnx,xps-ethernetlite-1.00.a
+      - xlnx,xps-ethernetlite-2.00.a
+      - xlnx,xps-ethernetlite-2.01.a
+      - xlnx,xps-ethernetlite-3.00.a
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  phy-handle: true
+
+  local-mac-address: true
+
+  xlnx,tx-ping-pong:
+    type: boolean
+    description: hardware supports tx ping pong buffer.
+
+  xlnx,rx-ping-pong:
+    type: boolean
+    description: hardware supports rx ping pong buffer.
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - phy-handle
+
+additionalProperties: false
+
+examples:
+  - |
+    axi_ethernetlite_1: ethernet@40e00000 {
+        compatible = "xlnx,xps-ethernetlite-3.00.a";
+        reg = <0x40e00000 0x10000>;
+        interrupt-parent = <&axi_intc_1>;
+        interrupts = <1>;
+        local-mac-address = [00 00 00 00 00 00];
+        phy-handle = <&phy0>;
+        xlnx,rx-ping-pong;
+        xlnx,tx-ping-pong;
+    };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx emaclite driver binding
  2022-06-09 16:53 [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx emaclite driver binding Radhey Shyam Pandey
@ 2022-06-14  9:09 ` Paolo Abeni
  2022-06-14 21:09   ` Pandey, Radhey Shyam
  2022-06-15  8:30 ` patchwork-bot+netdevbpf
  1 sibling, 1 reply; 8+ messages in thread
From: Paolo Abeni @ 2022-06-14  9:09 UTC (permalink / raw)
  To: Radhey Shyam Pandey, davem, edumazet, kuba, robh+dt,
	krzysztof.kozlowski+dt, harini.katakam
  Cc: netdev, devicetree, linux-kernel, git

On Thu, 2022-06-09 at 22:23 +0530, Radhey Shyam Pandey wrote:
> Add basic description for the xilinx emaclite driver DT bindings.
> 
> Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>

Even if marked for 'net-next', my understanding is that should go via
the device tree repo. I'm dropping from the netdev patchwork, please
correct me if I'm wrong, thanks!

Paolo


^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx emaclite driver binding
  2022-06-14  9:09 ` Paolo Abeni
@ 2022-06-14 21:09   ` Pandey, Radhey Shyam
  2022-06-14 22:48     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 8+ messages in thread
From: Pandey, Radhey Shyam @ 2022-06-14 21:09 UTC (permalink / raw)
  To: Paolo Abeni, davem, edumazet, kuba, robh+dt,
	krzysztof.kozlowski+dt, Katakam, Harini
  Cc: netdev, devicetree, linux-kernel, git (AMD-Xilinx)

[AMD Official Use Only - General]

> -----Original Message-----
> From: Paolo Abeni <pabeni@redhat.com>
> Sent: Tuesday, June 14, 2022 2:40 PM
> To: Pandey, Radhey Shyam <radhey.shyam.pandey@amd.com>;
> davem@davemloft.net; edumazet@google.com; kuba@kernel.org;
> robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; Katakam, Harini
> <harini.katakam@amd.com>
> Cc: netdev@vger.kernel.org; devicetree@vger.kernel.org; linux-
> kernel@vger.kernel.org; git (AMD-Xilinx) <git@amd.com>
> Subject: Re: [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx
> emaclite driver binding
>
> On Thu, 2022-06-09 at 22:23 +0530, Radhey Shyam Pandey wrote:
> > Add basic description for the xilinx emaclite driver DT bindings.
> >
> > Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
>
> Even if marked for 'net-next', my understanding is that should go via the
> device tree repo. I'm dropping from the netdev patchwork, please correct me if
> I'm wrong, thanks!

I have seen a mixed set of the convention for dts patches. They are following
both routes i.e device tree or subsystem repos provided acked from device
tree maintainer.  If there is preference for device tree repo then I can drop
net-next from subject prefix and resend it for the dt repo.

>
> Paolo


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx emaclite driver binding
  2022-06-14 21:09   ` Pandey, Radhey Shyam
@ 2022-06-14 22:48     ` Krzysztof Kozlowski
  2022-06-14 22:57       ` Krzysztof Kozlowski
  2022-06-15  1:54       ` Jakub Kicinski
  0 siblings, 2 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-14 22:48 UTC (permalink / raw)
  To: Pandey, Radhey Shyam, Paolo Abeni, davem, edumazet, kuba,
	robh+dt, krzysztof.kozlowski+dt, Katakam, Harini
  Cc: netdev, devicetree, linux-kernel, git (AMD-Xilinx)

On 14/06/2022 14:09, Pandey, Radhey Shyam wrote:
> [AMD Official Use Only - General]
> 
>> -----Original Message-----
>> From: Paolo Abeni <pabeni@redhat.com>
>> Sent: Tuesday, June 14, 2022 2:40 PM
>> To: Pandey, Radhey Shyam <radhey.shyam.pandey@amd.com>;
>> davem@davemloft.net; edumazet@google.com; kuba@kernel.org;
>> robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; Katakam, Harini
>> <harini.katakam@amd.com>
>> Cc: netdev@vger.kernel.org; devicetree@vger.kernel.org; linux-
>> kernel@vger.kernel.org; git (AMD-Xilinx) <git@amd.com>
>> Subject: Re: [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx
>> emaclite driver binding
>>
>> On Thu, 2022-06-09 at 22:23 +0530, Radhey Shyam Pandey wrote:
>>> Add basic description for the xilinx emaclite driver DT bindings.
>>>
>>> Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
>>
>> Even if marked for 'net-next', my understanding is that should go via the
>> device tree repo. I'm dropping from the netdev patchwork, please correct me if
>> I'm wrong, thanks!
> 
> I have seen a mixed set of the convention for dts patches. They are following
> both routes i.e device tree or subsystem repos provided acked from device
> tree maintainer.  If there is preference for device tree repo then I can drop
> net-next from subject prefix and resend it for the dt repo.

If you got Ack from Devicetree bindings maintainer (Rob Herring or me),
then feel free to take it via net-next. I think, it is actually
preferred, unless this is some fix which needs to go via DT (Rob's) tree.

If you don't have these acks, then better don't take it :) unless it's
really waiting too long on the lists. I hope it's not that case.


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx emaclite driver binding
  2022-06-14 22:48     ` Krzysztof Kozlowski
@ 2022-06-14 22:57       ` Krzysztof Kozlowski
  2022-06-15  1:54       ` Jakub Kicinski
  1 sibling, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-14 22:57 UTC (permalink / raw)
  To: Pandey, Radhey Shyam, Paolo Abeni, davem, edumazet, kuba,
	robh+dt, krzysztof.kozlowski+dt, Katakam, Harini
  Cc: netdev, devicetree, linux-kernel, git (AMD-Xilinx)

On 14/06/2022 15:48, Krzysztof Kozlowski wrote:
> On 14/06/2022 14:09, Pandey, Radhey Shyam wrote:
>> [AMD Official Use Only - General]
>>
>>> -----Original Message-----
>>> From: Paolo Abeni <pabeni@redhat.com>
>>> Sent: Tuesday, June 14, 2022 2:40 PM
>>> To: Pandey, Radhey Shyam <radhey.shyam.pandey@amd.com>;
>>> davem@davemloft.net; edumazet@google.com; kuba@kernel.org;
>>> robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; Katakam, Harini
>>> <harini.katakam@amd.com>
>>> Cc: netdev@vger.kernel.org; devicetree@vger.kernel.org; linux-
>>> kernel@vger.kernel.org; git (AMD-Xilinx) <git@amd.com>
>>> Subject: Re: [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx
>>> emaclite driver binding
>>>
>>> On Thu, 2022-06-09 at 22:23 +0530, Radhey Shyam Pandey wrote:
>>>> Add basic description for the xilinx emaclite driver DT bindings.
>>>>
>>>> Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
>>>
>>> Even if marked for 'net-next', my understanding is that should go via the
>>> device tree repo. I'm dropping from the netdev patchwork, please correct me if
>>> I'm wrong, thanks!
>>
>> I have seen a mixed set of the convention for dts patches. They are following
>> both routes i.e device tree or subsystem repos provided acked from device
>> tree maintainer.  If there is preference for device tree repo then I can drop
>> net-next from subject prefix and resend it for the dt repo.
> 
> If you got Ack from Devicetree bindings maintainer (Rob Herring or me),
> then feel free to take it via net-next. I think, it is actually
> preferred, unless this is some fix which needs to go via DT (Rob's) tree.
> 
> If you don't have these acks, then better don't take it :) unless it's
> really waiting too long on the lists. I hope it's not that case.

I got this reply in my mailbox but I cannot find at all the original
patch, which might explain why it was not acked. I found it on lore,
though. Rob had here questions but I think you resolved/answered them,
so from my side:

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx emaclite driver binding
  2022-06-14 22:48     ` Krzysztof Kozlowski
  2022-06-14 22:57       ` Krzysztof Kozlowski
@ 2022-06-15  1:54       ` Jakub Kicinski
  2022-06-16 17:46         ` Rob Herring
  1 sibling, 1 reply; 8+ messages in thread
From: Jakub Kicinski @ 2022-06-15  1:54 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Pandey, Radhey Shyam, Paolo Abeni, davem, edumazet, robh+dt,
	krzysztof.kozlowski+dt, Katakam, Harini, netdev, devicetree,
	linux-kernel, git (AMD-Xilinx)

On Tue, 14 Jun 2022 15:48:43 -0700 Krzysztof Kozlowski wrote:
> > I have seen a mixed set of the convention for dts patches. They are following
> > both routes i.e device tree or subsystem repos provided acked from device
> > tree maintainer.  If there is preference for device tree repo then I can drop
> > net-next from subject prefix and resend it for the dt repo.  
> 
> If you got Ack from Devicetree bindings maintainer (Rob Herring or me),
> then feel free to take it via net-next. I think, it is actually
> preferred, unless this is some fix which needs to go via DT (Rob's) tree.
> 
> If you don't have these acks, then better don't take it :) unless it's
> really waiting too long on the lists. I hope it's not that case.

GTK, thanks. I'm also often confused by the correct tree for DT patches.
I'll revive the patch in PW and apply it later today.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx emaclite driver binding
  2022-06-09 16:53 [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx emaclite driver binding Radhey Shyam Pandey
  2022-06-14  9:09 ` Paolo Abeni
@ 2022-06-15  8:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 8+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-06-15  8:30 UTC (permalink / raw)
  To: Pandey, Radhey Shyam
  Cc: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt,
	harini.katakam, netdev, devicetree, linux-kernel, git

Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Thu, 9 Jun 2022 22:23:35 +0530 you wrote:
> Add basic description for the xilinx emaclite driver DT bindings.
> 
> Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
> ---
> Changes since v1:
> - Move ethernet-controller.yaml reference after maintainers.
> - Drop interrupt second cell in example node.
> - Set local-mac-address to all 0s in example node.
> - Put the reg after compatible in DTS code.
> 
> [...]

Here is the summary with links:
  - [v2,net-next] dt-bindings: net: xilinx: document xilinx emaclite driver binding
    https://git.kernel.org/netdev/net-next/c/3a51e969fa90

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx emaclite driver binding
  2022-06-15  1:54       ` Jakub Kicinski
@ 2022-06-16 17:46         ` Rob Herring
  0 siblings, 0 replies; 8+ messages in thread
From: Rob Herring @ 2022-06-16 17:46 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: Krzysztof Kozlowski, Pandey, Radhey Shyam, Paolo Abeni, davem,
	edumazet, krzysztof.kozlowski+dt, Katakam, Harini, netdev,
	devicetree, linux-kernel, git (AMD-Xilinx)

On Tue, Jun 14, 2022 at 7:54 PM Jakub Kicinski <kuba@kernel.org> wrote:
>
> On Tue, 14 Jun 2022 15:48:43 -0700 Krzysztof Kozlowski wrote:
> > > I have seen a mixed set of the convention for dts patches. They are following
> > > both routes i.e device tree or subsystem repos provided acked from device
> > > tree maintainer.  If there is preference for device tree repo then I can drop
> > > net-next from subject prefix and resend it for the dt repo.
> >
> > If you got Ack from Devicetree bindings maintainer (Rob Herring or me),
> > then feel free to take it via net-next. I think, it is actually
> > preferred, unless this is some fix which needs to go via DT (Rob's) tree.
> >
> > If you don't have these acks, then better don't take it :) unless it's
> > really waiting too long on the lists. I hope it's not that case.
>
> GTK, thanks. I'm also often confused by the correct tree for DT patches.

It is documented in
Documentation/devicetree/bindings/submitting-patches.rst, section II.

The default is bindings should go thru subsystem trees. Given netdev's
tendency to apply bindings before DT review and even semi-automated
checks, but skipping standalone patches, I haven't minded picking them
up.

Rob

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-06-16 17:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09 16:53 [PATCH v2 net-next] dt-bindings: net: xilinx: document xilinx emaclite driver binding Radhey Shyam Pandey
2022-06-14  9:09 ` Paolo Abeni
2022-06-14 21:09   ` Pandey, Radhey Shyam
2022-06-14 22:48     ` Krzysztof Kozlowski
2022-06-14 22:57       ` Krzysztof Kozlowski
2022-06-15  1:54       ` Jakub Kicinski
2022-06-16 17:46         ` Rob Herring
2022-06-15  8:30 ` patchwork-bot+netdevbpf

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).