Skip to contentSkip to conversation

dt-bindings: hwlock: omap: Remove redundant binding example

PATCH In review Sinthu Raja 3 participants 3 messages Sep 20, 2021 – Sep 23, 2021

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

PATCH v3 1/1 dt-bindings: hwlock: omap: Remove redundant binding example

From: Sinthu Raja <[email protected]>

The example includes a board-specific compatible property, this is wrong as the example should be board agnostic and should represent the particular binding. Also, the file includes two similar examples but with a different compatible. So, drop the entire second example

---

Changes in V3:
Addressed review comment, that includes adding Suggested By: tag to the commit message

V2: https://lore.kernel.org/all/[email protected]/
V1: https://lore.kernel.org/all/[email protected]/

 .../bindings/hwlock/ti,omap-hwspinlock.yaml   | 33 +------------------
 1 file changed, 1 insertion(+), 32 deletions(-)
Documentation/devicetree/bindings/hwlock/ti,omap-hwspinlock.yaml +1 -32
index ae1b37dbee75..0a955c7b9706 100644
@@ -39,39 +39,8 @@ additionalProperties: false
 examples:
 
   - |
-    /* OMAP4 SoCs */
-    hwspinlock: spinlock@4a0f6000 {
+    spinlock@4a0f6000 {
         compatible = "ti,omap4-hwspinlock";
         reg = <0x4a0f6000 0x1000>;
         #hwlock-cells = <1>;
     };
-
-  - |
-    / {
-        /* K3 AM65x SoCs */
-        model = "Texas Instruments K3 AM654 SoC";
-        compatible = "ti,am654-evm", "ti,am654";
-        #address-cells = <2>;
-        #size-cells = <2>;
-
-        bus@100000 {
-            compatible = "simple-bus";
-            #address-cells = <2>;
-            #size-cells = <2>;
-            ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */
-                     <0x00 0x30800000 0x00 0x30800000 0x00 0x0bc00000>; /* Main NavSS */
-
-            bus@30800000 {
-                compatible = "simple-mfd";
-                #address-cells = <2>;
-                #size-cells = <2>;
-                ranges = <0x00 0x30800000 0x00 0x30800000 0x00 0x0bc00000>;
-
-                spinlock@30e00000 {
-                    compatible = "ti,am654-hwspinlock";
-                    reg = <0x00 0x30e00000 0x00 0x1000>;
-                    #hwlock-cells = <1>;
-                };
-            };
-        };
-    };
Signature · 1 line
2.31.1
Acked-by on v3 1/1
#1 lore raw
Quoted 9 lines · Sinthu Raja

From: Sinthu Raja <[email protected]>

The example includes a board-specific compatible property, this is wrong as the example should be board agnostic and should represent the particular binding. Also, the file includes two similar examples but with a different compatible. So, drop the entire second example

Quoted 59 lines

---

Changes in V3:
Addressed review comment, that includes adding Suggested By: tag to the commit message

V2: https://lore.kernel.org/all/[email protected]/
V1: https://lore.kernel.org/all/[email protected]/

 .../bindings/hwlock/ti,omap-hwspinlock.yaml   | 33 +------------------
 1 file changed, 1 insertion(+), 32 deletions(-)
Documentation/devicetree/bindings/hwlock/ti,omap-hwspinlock.yaml +1 -32
index ae1b37dbee75..0a955c7b9706 100644
@@ -39,39 +39,8 @@ additionalProperties: false
 examples:
 
   - |
-    /* OMAP4 SoCs */
-    hwspinlock: spinlock@4a0f6000 {
+    spinlock@4a0f6000 {
         compatible = "ti,omap4-hwspinlock";
         reg = <0x4a0f6000 0x1000>;
         #hwlock-cells = <1>;
     };
-
-  - |
-    / {
-        /* K3 AM65x SoCs */
-        model = "Texas Instruments K3 AM654 SoC";
-        compatible = "ti,am654-evm", "ti,am654";
-        #address-cells = <2>;
-        #size-cells = <2>;
-
-        bus@100000 {
-            compatible = "simple-bus";
-            #address-cells = <2>;
-            #size-cells = <2>;
-            ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */
-                     <0x00 0x30800000 0x00 0x30800000 0x00 0x0bc00000>; /* Main NavSS */
-
-            bus@30800000 {
-                compatible = "simple-mfd";
-                #address-cells = <2>;
-                #size-cells = <2>;
-                ranges = <0x00 0x30800000 0x00 0x30800000 0x00 0x0bc00000>;
-
-                spinlock@30e00000 {
-                    compatible = "ti,am654-hwspinlock";
-                    reg = <0x00 0x30e00000 0x00 0x1000>;
-                    #hwlock-cells = <1>;
-                };
-            };
-        };
-    };
maintainer Reviewed-by on v3 1/1
#2 lore raw
In reply to Sinthu Raja
Quoted 16 lines · Sinthu Raja

From: Sinthu Raja <[email protected]>

The example includes a board-specific compatible property, this is wrong as the example should be board agnostic and should represent the particular binding. Also, the file includes two similar examples but with a different compatible. So, drop the entire second example

---

Changes in V3:
Addressed review comment, that includes adding Suggested By: tag to the commit message

Quoted 6 lines

V2: https://lore.kernel.org/all/[email protected]/
V1: https://lore.kernel.org/all/[email protected]/

 .../bindings/hwlock/ti,omap-hwspinlock.yaml   | 33 +------------------
 1 file changed, 1 insertion(+), 32 deletions(-)