file dtbo error in Uenv.txt

hi I’m working with device tree, I can’t understand why when I compile this dts file:

/dts-v1/;
/plugin/;
/ {
	compatible = "ti,beaglebone", "ti,beaglebone-black";
	fragment@0 {
		target = <&spidev0>;
		__overlay__ {
			status = "disabled";
		};
	};
		
	fragment@1 {
		target = <&spi0>;
		__overlay__ {
			status = "okay";
			#address-cells = <1>;
			#size-cells = <0>;

			my_adc: my_adc@0 {
				compatible = "brightlight,myadc";
				reg = <0x0>;
				spi-max-frequency = <4000>;
				spi-bits-per-word = <8>;
				status = "okay";
			};
		};
	};
};

what type of compilation should I use to not produce error:
dtc -O dtb -o file.dtbo -b 0 -@ file.dts
or
dtc -@ -I dts -O dtb -o file.dtbo file.dts
Or is the problem in the dts file?

the compilation succeeds but when I load it Uenv.txt in the rebbot it gives me an error