mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
35 lines
867 B
Diff
35 lines
867 B
Diff
From 43f3999d1836117ab2e601aec9a9e6f292ce4958 Mon Sep 17 00:00:00 2001
|
|
From: Tianling Shen <cnsztl@gmail.com>
|
|
Date: Mon, 7 Jun 2021 15:45:37 +0800
|
|
Subject: [PATCH] arm64: dts: rockchip: add EEPROM node for NanoPi R4S
|
|
|
|
NanoPi R4S has a EEPROM attached to the 2nd I2C bus (U92), which
|
|
stores the MAC address.
|
|
|
|
Signed-off-by: Tianling Shen <cnsztl@gmail.com>
|
|
---
|
|
.../boot/dts/rockchip/rk3399-nanopi-r4s.dts | 18 ++++++++++++++++++
|
|
1 file changed, 18 insertions(+)
|
|
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
|
|
@@ -68,6 +68,19 @@
|
|
status = "disabled";
|
|
};
|
|
|
|
+&i2c2 {
|
|
+ eeprom@51 {
|
|
+ compatible = "microchip,24c02", "atmel,24c02";
|
|
+ reg = <0x51>;
|
|
+ pagesize = <16>;
|
|
+ size = <256>;
|
|
+
|
|
+ mac_address: mac-address@fa {
|
|
+ reg = <0xfa 0x06>;
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
&i2c4 {
|
|
status = "disabled";
|
|
};
|