Skip to content

Commit 2e23842

Browse files
ldesrochescristibirsan
authored andcommitted
ARM: dts: at91: at91-sama5d27_som1: add 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. Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
1 parent 72e962b commit 2e23842

2 files changed

Lines changed: 18 additions & 14 deletions

File tree

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,25 @@
115115
};
116116
};
117117

118+
i2c0: i2c@f8028000 {
119+
dmas = <0>, <0>;
120+
pinctrl-names = "default";
121+
pinctrl-0 = <&pinctrl_i2c0_default>;
122+
status = "okay";
123+
124+
at24@50 {
125+
compatible = "24c02";
126+
reg = <0x50>;
127+
pagesize = <8>;
128+
};
129+
};
130+
118131
pinctrl@fc038000 {
132+
pinctrl_i2c0_default: i2c0_default {
133+
pinmux = <PIN_PD21__TWD0>,
134+
<PIN_PD22__TWCK0>;
135+
bias-disable;
136+
};
119137

120138
pinctrl_qspi1_default: qspi1_default {
121139
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
@@ -57,7 +57,6 @@
5757
serial0 = &uart1; /* DBGU */
5858
serial1 = &uart4; /* mikro BUS 1 */
5959
serial2 = &uart2; /* mikro BUS 2 */
60-
i2c0 = &i2c0;
6160
i2c1 = &i2c1;
6261
i2c2 = &i2c2;
6362
};
@@ -171,13 +170,6 @@
171170
status = "okay";
172171
};
173172

174-
i2c0: i2c@f8028000 {
175-
dmas = <0>, <0>;
176-
pinctrl-names = "default";
177-
pinctrl-0 = <&pinctrl_i2c0_default>;
178-
status = "okay";
179-
};
180-
181173
pwm0: pwm@f802c000 {
182174
pinctrl-names = "default";
183175
pinctrl-0 = <&pinctrl_mikrobus1_pwm &pinctrl_mikrobus2_pwm>;
@@ -331,12 +323,6 @@
331323
bias-disable;
332324
};
333325

334-
pinctrl_i2c0_default: i2c0_default {
335-
pinmux = <PIN_PD21__TWD0>,
336-
<PIN_PD22__TWCK0>;
337-
bias-disable;
338-
};
339-
340326
pinctrl_i2c1_default: i2c1_default {
341327
pinmux = <PIN_PD4__TWD1>,
342328
<PIN_PD5__TWCK1>;

0 commit comments

Comments
 (0)