loop zhongkaihua
On 2015/10/30 16:16, Guodong Xu wrote:
- Puck Chen, from Huawei.
From: kkojima@drone.co.jp To: dev@lists.96boards.org Date: Wed, 28 Oct 2015 07:52:31 +0900 Subject: [Dev] SPI on HiKey
Hi,
I've heard that the next release will include SPI support, so this might be already a bit old topic. I'm trying SPI on HiKey according to the thread https://www.96boards.org/forums/topic/hikey-board-spi/ with a .dsti hunk
spi_0: spi@f7106000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x0 0xf7106000 0x0 0x1000>; #address-cells = <1>; #size-cells = <0>; interrupts = <0 50 4>; reset-controller-reg = <0x330 0x334 0x338 9>; clocks = <&clock_sys HI6220_SPI_CLK>; clock-names = "apb_pclk"; pinctrl-names = "default"; pinctrl-0 = <&spi0_pmx_func &spi0_cfg_func>; status = "ok"; };
on linux-xenomai kernel. Now it looks OK at least for the loop test on the spidev which is added as a sub-node
spidev@0 { compatible = "linux,spidev"; spi-max-frequency = <500000>; reg = <0>; };
and I can test sensors via spidev. BTW, I've found that a few pl022 dt entries for other SoCs describe two clocks and the first clock looks to be the one for SSPCLK. I'm curious about how SSPCLK of amba pl022 is handled on HiKey.
Regards, kaz
Dev mailing list Dev@lists.96boards.org https://lists.96boards.org/mailman/listinfo/dev