Skip to content

Commit 2fdc4e1

Browse files
ldesrochesalexandrebelloni
authored andcommitted
ARM: dts: at91: at91-sama5d27_som1: Enable eeprom device
There is an EEPROM on at91-sama5d27_som1 connected to i2c0. i2c0 node has to be moved from at91-sama5d27_som1_ek to at91-sama5d27_som1. Enable the i2c EEPROM found on at91-sama5d27_som1. Add an alias for the i2c node. Signed-off-by: Ludovic Desroches <[email protected]> Tested-by: Tudor Ambarus <[email protected]> Signed-off-by: Tudor Ambarus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 51cca92 commit 2fdc4e1

File tree

2 files changed

+22
-14
lines changed

2 files changed

+22
-14
lines changed

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 {

arch/arm/boot/dts/at91-sama5d27_som1_ek.dts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
serial0 = &uart1; /* DBGU */
2121
serial1 = &uart4; /* mikro BUS 1 */
2222
serial2 = &uart2; /* mikro BUS 2 */
23-
i2c0 = &i2c0;
2423
i2c1 = &i2c1;
2524
i2c2 = &i2c2;
2625
};
@@ -116,13 +115,6 @@
116115
status = "okay";
117116
};
118117

119-
i2c0: i2c@f8028000 {
120-
dmas = <0>, <0>;
121-
pinctrl-names = "default";
122-
pinctrl-0 = <&pinctrl_i2c0_default>;
123-
status = "okay";
124-
};
125-
126118
pwm0: pwm@f802c000 {
127119
pinctrl-names = "default";
128120
pinctrl-0 = <&pinctrl_mikrobus1_pwm &pinctrl_mikrobus2_pwm>;
@@ -289,12 +281,6 @@
289281
bias-disable;
290282
};
291283

292-
pinctrl_i2c0_default: i2c0_default {
293-
pinmux = <PIN_PD21__TWD0>,
294-
<PIN_PD22__TWCK0>;
295-
bias-disable;
296-
};
297-
298284
pinctrl_i2c1_default: i2c1_default {
299285
pinmux = <PIN_PD4__TWD1>,
300286
<PIN_PD5__TWCK1>;

0 commit comments

Comments
 (0)