Hi,
On Mon, Dec 07, 2015 at 12:49:42AM +0100, Danny Milosavljevic wrote:
> Hi Chen-Yu,
>
> indeed, it works now.
>
> In case someone else wants to use it, it works like this:
>
> in the dts file I put:
>
> / {
> tss463aa {
> compatible = "atmel,tss463aa";
> clocks = <&clk_out_a>;
> pinctrl-0 = <&clk_out_a_pins_a>;
> pinctrl-names = "default";
> };
That one is not needed.
> };
>
> &spi2 {
> status = "okay";
> pinctrl-names = "default";
> pinctrl-0 = <&spi2_pins_a>;
> tss463aax {
> compatible = "atmel,tss463aa";
> reg = <0>;
> spi-max-frequency = <4000000>;
> spi-cpol;
> spi-cpha;
> };
> };
>
> Note the differing pinctrl.
> Also note that it doesn't work if I put clk_out_a in the spi slave node.
Yes, because you created a platform driver and not an SPI driver in
this case.
Convert your driver to it and you'll see that everything works as
expected :)
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
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.
signature.asc
Description: Digital signature
