Skip to content

Commit 66fc5fe

Browse files
mwalleclaudiubeznea
authored andcommitted
ARM: dts: lan966x: add flexcom I2C nodes
Add all I2C nodes of the flexcom IP blocks. The driver supports FIFO, DMA or both combined. But the latter isn't working correctly. Thus, skip the fifo-size property for now. DMA is doing single byte reads in this case. Keep the nodes disabled by default. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com> Tested-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/20220502224127.2604333-7-michael@walle.cc Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
1 parent 8c38c72 commit 66fc5fe

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

arch/arm/boot/dts/lan966x.dtsi

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,19 @@
120120
#size-cells = <0>;
121121
status = "disabled";
122122
};
123+
124+
i2c0: i2c@600 {
125+
compatible = "microchip,sam9x60-i2c";
126+
reg = <0x600 0x200>;
127+
interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
128+
dmas = <&dma0 AT91_XDMAC_DT_PERID(3)>,
129+
<&dma0 AT91_XDMAC_DT_PERID(2)>;
130+
dma-names = "tx", "rx";
131+
clocks = <&nic_clk>;
132+
#address-cells = <1>;
133+
#size-cells = <0>;
134+
status = "disabled";
135+
};
123136
};
124137

125138
flx1: flexcom@e0044000 {
@@ -158,6 +171,19 @@
158171
#size-cells = <0>;
159172
status = "disabled";
160173
};
174+
175+
i2c1: i2c@600 {
176+
compatible = "microchip,sam9x60-i2c";
177+
reg = <0x600 0x200>;
178+
interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
179+
dmas = <&dma0 AT91_XDMAC_DT_PERID(5)>,
180+
<&dma0 AT91_XDMAC_DT_PERID(4)>;
181+
dma-names = "tx", "rx";
182+
clocks = <&nic_clk>;
183+
#address-cells = <1>;
184+
#size-cells = <0>;
185+
status = "disabled";
186+
};
161187
};
162188

163189
trng: rng@e0048000 {
@@ -213,6 +239,19 @@
213239
#size-cells = <0>;
214240
status = "disabled";
215241
};
242+
243+
i2c2: i2c@600 {
244+
compatible = "microchip,sam9x60-i2c";
245+
reg = <0x600 0x200>;
246+
interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
247+
dmas = <&dma0 AT91_XDMAC_DT_PERID(7)>,
248+
<&dma0 AT91_XDMAC_DT_PERID(6)>;
249+
dma-names = "tx", "rx";
250+
clocks = <&nic_clk>;
251+
#address-cells = <1>;
252+
#size-cells = <0>;
253+
status = "disabled";
254+
};
216255
};
217256

218257
flx3: flexcom@e0064000 {
@@ -251,6 +290,19 @@
251290
#size-cells = <0>;
252291
status = "disabled";
253292
};
293+
294+
i2c3: i2c@600 {
295+
compatible = "microchip,sam9x60-i2c";
296+
reg = <0x600 0x200>;
297+
interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
298+
dmas = <&dma0 AT91_XDMAC_DT_PERID(9)>,
299+
<&dma0 AT91_XDMAC_DT_PERID(8)>;
300+
dma-names = "tx", "rx";
301+
clocks = <&nic_clk>;
302+
#address-cells = <1>;
303+
#size-cells = <0>;
304+
status = "disabled";
305+
};
254306
};
255307

256308
dma0: dma-controller@e0068000 {
@@ -308,6 +360,19 @@
308360
#size-cells = <0>;
309361
status = "disabled";
310362
};
363+
364+
i2c4: i2c@600 {
365+
compatible = "microchip,sam9x60-i2c";
366+
reg = <0x600 0x200>;
367+
interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
368+
dmas = <&dma0 AT91_XDMAC_DT_PERID(11)>,
369+
<&dma0 AT91_XDMAC_DT_PERID(10)>;
370+
dma-names = "tx", "rx";
371+
clocks = <&nic_clk>;
372+
#address-cells = <1>;
373+
#size-cells = <0>;
374+
status = "disabled";
375+
};
311376
};
312377

313378
timer0: timer@e008c000 {

0 commit comments

Comments
 (0)