multiple device trees

Vijay Khemka vijaykhemka at fb.com
Wed Jan 15 05:25:03 AEDT 2020



On 1/14/20, 2:53 AM, "openbmc on behalf of Brad Bishop" <openbmc-bounces+vijaykhemka=fb.com at lists.ozlabs.org on behalf of bradleyb at fuzziesquirrel.com> wrote:

    
    
    > On Jan 14, 2020, at 5:39 AM, Konstantin Klubnichkin <kitsok at yandex-team.ru> wrote:
    > 
    >  
    > Hello, Brad!
    >  
    > I'm doing this using overlay DTS.
    > I have a startup script that detects board type by GPIO pins and loads corresponding overlay.
    
    Thanks for the reply Konstantin.  Does that mean you have the overlay patch applied to your kernel tree?
    
    An alternative design that I am considering is having two complete device trees in a fit image, and u-boot reads the gpios to pick the correct dtb for linux.  Did you consider a design like that and if so, was there anything specific that sent you in the direction of overlays?

This sounds like a great design, I was also thinking in this same direction. It will avoid kernel changes for overlays.
    
    thx - brad



More information about the openbmc mailing list