Add initial support for Microchip SAMA7G54 Curiosity board
Subsystems (2)
v3 cover Add initial support for Microchip SAMA7G54 Curiosity board
This patch series adds initial support for Microchip SAMA7G54 Curiosity board.
Changes in v3:
--------------
* Update flexcom 10 node in order to match previous flexcom definitions.
* Use alphanumerical sorting in Makefile.
* Remove adc subnode from flx10 node.
* Use C style comment.
Changes in v2:
--------------
* Remove bootargs.
* Use phandle style for clock nodes.
* Use color and function for gpio-leds.
* Remove status okay from leds, nand, eeprom, pmic, flash.
* Use generic name like pmic for mcp16502 regulator.
Mihai Sain (3):
dt-bindings: ARM: at91: Document Microchip SAMA7G54 Curiosity
ARM: dts: microchip: sama7g5: Add flexcom 10 node
ARM: dts: microchip: sama7g54_curiosity: Add initial device tree of the board
.../devicetree/bindings/arm/atmel-at91.yaml | 6 + arch/arm/boot/dts/microchip/Makefile | 2 + .../dts/microchip/at91-sama7g54_curiosity.dts | 482 ++++++++++++++++++ arch/arm/boot/dts/microchip/sama7g5.dtsi | 24 + 4 files changed, 514 insertions(+) create mode 100644 arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts
Signature · 1 line
2.43.0
PATCH v3 1/3 dt-bindings: ARM: at91: Document Microchip SAMA7G54 Curiosity
Document device tree binding of the Microchip SAMA7G54 Curiosity board.
--- Documentation/devicetree/bindings/arm/atmel-at91.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/atmel-at91.yaml +6 -0
@@ -179,6 +179,12 @@ properties: - const: microchip,sama7g5 - const: microchip,sama7 + - description: Microchip SAMA7G54 Curiosity Board + items: + - const: microchip,sama7g54-curiosity + - const: microchip,sama7g5 + - const: microchip,sama7 + - description: Microchip LAN9662 Evaluation Boards. items: - enum:
Signature · 1 line
2.43.0
PATCH v3 2/3 ARM: dts: microchip: sama7g5: Add flexcom 10 node
In reply to Mihai SainAdd flexcom 10 node for usage on the SAMA7G54 Curiosity board.
--- arch/arm/boot/dts/microchip/sama7g5.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/boot/dts/microchip/sama7g5.dtsi +24 -0
@@ -958,6 +958,30 @@ 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(26)>, + <&dma0 AT91_XDMAC_DT_PERID(25)>; + dma-names = "tx", "rx"; + status = "disabled"; + }; + }; + flx11: flexcom@e2824000 { compatible = "atmel,sama5d2-flexcom"; reg = <0xe2824000 0x200>;
Signature · 1 line
2.43.0
Re: [PATCH v3 2/3] ARM: dts: microchip: sama7g5: Add flexcom 10 node
Quoted 12 lines · Mihai Sain
Add flexcom 10 node for usage on the SAMA7G54 Curiosity board.
Signed-off-by Mihai Sain <[email protected]>--- arch/arm/boot/dts/microchip/sama7g5.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm/boot/dts/microchip/sama7g5.dtsi +0
-0
arch/arm/boot/dts/microchip/sama7g5.dtsi i2c9: i2c@600 { · line 962
Quoted 5 lines
arch/arm/boot/dts/microchip/sama7g5.dtsi +2
-0@@ -958,6 +958,30 @@ i2c9: i2c@600 { }; }; + flx10: flexcom@e2820000 { + compatible = "atmel,sama5d2-flexcom";
My comment here was ignored:
https://lore.kernel.org/all/20240214-robe-pregnancy-a1b056c9fe14@spud/
Quoted 28 lines
arch/arm/boot/dts/microchip/sama7g5.dtsi +22
-0+ 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(26)>, + <&dma0 AT91_XDMAC_DT_PERID(25)>; + dma-names = "tx", "rx"; + status = "disabled"; + }; + }; + flx11: flexcom@e2824000 { compatible = "atmel,sama5d2-flexcom"; reg = <0xe2824000 0x200>;Signature · 1 line
2.43.0
RE: [PATCH v3 2/3] ARM: dts: microchip: sama7g5: Add flexcom 10 node
arch/arm/boot/dts/microchip/sama7g5.dtsi i2c9: i2c@600 { · line 962
Quoted 10 lines
arch/arm/boot/dts/microchip/sama7g5.dtsi +2
-0@@ -958,6 +958,30 @@ i2c9: i2c@600 { }; }; + flx10: flexcom@e2820000 { + compatible = "atmel,sama5d2-flexcom";
My comment here was ignored:
https://lore.kernel.org/all/20240214-robe-pregnancy-a1b056c9fe14@spud/
The SAMA7G5 has the same flexcom controller as SAMA5D2 MPU.
https://github.com/torvalds/linux/blob/master/drivers/mfd/atmel-flexcom.c#L83
https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/mfd/atmel-flexcom.txt#L8
Alexandre Belloni
maintainerRe: [PATCH v3 2/3] ARM: dts: microchip: sama7g5: Add flexcom 10 node
Quoted 8 lines · On 16/02/2024 06:58:10+0000, [email protected] wrote:
Quoted 8 lines
arch/arm/boot/dts/microchip/sama7g5.dtsi +0
-0@@ -958,6 +958,30 @@ i2c9: i2c@600 { }; };
Quoted 8 lines
arch/arm/boot/dts/microchip/sama7g5.dtsi i2c9: i2c@600 { · line 962
Quoted 2 lines
arch/arm/boot/dts/microchip/sama7g5.dtsi +2
-0+ flx10: flexcom@e2820000 { + compatible = "atmel,sama5d2-flexcom";My comment here was ignored:
https://lore.kernel.org/all/20240214-robe-pregnancy-a1b056c9fe14@spud/The SAMA7G5 has the same flexcom controller as SAMA5D2 MPU.
Still, it needs its own compatible plus a fallback to atmel,sama5d2-flexcom
Quoted 2 lines
https://github.com/torvalds/linux/blob/master/drivers/mfd/atmel-flexcom.c#L83
https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/mfd/atmel-flexcom.txt#L8
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
claudiu beznea
maintainerRe: [PATCH v3 2/3] ARM: dts: microchip: sama7g5: Add flexcom 10 node
Quoted 15 lines · Alexandre Belloni
Quoted 14 lines · On 16/02/2024 06:58:10+0000, [email protected] wrote:
arch/arm/boot/dts/microchip/sama7g5.dtsi i2c9: i2c@600 { · line 962
Quoted 10 lines
arch/arm/boot/dts/microchip/sama7g5.dtsi +2
-0@@ -958,6 +958,30 @@ i2c9: i2c@600 { }; }; + flx10: flexcom@e2820000 { + compatible = "atmel,sama5d2-flexcom";My comment here was ignored:
https://lore.kernel.org/all/20240214-robe-pregnancy-a1b056c9fe14@spud/
Quoted 5 lines
Quoted 2 lines
The SAMA7G5 has the same flexcom controller as SAMA5D2 MPU.
Still, it needs its own compatible plus a fallback to atmel,sama5d2-flexcom
I agree with this. Though, flexcom documentation is subject to YAML conversion (a patch has been re-posted these days [1] and *maybe* it will be integrated this time). And there are multiple SoC DTs that need to be updated with their own flexcom compatible (lan966x, sam9x60, sama7g5).
To avoid conflicting with the work at [1] and postponing this series we may do the update after the [1] is done.
Let me know your thoughts. Either way is fine by me.
Thank you,
Claudiu Beznea
[1]
https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/
Re: [PATCH v3 2/3] ARM: dts: microchip: sama7g5: Add flexcom 10 node
Quoted 27 lines · claudiu beznea
Quoted 15 lines · Alexandre Belloni
Quoted 14 lines · On 16/02/2024 06:58:10+0000, [email protected] wrote:
arch/arm/boot/dts/microchip/sama7g5.dtsi i2c9: i2c@600 { · line 962
Quoted 10 lines
arch/arm/boot/dts/microchip/sama7g5.dtsi +2
-0@@ -958,6 +958,30 @@ i2c9: i2c@600 { }; }; + flx10: flexcom@e2820000 { + compatible = "atmel,sama5d2-flexcom";My comment here was ignored:
https://lore.kernel.org/all/20240214-robe-pregnancy-a1b056c9fe14@spud/Quoted 5 lines
Quoted 2 lines
The SAMA7G5 has the same flexcom controller as SAMA5D2 MPU.
Still, it needs its own compatible plus a fallback to atmel,sama5d2-flexcom
I agree with this. Though, flexcom documentation is subject to YAML conversion (a patch has been re-posted these days [1] and *maybe* it will be integrated this time). And there are multiple SoC DTs that need to be updated with their own flexcom compatible (lan966x, sam9x60, sama7g5).
Quoted 4 lines
To avoid conflicting with the work at [1] and postponing this series we may do the update after the [1] is done.
Let me know your thoughts. Either way is fine by me.
I'd be inclined to say that if we are gonna take a shortcut here, then this patch should add a specific compatible so that when the yaml conversion goes through you'll get a warning about this being undocumented rather than silence.
A resend on the flexcom patch is required though, the rebase was not done correctly, so maybe Balakrishnan could "atmel,sama7g5-flexcom" add with a fallback to "atmel,sama5d2-flexcom" while they're fixing it up?
Cheers,
Conor.
claudiu beznea
maintainerRe: [PATCH v3 2/3] ARM: dts: microchip: sama7g5: Add flexcom 10 node
Quoted 31 lines · Conor Dooley
Quoted 30 lines · claudiu beznea
Quoted 15 lines · Alexandre Belloni
Quoted 14 lines · On 16/02/2024 06:58:10+0000, [email protected] wrote:
arch/arm/boot/dts/microchip/sama7g5.dtsi i2c9: i2c@600 { · line 962
Quoted 10 lines
arch/arm/boot/dts/microchip/sama7g5.dtsi +2
-0@@ -958,6 +958,30 @@ i2c9: i2c@600 { }; }; + flx10: flexcom@e2820000 { + compatible = "atmel,sama5d2-flexcom";My comment here was ignored:
https://lore.kernel.org/all/20240214-robe-pregnancy-a1b056c9fe14@spud/Quoted 5 lines
Quoted 2 lines
The SAMA7G5 has the same flexcom controller as SAMA5D2 MPU.
Still, it needs its own compatible plus a fallback to atmel,sama5d2-flexcom
I agree with this. Though, flexcom documentation is subject to YAML conversion (a patch has been re-posted these days [1] and *maybe* it will be integrated this time). And there are multiple SoC DTs that need to be updated with their own flexcom compatible (lan966x, sam9x60, sama7g5).
To avoid conflicting with the work at [1] and postponing this series we may do the update after the [1] is done.
Quoted 6 lines
Quoted 1 line
Let me know your thoughts. Either way is fine by me.
I'd be inclined to say that if we are gonna take a shortcut here, then this patch should add a specific compatible so that when the yaml conversion goes through you'll get a warning about this being undocumented rather than silence.
All the flexcom nodes from all flexcom capable SoCs (including SAMA7G5) have the same compatible introduced by Mihai.
I don't like the idea of updating only the DTSes, either update all DTSes and documentation or do it as it is already done (with sama5d2 compatible).
Quoted 5 lines
A resend on the flexcom patch is required though, the rebase was not done correctly, so maybe Balakrishnan could "atmel,sama7g5-flexcom" add with a fallback to "atmel,sama5d2-flexcom" while they're fixing it up?
I agree, and DTSes should also be updated along with documentation.
With this we can go forward with this patch and avoid conflicting with work that is currently in progress for flexcom.
Thank you,
Claudiu Beznea
Quoted 3 lines
Cheers,
Conor.
Re: [PATCH v3 2/3] ARM: dts: microchip: sama7g5: Add flexcom 10 node
Quoted 48 lines · claudiu beznea
Quoted 31 lines · Conor Dooley
Quoted 30 lines · claudiu beznea
Quoted 15 lines · Alexandre Belloni
Quoted 14 lines · On 16/02/2024 06:58:10+0000, [email protected] wrote:
arch/arm/boot/dts/microchip/sama7g5.dtsi i2c9: i2c@600 { · line 962
Quoted 10 lines
arch/arm/boot/dts/microchip/sama7g5.dtsi +2
-0@@ -958,6 +958,30 @@ i2c9: i2c@600 { }; }; + flx10: flexcom@e2820000 { + compatible = "atmel,sama5d2-flexcom";My comment here was ignored:
https://lore.kernel.org/all/20240214-robe-pregnancy-a1b056c9fe14@spud/Quoted 5 lines
Quoted 2 lines
The SAMA7G5 has the same flexcom controller as SAMA5D2 MPU.
Still, it needs its own compatible plus a fallback to atmel,sama5d2-flexcom
I agree with this. Though, flexcom documentation is subject to YAML conversion (a patch has been re-posted these days [1] and *maybe* it will be integrated this time). And there are multiple SoC DTs that need to be updated with their own flexcom compatible (lan966x, sam9x60, sama7g5).
To avoid conflicting with the work at [1] and postponing this series we may do the update after the [1] is done.
Quoted 6 lines
Quoted 1 line
Let me know your thoughts. Either way is fine by me.
I'd be inclined to say that if we are gonna take a shortcut here, then this patch should add a specific compatible so that when the yaml conversion goes through you'll get a warning about this being undocumented rather than silence.
All the flexcom nodes from all flexcom capable SoCs (including SAMA7G5) have the same compatible introduced by Mihai.
I don't like the idea of updating only the DTSes, either update all DTSes and documentation or do it as it is already done (with sama5d2 compatible).
Quoted 1 line
Quoted 6 lines
Quoted 4 lines
A resend on the flexcom patch is required though, the rebase was not done correctly, so maybe Balakrishnan could "atmel,sama7g5-flexcom" add with a fallback to "atmel,sama5d2-flexcom" while they're fixing it up?
I agree, and DTSes should also be updated along with documentation.
I'm biased, I'll almost never disagree with updating things to use soc-specific compatibles...
Quoted 2 lines
With this we can go forward with this patch and avoid conflicting with work that is currently in progress for flexcom.
I forgot to actually CC Balakrishnan, but Nicolas fortunately forwarded it to them. They're added now though to make sure they see this.
PATCH v3 3/3 ARM: dts: microchip: sama7g54_curiosity: Add initial device tree of the board
In reply to Mihai SainAdd initial device tree of the SAMA7G54 Curiosity board.
--- arch/arm/boot/dts/microchip/Makefile | 2 + .../dts/microchip/at91-sama7g54_curiosity.dts | 482 ++++++++++++++++++ 2 files changed, 484 insertions(+) create mode 100644 arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts
arch/arm/boot/dts/microchip/Makefile +2 -0
@@ -11,6 +11,7 @@ DTC_FLAGS_at91-sama5d2_xplained := -@ DTC_FLAGS_at91-sama5d3_eds := -@ DTC_FLAGS_at91-sama5d3_xplained := -@ DTC_FLAGS_at91-sama5d4_xplained := -@ +DTC_FLAGS_at91-sama7g54_curiosity := -@ DTC_FLAGS_at91-sama7g5ek := -@ dtb-$(CONFIG_SOC_AT91RM9200) += \ at91rm9200ek.dtb \
@@ -87,6 +88,7 @@ dtb-$(CONFIG_SOC_SAM_V7) += \ at91-sama5d4ek.dtb \ at91-vinco.dtb dtb-$(CONFIG_SOC_SAMA7G5) += \ + at91-sama7g54_curiosity.dtb \ at91-sama7g5ek.dtb dtb-$(CONFIG_SOC_LAN966) += \
arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts new file +482 -0
482 lines not on this page · raw message
Signature · 1 line
2.43.0
Quoted 19 lines · Mihai Sain
This patch series adds initial support for Microchip SAMA7G54 Curiosity board.
Changes in v3:
--------------* Update flexcom 10 node in order to match previous flexcom definitions.
* Use alphanumerical sorting inMakefile.
* Remove adc subnode from flx10 node.
* Use C style comment.Changes in v2:
--------------* Remove bootargs.
* Use phandle style for clock nodes.
* Use color and function for gpio-leds.
* Remove status okay from leds, nand, eeprom, pmic, flash.
* Use generic name like pmic for mcp16502 regulator.
Quoted 4 lines
Mihai Sain (3):
dt-bindings: ARM: at91: Document Microchip SAMA7G54 Curiosity
ARM: dts: microchip: sama7g5: Add flexcom 10 node
ARM: dts: microchip:sama7g54_curiosity: Add initial device tree of the board
Applied to at91-dt, thanks!