Skip to contentSkip to conversation

Add System Components for Microchip SAMA7D65 SoC

PATCH Applied [email protected] 4 participants 6 messages Feb 28, 2025 – Mar 3, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v2 cover Add System Components for Microchip SAMA7D65 SoC

From: Ryan Wanner <[email protected]>

This patch set adds support for the following systems in the SAMA7D65 SoC:
- DMAs
- Chip ID
- Dual watchdog timer.

Changes v1 -> v2:
- Removed pathes that have been accepted and applied from v1 [1].
- Corrected missing newline in dt-binding.
- Corrected mismatch in watchdog dt node.

1) https://lore.kernel.org/linux-arm-kernel/[email protected]/

Ryan Wanner (2):
dt-bindings: watchdog: sama5d4-wdt: Add sama7d65-wdt
ARM: dts: microchip: sama7d65: Add watchdog for sama7d65

 .../devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml    | 4 ++++
 arch/arm/boot/dts/microchip/sama7d65.dtsi                  | 7 +++++++
 2 files changed, 11 insertions(+)
Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 1/2 dt-bindings: watchdog: sama5d4-wdt: Add sama7d65-wdt

From: Ryan Wanner <[email protected]>

Add microchip,sama7d65-wdt compatible string to the dt-binding documentation.

---
 .../devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml       | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml +4 -0
index cdf87db36183..7668f1efdc6d 100644
@@ -23,6 +23,10 @@ properties:
           - const: microchip,sam9x7-wdt
           - const: microchip,sam9x60-wdt
 
+      - items:
+          - const: microchip,sama7d65-wdt
+          - const: microchip,sama7g5-wdt
+
   reg:
     maxItems: 1
 
Signature · 1 line
2.43.0
#3 lore raw

PATCH v2 2/2 ARM: dts: microchip: sama7d65: Add watchdog for sama7d65

In reply to [email protected]

From: Ryan Wanner <[email protected]>

Add watchdog timer support for SAMA7D65 SoC.

---
 arch/arm/boot/dts/microchip/sama7d65.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/microchip/sama7d65.dtsi +7 -0
index 92a5347e35b5..179d7f54cc7f 100644
@@ -77,6 +77,13 @@ pmc: clock-controller@e0018000 {
 			clock-names = "td_slck", "md_slck", "main_xtal";
 		};
 
+		ps_wdt: watchdog@e001d000 {
+			compatible = "microchip,sama7d65-wdt", "microchip,sama7g5-wdt";
+			reg = <0xe001d000 0x30>;
+			interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&clk32k 0>;
+		};
+
 		clk32k: clock-controller@e001d500 {
 			compatible = "microchip,sama7d65-sckc", "microchip,sam9x60-sckc";
 			reg = <0xe001d500 0x4>;
Signature · 1 line
2.43.0
#4 lore raw
In reply to [email protected]
Quoted 19 lines · On Fri, 28 Feb 2025 08:24:09 -0700, [email protected] wrote:

From: Ryan Wanner <[email protected]>

This patch set adds support for the following systems in the SAMA7D65 SoC:
- DMAs
- Chip ID
- Dual watchdog timer.

Changes v1 -> v2:
- Removed pathes that have been accepted and applied from v1 [1].
- Corrected missing newline in dt-binding.
- Corrected mismatch in watchdog dt node.

1) https://lore.kernel.org/linux-arm-kernel/[email protected]/

Ryan Wanner (2):
dt-bindings: watchdog: sama5d4-wdt: Add sama7d65-wdt
ARM: dts: microchip: sama7d65: Add watchdog for sama7d65

Quoted 9 lines
 .../devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml    | 4 ++++
 arch/arm/boot/dts/microchip/sama7d65.dtsi                  | 7 +++++++
 2 files changed, 11 insertions(+)

--
2.43.0

My bot found new DTB warnings on the .dts files added or changed in this series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:

  pip3 install dtschema --upgrade

New warnings running 'make CHECK_DTBS=y for arch/arm/boot/dts/microchip/' for [email protected]:

arch/arm/boot/dts/microchip/at91-sama7d65_curiosity.dtb: watchdog@e001d000: Unevaluated properties are not allowed ('clocks' was unexpected)
from schema $id: http://devicetree.org/schemas/watchdog/atmel,sama5d4-wdt.yaml#
arch/arm/boot/dts/microchip/at91-dvk_som60.dtb: /ahb/apb/adc@f8018000: failed to match any schema with compatible: ['atmel,sama5d3-adc'] arch/arm/boot/dts/microchip/at91sam9g25-gardena-smart-gateway.dtb: nand-controller: #address-cells: 1 was expected
from schema $id: http://devicetree.org/schemas/mtd/nand-controller.yaml#