Custom devicetree binding file is not found when placed in

Greetings,

I have made a custom (out-of-tree) devicetree binding file for an spi flash memory device and named it: zephyr,myflashmem.yaml

I have created the folder "dts" in my application's directory and a subfolder named "bindings" inside that, so the yaml file resides in <app directory>/dts/bindings as the documentation specifies

below are the contents of the file: zephy,myflashmem.yaml

description: Device tree binding for the Flash Memory

compatible: "zephyr,myflashmem"

include: spi-device.yaml

And here is the device tree node made for it in our custom board's .dts file

&spi1{
	compatible = "nordic,nrf-spi";
	status = "okay";
	cs-gpios = < &gpio0 29 GPIO_ACTIVE_LOW>;
	pinctrl-0 = <&spi1_default>;
	pinctrl-1 = <&spi1_sleep>;
	pinctrl-names = "default", "sleep";
	myflashmem: myflashmem@0 {
		compatible = "zephyr,myflashmem";
		reg = < 0 >;
		spi-max-frequency = < 83000000 >;
		label = "my_flash";
	};
};

Even after building the application, the custom-board.dts file shows the error (squigly line): Unknown node type "zephyr,myflashmem"

I have tried different file names and alterntive locations for the .yaml file but I always get the same error.

Is there something I am missing on creating custom devicetree bindings and appliying them?

Thank you for your time and I look forward to your response.

Best regards,

Stavros Filippas

Parents Reply Children
Related