When I use SPI2_CS0* and SPI2_CS1* as the chip selects for accel and gyro of bmi088, do I need to select SPI1_CS0 or GPIO3_PH.03 for Customer Usage in the pinmux file?
Also, help to see what is wrong with the device tree I wrote in tegra186-quill-p3310-1000-c03-00-base.dts?
Looks like this command didn’t dump SPI1 REG.
Have check the tegra186-mb1-bct-pinmux-*.cfg to find the SPI1 address and modify it like WIKI and confirm it by devmem2 after boot to the system.
After that, I changed the “cs-gpios” attribute in the device tree to “cs-gpio”, and then refreshed the device tree. The data read by devmem2 is completely correct, but I don’t know the reason.
If “cs-gpio=<&tegra_main_gpio TEGRA_MAIN_GPIO(H, 3) 0>, <&tegra_main_gpio TEGRA_MAIN_GPIO(Y, 3) 0>;” is set in the device tree, the read spi2_cs0 and spi2_cs1 are correct, both are 0x408;
If “cs-gpios=<&tegra_main_gpio TEGRA_MAIN_GPIO(H, 3) 0>, <&tegra_main_gpio TEGRA_MAIN_GPIO(Y, 3) 0>;” is set in the device tree, the read spi2_cs0 and spi2_cs1 are wrong, both are 0x8;