diff options
-rw-r--r-- | Documentation/devicetree/bindings/spi/sh-msiof.txt | 19 | ||||
-rw-r--r-- | drivers/spi/spi-sh-msiof.c | 4 |
2 files changed, 16 insertions, 7 deletions
diff --git a/Documentation/devicetree/bindings/spi/sh-msiof.txt b/Documentation/devicetree/bindings/spi/sh-msiof.txt index da6614c63796..dc975064fa27 100644 --- a/Documentation/devicetree/bindings/spi/sh-msiof.txt +++ b/Documentation/devicetree/bindings/spi/sh-msiof.txt | |||
@@ -1,17 +1,23 @@ | |||
1 | Renesas MSIOF spi controller | 1 | Renesas MSIOF spi controller |
2 | 2 | ||
3 | Required properties: | 3 | Required properties: |
4 | - compatible : "renesas,msiof-<soctype>" for SoCs, | 4 | - compatible : "renesas,msiof-r8a7790" (R-Car H2) |
5 | "renesas,sh-msiof" for SuperH, or | ||
6 | "renesas,sh-mobile-msiof" for SH Mobile series. | ||
7 | Examples with soctypes are: | ||
8 | "renesas,msiof-r8a7790" (R-Car H2) | ||
9 | "renesas,msiof-r8a7791" (R-Car M2-W) | 5 | "renesas,msiof-r8a7791" (R-Car M2-W) |
10 | "renesas,msiof-r8a7792" (R-Car V2H) | 6 | "renesas,msiof-r8a7792" (R-Car V2H) |
11 | "renesas,msiof-r8a7793" (R-Car M2-N) | 7 | "renesas,msiof-r8a7793" (R-Car M2-N) |
12 | "renesas,msiof-r8a7794" (R-Car E2) | 8 | "renesas,msiof-r8a7794" (R-Car E2) |
13 | "renesas,msiof-r8a7796" (R-Car M3-W) | 9 | "renesas,msiof-r8a7796" (R-Car M3-W) |
14 | "renesas,msiof-sh73a0" (SH-Mobile AG5) | 10 | "renesas,msiof-sh73a0" (SH-Mobile AG5) |
11 | "renesas,sh-mobile-msiof" (generic SH-Mobile compatibile device) | ||
12 | "renesas,rcar-gen2-msiof" (generic R-Car Gen2 compatible device) | ||
13 | "renesas,rcar-gen3-msiof" (generic R-Car Gen3 compatible device) | ||
14 | "renesas,sh-msiof" (deprecated) | ||
15 | |||
16 | When compatible with the generic version, nodes | ||
17 | must list the SoC-specific version corresponding | ||
18 | to the platform first followed by the generic | ||
19 | version. | ||
20 | |||
15 | - reg : A list of offsets and lengths of the register sets for | 21 | - reg : A list of offsets and lengths of the register sets for |
16 | the device. | 22 | the device. |
17 | If only one register set is present, it is to be used | 23 | If only one register set is present, it is to be used |
@@ -61,7 +67,8 @@ Documentation/devicetree/bindings/pinctrl/renesas,*. | |||
61 | Example: | 67 | Example: |
62 | 68 | ||
63 | msiof0: spi@e6e20000 { | 69 | msiof0: spi@e6e20000 { |
64 | compatible = "renesas,msiof-r8a7791"; | 70 | compatible = "renesas,msiof-r8a7791", |
71 | "renesas,rcar-gen2-msiof"; | ||
65 | reg = <0 0xe6e20000 0 0x0064>; | 72 | reg = <0 0xe6e20000 0 0x0064>; |
66 | interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>; | 73 | interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>; |
67 | clocks = <&mstp0_clks R8A7791_CLK_MSIOF0>; | 74 | clocks = <&mstp0_clks R8A7791_CLK_MSIOF0>; |
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index 0012ad02e569..471ca211b76c 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c | |||
@@ -973,14 +973,16 @@ static const struct sh_msiof_chipdata r8a779x_data = { | |||
973 | }; | 973 | }; |
974 | 974 | ||
975 | static const struct of_device_id sh_msiof_match[] = { | 975 | static const struct of_device_id sh_msiof_match[] = { |
976 | { .compatible = "renesas,sh-msiof", .data = &sh_data }, | ||
977 | { .compatible = "renesas,sh-mobile-msiof", .data = &sh_data }, | 976 | { .compatible = "renesas,sh-mobile-msiof", .data = &sh_data }, |
978 | { .compatible = "renesas,msiof-r8a7790", .data = &r8a779x_data }, | 977 | { .compatible = "renesas,msiof-r8a7790", .data = &r8a779x_data }, |
979 | { .compatible = "renesas,msiof-r8a7791", .data = &r8a779x_data }, | 978 | { .compatible = "renesas,msiof-r8a7791", .data = &r8a779x_data }, |
980 | { .compatible = "renesas,msiof-r8a7792", .data = &r8a779x_data }, | 979 | { .compatible = "renesas,msiof-r8a7792", .data = &r8a779x_data }, |
981 | { .compatible = "renesas,msiof-r8a7793", .data = &r8a779x_data }, | 980 | { .compatible = "renesas,msiof-r8a7793", .data = &r8a779x_data }, |
982 | { .compatible = "renesas,msiof-r8a7794", .data = &r8a779x_data }, | 981 | { .compatible = "renesas,msiof-r8a7794", .data = &r8a779x_data }, |
982 | { .compatible = "renesas,rcar-gen2-msiof", .data = &r8a779x_data }, | ||
983 | { .compatible = "renesas,msiof-r8a7796", .data = &r8a779x_data }, | 983 | { .compatible = "renesas,msiof-r8a7796", .data = &r8a779x_data }, |
984 | { .compatible = "renesas,rcar-gen3-msiof", .data = &r8a779x_data }, | ||
985 | { .compatible = "renesas,sh-msiof", .data = &sh_data }, // Deprecated | ||
984 | {}, | 986 | {}, |
985 | }; | 987 | }; |
986 | MODULE_DEVICE_TABLE(of, sh_msiof_match); | 988 | MODULE_DEVICE_TABLE(of, sh_msiof_match); |