Hi,
On Tue, 2016-05-17 at 15:19 +0800, Guodong Xu wrote:
+dev@lists.96boards.org for further discussons.
On 17 May 2016 at 14:59, Zhong Kaihua zhongkaihua@huawei.com wrote:
On 2016/4/26 16:20, Denis Ciocca wrote:
Hi Mr. Zhong,
I've been working with Hikey board using Hisilicon 6220. I need to use SPI0, availabe on expansion connecto. I'm using android-linaro-kernel4.1.
Using spidev driver, I can see with oscilloscope that MOSI and CS are working correctly but CLK is not moving. Is it working corretly in the board and mine is broken somehow or something wrong with the code?
On android-hikey-linaro-4.1 branch, it looks that spi_0 fragment of arch/arm64/boot/dts/hisilicon/hi6220.dtsi has the line cs-gpios = <&gpio6 2 0>,<&gpio6 3 0>,<&gpio6 4 0>,<&gpio6 5 0>; which uses GPIO_6_3 as a SPI chip select. Perhaps this will disable SPI CLK because GPIO_6_3 is multiplexed with SPIO_CLK. Denis, check that your cs-gpios description doesn't have similar issue. I guess that that cs-gpios example was fixed for the other branches but leaved on android-hikey-linaro-4.1.
Regards, kaz