I remembered that the raw nand framework does not support dt binding. It's not a uclass driver. So the way is to rewrite the driver as a mtd uclass driver.
Best Regards, Weijie Mauri Sandberg <[email protected]> 于2025年2月8日周六 17:04写道: > > > > On 7.2.2025 22.33, Mauri Sandberg wrote: > > Hi Weijie > > > > On 2/7/25 21:53, Weijie Gao wrote: > >> Here's an example: > >> https://github.com/openwrt/openwrt/blob/main/package/boot/uboot- > >> mediatek/patches/105-configs-add-usefull-stuff-to-mt7988-rfb.patch#L316 > > > > Sorry, I should have been more specific. Actually defining the > > partitions is the simpler part. But the mt7621.dtsi in U-boot tree does > > not contain NAND controller node to begin with and I was not successful > > in defining one. I tried copying/mimicking one from the mt7621.dtsi in > > OpenWrt tree but that did not work out. > > > > With fresh pair of eyes I found that the 'mt7621_nand.c' in OpenWrt tree > implements what the U-boot version is lacking and that they are both > your work. Are there plans for bringing device tree support to U-boot or > would you be able to review/assist if someone tried it? > > Thanks, > Mauri

