From mboxrd@z Thu Jan 1 00:00:00 1970 From: Walter Lozano Date: Fri, 29 May 2020 16:15:19 -0300 Subject: [PATCH 00/10] improve OF_PLATDATA support In-Reply-To: References: <20200529181521.22073-1-walter.lozano@collabora.com> Message-ID: <6c2d7d9e-68e8-1bec-fedf-d6418e1c93da@collabora.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jagan On 29/5/20 15:25, Jagan Teki wrote: > Hi Walter, > > On Fri, May 29, 2020 at 11:45 PM Walter Lozano > wrote: >> When using OF_PLATDATA dtbs are converted to C structs in order to save >> space as we can remove both dtbs and libraries from TPL/SPL binaries. >> >> This patchset tries to improve its support by overcoming some limitations >> in the current implementation >> >> First, the support for scan and check for valid driver/aliases is added >> in order to generate U_BOOT_DEVICE entries with valid driver names. >> >> Secondly, the way information about linked noded (phandle) is generated >> in C structs is improved in order to make it easier to get a device >> associated to its data. >> >> Lastly the the suport for the property cd-gpios is added, which is used to >> configure the card detection gpio on MMC is added. > Does it impact the footprint? If yes any statistic about how much > space has been reduced with respect to current platdata? > This series tries to overcome some of the limitations of the OF_PLATDATA support, it does not provide an improvement to the footprint. Mainly it makes it easier to implement OF_PLATDATA, by improving the better support to match compatible strings with a driver name and rising warning in case some driver name is not found. Additionally, it implements a way to access the device pointed by a phandle. However, Simon Glass is working on footprint improvements with the support of tiny DM based on this work. https://patchwork.ozlabs.org/project/uboot/patch/20200525093539.1.Ibf2d19439cde35e39192a9d4a8dad23539fae2e6 at changeid/ Regards, Walter