you can use chosen in DT
linux/Documentation/devicetree/usage-model.txt
178 2.3 Runtime configuration
179 -------------------------
180 In most cases, a DT will be the sole method of communicating data from
181 firmware to the kernel, so also gets used to pass in runtime and
182 configuration data like the kernel parameters string and the location
183 of an initrd image.
184
185 Most of this data is contained in the /chosen node, and when booting
186 Linux it will look something like this:
187
188 chosen {
189 bootargs = "console=ttyS0,115200 loglevel=8";
190 initrd-start = <0xc8000000>;
191 initrd-end = <0xc8200000>;
192 };
193
194 The bootargs property contains the kernel arguments