device tree error

my devicetree code

mouse_paw3950:&spi30 {
    compatible = "nordic,nrf-spim";
    status = "okay";
    pinctrl-0 = <&paw3950_spi30_default>;
    pinctrl-1 = <&paw3950_spi30_sleep>;
    pinctrl-names = "default", "sleep";
    cs-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
    paw3950: paw3950@0 {
        compatible = "vnd,spi-device";
        reg = <0>;
        spi-max-frequency = <1000000>;
		label = "paw3950";
    };
};

mouse_ch564:&spi00{
	compatible = "nordic,nrf-spim";
	status = "okay";
	pinctrl-0 = <&ch564_spi00_default>;
	pinctrl-1 = <&ch564_spi00_sleep>;
	pinctrl-names = "default","sleep";
	cs-gpios  = <&gpio2 5 GPIO_ACTIVE_LOW>;
	ch564: ch564@0{
	    compatible = "vnd,spi-device";
        reg = <0>;
        spi-max-frequency = <1000000>;
		label = "ch564";
	};
};

among which

ch564: ch564@0

paw3950: paw3950

Wave line error, I copied it based on the official Nordic tutorial SPI

&spi1 {
        compatible = "nordic,nrf-spi";
        status = "okay";
        cs-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
        pinctrl-0 = <&spi1_default>;
        pinctrl-1 = <&spi1_sleep>;
        pinctrl-names = "default", "sleep";
        gendev: gendev@0 {
                compatible = "vnd,spi-device";
                reg = <0>;
                spi-max-frequency = <1600000>;
                label = "GenDev";
        };
};

I hope you can tell me in detail why the error occurred

Parents Reply Children
No Data
Related