Fix suspend resume on at91sam9261 and at91sam9263
Subsystems (5)
Alexandre Belloni
maintainercover Fix suspend resume on at91sam9261 and at91sam9263
USB clock detection may not work properly on at91sam9261 and at91sam9263 because they currently use the same bit mask as at91rm9200 instead of the one for at91sam9260.
Take the opportunity to also change the PMC compatible strings for all the other SoCs in preparation for the new clock bindings.
Alexandre Belloni (4):
dt-bindings: arm: remove PMC bindings
dt-bindings: clk: at91: Document all the PMC compatibles
ARM: at91: fix USB clock detection handling
ARM: dts: fix PMC compatible
.../devicetree/bindings/arm/atmel-pmc.txt | 14 -------------- .../devicetree/bindings/clock/at91-clock.txt | 9 ++++----- arch/arm/boot/dts/at91sam9261.dtsi | 2 +- arch/arm/boot/dts/at91sam9263.dtsi | 2 +- arch/arm/boot/dts/at91sam9rl.dtsi | 2 +- arch/arm/boot/dts/sama5d4.dtsi | 2 +- arch/arm/mach-at91/pm.c | 5 +++++ 7 files changed, 13 insertions(+), 23 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/atmel-pmc.txt
Signature · 1 line
2.17.1
Alexandre Belloni
maintainerPATCH 1/4 dt-bindings: arm: remove PMC bindings
The PMC bindings are fully described in Documentation/devicetree/bindings/clock/at91-clock.txt. Remove the duplicate and incomplete documentation.
--- .../devicetree/bindings/arm/atmel-pmc.txt | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/atmel-pmc.txt
Documentation/devicetree/bindings/arm/atmel-pmc.txt deleted +0 -14
@@ -1,14 +0,0 @@ -* Power Management Controller (PMC) - -Required properties: -- compatible: Should be "atmel,<chip>-pmc". - <chip> can be: at91rm9200, at91sam9260, at91sam9g45, at91sam9n12, - at91sam9x5, sama5d3 - -- reg: Should contain PMC registers location and length - -Examples: - pmc: pmc at fffffc00 { - compatible = "atmel,at91rm9200-pmc"; - reg = <0xfffffc00 0x100>; - };
Signature · 1 line
2.17.1
Alexandre Belloni
maintainerPATCH 2/4 dt-bindings: clk: at91: Document all the PMC compatibles
In reply to Alexandre BelloniAdd missing PMC compatibles to the list of available compatibles.
--- Documentation/devicetree/bindings/clock/at91-clock.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/clock/at91-clock.txt +4 -5
@@ -17,14 +17,13 @@ Required properties: "atmel,at91sam9x5-clk-slow-rc-osc": at91 internal slow RC oscillator - "atmel,at91rm9200-pmc" or - "atmel,at91sam9g45-pmc" or - "atmel,at91sam9n12-pmc" or - "atmel,at91sam9x5-pmc" or - "atmel,sama5d3-pmc": + "atmel,<chip>-pmc": at91 PMC (Power Management Controller) All at91 specific clocks (clocks defined below) must be child node of the PMC node. + <chip> can be: at91rm9200, at91sam9260, at91sam9261, + at91sam9263, at91sam9g45, at91sam9n12, at91sam9rl, at91sam9x5, + sama5d2, sama5d3 or sama5d4. "atmel,at91sam9x5-clk-slow" (under sckc node) or
Signature · 1 line
2.17.1
Alexandre Belloni
maintainerPATCH 3/4 ARM: at91: fix USB clock detection handling
In reply to Alexandre BelloniAdd more compatibles to be able to correct the USB clock detection.
at91sam9261 and at91sam9263 have the same PMC_SCSR layout as at91sam9260. at91sam9rl doesn't have any USB clock.
--- arch/arm/mach-at91/pm.c | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/mach-at91/pm.c +5 -0
@@ -559,15 +559,20 @@ static const struct pmc_info pmc_infos[] __initconst = { { .uhp_udp_mask = AT91RM9200_PMC_UHP | AT91RM9200_PMC_UDP }, { .uhp_udp_mask = AT91SAM926x_PMC_UHP | AT91SAM926x_PMC_UDP }, { .uhp_udp_mask = AT91SAM926x_PMC_UHP }, + { .uhp_udp_mask = 0 }, };static const struct of_device_id atmel_pmc_ids[]__initconst = { { .compatible ="atmel,at91rm9200-pmc" , .data = &pmc_infos[0 ] }, { .compatible ="atmel,at91sam9260-pmc" , .data = &pmc_infos[1 ] }, + { .compatible ="atmel,at91sam9261-pmc" , .data = &pmc_infos[1 ] }, + { .compatible ="atmel,at91sam9263-pmc" , .data = &pmc_infos[1 ] }, { .compatible ="atmel,at91sam9g45-pmc" , .data = &pmc_infos[2 ] }, { .compatible ="atmel,at91sam9n12-pmc" , .data = &pmc_infos[1 ] }, + { .compatible ="atmel,at91sam9rl-pmc" , .data = &pmc_infos[3 ] }, { .compatible ="atmel,at91sam9x5-pmc" , .data = &pmc_infos[1 ] }, { .compatible ="atmel,sama5d3-pmc" , .data = &pmc_infos[1 ] }, + { .compatible ="atmel,sama5d4-pmc" , .data = &pmc_infos[1 ] }, { .compatible ="atmel,sama5d2-pmc" , .data = &pmc_infos[1 ] }, {/* sentinel */ }, };
Signature · 1 line
2.17.1
Alexandre Belloni
maintainerPATCH 4/4 ARM: dts: fix PMC compatible
In reply to Alexandre BelloniMake each SoC dtsi use its soc specific PMc compatible string. This solves a potential issue on at91sam9261 and at91sam9263 when using suspend to RAM
--- arch/arm/boot/dts/at91sam9261.dtsi | 2 +- arch/arm/boot/dts/at91sam9263.dtsi | 2 +- arch/arm/boot/dts/at91sam9rl.dtsi | 2 +- arch/arm/boot/dts/sama5d4.dtsi | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/at91sam9261.dtsi +1 -1
@@ -590,7 +590,7 @@ }; pmc: pmc at fffffc00 { - compatible = "atmel,at91rm9200-pmc", "syscon"; + compatible = "atmel,at91sam9261-pmc", "syscon"; reg = <0xfffffc00 0x100>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; interrupt-controller;
arch/arm/boot/dts/at91sam9263.dtsi +1 -1
@@ -93,7 +93,7 @@ }; pmc: pmc at fffffc00 { - compatible = "atmel,at91rm9200-pmc", "syscon"; + compatible = "atmel,at91sam9263-pmc", "syscon"; reg = <0xfffffc00 0x100>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; interrupt-controller;
arch/arm/boot/dts/at91sam9rl.dtsi +1 -1
@@ -832,7 +832,7 @@ }; pmc: pmc at fffffc00 { - compatible = "atmel,at91sam9g45-pmc", "syscon"; + compatible = "atmel,at91sam9rl-pmc", "syscon"; reg = <0xfffffc00 0x100>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; interrupt-controller;
arch/arm/boot/dts/sama5d4.dtsi +1 -1
@@ -392,7 +392,7 @@ }; pmc: pmc at f0018000 { - compatible = "atmel,sama5d3-pmc", "syscon"; + compatible = "atmel,sama5d4-pmc", "syscon"; reg = <0xf0018000 0x120>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; interrupt-controller;
Signature · 1 line
2.17.1
Quoted 4 lines · Alexandre Belloni
USB clock detection may not work properly on at91sam9261 and at91sam9263 because they currently use the same bit mask as at91rm9200 instead of the one for at91sam9260.
Quoted 8 lines
Take the opportunity to also change the PMC compatible strings for all the other SoCs in preparation for the new clock bindings.
Alexandre Belloni (4):
dt-bindings: arm: remove PMC bindings
dt-bindings: clk: at91: Document all the PMC compatibles
ARM: at91: fix USB clock detection handling
ARM: dts: fix PMC compatible
To the whole series:
Thanks, best regards.
Quoted 10 lines
.../devicetree/bindings/arm/atmel-pmc.txt | 14 -------------- .../devicetree/bindings/clock/at91-clock.txt | 9 ++++----- arch/arm/boot/dts/at91sam9261.dtsi | 2 +- arch/arm/boot/dts/at91sam9263.dtsi | 2 +- arch/arm/boot/dts/at91sam9rl.dtsi | 2 +- arch/arm/boot/dts/sama5d4.dtsi | 2 +- arch/arm/mach-at91/pm.c | 5 +++++ 7 files changed, 13 insertions(+), 23 deletions(-)delete mode 100644
Documentation/devicetree/bindings/arm/atmel-pmc.txt
Signature · 1 line
Nicolas Ferre
Re: [PATCH 1/4] dt-bindings: arm: remove PMC bindings
In reply to Alexandre BelloniQuoted 9 lines · Alexandre Belloni
The PMC bindings are fully described in
Documentation/devicetree/bindings/clock/at91-clock.txt. Remove the duplicate and incomplete documentation.Signed-off-by Alexandre Belloni <[email protected]>--- .../devicetree/bindings/arm/atmel-pmc.txt | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/atmel-pmc.txt
Re: [PATCH 2/4] dt-bindings: clk: at91: Document all the PMC compatibles
In reply to Alexandre BelloniQuoted 6 lines · Alexandre Belloni
Add missing PMC compatibles to the list of available compatibles.
Signed-off-by Alexandre Belloni <[email protected]>--- Documentation/devicetree/bindings/clock/at91-clock.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)