arm64: Add initial Actions Semi S700 and CubieBoard7 support
Andreas Färber
maintainerv2 cover arm64: Add initial Actions Semi S700 and CubieBoard7 support
Hello,
This series prepares the Actions Semi S700 SoC and Cubietech CubieBoard7. It boots equally far as the S900 based Bubblegum-96 these patches are based on, i.e. into an initrd with serial and all four cores up.
v2 modifies the clocksource driver patches and adds SPS patches.
Not having succeeded to replace the bootloader on eMMC or to try booting from SD, the only working way I've found to boot mainline kernels appears to be booting into Android, then issuing "reboot bootloader". U-Boot is lacking the saveenv command, so it wasn't possible to change the bootdelay to facilitate this.
Cf. https://en.opensuse.org/HCL:CubieBoard7
Work branch:
https://github.com/afaerber/linux/commits/bg96-next
Have a lot of fun!
Cheers,
Andreas
v1 -> v2:
* Prepended patch converting CLOCKSOURCE_OF_DECLARE() to TIMER_OF_DECLARE() (Daniel)
* Added patches for SPS
Andreas F?rber (8):
dt-bindings: arm: actions: Add S700 and CubieBoard7
dt-bindings: timer: Add Actions Semi S700
clocksource: owl: Adopt TIMER_OF_DECLARE()
clocksource: owl: Prepare S700
arm64: dts: actions: Add S700 and CubieBoard7
dt-bindings: power: Add Actions Semi S700 SPS
soc: actions: sps: Add S700
arm64: dts: actions: Add S700 SPS node
Documentation/devicetree/bindings/arm/actions.txt | 15 ++ .../devicetree/bindings/power/actions,owl-sps.txt | 2 + .../bindings/timer/actions,owl-timer.txt | 1 + arch/arm64/boot/dts/actions/Makefile | 2 + arch/arm64/boot/dts/actions/s700-cubieboard7.dts | 47 ++++++ arch/arm64/boot/dts/actions/s700.dtsi | 170 +++++++++++++++++++++ drivers/clocksource/owl-timer.c | 5 +- drivers/soc/actions/owl-sps.c | 42 +++++ include/dt-bindings/power/owl-s700-powergate.h | 20 +++ 9 files changed, 302 insertions(+), 2 deletions(-) create mode 100644 arch/arm64/boot/dts/actions/s700-cubieboard7.dts create mode 100644 arch/arm64/boot/dts/actions/s700.dtsi create mode 100644 include/dt-bindings/power/owl-s700-powergate.h
Signature · 1 line
2.13.6
Andreas Färber
maintainerPATCH v2 1/8 dt-bindings: arm: actions: Add S700 and CubieBoard7
Document the Actions Semi S700 SoC and the Cubietech CubieBoard7.
---
v1 -> v2: Unchanged
Documentation/devicetree/bindings/arm/actions.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
Documentation/devicetree/bindings/arm/actions.txt +15 -0
@@ -25,6 +25,21 @@ Root node property compatible must contain, depending on board: - LeMaker Guitar Base Board rev. B: "lemaker,guitar-bb-rev-b", "lemaker,guitar" +S700 SoC +======== + +Required root node properties: + +- compatible : must contain "actions,s700" + + +Boards: + +Root node property compatible must contain, depending on board: + + - Cubietech CubieBoard7: "cubietech,cubieboard7" + + S900 SoC ========
Signature · 1 line
2.13.6
Andreas Färber
maintainerRe: [PATCH v2 1/8] dt-bindings: arm: actions: Add S700 and CubieBoard7
Am 14.11.2017 um 00:34 schrieb Andreas F?rber:
Quoted 9 lines
Document the Actions Semi S700 SoC and the Cubietech CubieBoard7.
Acked-by Rob Herring <[email protected]>Signed-off-by Andreas F?rber <[email protected]>---
v1 -> v2: UnchangedDocumentation/devicetree/bindings/arm/actions.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
Queued on v4.16/dt64:
https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-actions.git/log/?h=v4.16/dt64
Regards,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)
Andreas Färber
maintainerPATCH v2 2/8 dt-bindings: timer: Add Actions Semi S700
In reply to Andreas FärberDefine a compatible string for the Actions Semi S700 SoC timer.
---
v1 -> v2: Unchanged
Documentation/devicetree/bindings/timer/actions,owl-timer.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/timer/actions,owl-timer.txt +1 -0
@@ -2,6 +2,7 @@ Actions Semi Owl Timer Required properties: - compatible : "actions,s500-timer" for S500 + "actions,s700-timer" for S700 "actions,s900-timer" for S900 - reg : Offset and length of the register set for the device. - interrupts : Should contain the interrupts.
Signature · 1 line
2.13.6
Re: [PATCH v2 2/8] dt-bindings: timer: Add Actions Semi S700
Quoted 5 lines · Andreas F?rber
Define a compatible string for the Actions Semi S700 SoC timer.
Acked-by Rob Herring <[email protected]>Signed-off-by Andreas F?rber <[email protected]>---
Applied for 4.16
Signature · 5 lines
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Andreas Färber
maintainerPATCH v2 3/8 clocksource: owl: Adopt TIMER_OF_DECLARE()
In reply to Andreas FärberCommit 1727339590fdb5a1ded881b540cd32121278d414 ("clocksource/drivers:
Rename CLOCKSOURCE_OF_DECLARE to TIMER_OF_DECLARE") deprecated CLOCKSOURCE_OF_DECLARE(), so adopt the new macro TIMER_OF_DECLARE().
---
v2: New (Daniel)
drivers/clocksource/owl-timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clocksource/owl-timer.c +2 -2
@@ -168,5 +168,5 @@ static int __init owl_timer_init(struct device_node *node)return 0 ; } -CLOCKSOURCE_OF_DECLARE (owl_s500,"actions,s500-timer" , owl_timer_init); -CLOCKSOURCE_OF_DECLARE (owl_s900,"actions,s900-timer" , owl_timer_init); +TIMER_OF_DECLARE (owl_s500,"actions,s500-timer" , owl_timer_init); +TIMER_OF_DECLARE (owl_s900,"actions,s900-timer" , owl_timer_init);
Signature · 1 line
2.13.6
Re: [PATCH v2 3/8] clocksource: owl: Adopt TIMER_OF_DECLARE()
Quoted 7 lines · Andreas F?rber
Commit
1727339590fdb5a1ded881b540cd32121278d414("clocksource/drivers:
RenameCLOCKSOURCE_OF_DECLAREtoTIMER_OF_DECLARE") deprecatedCLOCKSOURCE_OF_DECLARE(), so adopt the new macroTIMER_OF_DECLARE().Reported-by Daniel Lezcano <[email protected]>Signed-off-by Andreas F?rber <[email protected]>---
Applied for 4.16
Signature · 5 lines
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Andreas Färber
maintainerPATCH v2 4/8 clocksource: owl: Prepare S700
In reply to Andreas FärberActions S700 has two 2Hz timers like S500, and four TIMx timers like S900.
---
v1 -> v2:
* Adopted TIMER_OF_DECLARE() (Daniel)
drivers/clocksource/owl-timer.c | 1 + 1 file changed, 1 insertion(+)
drivers/clocksource/owl-timer.c +1 -0
@@ -169,4 +169,5 @@ static int __init owl_timer_init(struct device_node *node)return 0 ; }TIMER_OF_DECLARE (owl_s500,"actions,s500-timer" , owl_timer_init); +TIMER_OF_DECLARE (owl_s700,"actions,s700-timer" , owl_timer_init);TIMER_OF_DECLARE (owl_s900,"actions,s900-timer" , owl_timer_init);
Signature · 1 line
2.13.6
Andreas Färber
maintainerRe: [PATCH v2 4/8] clocksource: owl: Prepare S700
Hi Daniel,
Am 14.11.2017 um 00:34 schrieb Andreas F?rber:
Quoted 9 lines
Actions S700 has two 2Hz timers like S500, and four TIMx timers like S900.
Signed-off-by Andreas F?rber <[email protected]>---
v1 -> v2:
* AdoptedTIMER_OF_DECLARE()(Daniel)drivers/clocksource/owl-timer.c | 1 + 1 file changed, 1 insertion(+)
Are you planning to queue this v2 patch for 4.16?
Thanks,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)
Re: [PATCH v2 4/8] clocksource: owl: Prepare S700
Quoted 10 lines · Andreas F?rber
Hi Daniel,
Am 14.11.2017 um 00:34 schrieb Andreas F?rber:
Quoted 7 lines
Actions S700 has two 2Hz timers like S500, and four TIMx timers like S900.
Signed-off-by Andreas F?rber <[email protected]>---
v1 -> v2:
* AdoptedTIMER_OF_DECLARE()(Daniel)
Quoted 4 lines
Quoted 2 lines
drivers/clocksource/owl-timer.c | 1 + 1 file changed, 1 insertion(+)Are you planning to queue this v2 patch for 4.16?
Yeah, what about the patch 1/8 ?
Signature · 5 lines
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Andreas Färber
maintainerRe: [PATCH v2 4/8] clocksource: owl: Prepare S700
Am 07.12.2017 um 10:23 schrieb Daniel Lezcano:
Quoted 11 lines · Andreas F?rber
Quoted 10 lines
Hi Daniel,
Am 14.11.2017 um 00:34 schrieb Andreas F?rber:
Quoted 7 lines
Actions S700 has two 2Hz timers like S500, and four TIMx timers like S900.
Signed-off-by Andreas F?rber <[email protected]>---
v1 -> v2:
* AdoptedTIMER_OF_DECLARE()(Daniel)
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
drivers/clocksource/owl-timer.c | 1 + 1 file changed, 1 insertion(+)Are you planning to queue this v2 patch for 4.16?
Yeah, what about the patch 1/8 ?
In linux-next already.
If you take 2-4, I can take 5; if you'd rather have me take the binding, fine with me as well.
Thanks,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)
Re: [PATCH v2 4/8] clocksource: owl: Prepare S700
Quoted 12 lines · Andreas F?rber
Am 07.12.2017 um 10:23 schrieb Daniel Lezcano:
Quoted 11 lines · Andreas F?rber
Quoted 10 lines
Hi Daniel,
Am 14.11.2017 um 00:34 schrieb Andreas F?rber:
Quoted 7 lines
Actions S700 has two 2Hz timers like S500, and four TIMx timers like S900.
Signed-off-by Andreas F?rber <[email protected]>---
v1 -> v2:
* AdoptedTIMER_OF_DECLARE()(Daniel)
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
drivers/clocksource/owl-timer.c | 1 + 1 file changed, 1 insertion(+)Are you planning to queue this v2 patch for 4.16?
Yeah, what about the patch 1/8 ?
In linux-next already.
Yeah, but that does not mean the patch is merged. Do you mean it is merged in arm-soc, so it is visible in linux-next?
Quoted 2 lines
If you take 2-4, I can take 5; if you'd rather have me take the binding, fine with me as well.
I will take patches 2-4.
Thanks.
-- Daniel
Signature · 5 lines
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Andreas Färber
maintainerRe: [PATCH v2 4/8] clocksource: owl: Prepare S700
Am 07.12.2017 um 14:11 schrieb Daniel Lezcano:
Quoted 16 lines · Andreas F?rber
Quoted 15 lines
Am 07.12.2017 um 10:23 schrieb Daniel Lezcano:
Quoted 14 lines · Andreas F?rber
Quoted 13 lines
Hi Daniel,
Am 14.11.2017 um 00:34 schrieb Andreas F?rber:
Quoted 9 lines
Actions S700 has two 2Hz timers like S500, and four TIMx timers like S900.
Signed-off-by Andreas F?rber <[email protected]>---
v1 -> v2:
* AdoptedTIMER_OF_DECLARE()(Daniel)drivers/clocksource/owl-timer.c | 1 + 1 file changed, 1 insertion(+)
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Are you planning to queue this v2 patch for 4.16?
Yeah, what about the patch 1/8 ?
In linux-next already.
Yeah, but that does not mean the patch is merged. Do you mean it is merged in arm-soc, so it is visible in linux-next?
No, I am waiting to send my initial 4.16 pull to arm-soc and wanted to clarify what (if anything) from this series can still go into that pull.
Quoted 4 lines
Quoted 2 lines
If you take 2-4, I can take 5; if you'd rather have me take the binding, fine with me as well.
I will take patches 2-4.
Thanks,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)
Re: [PATCH v2 4/8] clocksource: owl: Prepare S700
In reply to Andreas FärberQuoted 4 lines · Andreas F?rber
Actions S700 has two 2Hz timers like S500, and four TIMx timers like S900.
Signed-off-by Andreas F?rber <[email protected]>---
Applied for 4.16.
Thanks
-- Daniel
Signature · 5 lines
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Andreas Färber
maintainerPATCH v2 5/8 arm64: dts: actions: Add S700 and CubieBoard7
In reply to Andreas FärberAdd Device Trees for S700 SoC and Cubietech CubieBoard7.
---
v1 -> v2: Unchanged
arch/arm64/boot/dts/actions/Makefile | 2 + arch/arm64/boot/dts/actions/s700-cubieboard7.dts | 47 +++++++ arch/arm64/boot/dts/actions/s700.dtsi | 164 +++++++++++++++++++++++ 3 files changed, 213 insertions(+) create mode 100644 arch/arm64/boot/dts/actions/s700-cubieboard7.dts create mode 100644 arch/arm64/boot/dts/actions/s700.dtsi
arch/arm64/boot/dts/actions/Makefile +2 -0
@@ -1 +1,3 @@ +dtb-$(CONFIG_ARCH_ACTIONS) += s700-cubieboard7.dtb + dtb-$(CONFIG_ARCH_ACTIONS) += s900-bubblegum-96.dtb
arch/arm64/boot/dts/actions/s700-cubieboard7.dts new file +47 -0
47 lines not on this page · raw message
arch/arm64/boot/dts/actions/s700.dtsi new file +164 -0
164 lines not on this page · raw message
Signature · 1 line
2.13.6
Andreas Färber
maintainerRe: [PATCH v2 5/8] arm64: dts: actions: Add S700 and CubieBoard7
Am 14.11.2017 um 00:34 schrieb Andreas F?rber:
Quoted 6 lines
Add Device Trees for S700 SoC and Cubietech CubieBoard7.
Signed-off-by Andreas F?rber <[email protected]>---
v1 -> v2: Unchanged
Quoted 6 lines
arch/arm64/boot/dts/actions/Makefile | 2 + arch/arm64/boot/dts/actions/s700-cubieboard7.dts | 47 +++++++ arch/arm64/boot/dts/actions/s700.dtsi | 164 +++++++++++++++++++++++ 3 files changed, 213 insertions(+) create mode 100644 arch/arm64/boot/dts/actions/s700-cubieboard7.dts create mode 100644 arch/arm64/boot/dts/actions/s700.dtsi
Squashed patch updated with new SPDX header style and applied:
https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-actions.git/log/?h=v4.16/dt64
Regards,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)
Andreas Färber
maintainerPATCH v2 6/8 dt-bindings: power: Add Actions Semi S700 SPS
In reply to Andreas FärberDefine power domains for Actions Semi S700 SoC Smart Power System (SPS).
---
v2: New
.../devicetree/bindings/power/actions,owl-sps.txt | 2 ++ include/dt-bindings/power/owl-s700-powergate.h | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 include/dt-bindings/power/owl-s700-powergate.h
Documentation/devicetree/bindings/power/actions,owl-sps.txt +2 -0
@@ -2,10 +2,12 @@ Actions Semi Owl Smart Power System (SPS) Required properties: - compatible : "actions,s500-sps" for S500 + "actions,s700-sps" for S700 - reg : Offset and length of the register set for the device. - #power-domain-cells : Must be 1. See macros in: include/dt-bindings/power/owl-s500-powergate.h for S500 + include/dt-bindings/power/owl-s700-powergate.h for S700 Example:
include/dt-bindings/power/owl-s700-powergate.h new file +20 -0
@@ -0,0 +1,20 @@ +/* +* Actions Semi S700 SPS +* +* Copyright (c) 2017 Andreas F?rber +* +* SPDX-License-Identifier: (GPL-2.0+ OR MIT) +*/ +#ifndef DT_BINDINGS_POWER_OWL_S700_POWERGATE_H +#define DT_BINDINGS_POWER_OWL_S700_POWERGATE_H + +#define S700_PD_VDE 0 +#define S700_PD_VCE_SI 1 +#define S700_PD_USB2_1 2 +#define S700_PD_HDE 3 +#define S700_PD_DMA 4 +#define S700_PD_DS 5 +#define S700_PD_USB3 6 +#define S700_PD_USB2_0 7 + +#endif
Signature · 1 line
2.13.6
Re: [PATCH v2 6/8] dt-bindings: power: Add Actions Semi S700 SPS
Quoted 34 lines · Andreas F?rber
Define power domains for Actions Semi S700 SoC Smart Power System (SPS).
Signed-off-by Andreas F?rber <[email protected]>---
v2: New.../devicetree/bindings/power/actions,owl-sps.txt | 2 ++ include/dt-bindings/power/owl-s700-powergate.h | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 include/dt-bindings/power/owl-s700-powergate.hDocumentation/devicetree/bindings/power/actions,owl-sps.txt +2
-0@@ -2,10 +2,12 @@ Actions Semi Owl Smart Power System (SPS) Required properties: - compatible : "actions,s500-sps" for S500 + "actions,s700-sps" for S700 - reg : Offset and length of the register set for the device. - #power-domain-cells : Must be 1. See macros in: include/dt-bindings/power/owl-s500-powergate.h for S500 + include/dt-bindings/power/owl-s700-powergate.h for S700 Example:include/dt-bindings/power/owl-s700-powergate.h new file +0
-0
include/dt-bindings/power/owl-s700-powergate.h line 6
Quoted 6 lines
include/dt-bindings/power/owl-s700-powergate.h new file +6
-0@@ -0,0 +1,20 @@ +/* +* Actions Semi S700 SPS +* +* Copyright (c) 2017 Andreas F?rber +* +* SPDX-License-Identifier: (GPL-2.0+ OR MIT)
The decree now for SPDX tags is make this the first line using "//".
Otherwise,
Andreas Färber
maintainerRe: [PATCH v2 6/8] dt-bindings: power: Add Actions Semi S700 SPS
Am 16.11.2017 um 05:35 schrieb Rob Herring:
Quoted 28 lines · Andreas F?rber
Quoted 27 lines
Define power domains for Actions Semi S700 SoC Smart Power System (SPS).
Signed-off-by Andreas F?rber <[email protected]>---
v2: New.../devicetree/bindings/power/actions,owl-sps.txt | 2 ++ include/dt-bindings/power/owl-s700-powergate.h | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 include/dt-bindings/power/owl-s700-powergate.hDocumentation/devicetree/bindings/power/actions,owl-sps.txt +2
-0@@ -2,10 +2,12 @@ Actions Semi Owl Smart Power System (SPS) Required properties: - compatible : "actions,s500-sps" for S500 + "actions,s700-sps" for S700 - reg : Offset and length of the register set for the device. - #power-domain-cells : Must be 1. See macros in: include/dt-bindings/power/owl-s500-powergate.h for S500 + include/dt-bindings/power/owl-s700-powergate.h for S700
Quoted 15 lines
include/dt-bindings/power/owl-s700-powergate.h line 6
Quoted 13 lines
Documentation/devicetree/bindings/power/actions,owl-sps.txt +0
-0Example:include/dt-bindings/power/owl-s700-powergate.h new file +6
-0@@ -0,0 +1,20 @@ +/* +* Actions Semi S700 SPS +* +* Copyright (c) 2017 Andreas F?rber +* +* SPDX-License-Identifier: (GPL-2.0+ OR MIT) The decree now for SPDX tags is make this the first line using "//".
Thanks for noticing. Fixed:
(quoted diff) +0 -0
b/include/dt-bindings/power/owl-s700-powergate.h
index 4ded16bc074f..4cf1aefbf09c 100644
include/dt-bindings/power/owl-s700-powergate.h +1 -2
@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Actions Semi S700 SPS * * Copyright (c) 2017 Andreas F?rber -* -* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ #ifndef DT_BINDINGS_POWER_OWL_S700_POWERGATE_H #define DT_BINDINGS_POWER_OWL_S700_POWERGATE_H
Quoted 4 lines
Otherwise,
Acked-by Rob Herring <[email protected]>
Thanks, queued in v4.16/dt64:
https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-actions.git/log/?h=v4.16/dt64
Regards,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)
Andreas Färber
maintainerPATCH v2 7/8 soc: actions: sps: Add S700
In reply to Andreas FärberAdd power domains for S700 SoC.
---
v2: New
drivers/soc/actions/owl-sps.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+)
drivers/soc/actions/owl-sps.c +42 -0
@@ -17,6 +17,7 @@#include <linux/pm_domain.h> #include <linux/soc/actions/owl-sps.h> #include <dt-bindings/power/owl-s500-powergate.h> +#include <dt-bindings/power/owl-s700-powergate.h> struct owl_sps_domain_info {const char *name;
@@ -203,8 +204,49 @@ static const struct owl_sps_info s500_sps_info = { .domains = s500_sps_domains, }; +static const struct owl_sps_domain_info s700_sps_domains[] = { + [S700_PD_VDE ] = { + .name ="VDE" , + .pwr_bit =0 , + }, + [S700_PD_VCE_SI ] = { + .name ="VCE_SI" , + .pwr_bit =1 , + }, + [S700_PD_USB2_1 ] = { + .name ="USB2_1" , + .pwr_bit =2 , + }, + [S700_PD_HDE ] = { + .name ="HDE" , + .pwr_bit =7 , + }, + [S700_PD_DMA ] = { + .name ="DMA" , + .pwr_bit =8 , + }, + [S700_PD_DS ] = { + .name ="DS" , + .pwr_bit =9 , + }, + [S700_PD_USB3 ] = { + .name ="USB3" , + .pwr_bit =10 , + }, + [S700_PD_USB2_0 ] = { + .name ="USB2_0" , + .pwr_bit =11 , + }, +}; + +static const struct owl_sps_info s700_sps_info = { + .num_domains =ARRAY_SIZE (s700_sps_domains), + .domains = s700_sps_domains, +}; +static const struct of_device_id owl_sps_of_matches[] = { { .compatible ="actions,s500-sps" , .data = &s500_sps_info }, + { .compatible ="actions,s700-sps" , .data = &s700_sps_info }, { } };
Signature · 1 line
2.13.6
Andreas Färber
maintainerRe: [PATCH v2 7/8] soc: actions: sps: Add S700
Am 14.11.2017 um 00:34 schrieb Andreas F?rber:
Quoted 8 lines
Add power domains for S700 SoC.
Signed-off-by Andreas F?rber <[email protected]>---
v2: Newdrivers/soc/actions/owl-sps.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+)
Queued on v4.16/drivers:
https://git.kernel.org/pub/scm/linux/kernel/git/afaerber/linux-actions.git/log/?h=v4.16/drivers
Regards,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)
Andreas Färber
maintainerPATCH v2 8/8 arm64: dts: actions: Add S700 SPS node
In reply to Andreas FärberAdd a node to the S700 Device Tree for the Smart Power System (SPS).
---
v2: New
To be squashed into 5/8 if binding gets acked.
arch/arm64/boot/dts/actions/s700.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/actions/s700.dtsi +6 -0
@@ -154,6 +154,12 @@ status = "disabled"; }; + sps: power-controller at e01b0100 { + compatible = "actions,s700-sps"; + reg = <0x0 0xe01b0100 0x0 0x100>; + #power-domain-cells = <1>; + }; + timer: timer at e024c000 { compatible = "actions,s700-timer"; reg = <0x0 0xe024c000 0x0 0x4000>;
Signature · 1 line
2.13.6
Andreas Färber
maintainerRe: [PATCH v2 8/8] arm64: dts: actions: Add S700 SPS node
Am 14.11.2017 um 00:34 schrieb Andreas F?rber:
Quoted 10 lines
Add a node to the S700 Device Tree for the Smart Power System (SPS).
Signed-off-by Andreas F?rber <[email protected]>---
v2: NewTo be squashed into 5/8 if binding gets acked.
arch/arm64/boot/dts/actions/s700.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
Squashed (on bg96-next work branch).
Regards,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)
Quoted 6 lines · Andreas F?rber
Hello,
This series prepares the Actions Semi S700 SoC and Cubietech CubieBoard7. It boots equally far as the S900 based Bubblegum-96 these patches are based on, i.e. into an initrd with serial and all four cores up.
Quoted 7 lines
v2 modifies the clocksource driver patches and adds SPS patches.
Not having succeeded to replace the bootloader on eMMC or to try booting from SD, the only working way I've found to boot mainline kernels appears to be booting into Android, then issuing "reboot bootloader". U-Boot is lacking the saveenv command, so it wasn't possible to change the bootdelay to facilitate this.
Is it possible this change fixes your issue ?
http://git.denx.de/?p=u-boot.git;a=commit;h=c9e87ba66540cf72c164674a71af43853d087ba8
Quoted 1 line
Signature · 5 lines
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Andreas Färber
maintainerAm 07.12.2017 um 10:20 schrieb Daniel Lezcano:
Quoted 15 lines · Andreas F?rber
Quoted 6 lines
Hello,
This series prepares the Actions Semi S700 SoC and Cubietech CubieBoard7. It boots equally far as the S900 based Bubblegum-96 these patches are based on, i.e. into an initrd with serial and all four cores up.
Quoted 7 lines
v2 modifies the clocksource driver patches and adds SPS patches.
Not having succeeded to replace the bootloader on eMMC or to try booting from SD, the only working way I've found to boot mainline kernels appears to be booting into Android, then issuing "reboot bootloader". U-Boot is lacking the saveenv command, so it wasn't possible to change the bootdelay to facilitate this.
Quoted 3 lines
Is it possible this change fixes your issue ?
http://git.denx.de/?p=u-boot.git;a=commit;h=c9e87ba66540cf72c164674a71af43853d087ba8
Actions is not yet supported in mainline U-Boot, and S500 boards did not have a problem there. The saveenv command is simply not enabled in this config deployed by Cubietech. Since I have not succeeded in getting a self-built U-Boot booted from SD, I cannot test individual commits on top either.
Maybe Cubietech or Actions can comment?
Regards,
Andreas
Quoted 1 line
Quoted 1 line
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)