From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kever Yang Date: Wed, 5 Dec 2018 10:13:05 +0800 Subject: [U-Boot] [PATCH] rockchip: rk3288: dts: remove 'vmmc' from emmc node In-Reply-To: <1890683.7l19v6Bhrs@phil> References: <20181203035932.19538-1-kever.yang@rock-chips.com> <456dcf82-86d6-cad6-aa31-8e0bd82f87b9@rock-chips.com> <1890683.7l19v6Bhrs@phil> Message-ID: <49091062-e6fe-7fac-24f6-132ac2c42886@rock-chips.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi Heiko and Philipp, On 12/04/2018 10:49 PM, Heiko Stuebner wrote: > Am Dienstag, 4. Dezember 2018, 10:35:48 CET schrieb Philipp Tomsich: >> Kever, >> >>> On 04.12.2018, at 08:06, Kever Yang wrote: >>> >>> Hi Fabio, >>> >>> >>> On 12/03/2018 07:27 PM, Fabio Estevam wrote: >>>> Hi Kever, >>>> >>>> On Mon, Dec 3, 2018 at 2:00 AM Kever Yang = wrote: >>>>> The U-Boot eMMC does not need to care about the power for Rockchip >>>>> SoC, because if the board is using eMMC, the power will default on >>>>> (for bootrom), and we do not do power management for it like kernel, >>>>> so the 'vmmc', 'vqmmc' is only useful for SD in U-Boot. >>>> Devicetree should represent the hardware and should not rely on >>>> details of BootROM / kernel / U-Boot. >>>> >>>> If these supplies are present in the hardware, they should be >>>> represented in the devicetree. >>>> >>>> What is the exact issue you are trying to solve? >>> The U-Boot will fail to boot if eMMC driver try to enable the regulator >>> with error return. >>> These two nodes makes the eMMC driver need depends on pmic/regulator dr= iver >>> works good. >>> My case is I have two similar boards, but have different pmic or pmic >>> config, >>> then only the one with correct config can boot successful. >>> I know you would ask me to commit a new dts with correct pmic config, >>> but please >>> note that there are much much more boards then what the upstream already >>> have. >>> We are not possible to add every board, and I don't think we have to. >> These boards should have their own DTS, as that=E2=80=99s the main funct= ion of >> the DTS (i.e. to describe the actual hardware). >> >> Why is it not possible to add these boards? Theobroma system only have very few boards, so you think every board must have its own dts, because you can maintain all of them. But I can be sure that rk3288 have more than 100 boards, maybe around thousands of them, but only very few boards will send their dts upstream, and many board vendor even don't want to touch the U-Boot. I would update the patch and only touch the evb, and I would like this dts more easy to boot into kernel even if there are some kind of error happen in U-Boot, how do you think? So, no body care about the robust of the U-Boot: The basic functionality of a boot loader is to load next stage firmware to RAM and boot into it, the only driver mucs work is eMMC(if this is main storage), so that the CPU and eMMC works then we can boot into kernel even if the pmic driver is broken. > I'd also like to have each board represented correctly. > > I think the main issue for Kever is, that each marketed device (hundreds?) > is largely following a reference design for the soc with smallish per- > board changes for their relevant features. So I guess the hope is that > it will save effort if there is common devicetree/board. Yes, I add a feature to re-use the kernel dtb and share a per chip common dts for Rockchip private U-Boot, because there are too much cases, and I want the eMMC driver to be more stand alone so that not be affect by other module like pmic. > While these largely similar dts are somewhat of a concern, on the kernel- > side I try to only allow shared files for boards of the same vendor ... a= ka > when it really is safe to assume that everybody knows what really is shar= ed > like the Vamrs Ficus+Rock960 or of course the Google-Gru series of device= s. As I have said, there are much more boards out of mainline and your method can only resolve those already upstream. Thanks, - Kever > > Heiko > > >