Hi All,
We have one SPI device (spi-device-1)which needs reset HIGH before probe happen. To make it, we used
pinctrl-assert-gpios = <&gpio4 20 GPIO_ACTIVE_HIGH>;
Now, probe fails even adding above property so we added some delay around 1.5s which made it work but we need a property in the device tree which can handle such case.
&lpspi3 {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpspi3>;
pinctrl-assert-gpios = <&gpio4 20 GPIO_ACTIVE_HIGH>;
num-cs = <1>;
status = "okay";
cs-gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
spi-device-1: device1@0 {
compatible = "device-nxp, device1";
reg = <0x0>;
spi-max-frequency = <12000000>;
interrupt-parent = <&gpio1>; /* GPIO Bank 3 */
interrupts = <9 0x1>; /* Index: 25, rising edge */
spi-cpha; /* SPI mode: CPHA=1 */
spi-cpol; /* SPI mode: CPOL=1 */
local-mac-address = [ A0 B0 C0 D0 E0 F0 ];
};
};
Regards,
MKS
iMX8X #linux