Hans, Michal - thanks for your support! I enabled ARM_PSCI in arch/arm/mach-sunxi/Kconfig and now both A20 cores are showing up nicely (in HYP mode)! Unfortunately I don't have a A31 board so I cannot test whether this config is somehow in conflict with "ARM: sun6i: Add SMP support for the Allwinner A31".
I'm attaching two small paches for your sunxi-next tree Hans. One that enables ARM_PSCI and one that enables USB EHCI on Olinuxino A20 micro. Could you please apply them to your sunxi-next (sunxi-devel) branch? BR and Merry X-mas, Zalan On Sun, Dec 22, 2013 at 1:50 PM, Hans de Goede <[email protected]> wrote: > Hi, > > > On 12/21/2013 11:00 PM, Zalán Blénessy wrote: > >> Hi Hans! >> >> Thanks for all the great work you're doing. I really appreciate it. >> I've been following your progress, first with the sunxi-test branch and >> now with the sunxi-next branch. >> >> Regrading the sunxi-next branch... as far as I can tell everything seems >> to be working nice on my A20 Olinuxino micro. >> (I've enabled USB in the dts file and it works nicely.) >> >> However, I think there is one regression compared to the sunxi-test >> branch: SMP for A20 doesn't work anymore. >> I'm pretty sure its because the "ARM: sun6i: Add SMP support for the >> Allwinner A31" only support SUN6I, >> but wanted to double check with you to be sure that I didn't do anything >> stupid on my side :). >> > > You're likely missing CONFIG_ARM_PSCI=y in your .config for the kernel, > this is know to cause CPU 1 > to not come up with sunxi-next. I've dropped explicit sunxi smp support > for A20 in my sunxi-next > tree, as the plan for upstream is to implement the CPU bringup in u-boot > and use PSCI. > > This is one of the reasons why you also need to use my u-boot sunxi-next > branch, which has the necessary > PSCI bits on the u-boot side. > > > Regards, > > Hans > > -- > You received this message because you are subscribed to the Google Groups > "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
From e52eb793153ad7d1356f271927031ae1f1acf211 Mon Sep 17 00:00:00 2001 From: Zalan Blenessy <[email protected]> Date: Sun, 22 Dec 2013 17:08:10 +0100 Subject: [PATCH 1/2] Enabling USB EHCI on Olinuxino A20 Micro --- arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 47 +++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts index 5e9f2ab..0ee2641 100644 --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts @@ -70,6 +70,20 @@ allwinner,drive = <1>; allwinner,pull = <0>; }; + + usb1_vbus_pin: usb1_vbus_pin@0 { + allwinner,pins = "PH6"; + allwinner,function = "gpio_out"; + allwinner,drive = <0>; + allwinner,pull = <2>; + }; + + usb2_vbus_pin: usb2_vbus_pin@0 { + allwinner,pins = "PH3"; + allwinner,function = "gpio_out"; + allwinner,drive = <0>; + allwinner,pull = <2>; + }; }; uart0: serial@01c28000 { @@ -115,6 +129,16 @@ phy-mode = "mii"; status = "okay"; }; + + ehci0: ehci0@0x01c14000 { + vbus-supply = <®_usb1_vbus>; + status = "okay"; + }; + + ehci1: ehci1@0x01c1c000 { + vbus-supply = <®_usb2_vbus>; + status = "okay"; + }; }; leds { @@ -131,6 +155,7 @@ regulators { compatible = "simple-bus"; + pinctrl-names = "default"; reg_ahci_5v: ahci-5v { compatible = "regulator-fixed"; @@ -141,5 +166,27 @@ gpio = <&pio 1 8 0>; enable-active-high; }; + + reg_usb1_vbus: usb1-vbus { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&usb1_vbus_pin>; + regulator-name = "usb1-vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + gpio = <&pio 7 6 0>; + }; + + reg_usb2_vbus: usb2-vbus { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&usb2_vbus_pin>; + regulator-name = "usb2-vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + gpio = <&pio 7 3 0>; + }; }; }; -- 1.7.10.4
From 26645601eed996e6d8317040ab18e09ae42da946 Mon Sep 17 00:00:00 2001 From: Zalan Blenessy <[email protected]> Date: Sun, 22 Dec 2013 17:10:06 +0100 Subject: [PATCH 2/2] Let u-boot enable SMP for sun7i --- arch/arm/mach-sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 9f76740..ef3b1ab 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -15,3 +15,4 @@ config ARCH_SUNXI select SUN4I_TIMER select ARCH_HAS_CPUFREQ select SUN5I_HSTIMER + select ARM_PSCI -- 1.7.10.4
