]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: clock: Add SAMA7D65 PMC compatible string
authorDharma Balasubiramani <dharma.b@microchip.com>
Fri, 6 Dec 2024 19:59:52 +0000 (12:59 -0700)
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>
Tue, 17 Dec 2024 08:10:21 +0000 (10:10 +0200)
Add the `microchip,sama7d65-pmc` compatible string to the existing binding,
since the SAMA7D65 PMC shares the same properties and clock requirements
as the SAMA7G5.

Export MCK3 and MCK5 to be accessed and referenced in DT to assign to
the clocks property for sama7d65 SoC.

Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com>
Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/5252a28531deaee67af1edd8e72d45ca57783464.1733505542.git.Ryan.Wanner@microchip.com
[claudiu.beznea: use tabs instead of spaces in
 include/dt-bindings/clock/at91.h]
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Documentation/devicetree/bindings/clock/atmel,at91rm9200-pmc.yaml
include/dt-bindings/clock/at91.h

index c9eb60776b4d4cd0819be2b461748c4fd9a7654f..885d47dd5724ff5d63c1def7c5e7e97d842159f5 100644 (file)
@@ -43,6 +43,7 @@ properties:
               - atmel,sama5d4-pmc
               - microchip,sam9x60-pmc
               - microchip,sam9x7-pmc
+              - microchip,sama7d65-pmc
               - microchip,sama7g5-pmc
           - const: syscon
 
@@ -90,6 +91,7 @@ allOf:
             enum:
               - microchip,sam9x60-pmc
               - microchip,sam9x7-pmc
+              - microchip,sama7d65-pmc
               - microchip,sama7g5-pmc
     then:
       properties:
index 99f4767ff6bb407e1bba673a867c42369e9df8aa..f2a7b7d39c0d047efc8e340dfe10b9c19dabd6c8 100644 (file)
 #define PMC_PLLADIV2           (PMC_MAIN + 11)
 #define PMC_LVDSPLL            (PMC_MAIN + 12)
 
+/* SAMA7D65 */
+#define PMC_MCK3               (PMC_MAIN + 13)
+#define PMC_MCK5               (PMC_MAIN + 14)
+
 #ifndef AT91_PMC_MOSCS
 #define AT91_PMC_MOSCS         0               /* MOSCS Flag */
 #define AT91_PMC_LOCKA         1               /* PLLA Lock */