Skip to content

Commit 9dc9d6a

Browse files
ldesrochesambarus
authored andcommitted
ARM: dts: at91: at91-sama5d27_som1: Enable eeprom device
Enable the i2c EEPROM found on at91-sama5d27_som1. Add an alias for the i2c node. Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com> [ta: port from 4.19 to 5.4, add alias] Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
1 parent 4e98244 commit 9dc9d6a

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

arch/arm/boot/dts/at91-sama5d27_som1.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
model = "Atmel SAMA5D27 SoM1";
1414
compatible = "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";
1515

16+
aliases {
17+
i2c0 = &i2c0;
18+
};
19+
1620
clocks {
1721
slow_xtal {
1822
clock-frequency = <32768>;
@@ -89,7 +93,25 @@
8993
};
9094
};
9195

96+
i2c0: i2c@f8028000 {
97+
dmas = <0>, <0>;
98+
pinctrl-names = "default";
99+
pinctrl-0 = <&pinctrl_i2c0_default>;
100+
status = "okay";
101+
102+
at24@50 {
103+
compatible = "24c02";
104+
reg = <0x50>;
105+
pagesize = <8>;
106+
};
107+
};
108+
92109
pinctrl@fc038000 {
110+
pinctrl_i2c0_default: i2c0_default {
111+
pinmux = <PIN_PD21__TWD0>,
112+
<PIN_PD22__TWCK0>;
113+
bias-disable;
114+
};
93115

94116
pinctrl_qspi1_default: qspi1_default {
95117
sck_cs {

0 commit comments

Comments
 (0)