ARM: dts: omap: Add generic compatible string for I2C EEPROM

The at24 driver allows to register I2C EEPROM chips using different vendor
and devices, but the I2C subsystem does not take the vendor into account
when matching using the I2C table since it only has device entries.

But when matching using an OF table, both the vendor and device has to be
taken into account so the driver defines only a set of compatible strings
using the "atmel" vendor as a generic fallback for compatible I2C devices.

So add this generic fallback to the device node compatible string to make
the device to match the driver using the OF device ID table.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
Javier Martinez Canillas 2017-05-23 15:34:31 +02:00 committed by Tony Lindgren
parent cb11a8baa5
commit 05e7d622f1
17 changed files with 21 additions and 21 deletions

View File

@ -255,7 +255,7 @@ tps: tps@2d {
}; };
at24@50 { at24@50 {
compatible = "at24,24c02"; compatible = "atmel,24c02";
pagesize = <8>; pagesize = <8>;
reg = <0x50>; reg = <0x50>;
}; };

View File

@ -89,7 +89,7 @@ &lcdc {
&i2c0 { &i2c0 {
eeprom: eeprom@50 { eeprom: eeprom@50 {
compatible = "at,24c256"; compatible = "atmel,24c256";
reg = <0x50>; reg = <0x50>;
}; };
}; };

View File

@ -232,7 +232,7 @@ tps: tps@24 {
}; };
baseboard_eeprom: baseboard_eeprom@50 { baseboard_eeprom: baseboard_eeprom@50 {
compatible = "at,24c256"; compatible = "atmel,24c256";
reg = <0x50>; reg = <0x50>;
#address-cells = <1>; #address-cells = <1>;
@ -251,7 +251,7 @@ &i2c2 {
clock-frequency = <100000>; clock-frequency = <100000>;
cape_eeprom0: cape_eeprom0@54 { cape_eeprom0: cape_eeprom0@54 {
compatible = "at,24c256"; compatible = "atmel,24c256";
reg = <0x54>; reg = <0x54>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
@ -261,7 +261,7 @@ cape0_data: cape_data@0 {
}; };
cape_eeprom1: cape_eeprom1@55 { cape_eeprom1: cape_eeprom1@55 {
compatible = "at,24c256"; compatible = "atmel,24c256";
reg = <0x55>; reg = <0x55>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
@ -271,7 +271,7 @@ cape1_data: cape_data@0 {
}; };
cape_eeprom2: cape_eeprom2@56 { cape_eeprom2: cape_eeprom2@56 {
compatible = "at,24c256"; compatible = "atmel,24c256";
reg = <0x56>; reg = <0x56>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
@ -281,7 +281,7 @@ cape2_data: cape_data@0 {
}; };
cape_eeprom3: cape_eeprom3@57 { cape_eeprom3: cape_eeprom3@57 {
compatible = "at,24c256"; compatible = "atmel,24c256";
reg = <0x57>; reg = <0x57>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;

View File

@ -224,7 +224,7 @@ tps: tps@24 {
}; };
eeprom@53 { eeprom@53 {
compatible = "microchip,24c02"; compatible = "microchip,24c02", "atmel,24c02";
reg = <0x53>; reg = <0x53>;
pagesize = <8>; pagesize = <8>;
}; };

View File

@ -67,7 +67,7 @@ tps: tps@24 {
}; };
eeprom: eeprom@50 { eeprom: eeprom@50 {
compatible = "at,24c256"; compatible = "atmel,24c256";
reg = <0x50>; reg = <0x50>;
}; };

View File

@ -188,7 +188,7 @@ tps: tps@24 {
}; };
at24@50 { at24@50 {
compatible = "at24,24c32"; compatible = "atmel,24c32";
pagesize = <32>; pagesize = <32>;
reg = <0x50>; reg = <0x50>;
}; };

View File

@ -309,7 +309,7 @@ bq32000: rtc@68 {
}; };
eeprom: eeprom@50 { eeprom: eeprom@50 {
compatible = "at,24c256"; compatible = "atmel,24c256";
reg = <0x50>; reg = <0x50>;
}; };

View File

@ -339,7 +339,7 @@ &i2c0 {
clock-frequency = <400000>; clock-frequency = <400000>;
at24@50 { at24@50 {
compatible = "at24,24c256"; compatible = "atmel,24c256";
pagesize = <64>; pagesize = <64>;
reg = <0x50>; reg = <0x50>;
}; };

View File

@ -511,7 +511,7 @@ power-button {
}; };
at24@50 { at24@50 {
compatible = "at24,24c256"; compatible = "atmel,24c256";
pagesize = <64>; pagesize = <64>;
reg = <0x50>; reg = <0x50>;
}; };

View File

@ -477,7 +477,7 @@ ldo1: regulator-ldo1 {
}; };
at24@50 { at24@50 {
compatible = "at24,24c256"; compatible = "atmel,24c256";
pagesize = <64>; pagesize = <64>;
reg = <0x50>; reg = <0x50>;
}; };

View File

@ -388,7 +388,7 @@ tlv320aic3104: tlv320aic3104@18 {
}; };
eeprom: eeprom@50 { eeprom: eeprom@50 {
compatible = "at,24c32"; compatible = "atmel,24c32";
reg = <0x50>; reg = <0x50>;
}; };
}; };

View File

@ -188,7 +188,7 @@ &i2c1 {
clock-frequency = <400000>; clock-frequency = <400000>;
at24@50 { at24@50 {
compatible = "at24,24c02"; compatible = "atmel,24c02";
pagesize = <16>; pagesize = <16>;
reg = <0x50>; reg = <0x50>;
}; };

View File

@ -418,7 +418,7 @@ tsc2007@48 {
/* RFID EEPROM */ /* RFID EEPROM */
m24lr64@50 { m24lr64@50 {
compatible = "at,24c64"; compatible = "atmel,24c64";
reg = <0x50>; reg = <0x50>;
}; };
}; };

View File

@ -89,7 +89,7 @@ &i2c3 {
clock-frequency = <400000>; clock-frequency = <400000>;
at24@50 { at24@50 {
compatible = "at24,24c02"; compatible = "atmel,24c02";
pagesize = <16>; pagesize = <16>;
reg = <0x50>; reg = <0x50>;
}; };

View File

@ -241,7 +241,7 @@ tmp105@49 {
}; };
eeprom@50 { eeprom@50 {
compatible = "microchip,24c32"; compatible = "microchip,24c32", "atmel,24c32";
reg = <0x50>; reg = <0x50>;
}; };
}; };

View File

@ -404,7 +404,7 @@ &i2c1 {
clock-frequency = <400000>; clock-frequency = <400000>;
at24@50 { at24@50 {
compatible = "at24,24c02"; compatible = "atmel,24c02";
pagesize = <16>; pagesize = <16>;
reg = <0x50>; reg = <0x50>;
}; };

View File

@ -44,7 +44,7 @@ &i2c4 {
clock-frequency = <400000>; clock-frequency = <400000>;
at24@50 { at24@50 {
compatible = "at24,24c02"; compatible = "atmel,24c02";
pagesize = <16>; pagesize = <16>;
reg = <0x50>; reg = <0x50>;
}; };