[U-Boot] [PATCH] mtd: sf_probe: add jedec,spi-nor compatible
Simon Goldschmidt
simon.k.r.goldschmidt at gmail.com
Sun Nov 25 18:57:04 UTC 2018
On 14.11.2018 10:15, Jagan Teki wrote:
> On Wed, Nov 14, 2018 at 2:39 PM Simon Goldschmidt
> <simon.k.r.goldschmidt at gmail.com> wrote:
>> On Wed, Nov 14, 2018 at 9:59 AM Jagan Teki <jagan at amarulasolutions.com> wrote:
>>> On Sat, Nov 10, 2018 at 1:14 AM Simon Goldschmidt
>>> <simon.k.r.goldschmidt at gmail.com> wrote:
>>>> On 06.11.2018 10:24, Neil Armstrong wrote:
>>>>> There is no reason not to use the Linux "jedec,spi-nor" binding in u-boot.
>>>>> This patch adds this compatible into sf_probe and will avoid changing the
>>>>> device tree files to add a u-boot specific compatible to probe a spi flash.
>>>>>
>>>>> This change is needed to enable SPI NOR Flash support using the non-modified
>>>>> device tree file for Amlogic Meson GX SoC based boards.
>>>>>
>>>>> Signed-off-by: Neil Armstrong <narmstrong at baylibre.com>
>>>> This is definitively a move in the right direction! I was only days away
>>>> from sending this myself ;-)
>>>>
>>>> Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>
>>>>
>>>> I would still need more changes to U-Boot to boot the Linux socfpga
>>>> devicetrees without patches (they have compatible = "n25q256a" etc.),
>>>> but then again, maybe it's easier to change the Linux ones to include
>>>> "jedec,spi-nor" than trying the effort of changing U-Boot here...
>>> It's better to revert/remove "spi-flash" from Linux sync dts(s) files
>>> along with this compatible change, u-boot specific stuff like sandbox
>>> still use the legacy.
>> Is this a reply to me to change the scofpga dts files or to Neil to
>> remove "spi-flash" from U-Boot with his patch?
> Not to remove as of now.
>
>> Because, sure, once U-Boot supports "jedec-spi-nor", I'll make sure
>> the Linux devicetrees get that, too (in addition to the "n25q..."
>> compatibles) so that they just work in U-Boot and can be synced again.
> I think it's better to go with all respective changes in one patch? do
> you think it's risky? because many of Linux sync dts on respective
> driver will work straightaway. I have no objection to add this
> "jedec-spi-nor" below of "spi-flash". Once all moved we can drop the
> "spi-flash"
Neil, are you planning to send a conversion patch for the ~100 dts files
using "spi-flash" today? I think it would be good to have this as one
series with 3 patches where 1 introduces "jedec-spi-nor", 2 converts
existing boards and 3 removes "spi-flash".
Simon
More information about the U-Boot
mailing list