linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: rockchip: add EEPROM node for NanoPi R4S
@ 2021-06-07  8:17 Tianling Shen
  2021-06-07  8:35 ` Chen-Yu Tsai
  2021-06-07  9:14 ` Johan Jonker
  0 siblings, 2 replies; 10+ messages in thread
From: Tianling Shen @ 2021-06-07  8:17 UTC (permalink / raw)
  To: Rob Herring, Heiko Stuebner, Tianling Shen, Marty Jones, Pavel Machek
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel

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>
---
 arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
index cef4d18b599d..4a82f50a07c5 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
@@ -68,6 +68,15 @@
 	status = "disabled";
 };
 
+&i2c2 {
+	eeprom@51 {
+		compatible = "microchip,24c02", "atmel,24c02";
+		reg = <0x51>;
+		pagesize = <16>;
+		read-only; /* This holds our MAC */
+	};
+};
+
 &i2c4 {
 	status = "disabled";
 };
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-06-07 17:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-07  8:17 [PATCH] arm64: dts: rockchip: add EEPROM node for NanoPi R4S Tianling Shen
2021-06-07  8:35 ` Chen-Yu Tsai
2021-06-07 12:48   ` Tianling Shen
2021-06-07  9:14 ` Johan Jonker
2021-06-07  9:40   ` Chen-Yu Tsai
2021-06-07 10:26     ` Johan Jonker
2021-06-07 11:20       ` Chen-Yu Tsai
2021-06-07 16:01       ` Tianling Shen
2021-06-07 17:04         ` Johan Jonker
2021-06-07 17:08           ` Chen-Yu Tsai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).