Skip to content

Commit c86f675

Browse files
committed
rock 2a: add eeprom support on i2c1-m0
Signed-off-by: SongJun Li <[email protected]>
1 parent 669331d commit c86f675

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

arch/arm64/boot/dts/rockchip/overlays/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ dtb-$(CONFIG_CLK_RK3528) += \
126126
rk3528-uart2-m1.dtbo \
127127
rk3528-uart3-m0.dtbo \
128128
rk3528-uart3-m1.dtbo \
129-
rk3528-uart7-m0.dtbo
129+
rk3528-uart7-m0.dtbo \
130+
rock-2a-eeprom.dtbo
130131

131132
dtb-$(CONFIG_CLK_RK3568) += \
132133
audioinjector-isolated-soundcard.dtbo \
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/ {
5+
metadata {
6+
title = "Enable EEPROM on I2C1-M0";
7+
compatible = "radxa,rock-2a";
8+
category = "misc";
9+
exclusive = "GPIO4_A2", "GPIO4_A3", "i2c1";
10+
description = "Enable EEPROM on I2C1-M0.\nThis is a onboard device that we disable by default, so GPIO pins can function as expected.";
11+
};
12+
};
13+
14+
&i2c1 {
15+
status = "okay";
16+
pinctrl-names = "default";
17+
pinctrl-0 = <&i2c1m0_xfer>;
18+
19+
eeprom: bl24c16@50 {
20+
status = "okay";
21+
compatible = "atmel,24c16";
22+
reg = <0x50>;
23+
pagesize = <16>;
24+
};
25+
};

0 commit comments

Comments
 (0)