Hi,
I am trying to use SPI2 available on LS connector of Hikey960 board to interface with infineon’s TPM2.0 evalkit. For that we modified below changes inside spi2 node of hi3660.dtsi file.
spi2: spi@ffd68000 {
compatible = "arm,pl022", "arm,primecell";
reg = <0x0 0xffd68000 0x0 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&crg_ctrl HI3660_CLK_GATE_SPI2>;
clock-names = "apb_pclk";
pinctrl-names = "default";
pinctrl-0 = <&spi2_cfg_func>;
num-cs = <1>;
cs-gpios = <&gpio27 2 0>;
status = "okay";
//label = "LS-SPI0";
spidev0: tpm_tis_spi@0 {
compatible = "tcg,tpm_tis_spi";
reg = <0>; /* CE1 */
spi-max-frequency = <500000>;
};
};
But could not able to see proper SPI pattern on the connector. On oscilloscope I am seeing unexpected signal pattern. It looks like those connector pins were shared with some other functionality. On kernel’s dmesg I could see failure during spi device probe. I am not able to understand hikey960 pin control configurations or pin mux settings in dts, please let us know if we missed any thing in above configuration.
Thanks in advance.
regards
Vinod