dt-bindings: ata: Add UniPhier controller binding
Add UniPhier SATA controller compatible string to the platform binding. This controller needs three reset controls for Pro4 SoC, or two reset controls for PXs2 and PXs3 SoCs. Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
This commit is contained in:
parent
dc2e107e2d
commit
69e32a7070
@ -30,12 +30,12 @@ select:
|
|||||||
- marvell,armada-3700-ahci
|
- marvell,armada-3700-ahci
|
||||||
- marvell,armada-8k-ahci
|
- marvell,armada-8k-ahci
|
||||||
- marvell,berlin2q-ahci
|
- marvell,berlin2q-ahci
|
||||||
|
- socionext,uniphier-pro4-ahci
|
||||||
|
- socionext,uniphier-pxs2-ahci
|
||||||
|
- socionext,uniphier-pxs3-ahci
|
||||||
required:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
|
|
||||||
allOf:
|
|
||||||
- $ref: "ahci-common.yaml#"
|
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
compatible:
|
compatible:
|
||||||
oneOf:
|
oneOf:
|
||||||
@ -45,6 +45,9 @@ properties:
|
|||||||
- marvell,armada-8k-ahci
|
- marvell,armada-8k-ahci
|
||||||
- marvell,berlin2-ahci
|
- marvell,berlin2-ahci
|
||||||
- marvell,berlin2q-ahci
|
- marvell,berlin2q-ahci
|
||||||
|
- socionext,uniphier-pro4-ahci
|
||||||
|
- socionext,uniphier-pxs2-ahci
|
||||||
|
- socionext,uniphier-pxs3-ahci
|
||||||
- const: generic-ahci
|
- const: generic-ahci
|
||||||
- enum:
|
- enum:
|
||||||
- cavium,octeon-7130-ahci
|
- cavium,octeon-7130-ahci
|
||||||
@ -74,7 +77,8 @@ properties:
|
|||||||
maxItems: 1
|
maxItems: 1
|
||||||
|
|
||||||
resets:
|
resets:
|
||||||
maxItems: 1
|
minItems: 1
|
||||||
|
maxItems: 3
|
||||||
|
|
||||||
patternProperties:
|
patternProperties:
|
||||||
"^sata-port@[0-9a-f]+$":
|
"^sata-port@[0-9a-f]+$":
|
||||||
@ -91,6 +95,43 @@ required:
|
|||||||
- reg
|
- reg
|
||||||
- interrupts
|
- interrupts
|
||||||
|
|
||||||
|
allOf:
|
||||||
|
- $ref: ahci-common.yaml#
|
||||||
|
- if:
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
contains:
|
||||||
|
const: socionext,uniphier-pro4-ahci
|
||||||
|
then:
|
||||||
|
properties:
|
||||||
|
resets:
|
||||||
|
items:
|
||||||
|
- description: reset line for the parent
|
||||||
|
- description: reset line for the glue logic
|
||||||
|
- description: reset line for the controller
|
||||||
|
required:
|
||||||
|
- resets
|
||||||
|
else:
|
||||||
|
if:
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
contains:
|
||||||
|
enum:
|
||||||
|
- socionext,uniphier-pxs2-ahci
|
||||||
|
- socionext,uniphier-pxs3-ahci
|
||||||
|
then:
|
||||||
|
properties:
|
||||||
|
resets:
|
||||||
|
items:
|
||||||
|
- description: reset for the glue logic
|
||||||
|
- description: reset for the controller
|
||||||
|
required:
|
||||||
|
- resets
|
||||||
|
else:
|
||||||
|
properties:
|
||||||
|
resets:
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
unevaluatedProperties: false
|
unevaluatedProperties: false
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user