Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ludovic.desroches@microchip.com>
Tested-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20200403061222.1277147-5-tudor.ambarus@microchip.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Ludovic Desroches and committed by
Alexandre Belloni
2fdc4e1c 51cca920

+22 -14
+22
arch/arm/boot/dts/at91-sama5d27_som1.dtsi
··· 13 13 model = "Atmel SAMA5D27 SoM1"; 14 14 compatible = "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5"; 15 15 16 + aliases { 17 + i2c0 = &i2c0; 18 + }; 19 + 16 20 clocks { 17 21 slow_xtal { 18 22 clock-frequency = <32768>; ··· 93 89 }; 94 90 }; 95 91 92 + i2c0: i2c@f8028000 { 93 + dmas = <0>, <0>; 94 + pinctrl-names = "default"; 95 + pinctrl-0 = <&pinctrl_i2c0_default>; 96 + status = "okay"; 97 + 98 + at24@50 { 99 + compatible = "24c02"; 100 + reg = <0x50>; 101 + pagesize = <8>; 102 + }; 103 + }; 104 + 96 105 pinctrl@fc038000 { 106 + pinctrl_i2c0_default: i2c0_default { 107 + pinmux = <PIN_PD21__TWD0>, 108 + <PIN_PD22__TWCK0>; 109 + bias-disable; 110 + }; 97 111 98 112 pinctrl_qspi1_default: qspi1_default { 99 113 sck_cs {
-14
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
··· 20 20 serial0 = &uart1; /* DBGU */ 21 21 serial1 = &uart4; /* mikro BUS 1 */ 22 22 serial2 = &uart2; /* mikro BUS 2 */ 23 - i2c0 = &i2c0; 24 23 i2c1 = &i2c1; 25 24 i2c2 = &i2c2; 26 25 }; ··· 112 113 pinctrl-0 = <&pinctrl_mikrobus2_uart>; 113 114 atmel,use-dma-rx; 114 115 atmel,use-dma-tx; 115 - status = "okay"; 116 - }; 117 - 118 - i2c0: i2c@f8028000 { 119 - dmas = <0>, <0>; 120 - pinctrl-names = "default"; 121 - pinctrl-0 = <&pinctrl_i2c0_default>; 122 116 status = "okay"; 123 117 }; 124 118 ··· 278 286 <PIN_PC18__FLEXCOM3_IO2>, 279 287 <PIN_PC21__FLEXCOM3_IO3>, 280 288 <PIN_PC22__FLEXCOM3_IO4>; 281 - bias-disable; 282 - }; 283 - 284 - pinctrl_i2c0_default: i2c0_default { 285 - pinmux = <PIN_PD21__TWD0>, 286 - <PIN_PD22__TWCK0>; 287 289 bias-disable; 288 290 }; 289 291