Skip to contentSkip to conversation

dt-bindings: ata: ahci-fsl-qoriq: add fsl,ls1046a-ahci and fsl,ls1012a-ahci

PATCH Superseded Frank Li 4 participants 6 messages Jun 25, 2024 – Jul 12, 2024

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: ata: ahci-fsl-qoriq: add fsl,ls1046a-ahci and fsl,ls1012a-ahci

Add compatible string 'fsl,ls1046a-ahci' and 'fsl,ls1012a-ahci' compatible string. Allow 'fsl,ls1012a-ahci' fallback to 'fsl,ls1043a-ahci'.

ls1046a ahci ecc disable bit is difference with other chips.

---
 .../devicetree/bindings/ata/fsl,ahci.yaml     | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)
Documentation/devicetree/bindings/ata/fsl,ahci.yaml +12 -7
index 162b3bb5427ed..a244bc603549d 100644
@@ -11,13 +11,18 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - fsl,ls1021a-ahci
-      - fsl,ls1043a-ahci
-      - fsl,ls1028a-ahci
-      - fsl,ls1088a-ahci
-      - fsl,ls2080a-ahci
-      - fsl,lx2160a-ahci
+    oneOf:
+      - items:
+          - const: fsl,ls1012a-ahci
+          - const: fsl,ls1043a-ahci
+      - enum:
+          - fsl,ls1021a-ahci
+          - fsl,ls1043a-ahci
+          - fsl,ls1046a-ahci
+          - fsl,ls1028a-ahci
+          - fsl,ls1088a-ahci
+          - fsl,ls2080a-ahci
+          - fsl,lx2160a-ahci
 
   reg:
     minItems: 1
Signature · 1 line
2.34.1
#1 lore raw
Quoted 23 lines · Frank Li

Add compatible string 'fsl,ls1046a-ahci' and 'fsl,ls1012a-ahci' compatible string. Allow 'fsl,ls1012a-ahci' fallback to 'fsl,ls1043a-ahci'.

ls1046a ahci ecc disable bit is difference with other chips.

---
 .../devicetree/bindings/ata/fsl,ahci.yaml     | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)
Documentation/devicetree/bindings/ata/fsl,ahci.yaml +0 -5
index 162b3bb5427ed..a244bc603549d 100644
@@ -11,13 +11,18 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - fsl,ls1021a-ahci
-      - fsl,ls1043a-ahci
-      - fsl,ls1028a-ahci
-      - fsl,ls1088a-ahci

Documentation/devicetree/bindings/ata/fsl,ahci.yaml maintainers: · line 21

Quoted 10 lines
Documentation/devicetree/bindings/ata/fsl,ahci.yaml +8 -2
-      - fsl,ls2080a-ahci
-      - fsl,lx2160a-ahci
+    oneOf:
+      - items:
+          - const: fsl,ls1012a-ahci
+          - const: fsl,ls1043a-ahci
+      - enum:
+          - fsl,ls1021a-ahci
+          - fsl,ls1043a-ahci
+          - fsl,ls1046a-ahci

Where is the driver change for this?

Your commit does not explain why you are doing it and without driver change adding new support it is not obvious. This probably applies to all your patches.

Best regards,
Krzysztof

author maintainer
#2 lore raw
Quoted 37 lines · Krzysztof Kozlowski
Quoted 23 lines · Frank Li

Add compatible string 'fsl,ls1046a-ahci' and 'fsl,ls1012a-ahci' compatible string. Allow 'fsl,ls1012a-ahci' fallback to 'fsl,ls1043a-ahci'.

ls1046a ahci ecc disable bit is difference with other chips.

---
 .../devicetree/bindings/ata/fsl,ahci.yaml     | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)
Documentation/devicetree/bindings/ata/fsl,ahci.yaml +0 -5
index 162b3bb5427ed..a244bc603549d 100644
@@ -11,13 +11,18 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - fsl,ls1021a-ahci
-      - fsl,ls1043a-ahci
-      - fsl,ls1028a-ahci
-      - fsl,ls1088a-ahci

Documentation/devicetree/bindings/ata/fsl,ahci.yaml maintainers: · line 21

Quoted 10 lines
Documentation/devicetree/bindings/ata/fsl,ahci.yaml +8 -2
-      - fsl,ls2080a-ahci
-      - fsl,lx2160a-ahci
+    oneOf:
+      - items:
+          - const: fsl,ls1012a-ahci
+          - const: fsl,ls1043a-ahci
+      - enum:
+          - fsl,ls1021a-ahci
+          - fsl,ls1043a-ahci
+          - fsl,ls1046a-ahci

Where is the driver change for this?

Quoted 3 lines

Your commit does not explain why you are doing it and without driver change adding new support it is not obvious. This probably applies to all your patches.

I think I missed ls1012a and ls1021a. Commit message is wrong. This is for legancy platorm.

Basic try to eliminate the CHECK_DTBS warning. ls1012a use

"fsl,ls1012a-ahci", "fsl,ls1043a-ahci". There are two methods,
1. change binding doc to allow "fsl,ls1012a-ahci", "fsl,ls1043a-ahci"
2. remove "fsl,ls1012a-ahci".

which way do you perfer?

Frank

Quoted 4 lines

Best regards,
Krzysztof

maintainer
#3 lore raw
Quoted 42 lines · Frank Li
Quoted 37 lines · Krzysztof Kozlowski
Quoted 23 lines · Frank Li

Add compatible string 'fsl,ls1046a-ahci' and 'fsl,ls1012a-ahci' compatible string. Allow 'fsl,ls1012a-ahci' fallback to 'fsl,ls1043a-ahci'.

ls1046a ahci ecc disable bit is difference with other chips.

---
 .../devicetree/bindings/ata/fsl,ahci.yaml     | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)
Documentation/devicetree/bindings/ata/fsl,ahci.yaml +0 -5
index 162b3bb5427ed..a244bc603549d 100644
@@ -11,13 +11,18 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - fsl,ls1021a-ahci
-      - fsl,ls1043a-ahci
-      - fsl,ls1028a-ahci
-      - fsl,ls1088a-ahci

Documentation/devicetree/bindings/ata/fsl,ahci.yaml maintainers: · line 21

Quoted 10 lines
Documentation/devicetree/bindings/ata/fsl,ahci.yaml +8 -2
-      - fsl,ls2080a-ahci
-      - fsl,lx2160a-ahci
+    oneOf:
+      - items:
+          - const: fsl,ls1012a-ahci
+          - const: fsl,ls1043a-ahci
+      - enum:
+          - fsl,ls1021a-ahci
+          - fsl,ls1043a-ahci
+          - fsl,ls1046a-ahci

Where is the driver change for this?

Quoted 3 lines

Your commit does not explain why you are doing it and without driver change adding new support it is not obvious. This probably applies to all your patches.

Quoted 7 lines

I think I missed ls1012a and ls1021a. Commit message is wrong. This is for legancy platorm.

Basic try to eliminate the CHECK_DTBS warning. ls1012a use

"fsl,ls1012a-ahci", "fsl,ls1043a-ahci". There are two methods,
1. change binding doc to allow "fsl,ls1012a-ahci", "fsl,ls1043a-ahci"

But then shouldn't you also change the drivers/ata/ahci_qoriq.c to add ls1012a as a compatible ?

Quoted 1 line

2. remove "fsl,ls1012a-ahci".

I am not sure if that is acceptable since there is one device tree using it out there already.

I am no DT expert, but I think (1) with the driver change is the right approach. Krzysztof ?

Signature · 2 lines
Damien Le Moal
Western Digital Research
#4 lore raw
Quoted 46 lines · Damien Le Moal
Quoted 45 lines · Frank Li
Quoted 37 lines · Krzysztof Kozlowski
Quoted 23 lines · Frank Li

Add compatible string 'fsl,ls1046a-ahci' and 'fsl,ls1012a-ahci' compatible string. Allow 'fsl,ls1012a-ahci' fallback to 'fsl,ls1043a-ahci'.

ls1046a ahci ecc disable bit is difference with other chips.

---
 .../devicetree/bindings/ata/fsl,ahci.yaml     | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)
Documentation/devicetree/bindings/ata/fsl,ahci.yaml +0 -5
index 162b3bb5427ed..a244bc603549d 100644
@@ -11,13 +11,18 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - fsl,ls1021a-ahci
-      - fsl,ls1043a-ahci
-      - fsl,ls1028a-ahci
-      - fsl,ls1088a-ahci

Documentation/devicetree/bindings/ata/fsl,ahci.yaml maintainers: · line 21

Quoted 10 lines
Documentation/devicetree/bindings/ata/fsl,ahci.yaml +8 -2
-      - fsl,ls2080a-ahci
-      - fsl,lx2160a-ahci
+    oneOf:
+      - items:
+          - const: fsl,ls1012a-ahci
+          - const: fsl,ls1043a-ahci
+      - enum:
+          - fsl,ls1021a-ahci
+          - fsl,ls1043a-ahci
+          - fsl,ls1046a-ahci

Where is the driver change for this?

Quoted 3 lines

Your commit does not explain why you are doing it and without driver change adding new support it is not obvious. This probably applies to all your patches.

I think I missed ls1012a and ls1021a. Commit message is wrong. This is for legancy platorm.

Quoted 7 lines
Quoted 4 lines

Basic try to eliminate the CHECK_DTBS warning. ls1012a use

"fsl,ls1012a-ahci", "fsl,ls1043a-ahci". There are two methods,
1. change binding doc to allow "fsl,ls1012a-ahci", "fsl,ls1043a-ahci"

But then shouldn't you also change the drivers/ata/ahci_qoriq.c to add ls1012a as a compatible ?

The fallback will be used by the driver, so there is no need to add front compatibles to of_device_id table.

Quoted 8 lines
Quoted 2 lines

2. remove "fsl,ls1012a-ahci".

I am not sure if that is acceptable since there is one device tree using it out there already.

I am no DT expert, but I think (1) with the driver change is the right approach. Krzysztof ?

Yep, this cannot be removed.

Best regards,
Krzysztof

maintainer
#5 lore raw
In reply to Frank Li
Quoted 43 lines · Frank Li

Add compatible string 'fsl,ls1046a-ahci' and 'fsl,ls1012a-ahci' compatible string. Allow 'fsl,ls1012a-ahci' fallback to 'fsl,ls1043a-ahci'.

ls1046a ahci ecc disable bit is difference with other chips.

---
 .../devicetree/bindings/ata/fsl,ahci.yaml     | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)
Documentation/devicetree/bindings/ata/fsl,ahci.yaml +12 -7
index 162b3bb5427ed..a244bc603549d 100644
@@ -11,13 +11,18 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - fsl,ls1021a-ahci
-      - fsl,ls1043a-ahci
-      - fsl,ls1028a-ahci
-      - fsl,ls1088a-ahci
-      - fsl,ls2080a-ahci
-      - fsl,lx2160a-ahci
+    oneOf:
+      - items:
+          - const: fsl,ls1012a-ahci
+          - const: fsl,ls1043a-ahci
+      - enum:
+          - fsl,ls1021a-ahci
+          - fsl,ls1043a-ahci
+          - fsl,ls1046a-ahci
+          - fsl,ls1028a-ahci
+          - fsl,ls1088a-ahci
+          - fsl,ls2080a-ahci
+          - fsl,lx2160a-ahci
 
   reg:
     minItems: 1
Signature · 1 line
2.34.1

Frank,

if the check_dts warning is still there,
will you submit a new patch with a better commit message that explains that the patch fixes the initial commit that converted the binding to yaml?

Such that DT maintainers can review your v2 patch.

Kind regards,
Niklas