mbox series

[v2,0/8] arm64: Add initial Actions Semi S700 and CubieBoard7 support

Message ID 20171113233427.5386-1-afaerber@suse.de
Headers show
Series arm64: Add initial Actions Semi S700 and CubieBoard7 support | expand

Message

Andreas Färber Nov. 13, 2017, 11:34 p.m. UTC
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

Cc: Ahha Lee <lee@cubietech.com>
Cc: support@cubietech.com
Cc: Jeff Chen <jeff.chen@actions-semi.com>

Cc: devicetree@vger.kernel.org
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>

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

Comments

Andreas Färber Nov. 16, 2017, 2:16 p.m. UTC | #1
Am 14.11.2017 um 00:34 schrieb Andreas Färber:
> Add a node to the S700 Device Tree for the Smart Power System (SPS).
> 
> Signed-off-by: Andreas Färber <afaerber@suse.de>
> ---
>  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(+)

Squashed (on bg96-next work branch).

Regards,
Andreas
Daniel Lezcano Dec. 7, 2017, 9:20 a.m. UTC | #2
On 14/11/2017 00:34, Andreas Färber wrote:
> 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.

Is it possible this change fixes your issue ?

http://git.denx.de/?p=u-boot.git;a=commit;h=c9e87ba66540cf72c164674a71af43853d087ba8

> Cf. https://en.opensuse.org/HCL:CubieBoard7
Andreas Färber Dec. 7, 2017, 11:30 a.m. UTC | #3
Am 07.12.2017 um 10:20 schrieb Daniel Lezcano:
> On 14/11/2017 00:34, Andreas Färber wrote:
>> 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.
> 
> 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

>> Cf. https://en.opensuse.org/HCL:CubieBoard7
Andreas Färber Dec. 22, 2017, 10:10 a.m. UTC | #4
Am 14.11.2017 um 00:34 schrieb Andreas Färber:
> Add Device Trees for S700 SoC and Cubietech CubieBoard7.
> 
> Signed-off-by: Andreas Färber <afaerber@suse.de>
> ---
>  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

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