Hi,

Thanks for working on this, I've had this on my todo list myself.

Unfortunately is is not this easy.
On 03/11/2014 01:22 AM, mrnuke wrote:
> Signed-off-by: Alexandru Gagniuc <[email protected]>
> ---
>  arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts 
> b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
> index 13088f0..7d8f889 100644
> --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
> +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
> @@ -88,6 +88,16 @@
>                         pinctrl-names = "default";
>                         pinctrl-0 = <&i2c0_pins_a>;
>                         status = "okay";
> +
> +                       axp: axp20x@34 {
> +                               reg = <0x34>;
> +                               interrupt-parent = <&intc>;

This is not necessary, intc is the default parent

> +                               interrupts = <0 8>;

This is wrong, sun4i interrupts take only one specifier.

> +
> +                               axp,system-power-controller;
> +
> +                               /include/ "x-powers-axp209.dtsi"
> +                       };
>                 };
>  
>                 i2c1: i2c@01c2b000 {
> 

Moreover this does not work at all, because the sun4i irqchip has a bug
causing a hard hang as soon as you enable interrupt 0 and then trigger
it by pushing the power button.

Good news: I've just finished debugging this and it is working in
my personal repo's sunxi-devel branch now.

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/d/optout.

Reply via email to