Skip to content

Commit

Permalink
ARM: dts: at91: at91-sama5d27_som1: Enable eeprom device
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ldesroches authored and alexandrebelloni committed Apr 13, 2020
1 parent 51cca92 commit 2fdc4e1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
22 changes: 22 additions & 0 deletions arch/arm/boot/dts/at91-sama5d27_som1.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
model = "Atmel SAMA5D27 SoM1";
compatible = "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5";

aliases {
i2c0 = &i2c0;
};

clocks {
slow_xtal {
clock-frequency = <32768>;
Expand Down Expand Up @@ -89,7 +93,25 @@
};
};

i2c0: i2c@f8028000 {
dmas = <0>, <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c0_default>;
status = "okay";

at24@50 {
compatible = "24c02";
reg = <0x50>;
pagesize = <8>;
};
};

pinctrl@fc038000 {
pinctrl_i2c0_default: i2c0_default {
pinmux = <PIN_PD21__TWD0>,
<PIN_PD22__TWCK0>;
bias-disable;
};

pinctrl_qspi1_default: qspi1_default {
sck_cs {
Expand Down
14 changes: 0 additions & 14 deletions arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
serial0 = &uart1; /* DBGU */
serial1 = &uart4; /* mikro BUS 1 */
serial2 = &uart2; /* mikro BUS 2 */
i2c0 = &i2c0;
i2c1 = &i2c1;
i2c2 = &i2c2;
};
Expand Down Expand Up @@ -116,13 +115,6 @@
status = "okay";
};

i2c0: i2c@f8028000 {
dmas = <0>, <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c0_default>;
status = "okay";
};

pwm0: pwm@f802c000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mikrobus1_pwm &pinctrl_mikrobus2_pwm>;
Expand Down Expand Up @@ -289,12 +281,6 @@
bias-disable;
};

pinctrl_i2c0_default: i2c0_default {
pinmux = <PIN_PD21__TWD0>,
<PIN_PD22__TWCK0>;
bias-disable;
};

pinctrl_i2c1_default: i2c1_default {
pinmux = <PIN_PD4__TWD1>,
<PIN_PD5__TWCK1>;
Expand Down

0 comments on commit 2fdc4e1

Please sign in to comment.