Commit 12f6dd86 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown

spi: efm32: use $vendor,$device scheme for compatible string

Wolfram Sang pointed out that "efm32,$device" is non-standard. So use the
common scheme and prefix device with "efm32-". The old compatible string
is left in place until arch/arm/boot/dts/efm32* is fixed.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: default avatarWolfram Sang <wsa@the-dreams.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
parent f2bb3105
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Required properties: Required properties:
- #address-cells: see spi-bus.txt - #address-cells: see spi-bus.txt
- #size-cells: see spi-bus.txt - #size-cells: see spi-bus.txt
- compatible: should be "efm32,spi" - compatible: should be "energymicro,efm32-spi"
- reg: Offset and length of the register set for the controller - reg: Offset and length of the register set for the controller
- interrupts: pair specifying rx and tx irq - interrupts: pair specifying rx and tx irq
- clocks: phandle to the spi clock - clocks: phandle to the spi clock
...@@ -15,7 +15,7 @@ Example: ...@@ -15,7 +15,7 @@ Example:
spi1: spi@0x4000c400 { /* USART1 */ spi1: spi@0x4000c400 { /* USART1 */
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
compatible = "efm32,spi"; compatible = "energymicro,efm32-spi";
reg = <0x4000c400 0x400>; reg = <0x4000c400 0x400>;
interrupts = <15 16>; interrupts = <15 16>;
clocks = <&cmu 20>; clocks = <&cmu 20>;
......
...@@ -471,6 +471,9 @@ static int efm32_spi_remove(struct platform_device *pdev) ...@@ -471,6 +471,9 @@ static int efm32_spi_remove(struct platform_device *pdev)
static const struct of_device_id efm32_spi_dt_ids[] = { static const struct of_device_id efm32_spi_dt_ids[] = {
{ {
.compatible = "energymicro,efm32-spi",
}, {
/* doesn't follow the "vendor,device" scheme, don't use */
.compatible = "efm32,spi", .compatible = "efm32,spi",
}, { }, {
/* sentinel */ /* sentinel */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment