Commit d4949bf9 authored by Chukun Pan's avatar Chukun Pan Committed by Maxime Ripard

arm64: dts: allwinner: NanoPi R1S H5: Add generic compatible string for I2C EEPROM

The 'microchip,24c02' compatible does not match the at24 driver, 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.

Also set this eeprom to read-only mode because it stores the mac
address of the onboard usb network card.
Signed-off-by: default avatarChukun Pan <amadeus@jmu.edu.cn>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20211010135017.6855-2-amadeus@jmu.edu.cn
parent 8c2e09b9
...@@ -142,9 +142,16 @@ &i2c0 { ...@@ -142,9 +142,16 @@ &i2c0 {
status = "okay"; status = "okay";
eeprom@51 { eeprom@51 {
compatible = "microchip,24c02"; compatible = "microchip,24c02", "atmel,24c02";
reg = <0x51>; reg = <0x51>;
pagesize = <16>; pagesize = <16>;
read-only;
#address-cells = <1>;
#size-cells = <1>;
eth_mac1: mac-address@fa {
reg = <0xfa 0x06>;
};
}; };
}; };
......
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