Hi,
Zhong Kaihua wrote:
Thanks for your sharing. But I am curious about your configuration for cs-gpios,
cs-gpios = <&gpio2 0 0>, <&gpio2 1 0>;
According to the configuration in arch/arm64/boot/dts/hi6220-gpio.dtsi ,these two gpios seem to have no relation to SPI.
/* LCB: GPIO2_0, J2 */ gpio_j2_2_0:gpio_j2_2_0 { gpios = <&gpio2 0 0>; }; /* LCB: GPIO2_1, J2 */ gpio_j2_2_1:gpio_j2_2_1 { gpios = <&gpio2 1 0>; };
My configuration is bus-id = <0>; enable-dma = <1>; dmas = <&dma0 12 &dma0 13>; dma-names = "rx", "tx";
num-cs = <4>; cs-gpios = <&gpio6 2 0>, <&gpio6 3 0>, <&gpio6 4 0>, <&gpio6 5 0>;
I am trying to test my configuration according to your trail today. Not finished yet due to network failure in our lab.
You are right. My cs-gpios is intended to test two spidev devices which make GPIO2 pins on the low speed connector used as their chip select lines. It's working as expected for my purpose but isn't general one. Your configuration looks far better for upstream.
Regards, kaz