How to describe device tree about EXPANSION CONNECTOR of spi


#1

Hi, I’m implementing spi device tree of expansion connector.

I read lm80-p0436-5_peripherals_programming_guide.pdf and tried it. But I can’t connect spi by using DragonBoard410c.
I use the following android source code.
https://developer.qualcomm.com/download/db410c/android_board_support_package_vla.br_.1.2.4-01810-8x16.0-2.zip

I described device tree to connect spi.

kernel\arch\arm\boot\dts\qcom\msm8916.dtsi

`
aliases {
spi0 = &spi_0; /* SPI0 controller device */
spi5 = &spi_5; //new spi device for expansion connector
};

//new spi setting for expansion connector
spi_5: spi@0x78B9000 {
compatible = “qcom,spi-qup-v2”;

reg-names = "spi_physical";
spi-max-frequency = <50000000>;

interrupts = <0 99 0>;
	clocks = <&clock_gcc clk_gcc_blsp1_ahb_clk>, <&clock_gcc clk_gcc_blsp1_qup5_spi_apps_clk>;
	clock-names = "iface_clk", "core_clk";

pinctrl-names = "spi_default", "spi_sleep";
pinctrl-0 = <&spi2_default &spi2_cs2_active>;
	pinctrl-1 = <&spi2_sleep &spi2_cs2_sleep>;

};
`

\kernel\arch\arm\boot\dts\qcom\apq8016-sbc.dtsi

`
&soc {

spi@0x78B9000 {
		xxx@0 {
		compatible = "xxx,xxxxx";
		reg = <0x0>;
		spi-max-frequency = <1000000>;
	};
};

`

If I described wrong point about device tree, please teach me.
Thanks.


#2

I have a trouble which DragonBoard 410c isn’t connected by spi.
Please take advice for me if someone has free time.

Thanks.


#3

Please reference this thread:
https://www.96boards.org/forums/topic/how-to-enable-spi-and-access-it-in-debian-os


#4

Thank you for sending replay message.
I will read the thread and I can try implementing spi driver.

Thanks.