Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ea8dafd authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Greg Kroah-Hartman
Browse files

serial: 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.

Reported-by: default avatarWolfram Sang <wsa@the-dreams.de>
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 avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 93a2e470
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
* Energymicro efm32 UART
* Energymicro efm32 UART


Required properties:
Required properties:
- compatible : Should be "efm32,uart"
- compatible : Should be "energymicro,efm32-uart"
- reg : Address and length of the register set
- reg : Address and length of the register set
- interrupts : Should contain uart interrupt
- interrupts : Should contain uart interrupt


@@ -13,7 +13,7 @@ Optional properties:
Example:
Example:


uart@0x4000c400 {
uart@0x4000c400 {
	compatible = "efm32,uart";
	compatible = "energymicro,efm32-uart";
	reg = <0x4000c400 0x400>;
	reg = <0x4000c400 0x400>;
	interrupts = <15>;
	interrupts = <15>;
	efm32,location = <0>;
	efm32,location = <0>;
+3 −0
Original line number Original line Diff line number Diff line
@@ -798,6 +798,9 @@ static int efm32_uart_remove(struct platform_device *pdev)


static const struct of_device_id efm32_uart_dt_ids[] = {
static const struct of_device_id efm32_uart_dt_ids[] = {
	{
	{
		.compatible = "energymicro,efm32-uart",
	}, {
		/* doesn't follow the "vendor,device" scheme, don't use */
		.compatible = "efm32,uart",
		.compatible = "efm32,uart",
	}, {
	}, {
		/* sentinel */
		/* sentinel */