arm64: dts: xilinx: Drop "label" property on dlg,slg7xl45106
Subsystems (2)
Rob Herring (Arm)
maintainerPATCH 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
@@ -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
@@ -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
@@ -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
Michal Simek
maintainerQuoted 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 bydrivers/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
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
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
Rob Herring
maintainerQuoted 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
Michal Simek
maintainerQuoted 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
Rob Herring
maintainerQuoted 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
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.
Signed-off-by Rob Herring (Arm) <[email protected]>--- 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@@ -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@@ -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
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