Message ID | 20240214080348.7540-3-mihai.sain@microchip.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add initial support for Microchip SAMA7G54 Curiosity board | expand |
On Wed, Feb 14, 2024 at 10:03:47AM +0200, Mihai Sain wrote: > Add flexcom 10 node for usage on the SAMA7G54 Curiosity board. > > Signed-off-by: Mihai Sain <mihai.sain@microchip.com> > --- > arch/arm/boot/dts/microchip/sama7g5.dtsi | 26 ++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/arch/arm/boot/dts/microchip/sama7g5.dtsi b/arch/arm/boot/dts/microchip/sama7g5.dtsi > index 269e0a3ca269..c90e404e8ed9 100644 > --- a/arch/arm/boot/dts/microchip/sama7g5.dtsi > +++ b/arch/arm/boot/dts/microchip/sama7g5.dtsi > @@ -958,6 +958,32 @@ i2c9: i2c@600 { > }; > }; > > + flx10: flexcom@e2820000 { > + compatible = "atmel,sama5d2-flexcom"; > + reg = <0xe2820000 0x200>; This is a sama7g5, how come this flexcom is using a sama5d2 compatible? Cheers, Conor. > + clocks = <&pmc PMC_TYPE_PERIPHERAL 48>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0x0 0xe2820000 0x800>; > + status = "disabled"; > + > + i2c10: i2c@600 { > + compatible = "microchip,sama7g5-i2c", "microchip,sam9x60-i2c"; > + reg = <0x600 0x200>; > + interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; > + #address-cells = <1>; > + #size-cells = <0>; > + clocks = <&pmc PMC_TYPE_PERIPHERAL 48>; > + atmel,fifo-size = <32>; > + dmas = <&dma0 AT91_XDMAC_DT_PERID(25)>, > + <&dma0 AT91_XDMAC_DT_PERID(26)>; > + dma-names = "rx", "tx"; > + atmel,use-dma-rx; > + atmel,use-dma-tx; > + status = "disabled"; > + }; > + }; > + > flx11: flexcom@e2824000 { > compatible = "atmel,sama5d2-flexcom"; > reg = <0xe2824000 0x200>; > -- > 2.43.0 >
Hi, Mihai, On 14.02.2024 10:03, Mihai Sain wrote: > Add flexcom 10 node for usage on the SAMA7G54 Curiosity board. > > Signed-off-by: Mihai Sain <mihai.sain@microchip.com> > --- > arch/arm/boot/dts/microchip/sama7g5.dtsi | 26 ++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/arch/arm/boot/dts/microchip/sama7g5.dtsi b/arch/arm/boot/dts/microchip/sama7g5.dtsi > index 269e0a3ca269..c90e404e8ed9 100644 > --- a/arch/arm/boot/dts/microchip/sama7g5.dtsi > +++ b/arch/arm/boot/dts/microchip/sama7g5.dtsi > @@ -958,6 +958,32 @@ i2c9: i2c@600 { > }; > }; > > + flx10: flexcom@e2820000 { > + compatible = "atmel,sama5d2-flexcom"; > + reg = <0xe2820000 0x200>; > + clocks = <&pmc PMC_TYPE_PERIPHERAL 48>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0x0 0xe2820000 0x800>; > + status = "disabled"; > + > + i2c10: i2c@600 { > + compatible = "microchip,sama7g5-i2c", "microchip,sam9x60-i2c"; > + reg = <0x600 0x200>; > + interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; > + #address-cells = <1>; > + #size-cells = <0>; > + clocks = <&pmc PMC_TYPE_PERIPHERAL 48>; > + atmel,fifo-size = <32>; > + dmas = <&dma0 AT91_XDMAC_DT_PERID(25)>, > + <&dma0 AT91_XDMAC_DT_PERID(26)>; > + dma-names = "rx", "tx"; Please use the same pattern used by the rest of the i2c flexcom nodes, meaning: dma-names = "tx", "rx"; and, with this, reverse the order of dmas, too. > + atmel,use-dma-rx; > + atmel,use-dma-tx; These are uart properties. > + status = "disabled"; > + }; > + }; > + > flx11: flexcom@e2824000 { > compatible = "atmel,sama5d2-flexcom"; > reg = <0xe2824000 0x200>;
diff --git a/arch/arm/boot/dts/microchip/sama7g5.dtsi b/arch/arm/boot/dts/microchip/sama7g5.dtsi index 269e0a3ca269..c90e404e8ed9 100644 --- a/arch/arm/boot/dts/microchip/sama7g5.dtsi +++ b/arch/arm/boot/dts/microchip/sama7g5.dtsi @@ -958,6 +958,32 @@ i2c9: i2c@600 { }; }; + flx10: flexcom@e2820000 { + compatible = "atmel,sama5d2-flexcom"; + reg = <0xe2820000 0x200>; + clocks = <&pmc PMC_TYPE_PERIPHERAL 48>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0xe2820000 0x800>; + status = "disabled"; + + i2c10: i2c@600 { + compatible = "microchip,sama7g5-i2c", "microchip,sam9x60-i2c"; + reg = <0x600 0x200>; + interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&pmc PMC_TYPE_PERIPHERAL 48>; + atmel,fifo-size = <32>; + dmas = <&dma0 AT91_XDMAC_DT_PERID(25)>, + <&dma0 AT91_XDMAC_DT_PERID(26)>; + dma-names = "rx", "tx"; + atmel,use-dma-rx; + atmel,use-dma-tx; + status = "disabled"; + }; + }; + flx11: flexcom@e2824000 { compatible = "atmel,sama5d2-flexcom"; reg = <0xe2824000 0x200>;
Add flexcom 10 node for usage on the SAMA7G54 Curiosity board. Signed-off-by: Mihai Sain <mihai.sain@microchip.com> --- arch/arm/boot/dts/microchip/sama7g5.dtsi | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+)