792028b29290f5fcf600806e4f1e2af8ec3a02f3
[openwrt/staging/ldir.git] / target / linux / rockchip / patches-5.10 / 005-arm64-dts-rockchip-add-EEPROM-node-for-NanoPi-R4S.patch
1 From af20b3384e8723077cc6484160b0cf4e9be321de Mon Sep 17 00:00:00 2001
2 From: Tianling Shen <cnsztl@gmail.com>
3 Date: Mon, 7 Jun 2021 15:45:37 +0800
4 Subject: [PATCH] arm64: dts: rockchip: add EEPROM node for NanoPi R4S
5
6 NanoPi R4S has a EEPROM attached to the 2nd I2C bus (U92), which
7 stores the MAC address.
8
9 Signed-off-by: Tianling Shen <cnsztl@gmail.com>
10 ---
11 arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts | 9 +++++++++
12 1 file changed, 9 insertions(+)
13
14 --- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
15 +++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
16 @@ -68,6 +68,15 @@
17 status = "disabled";
18 };
19
20 +&i2c2 {
21 + eeprom@51 {
22 + compatible = "microchip,24c02", "atmel,24c02";
23 + reg = <0x51>;
24 + pagesize = <16>;
25 + read-only; /* This holds our MAC */
26 + };
27 +};
28 +
29 &i2c4 {
30 status = "disabled";
31 };