On Tue, Dec 1, 2015 at 11:01 PM, Danny Milosavljevic
<dan...@scratchpost.org> wrote:
> Hi Maxime,
>
> On Tue, 1 Dec 2015 10:47:37 +0100
> Maxime Ripard <maxime.rip...@free-electrons.com> wrote:
>> Did you mux the clk_out pin somewhere?
>
> Not manually, no. Is that not done by the sunxi clock driver when
> preparing/enabling the clock?

You mux the clock output on the output pin by adding a pinctrl phandle
in whatever device node you are using it for.

> Also since the signal flatlined, I think clk_prepare_enable did
> *something*. (it probably switched away from the GPIO function; a
> shell script to simulate a poor-mans clock using GPIO was still running
> but the scope didn't show it anymore afterwards)

AFAIK the clock code does no such thing.

>
> (I thought clk_out_a was initially introduced by Chen-Yu
> Tsai for the Cubietruck Wifi but I can't find where the Wifi driver|dts
> muxes clk_out_a in 4.4-rc2 either)

It was supposed to be part of the Bluetooth support. The BT part of the
combo chip needs the clock signal, while the WiFi part doesn't. I've not
updated any of it yet.


ChenYu

>> Did you enable the clock?
>
> Back then, I enabled it very directly in
> <http://svn.nomike.com/playground/trunk/Navi/TSS463AA/Linux/tss463aa.c?p=5734>,
> search for "clk_prepare_enable". (I used the low clock rate so I could
> have seen it on my cheap scope if it worked)
>
> (Now it's nicer (but still doesn't work),
> <http://svn.nomike.com/playground/trunk/Navi/TSS463AA/Linux/tss463aa.c>
> - and it needs extra device tree attributes now)
>
> Thanks,
>    Danny
>
> --
> 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 linux-sunxi+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to