aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/devicetree/bindings/ata/sata_rcar.txt14
-rw-r--r--drivers/ata/sata_rcar.c8
2 files changed, 19 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/ata/sata_rcar.txt b/Documentation/devicetree/bindings/ata/sata_rcar.txt
index 0764f9ab63dc..e20eac7a3087 100644
--- a/Documentation/devicetree/bindings/ata/sata_rcar.txt
+++ b/Documentation/devicetree/bindings/ata/sata_rcar.txt
@@ -1,14 +1,22 @@
1* Renesas R-Car SATA 1* Renesas R-Car SATA
2 2
3Required properties: 3Required properties:
4- compatible : should contain one of the following: 4- compatible : should contain one or more of the following:
5 - "renesas,sata-r8a7779" for R-Car H1 5 - "renesas,sata-r8a7779" for R-Car H1
6 ("renesas,rcar-sata" is deprecated)
7 - "renesas,sata-r8a7790-es1" for R-Car H2 ES1 6 - "renesas,sata-r8a7790-es1" for R-Car H2 ES1
8 - "renesas,sata-r8a7790" for R-Car H2 other than ES1 7 - "renesas,sata-r8a7790" for R-Car H2 other than ES1
9 - "renesas,sata-r8a7791" for R-Car M2-W 8 - "renesas,sata-r8a7791" for R-Car M2-W
10 - "renesas,sata-r8a7793" for R-Car M2-N 9 - "renesas,sata-r8a7793" for R-Car M2-N
11 - "renesas,sata-r8a7795" for R-Car H3 10 - "renesas,sata-r8a7795" for R-Car H3
11 - "renesas,rcar-gen2-sata" for a generic R-Car Gen2 compatible device
12 - "renesas,rcar-gen3-sata" for a generic R-Car Gen3 compatible device
13 - "renesas,rcar-sata" is deprecated
14
15 When compatible with the generic version nodes
16 must list the SoC-specific version corresponding
17 to the platform first followed by the generic
18 version.
19
12- reg : address and length of the SATA registers; 20- reg : address and length of the SATA registers;
13- interrupts : must consist of one interrupt specifier. 21- interrupts : must consist of one interrupt specifier.
14- clocks : must contain a reference to the functional clock. 22- clocks : must contain a reference to the functional clock.
@@ -16,7 +24,7 @@ Required properties:
16Example: 24Example:
17 25
18sata0: sata@ee300000 { 26sata0: sata@ee300000 {
19 compatible = "renesas,sata-r8a7791"; 27 compatible = "renesas,sata-r8a7791", "renesas,rcar-gen2-sata";
20 reg = <0 0xee300000 0 0x2000>; 28 reg = <0 0xee300000 0 0x2000>;
21 interrupt-parent = <&gic>; 29 interrupt-parent = <&gic>;
22 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>; 30 interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c
index ee9844758736..537d11869069 100644
--- a/drivers/ata/sata_rcar.c
+++ b/drivers/ata/sata_rcar.c
@@ -858,6 +858,14 @@ static const struct of_device_id sata_rcar_match[] = {
858 .compatible = "renesas,sata-r8a7795", 858 .compatible = "renesas,sata-r8a7795",
859 .data = (void *)RCAR_GEN2_SATA 859 .data = (void *)RCAR_GEN2_SATA
860 }, 860 },
861 {
862 .compatible = "renesas,rcar-gen2-sata",
863 .data = (void *)RCAR_GEN2_SATA
864 },
865 {
866 .compatible = "renesas,rcar-gen3-sata",
867 .data = (void *)RCAR_GEN2_SATA
868 },
861 { }, 869 { },
862}; 870};
863MODULE_DEVICE_TABLE(of, sata_rcar_match); 871MODULE_DEVICE_TABLE(of, sata_rcar_match);