Skip to contentSkip to conversation

dt-bindings: trivial-devices: Remove vicor,pli1209bc

PATCH In review Naresh Solanki 3 participants 7 messages Oct 15, 2024 – Oct 16, 2024

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

PATCH 1/2 dt-bindings: trivial-devices: Remove vicor,pli1209bc

vicor,pli1209bc doesn't fit into trivial devices as it needs additional properties.

---
 Documentation/devicetree/bindings/trivial-devices.yaml | 2 --
 1 file changed, 2 deletions(-)
Documentation/devicetree/bindings/trivial-devices.yaml +0 -2
index 15f89d7ecf73..00361b5cfc3c 100644
@@ -404,8 +404,6 @@ properties:
           - ti,tps546d24
             # I2C Touch-Screen Controller
           - ti,tsc2003
-            # Vicor Corporation Digital Supervisor
-          - vicor,pli1209bc
             # Winbond/Nuvoton H/W Monitor
           - winbond,w83793
 

base-commit: 7ae5eff46d61cc9b4674920821cb31e8c8fadf36

Signature · 1 line
2.42.0
#1 lore raw

PATCH 2/2 dt-bindings: hwmon: pmbus: pli209bc: Add bindings

Add bindings for Vicor pli1209bc.
It a Digital Supervisor with Isolation for use with BCM Bus Converter Modules.

---
 .../bindings/hwmon/pmbus/vicor,pli1209bc.yaml | 65 +++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +65 -0
new file mode 100644
index 000000000000..3647d14e9111
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+
+$id: http://devicetree.org/schemas/hwmon/pmbus/vicor,pli1209bc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Vicor PLI1209BC Power Regulator
+
+maintainers:
+  - Marcello Sylvester Bauer <[email protected]>
+  - Naresh Solanki <[email protected]>
+
+description: |
+  The Vicor PLI1209BC is a Digital Supervisor with Isolation for use
+  with BCM Bus Converter Modules.
+
+properties:
+  compatible:
+    enum:
+      - vicor,pli1209bc
+
+  reg:
+    maxItems: 1
+
+  regulators:
+    type: object
+    description:
+      List of regulators provided by this controller.
+
+    properties:
+      vout2:
+        $ref: /schemas/regulator/regulator.yaml#
+        type: object
+
+        unevaluatedProperties: false
+
+    additionalProperties: false
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        pli1209bc_p12v_d: regulator@5f {
+            compatible = "vicor,pli1209bc";
+            reg = <0x5f>;
+
+            regulators {
+                p12v_d: vout2 {
+                    regulator-name = "bcm3";
+                    regulator-boot-on;
+                };
+            };
+        };
+    };
+
Signature · 1 line
2.42.0
#2 lore raw

Re: [PATCH 2/2] dt-bindings: hwmon: pmbus: pli209bc: Add bindings

Quoted 7 lines · Naresh Solanki

Add bindings for Vicor pli1209bc.
It a Digital Supervisor with Isolation for use with BCM Bus Converter Modules.

---
 .../bindings/hwmon/pmbus/vicor,pli1209bc.yaml | 65 +++++++++++++++++++

This has to be squashed with previous patch.

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 4

Quoted 13 lines
 1 file changed, 65 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +4 -0
new file mode 100644
index 000000000000..3647d14e9111
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+

Drop blank line

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 14

Quoted 10 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +10 -0
+$id: http://devicetree.org/schemas/hwmon/pmbus/vicor,pli1209bc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Vicor PLI1209BC Power Regulator
+
+maintainers:
+  - Marcello Sylvester Bauer <[email protected]>
+  - Naresh Solanki <[email protected]>
+
+description: |

Do not need '|' unless you need to preserve formatting.

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 26

Quoted 12 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +12 -0
+  The Vicor PLI1209BC is a Digital Supervisor with Isolation for use
+  with BCM Bus Converter Modules.
+
+properties:
+  compatible:
+    enum:
+      - vicor,pli1209bc
+
+  reg:
+    maxItems: 1
+
+  regulators:

Drop the node and define vout2 here directly.... unless anything needs such layout? Then explain this in commit msg.

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 35

Quoted 9 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +9 -0
+    type: object
+    description:
+      List of regulators provided by this controller.
+
+    properties:
+      vout2:
+        $ref: /schemas/regulator/regulator.yaml#
+        type: object
+

Drop blank line.

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 48

Quoted 13 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +13 -0
+        unevaluatedProperties: false
+
+    additionalProperties: false
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>

Drop, not used.

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 53

Quoted 5 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +5 -0
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        pli1209bc_p12v_d: regulator@5f {

Drop unused prefix

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 65

Quoted 12 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +12 -0
+            compatible = "vicor,pli1209bc";
+            reg = <0x5f>;
+
+            regulators {
+                p12v_d: vout2 {
+                    regulator-name = "bcm3";
+                    regulator-boot-on;
+                };
+            };
+        };
+    };
+

Best regards,
Krzysztof

maintainer
#3 lore raw

Re: [PATCH 2/2] dt-bindings: hwmon: pmbus: pli209bc: Add bindings

Quoted 11 lines · Krzysztof Kozlowski
Quoted 7 lines · Naresh Solanki

Add bindings for Vicor pli1209bc.
It a Digital Supervisor with Isolation for use with BCM Bus Converter Modules.

---
  .../bindings/hwmon/pmbus/vicor,pli1209bc.yaml | 65 +++++++++++++++++++

This has to be squashed with previous patch.

Neither me nor the hwmon mailing list was copied on that previous patch (or on an intro patch if there was one), so I have no idea what this is about.

Guenter

#4 lore raw

Re: [PATCH 2/2] dt-bindings: hwmon: pmbus: pli209bc: Add bindings

Quoted 10 lines · Guenter Roeck
Quoted 9 lines · Krzysztof Kozlowski
Quoted 7 lines · Naresh Solanki

Add bindings for Vicor pli1209bc.
It a Digital Supervisor with Isolation for use with BCM Bus Converter Modules.

---
  .../bindings/hwmon/pmbus/vicor,pli1209bc.yaml | 65 +++++++++++++++++++
Quoted 6 lines
Quoted 2 lines

This has to be squashed with previous patch.

Neither me nor the hwmon mailing list was copied on that previous patch (or on an intro patch if there was one), so I have no idea what this is about.

Heh... that's even worse because without that visibility you would pick up this patch only leading to duplicated compatibles warnings.

Naresh, sending such patchsets is really not correct. Be sure you organize them logically and in fully bisectable way, and then you CC relevant people.

Best regards,
Krzysztof

#5 lore raw

Re: [PATCH 2/2] dt-bindings: hwmon: pmbus: pli209bc: Add bindings

Hi Krzysztof, Guenter,

Quoted 8 lines · Krzysztof Kozlowski
Quoted 6 lines · Guenter Roeck
Quoted 5 lines · Krzysztof Kozlowski
Quoted 4 lines · Naresh Solanki

Add bindings for Vicor pli1209bc.
It a Digital Supervisor with Isolation for use with BCM Bus Converter Modules.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
---
  .../bindings/hwmon/pmbus/vicor,pli1209bc.yaml | 65 +++++++++++++++++++

This has to be squashed with previous patch.

Ack

Quoted 6 lines
Quoted 5 lines
Quoted 1 line

Neither me nor the hwmon mailing list was copied on that previous patch (or on an intro patch if there was one), so I have no idea what this is about.

Quoted 6 lines

Heh... that's even worse because without that visibility you would pick up this patch only leading to duplicated compatibles warnings.

Naresh, sending such patchsets is really not correct. Be sure you organize them logically and in fully bisectable way, and then you CC relevant people.

Yes this definitely causes confusion. I should have organised it better. Will make sure I handle it properly. Pardon me for the confusion

Thanks
Naresh

Quoted 4 lines

Best regards,
Krzysztof

#6 lore raw

Re: [PATCH 2/2] dt-bindings: hwmon: pmbus: pli209bc: Add bindings

In reply to Krzysztof Kozlowski

Hi Krzysztof,

Quoted 15 lines · Krzysztof Kozlowski
Quoted 7 lines · Naresh Solanki

Add bindings for Vicor pli1209bc.
It a Digital Supervisor with Isolation for use with BCM Bus Converter Modules.

---
 .../bindings/hwmon/pmbus/vicor,pli1209bc.yaml | 65 +++++++++++++++++++

This has to be squashed with previous patch.

Quoted 3 lines
 1 file changed, 65 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml
Quoted 12 lines

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 4

Quoted 10 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +4 -0
new file mode 100644
index 000000000000..3647d14e9111
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+

Drop blank line

Ack

Quoted 13 lines

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 14

Quoted 11 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +10 -0
+$id: http://devicetree.org/schemas/hwmon/pmbus/vicor,pli1209bc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Vicor PLI1209BC Power Regulator
+
+maintainers:
+  - Marcello Sylvester Bauer <[email protected]>
+  - Naresh Solanki <[email protected]>
+
+description: |

Do not need '|' unless you need to preserve formatting.

Ack

Quoted 16 lines

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 26

Quoted 13 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +12 -0
+  The Vicor PLI1209BC is a Digital Supervisor with Isolation for use
+  with BCM Bus Converter Modules.
+
+properties:
+  compatible:
+    enum:
+      - vicor,pli1209bc
+
+  reg:
+    maxItems: 1
+
+  regulators:

Drop the node and define vout2 here directly.... unless anything needs such layout? Then explain this in commit msg.

This is expected by pmbus regulator driver:
https://github.com/torvalds/linux/blob/master/drivers/hwmon/pmbus/pmbus.h#L512

Quoted 12 lines

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 35

Quoted 10 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +9 -0
+    type: object
+    description:
+      List of regulators provided by this controller.
+
+    properties:
+      vout2:
+        $ref: /schemas/regulator/regulator.yaml#
+        type: object
+

Drop blank line.

Ack

Quoted 16 lines
Quoted 4 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +3 -0
+        unevaluatedProperties: false
+
+    additionalProperties: false

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 48

Quoted 10 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +10 -0
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>

Drop, not used.

Ack

Quoted 8 lines

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 53

Quoted 6 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +5 -0
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        pli1209bc_p12v_d: regulator@5f {

Drop unused prefix

Ack

Regards,
Naresh

Quoted 17 lines

Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml line 65

Quoted 13 lines
Documentation/devicetree/bindings/hwmon/pmbus/vicor,pli1209bc.yaml new file +12 -0
+            compatible = "vicor,pli1209bc";
+            reg = <0x5f>;
+
+            regulators {
+                p12v_d: vout2 {
+                    regulator-name = "bcm3";
+                    regulator-boot-on;
+                };
+            };
+        };
+    };
+

Best regards,
Krzysztof