diff mbox series

dt-bindings: net: dsa: b53: Add missing size and address cells to example

Message ID 20200513140249.24900-1-kurt@linutronix.de
State Accepted
Delegated to: David Miller
Headers show
Series dt-bindings: net: dsa: b53: Add missing size and address cells to example | expand

Commit Message

Kurt Kanzenbach May 13, 2020, 2:02 p.m. UTC
Add the missing size and address cells to the b53 example. Otherwise, it may not
compile or issue warnings if directly copied into a device tree.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
---
 Documentation/devicetree/bindings/net/dsa/b53.txt | 3 +++
 1 file changed, 3 insertions(+)

Comments

Florian Fainelli May 13, 2020, 2:58 p.m. UTC | #1
On 5/13/2020 7:02 AM, Kurt Kanzenbach wrote:
> Add the missing size and address cells to the b53 example. Otherwise, it may not
> compile or issue warnings if directly copied into a device tree.
> 
> Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>

Acked-by: Florian Fainelli <f.fainelli@gmail.com>
David Miller May 13, 2020, 7:40 p.m. UTC | #2
From: Kurt Kanzenbach <kurt@linutronix.de>
Date: Wed, 13 May 2020 16:02:49 +0200

> Add the missing size and address cells to the b53 example. Otherwise, it may not
> compile or issue warnings if directly copied into a device tree.
> 
> Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>

Rob, do you want to take this or should I?
David Miller May 17, 2020, 7:32 p.m. UTC | #3
From: Kurt Kanzenbach <kurt@linutronix.de>
Date: Wed, 13 May 2020 16:02:49 +0200

> Add the missing size and address cells to the b53 example. Otherwise, it may not
> compile or issue warnings if directly copied into a device tree.
> 
> Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>

Applied.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/net/dsa/b53.txt b/Documentation/devicetree/bindings/net/dsa/b53.txt
index 5201bc15fdd6..cfd1afdc6e94 100644
--- a/Documentation/devicetree/bindings/net/dsa/b53.txt
+++ b/Documentation/devicetree/bindings/net/dsa/b53.txt
@@ -110,6 +110,9 @@  Ethernet switch connected via MDIO to the host, CPU port wired to eth0:
 			#size-cells = <0>;
 
 			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
 				port0@0 {
 					reg = <0>;
 					label = "lan1";