Skip to contentSkip to conversation

mips: dts: ralink: mt7621: add cell count properties to usb

PATCH Applied Justin Swartz 3 participants 3 messages Mar 8, 2024 – Mar 11, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 mips: dts: ralink: mt7621: add cell count properties to usb

Add default #address-cells and #size-cells properties to the usb node, which should be suitable for hubs and devices without explicitly declared interface nodes, as:

"#address-cells":
description: should be 1 for hub nodes with device nodes,
should be 2 for device nodes with interface nodes.
enum: [1, 2]

"#size-cells":
const: 0

-- from Documentation/devicetree/bindings/usb/usb-device.yaml

---
v2 -> v3: Patch revision commentary removed from commit message
as instructed by Sergio Paracuellos.

v1 -> v2: Reorder the properties according to
Documentation/devicetree/bindings/dts-coding-style.rst

 arch/mips/boot/dts/ralink/mt7621.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/mips/boot/dts/ralink/mt7621.dtsi +3 -0
index 02e1f2491..6e95e6f19 100644
@@ -307,6 +307,9 @@ usb: usb@1e1c0000 {
 		       0x1e1d0700 0x0100>;
 		reg-names = "mac", "ippc";
 
+		#address-cells = <1>;
+		#size-cells = <0>;
+
 		clocks = <&sysc MT7621_CLK_XTAL>;
 		clock-names = "sys_ck";
 
Reviewed-by on v3 1/1
#1 lore raw
Quoted 12 lines · Justin Swartz

Add default #address-cells and #size-cells properties to the usb node, which should be suitable for hubs and devices without explicitly declared interface nodes, as:

    "#address-cells":
      description: should be 1 for hub nodes with device nodes,
        should be 2 for device nodes with interface nodes.
      enum: [1, 2]

    "#size-cells":
      const: 0
Quoted 4 lines

-- from Documentation/devicetree/bindings/usb/usb-device.yaml

Arınç

maintainer Applied
#2 lore raw
In reply to Justin Swartz
Quoted 32 lines · Justin Swartz

Add default #address-cells and #size-cells properties to the usb node, which should be suitable for hubs and devices without explicitly declared interface nodes, as:

   "#address-cells":
     description: should be 1 for hub nodes with device nodes,
       should be 2 for device nodes with interface nodes.
     enum: [1, 2]

   "#size-cells":
     const: 0

-- from Documentation/devicetree/bindings/usb/usb-device.yaml

---
v2 -> v3: Patch revision commentary removed from commit message
as instructed by Sergio Paracuellos.

v1 -> v2: Reorder the properties according to
Documentation/devicetree/bindings/dts-coding-style.rst

 arch/mips/boot/dts/ralink/mt7621.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/mips/boot/dts/ralink/mt7621.dtsi +0 -0
index 02e1f2491..6e95e6f19 100644

arch/mips/boot/dts/ralink/mt7621.dtsi usb: usb@1e1c0000 { · line 315

Quoted 9 lines
arch/mips/boot/dts/ralink/mt7621.dtsi +3 -0
@@ -307,6 +307,9 @@ usb: usb@1e1c0000 {
 		       0x1e1d0700 0x0100>;
 		reg-names = "mac", "ippc";
 
+		#address-cells = <1>;
+		#size-cells = <0>;
+
 		clocks = <&sysc MT7621_CLK_XTAL>;
 		clock-names = "sys_ck";
 

applied to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]