diff options
author | Chukun Pan <amadeus@jmu.edu.cn> | 2021-10-10 16:50:17 +0300 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-10-14 10:17:42 +0300 |
commit | d4949bf9cc6696c551b0b7b7111372cc8d2a35a9 (patch) | |
tree | a4bcec47fdb575b5fc872801cb92e396a02ca02b /arch/arm64/boot/dts/allwinner | |
parent | 8c2e09b9a2f58baf99b4f88d12ef8751f8b0822b (diff) | |
download | linux-d4949bf9cc6696c551b0b7b7111372cc8d2a35a9.tar.xz |
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: Chukun Pan <amadeus@jmu.edu.cn>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20211010135017.6855-2-amadeus@jmu.edu.cn
Diffstat (limited to 'arch/arm64/boot/dts/allwinner')
-rw-r--r-- | arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts index 55bcdf8d1a07..55b369534a08 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts @@ -142,9 +142,16 @@ status = "okay"; eeprom@51 { - compatible = "microchip,24c02"; + compatible = "microchip,24c02", "atmel,24c02"; reg = <0x51>; pagesize = <16>; + read-only; + #address-cells = <1>; + #size-cells = <1>; + + eth_mac1: mac-address@fa { + reg = <0xfa 0x06>; + }; }; }; |