Hi ShaneCCC:
It still can not solve this issue.
On the other hand, I find this link.
https://devtalk.nvidia.com/default/topic/1029410/jetson-tx1/spi-cs-issue/
Do I need to patch spi-tegra114.c file or not?
This is my modification in device tree tegra210-porg-p3448-common.dtsi
spi@7000d400 { /* SPI 1 to 40 pin header */
status = "okay";
num-cs = <2>;
cs-gpios = <&gpio TEGRA_GPIO(C, 3) GPIO_ACTIVE_LOW>, <&gpio TEGRA_GPIO(C, 4) GPIO_ACTIVE_LOW>;
spi@0 {
#address-cells = <0x1>;
#size-cells = <0x0>;
compatible = "spidev";
status = "okay";
reg = <0x0>;
spi-max-frequency = <65000000>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,cs-setup-clk-count = <0x1e>;
nvidia,cs-hold-clk-count = <0x1e>;
nvidia,rx-clk-tap-delay = <0x1f>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
spi@1 {
#address-cells = <0x1>;
#size-cells = <0x0>;
compatible = "spidev";
status = "okay";
reg = <1>;
spi-max-frequency = <65000000>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,cs-setup-clk-count = <0x1e>;
nvidia,cs-hold-clk-count = <0x1e>;
nvidia,rx-clk-tap-delay = <0x1f>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
};