Message ID | 20240608080530.9436-2-linux@fw-web.de (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | rework bpi-r3 dts overlays and add SATA dtso | expand |
any suggestions? hoping it does no laying around so long as v2 regards Frank > Gesendet: Samstag, 08. Juni 2024 um 10:05 Uhr > Von: "Frank Wunderlich" <linux@fw-web.de> > An: "Matthias Brugger" <matthias.bgg@gmail.com>, "AngeloGioacchino Del Regno" <angelogioacchino.delregno@collabora.com>, "Rob Herring" <robh@kernel.org>, "Krzysztof Kozlowski" <krzk+dt@kernel.org>, "Conor Dooley" <conor+dt@kernel.org> > Cc: "Frank Wunderlich" <frank-w@public-files.de>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, "Daniel Golle" <daniel@makrotopia.org>, "Rob Herring" <robh+dt@kernel.org> > Betreff: [PATCH v3 1/2] arm64: dts: mt7986: add dtbs with applied overlays for bpi-r3 > > From: Frank Wunderlich <frank-w@public-files.de> > > Build devicetree binaries for testing overlays and providing users > full dtb without using overlays. > > Suggested-by: Rob Herring <robh+dt@kernel.org> > Signed-off-by: Frank Wunderlich <frank-w@public-files.de> > --- > https://lore.kernel.org/all/CAL_JsqK_3xxD0DFwipXO85P=q=EYjUdjE1_8g1MKtvw3vVzx5A@mail.gmail.com/ > https://lore.kernel.org/all/CAL_JsqJSi=kJSix=f3787ULZnaCy_Y26Phdhy5y9fat_vkDuUw@mail.gmail.com/ > > v2: > make full dtbs multiline for better readability > --- > arch/arm64/boot/dts/mediatek/Makefile | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile > index 37b4ca3a87c9..0ec5b904d35d 100644 > --- a/arch/arm64/boot/dts/mediatek/Makefile > +++ b/arch/arm64/boot/dts/mediatek/Makefile > @@ -15,6 +15,27 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc.dtbo > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nand.dtbo > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nor.dtbo > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd.dtbo > +mt7986a-bananapi-bpi-r3-emmc-nand-dtbs := \ > + mt7986a-bananapi-bpi-r3.dtb \ > + mt7986a-bananapi-bpi-r3-emmc.dtbo \ > + mt7986a-bananapi-bpi-r3-nand.dtbo > +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc-nand.dtb > +mt7986a-bananapi-bpi-r3-emmc-nor-dtbs := \ > + mt7986a-bananapi-bpi-r3.dtb \ > + mt7986a-bananapi-bpi-r3-emmc.dtbo \ > + mt7986a-bananapi-bpi-r3-nor.dtbo > +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc-nor.dtb > +mt7986a-bananapi-bpi-r3-sd-nand-dtbs := \ > + mt7986a-bananapi-bpi-r3.dtb \ > + mt7986a-bananapi-bpi-r3-sd.dtbo \ > + mt7986a-bananapi-bpi-r3-nand.dtbo > +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd-nand.dtb > +mt7986a-bananapi-bpi-r3-sd-nor-dtbs := \ > + mt7986a-bananapi-bpi-r3.dtb \ > + mt7986a-bananapi-bpi-r3-sd.dtbo \ > + mt7986a-bananapi-bpi-r3-nor.dtbo > +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd-nor.dtb > + > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-rfb.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986b-rfb.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4.dtb > -- > 2.34.1 > >
Il 26/06/24 22:45, Frank Wunderlich ha scritto: > any suggestions? hoping it does no laying around so long as v2 > So you're trying to just test that the overlay is valid and can actually be overlaid to the base dts? I'm not sure that this is the right/best way... and I honestly have no time to check that *exactly right now*, even though that should be. I have to be convinced of what I'm doing before applying patches, and I know that this was sent a bit of time ago, but I really didn't have any time to dig into that... let's see if for some miracle I can do that for this cycle otherwise it's going to be the next one. I mean no disrespect to Rob who suggested this change, but I still want to check that on my own before picking it. Sorry about the delays Cheers, Angelo > regards Frank > > >> Gesendet: Samstag, 08. Juni 2024 um 10:05 Uhr >> Von: "Frank Wunderlich" <linux@fw-web.de> >> An: "Matthias Brugger" <matthias.bgg@gmail.com>, "AngeloGioacchino Del Regno" <angelogioacchino.delregno@collabora.com>, "Rob Herring" <robh@kernel.org>, "Krzysztof Kozlowski" <krzk+dt@kernel.org>, "Conor Dooley" <conor+dt@kernel.org> >> Cc: "Frank Wunderlich" <frank-w@public-files.de>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, "Daniel Golle" <daniel@makrotopia.org>, "Rob Herring" <robh+dt@kernel.org> >> Betreff: [PATCH v3 1/2] arm64: dts: mt7986: add dtbs with applied overlays for bpi-r3 >> >> From: Frank Wunderlich <frank-w@public-files.de> >> >> Build devicetree binaries for testing overlays and providing users >> full dtb without using overlays. >> >> Suggested-by: Rob Herring <robh+dt@kernel.org> >> Signed-off-by: Frank Wunderlich <frank-w@public-files.de> >> --- >> https://lore.kernel.org/all/CAL_JsqK_3xxD0DFwipXO85P=q=EYjUdjE1_8g1MKtvw3vVzx5A@mail.gmail.com/ >> https://lore.kernel.org/all/CAL_JsqJSi=kJSix=f3787ULZnaCy_Y26Phdhy5y9fat_vkDuUw@mail.gmail.com/ >> >> v2: >> make full dtbs multiline for better readability >> --- >> arch/arm64/boot/dts/mediatek/Makefile | 21 +++++++++++++++++++++ >> 1 file changed, 21 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile >> index 37b4ca3a87c9..0ec5b904d35d 100644 >> --- a/arch/arm64/boot/dts/mediatek/Makefile >> +++ b/arch/arm64/boot/dts/mediatek/Makefile >> @@ -15,6 +15,27 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc.dtbo >> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nand.dtbo >> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nor.dtbo >> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd.dtbo >> +mt7986a-bananapi-bpi-r3-emmc-nand-dtbs := \ >> + mt7986a-bananapi-bpi-r3.dtb \ >> + mt7986a-bananapi-bpi-r3-emmc.dtbo \ >> + mt7986a-bananapi-bpi-r3-nand.dtbo >> +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc-nand.dtb >> +mt7986a-bananapi-bpi-r3-emmc-nor-dtbs := \ >> + mt7986a-bananapi-bpi-r3.dtb \ >> + mt7986a-bananapi-bpi-r3-emmc.dtbo \ >> + mt7986a-bananapi-bpi-r3-nor.dtbo >> +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc-nor.dtb >> +mt7986a-bananapi-bpi-r3-sd-nand-dtbs := \ >> + mt7986a-bananapi-bpi-r3.dtb \ >> + mt7986a-bananapi-bpi-r3-sd.dtbo \ >> + mt7986a-bananapi-bpi-r3-nand.dtbo >> +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd-nand.dtb >> +mt7986a-bananapi-bpi-r3-sd-nor-dtbs := \ >> + mt7986a-bananapi-bpi-r3.dtb \ >> + mt7986a-bananapi-bpi-r3-sd.dtbo \ >> + mt7986a-bananapi-bpi-r3-nor.dtbo >> +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd-nor.dtb >> + >> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-rfb.dtb >> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986b-rfb.dtb >> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4.dtb >> -- >> 2.34.1 >> >>
Am 27. Juni 2024 12:10:17 MESZ schrieb AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>: >Il 26/06/24 22:45, Frank Wunderlich ha scritto: >> any suggestions? hoping it does no laying around so long as v2 >> > >So you're trying to just test that the overlay is valid and can actually be >overlaid to the base dts? > >I'm not sure that this is the right/best way... and I honestly have no time >to check that *exactly right now*, even though that should be. > >I have to be convinced of what I'm doing before applying patches, and I know >that this was sent a bit of time ago, but I really didn't have any time to >dig into that... let's see if for some miracle I can do that for this cycle >otherwise it's going to be the next one. > >I mean no disrespect to Rob who suggested this change, but I still want to >check that on my own before picking it. > >> >> >>> Gesendet: Samstag, 08. Juni 2024 um 10:05 Uhr >>> Von: "Frank Wunderlich" <linux@fw-web.de> >>> Betreff: [PATCH v3 1/2] arm64: dts: mt7986: add dtbs with applied overlays for bpi-r3 >>> >>> From: Frank Wunderlich <frank-w@public-files.de> >>> >>> Build devicetree binaries for testing overlays and providing users >>> full dtb without using overlays. >>> >>> Suggested-by: Rob Herring <robh+dt@kernel.org> https://lore.kernel.org/all/CAL_JsqK_3xxD0DFwipXO85P=q=EYjUdjE1_8g1MKtvw3vVzx5A@mail.gmail.com/ >>> https://lore.kernel.org/all/CAL_JsqJSi=kJSix=f3787ULZnaCy_Y26Phdhy5y9fat_vkDuUw@mail.gmail.com/ >>> >>> v2: >>> make full dtbs multiline for better readability >>> --- >>> arch/arm64/boot/dts/mediatek/Makefile | 21 +++++++++++++++++++++ >>> 1 file changed, 21 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile >>> index 37b4ca3a87c9..0ec5b904d35d 100644 >>> --- a/arch/arm64/boot/dts/mediatek/Makefile >>> +++ b/arch/arm64/boot/dts/mediatek/Makefile >>> @@ -15,6 +15,27 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc.dtbo >>> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nand.dtbo >>> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nor.dtbo >>> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd.dtbo >>> +mt7986a-bananapi-bpi-r3-emmc-nand-dtbs := \ >>> + mt7986a-bananapi-bpi-r3.dtb \ >>> + mt7986a-bananapi-bpi-r3-emmc.dtbo \ >>> + mt7986a-bananapi-bpi-r3-nand.dtbo >>> +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc-nand.dtb >>> +mt7986a-bananapi-bpi-r3-emmc-nor-dtbs := \ >>> + mt7986a-bananapi-bpi-r3.dtb \ >>> + mt7986a-bananapi-bpi-r3-emmc.dtbo \ >>> + mt7986a-bananapi-bpi-r3-nor.dtbo >>> +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc-nor.dtb >>> +mt7986a-bananapi-bpi-r3-sd-nand-dtbs := \ >>> + mt7986a-bananapi-bpi-r3.dtb \ >>> + mt7986a-bananapi-bpi-r3-sd.dtbo \ >>> + mt7986a-bananapi-bpi-r3-nand.dtbo >>> +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd-nand.dtb >>> +mt7986a-bananapi-bpi-r3-sd-nor-dtbs := \ >>> + mt7986a-bananapi-bpi-r3.dtb \ >>> + mt7986a-bananapi-bpi-r3-sd.dtbo \ >>> + mt7986a-bananapi-bpi-r3-nor.dtbo >>> +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd-nor.dtb >>> + >>> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-rfb.dtb >>> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986b-rfb.dtb >>> dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4.dtb >>> -- >>> 2.34.1 >>> >>> > Yes, 1st reason is to check if overlay can be applied to base dts (the part rob was requested). The second thing that was solved is that some users wanting a "full" dtb without the need to handle overlays in bootloader. Due to hardware design of the board there are 4 "full" dtb's. So i adressed both in one Patch. I myself (and openwrt) still use the overlays and apply them after probing hardware in uboot...so for me it is not needed but requested from others. Current state was defined as broken by rob and for future additions (like mt7988/bpi-r4) we want to have a blueprint. I hope you find time to look into it to have it solved soon and avoid discussions like the 2 links from commit message in future...then we have a reference for similar situations. regards Frank
> Yes, 1st reason is to check if overlay can be applied to base dts (the part rob was requested). The second thing that was solved is that some users wanting a "full" dtb without the need to handle overlays in bootloader. Due to hardware design of the board there are 4 "full" dtb's.
I have been looking at using the "u-boot-update" package in Debian to
generate an extlinux.conf file so I can use the U-boot standard/distro
boot. This script seems to currently assume that you pick a single
.dtb file for the board, and then the user can put additional .dtbo
files in /boot/dtbo/ for any additional hardware the user has plugged
in.
So having a series of "merged" base files would be useful for this use case.
Thanks,
Leith Bade
Hi any new state on this?? https://patchwork.kernel.org/project/linux-mediatek/patch/20240608080530.9436-2-linux@fw-web.de/ regards Frank
diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile index 37b4ca3a87c9..0ec5b904d35d 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -15,6 +15,27 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc.dtbo dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nand.dtbo dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nor.dtbo dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd.dtbo +mt7986a-bananapi-bpi-r3-emmc-nand-dtbs := \ + mt7986a-bananapi-bpi-r3.dtb \ + mt7986a-bananapi-bpi-r3-emmc.dtbo \ + mt7986a-bananapi-bpi-r3-nand.dtbo +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc-nand.dtb +mt7986a-bananapi-bpi-r3-emmc-nor-dtbs := \ + mt7986a-bananapi-bpi-r3.dtb \ + mt7986a-bananapi-bpi-r3-emmc.dtbo \ + mt7986a-bananapi-bpi-r3-nor.dtbo +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc-nor.dtb +mt7986a-bananapi-bpi-r3-sd-nand-dtbs := \ + mt7986a-bananapi-bpi-r3.dtb \ + mt7986a-bananapi-bpi-r3-sd.dtbo \ + mt7986a-bananapi-bpi-r3-nand.dtbo +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd-nand.dtb +mt7986a-bananapi-bpi-r3-sd-nor-dtbs := \ + mt7986a-bananapi-bpi-r3.dtb \ + mt7986a-bananapi-bpi-r3-sd.dtbo \ + mt7986a-bananapi-bpi-r3-nor.dtbo +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-sd-nor.dtb + dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-rfb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986b-rfb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4.dtb