Skip to content

Commit 5ff8068

Browse files
Richard Zhufloatious
authored andcommitted
dt-bindings: ata: Add i.MX8QM AHCI compatible string
Add i.MX8QM AHCI "fsl,imx8qm-ahci" compatible strings. i.MX8QM AHCI SATA doesn't require AHB clock rate to set the vendor specified TIMER1MS register. ahb clock is not required by i.MX8QM AHCI. Update the description of clocks in the dt-binding accordingly. Signed-off-by: Richard Zhu <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Reviewed-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Niklas Cassel <[email protected]>
1 parent bf1807c commit 5ff8068

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

Documentation/devicetree/bindings/ata/imx-sata.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ properties:
1919
- fsl,imx53-ahci
2020
- fsl,imx6q-ahci
2121
- fsl,imx6qp-ahci
22+
- fsl,imx8qm-ahci
2223

2324
reg:
2425
maxItems: 1
@@ -27,12 +28,14 @@ properties:
2728
maxItems: 1
2829

2930
clocks:
31+
minItems: 2
3032
items:
3133
- description: sata clock
3234
- description: sata reference clock
3335
- description: ahb clock
3436

3537
clock-names:
38+
minItems: 2
3639
items:
3740
- const: sata
3841
- const: sata_ref
@@ -58,13 +61,57 @@ properties:
5861
$ref: /schemas/types.yaml#/definitions/flag
5962
description: if present, disable spread-spectrum clocking on the SATA link.
6063

64+
phys:
65+
items:
66+
- description: phandle to SATA PHY.
67+
Since "REXT" pin is only present for first lane of i.MX8QM PHY, it's
68+
calibration result will be stored, passed through second lane, and
69+
shared with all three lanes PHY. The first two lanes PHY are used as
70+
calibration PHYs, although only the third lane PHY is used by SATA.
71+
- description: phandle to the first lane PHY of i.MX8QM.
72+
- description: phandle to the second lane PHY of i.MX8QM.
73+
74+
phy-names:
75+
items:
76+
- const: sata-phy
77+
- const: cali-phy0
78+
- const: cali-phy1
79+
80+
power-domains:
81+
maxItems: 1
82+
6183
required:
6284
- compatible
6385
- reg
6486
- interrupts
6587
- clocks
6688
- clock-names
6789

90+
allOf:
91+
- if:
92+
properties:
93+
compatible:
94+
contains:
95+
enum:
96+
- fsl,imx53-ahci
97+
- fsl,imx6q-ahci
98+
- fsl,imx6qp-ahci
99+
then:
100+
properties:
101+
clock-names:
102+
minItems: 3
103+
104+
- if:
105+
properties:
106+
compatible:
107+
contains:
108+
enum:
109+
- fsl,imx8qm-ahci
110+
then:
111+
properties:
112+
clock-names:
113+
minItems: 2
114+
68115
additionalProperties: false
69116

70117
examples:

0 commit comments

Comments
 (0)