This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Only spi nodes accepted in /soc/peripheral@50000000/spi@b000/. /soc/peripheral@50000000/spi@b000/ads129xr@0/

Hi Nordic,

I am using nrf Connected SDK 1.7 on windows 10, coding with nrf connect extension for vscode. 

I created a custom board from nrf5340 SoC and added a node as a device on SPI bus in custom board dts file, a error pops up when I put mouse pointer on the node name. it said "Only spi nodes accepted in /soc/peripheral@50000000/spi@b000/. /soc/peripheral@50000000/spi@b000/ads129xr@0/"

The error shows as in the picture yellow box below.

the project can build without any error.

the device tree fragment as below:

&spi2 {

	compatible = "nordic,nrf-spim";
	status = "okay";

	sck-pin = < 12 >;
	miso-pin = < 14 >;
	mosi-pin = < 18 >;
	cs-gpios = < &gpio0 15 GPIO_ACTIVE_LOW >;

	ads129xr0: ads129xr@0 {
		compatible = "ti,ads129xr";
		label = "ADS129xR";
		reg = <0>;
		status = "okay";
		spi-max-frequency = <4000000>;

		pwdn-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
		reset-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
		drdy-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
		start-gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
	};
};

the binding file 'dts/bindings/sensor/ti,ads129xr-spi.yaml' as below:

# Copyright (c) 2018 Analog Devices Inc.
# Copyright (c) 2018 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

description: TI ads129xr ECG sensor, accessed through SPI bus

compatible: "ti,ads129xr"

include: spi-device.yaml

properties:
    start-gpios:
      type: phandle-array
      required: true
      description: |
        The Start signal defaults to active high as produced by the
        sensor.  The property value should ensure the flags properly
        describe the signal that is presented to the driver.

    pwdn-gpios:
      type: phandle-array
      required: true
      description: |
        The PWDN signal defaults to active high as produced by the
        sensor.  The property value should ensure the flags properly
        describe the signal that is presented to the driver.

    reset-gpios:
      type: phandle-array
      required: true
      description: |
        The RESET signal defaults to active high as produced by the
        sensor.  The property value should ensure the flags properly
        describe the signal that is presented to the driver.

    drdy-gpios:
      type: phandle-array
      required: true
      description: |
        The DRDY signal defaults to active high as produced by the
        sensor.  The property value should ensure the flags properly
        describe the signal that is presented to the driver.

on-bus: spi

CMakeList.txt in the project root:

# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)

list(APPEND DTS_ROOT ${CMAKE_SOURCE_DIR})

list(APPEND ZEPHYR_EXTRA_MODULES
  ${CMAKE_CURRENT_SOURCE_DIR}/drivers
)

include_directories(drivers/zephyr/sensor/ads129xr/)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(hello_world)

target_sources(app PRIVATE src/main.c)

How to fix this problem?

Parents Reply Children
Related