Skip to contentSkip to conversation

arm64: dts: xilinx: Drop "label" property on dlg,slg7xl45106

PATCH Applied Rob Herring (Arm) 3 participants 8 messages Dec 16, 2025 – Jan 6

Subsystems (2)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 arm64: dts: xilinx: Drop "label" property on dlg,slg7xl45106

The "label" property is not documented for the dlg,slg7xl45106. Nor is it common to use for GPIO controllers. So drop it.

---
 arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso | 1 -
 arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revA.dtso | 1 -
 arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revB.dtso | 1 -
 3 files changed, 3 deletions(-)
arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso +0 -1
index 02be5e1e8686..d0230da47068 100644
@@ -75,7 +75,6 @@ u3: ina260@40 { /* u3 */
 	slg7xl45106: gpio@11 { /* u13 - reset logic */
 		compatible = "dlg,slg7xl45106";
 		reg = <0x11>;
-		label = "resetchip";
 		gpio-controller;
 		#gpio-cells = <2>;
 		gpio-line-names = "USB0_PHY_RESET_B", "",
arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revA.dtso +0 -1
index b92dcb86e87e..5d1f031bbd89 100644
@@ -103,7 +103,6 @@ u14: ina260@40 { /* u14 */
 	slg7xl45106: gpio@11 { /* u19 - reset logic */
 		compatible = "dlg,slg7xl45106";
 		reg = <0x11>;
-		label = "resetchip";
 		gpio-controller;
 		#gpio-cells = <2>;
 		gpio-line-names = "USB0_PHY_RESET_B", "USB1_PHY_RESET_B",
arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revB.dtso +0 -1
index 99ad220d13d6..1d5c95bd6073 100644
@@ -104,7 +104,6 @@ u14: ina260@40 { /* u14 */
 	slg7xl45106: gpio@11 { /* u19 - reset logic */
 		compatible = "dlg,slg7xl45106";
 		reg = <0x11>;
-		label = "resetchip";
 		gpio-controller;
 		#gpio-cells = <2>;
 		gpio-line-names = "USB0_PHY_RESET_B", "USB1_PHY_RESET_B",
Signature · 1 line
2.51.0
maintainer
#1 lore raw
Quoted 3 lines · Rob Herring (Arm)

The "label" property is not documented for the dlg,slg7xl45106. Nor is it common to use for GPIO controllers. So drop it.

Correct it is not documented but it is at least used in Linux also by
drivers/gpio/gpio-mmio.c:810: err = device_property_read_string(dev, "label", &label);

which is also not documented in DT binding.

I don't have a problem with it because I can't see it used anywhere.

But there are other devices where label is the part of binding. And IMHO this should be more generic property.

Thanks,
Michal

#2 lore raw
Quoted 11 lines · Michal Simek
Quoted 3 lines · Rob Herring (Arm)

The "label" property is not documented for the dlg,slg7xl45106. Nor is it common to use for GPIO controllers. So drop it.

Correct it is not documented but it is at least used in Linux also by
drivers/gpio/gpio-mmio.c:810: err = device_property_read_string(dev, "label",
&label);

Quoted 6 lines

which is also not documented in DT binding.

I don't have a problem with it because I can't see it used anywhere.

But there are other devices where label is the part of binding. And IMHO this should be more generic property.

No, please read the EXPLICIT comment:

"+ * This property *must not* be used in device-tree sources, it's only"

It was added only for ACPI.

We have indeed the problem with documenting disallowed ABI for cases where drivers use fwnode/device_property(). So far I insisted on comments, but as we can see people can just ignore the comments and still use something explicitly disallowed.

Rob,

Would it be okay to add for such cases "label: false" in the binding to mark that this is not ABI for DT?

Best regards,
Krzysztof

#3 lore raw
Quoted 16 lines · Krzysztof Kozlowski
Quoted 15 lines · Michal Simek
Quoted 3 lines · Rob Herring (Arm)

The "label" property is not documented for the dlg,slg7xl45106. Nor is it common to use for GPIO controllers. So drop it.

Correct it is not documented but it is at least used in Linux also by
drivers/gpio/gpio-mmio.c:810: err = device_property_read_string(dev, "label",
&label);

which is also not documented in DT binding.

I don't have a problem with it because I can't see it used anywhere.

Quoted 8 lines
Quoted 2 lines

But there are other devices where label is the part of binding. And IMHO this should be more generic property.

No, please read the EXPLICIT comment:

"+ * This property *must not* be used in device-tree sources, it's only"

It was added only for ACPI.

Uh, my bad, the comment is above "gpio-mmio,base", not "label", but I have impression it was applicable to label as well. Maybe that's not the case...

Quoted 6 lines

We have indeed the problem with documenting disallowed ABI for cases where drivers use fwnode/device_property(). So far I insisted on comments, but as we can see people can just ignore the comments and still use something explicitly disallowed.

Quoted 7 lines

Rob,

Would it be okay to add for such cases "label: false" in the binding to mark that this is not ABI for DT?

Best regards,
Krzysztof

Best regards,
Krzysztof

author maintainer
#4 lore raw
In reply to Michal Simek
Quoted 10 lines · Michal Simek
Quoted 3 lines · Rob Herring (Arm)

The "label" property is not documented for the dlg,slg7xl45106. Nor is it common to use for GPIO controllers. So drop it.

Correct it is not documented but it is at least used in Linux also by
drivers/gpio/gpio-mmio.c:810: err = device_property_read_string(dev, "label",
&label);

which is also not documented in DT binding.

It really should be for all GPIO providers or none of them. IMO, it should be none of them as we already have "gpio-line-names" which is essentially per line labels. I can't see why anyone should care about a label for the controller.

Quoted 4 lines

I don't have a problem with it because I can't see it used anywhere.

But there are other devices where label is the part of binding. And IMHO this should be more generic property.

"label" is the generic property. Not sure what you are suggesting here.

Rob

maintainer
#5 lore raw
Quoted 17 lines · Rob Herring
Quoted 10 lines · Michal Simek
Quoted 3 lines · Rob Herring (Arm)

The "label" property is not documented for the dlg,slg7xl45106. Nor is it common to use for GPIO controllers. So drop it.

Correct it is not documented but it is at least used in Linux also by
drivers/gpio/gpio-mmio.c:810: err = device_property_read_string(dev, "label",
&label);

which is also not documented in DT binding.

It really should be for all GPIO providers or none of them. IMO, it should be none of them as we already have "gpio-line-names" which is essentially per line labels. I can't see why anyone should care about a label for the controller.

Quoted 6 lines
Quoted 4 lines

I don't have a problem with it because I can't see it used anywhere.

But there are other devices where label is the part of binding. And IMHO this should be more generic property.

"label" is the generic property. Not sure what you are suggesting here.

That schema should allow to define label in every node or some class of devices.

Thanks,
Michal

author maintainer
#6 lore raw
Quoted 21 lines · Michal Simek
Quoted 17 lines · Rob Herring
Quoted 10 lines · Michal Simek
Quoted 3 lines · Rob Herring (Arm)

The "label" property is not documented for the dlg,slg7xl45106. Nor is it common to use for GPIO controllers. So drop it.

Correct it is not documented but it is at least used in Linux also by
drivers/gpio/gpio-mmio.c:810: err = device_property_read_string(dev, "label",
&label);

which is also not documented in DT binding.

It really should be for all GPIO providers or none of them. IMO, it should be none of them as we already have "gpio-line-names" which is essentially per line labels. I can't see why anyone should care about a label for the controller.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

I don't have a problem with it because I can't see it used anywhere.

But there are other devices where label is the part of binding. And IMHO this should be more generic property.

"label" is the generic property. Not sure what you are suggesting here.

That schema should allow to define label in every node or some class of devices.

I don't care to enable it everywhere. It's allowed in some classes where the use of it is well defined. I don't think a GPIO provider is one of those cases.

Rob

maintainer Applied
#7 lore raw
In reply to Rob Herring (Arm)
Quoted 39 lines · Rob Herring (Arm)

The "label" property is not documented for the dlg,slg7xl45106. Nor is it common to use for GPIO controllers. So drop it.

---
  arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso | 1 -
  arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revA.dtso | 1 -
  arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revB.dtso | 1 -
  3 files changed, 3 deletions(-)
arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso +0 -1
index 02be5e1e8686..d0230da47068 100644
@@ -75,7 +75,6 @@ u3: ina260@40 { /* u3 */
  	slg7xl45106: gpio@11 { /* u13 - reset logic */
  		compatible = "dlg,slg7xl45106";
  		reg = <0x11>;
-		label = "resetchip";
  		gpio-controller;
  		#gpio-cells = <2>;
  		gpio-line-names = "USB0_PHY_RESET_B", "",
arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revA.dtso +0 -1
index b92dcb86e87e..5d1f031bbd89 100644
@@ -103,7 +103,6 @@ u14: ina260@40 { /* u14 */
  	slg7xl45106: gpio@11 { /* u19 - reset logic */
  		compatible = "dlg,slg7xl45106";
  		reg = <0x11>;
-		label = "resetchip";
  		gpio-controller;
  		#gpio-cells = <2>;
  		gpio-line-names = "USB0_PHY_RESET_B", "USB1_PHY_RESET_B",
arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revB.dtso +0 -0
index 99ad220d13d6..1d5c95bd6073 100644

arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revB.dtso u14: ina260@40 { /* u14 */ · line 109

Quoted 7 lines
arch/arm64/boot/dts/xilinx/zynqmp-sck-kr-g-revB.dtso +0 -1
@@ -104,7 +104,6 @@ u14: ina260@40 { /* u14 */
  	slg7xl45106: gpio@11 { /* u19 - reset logic */
  		compatible = "dlg,slg7xl45106";
  		reg = <0x11>;
-		label = "resetchip";
  		gpio-controller;
  		#gpio-cells = <2>;
  		gpio-line-names = "USB0_PHY_RESET_B", "USB1_PHY_RESET_B",

Applied.
M