Problem with LIS2DH12 connection

Hi.

I am working on a custom nRF52810 board (SDK 2.7.0). 

When connecting LIS2DH12 via SPI in the .dts file, I see an error -->

.dts code -->

&spi0 {
    compatible = "nordic,nrf-spim";
	status = "okay";
	pinctrl-0 = <&spi0_default>;
	pinctrl-1 = <&spi0_sleep>;
	pinctrl-names = "default", "sleep";
	cs-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
	
	lis2dh12: lis2dh12@0{
        compatible = "st,lis2dh12";
        reg = <0>;
		spi-max-frequency = <10000000>;
		spi-cpol;
        spi-cpha;
        irq-gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>,
					<&gpio0 11 GPIO_ACTIVE_HIGH>;
    };
};

prj.conf -->

Please help me solve this problem.

Thanks.

Parents Reply Children
Related