[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGb2v67DpjMkcXoumQ=92wVovCqor37U7xroxsoh+BO6i7x8jg@mail.gmail.com>
Date: Tue, 24 Nov 2020 13:36:04 +0800
From: Chen-Yu Tsai <wens@...nel.org>
To: Vinod Koul <vkoul@...nel.org>
Cc: Olof Johansson <olof@...om.net>, Rob Herring <robh+dt@...nel.org>,
devicetree <devicetree@...r.kernel.org>,
linux-arm-msm <linux-arm-msm@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>
Subject: Re: Reusing DTS from arm64 to arm
Hi,
On Tue, Nov 24, 2020 at 1:28 PM Vinod Koul <vkoul@...nel.org> wrote:
>
> Hello Olof, Rob,
>
> We have Qualcomm arm platform which uses PMIC PM8150B. This PMIC was
> also used in SM8150 board and is already upstream [1] but in arm64.
>
> So, what is the guidance to share DTS files between 32 and 64 variants?
> Does a solution already exist which I may not be aware of..?
>
> I can think of following options for this, in case we dont have a
> solution:
>
> 1. Hack up arm include paths to also include arm64 path so that we can
> share DTS
These are already provided. See scripts/dtc/include-prefixes/ .
So just put
#include <arm64/qcom/pm8150b.dtsi>
in your DTS and it should work?
For Allwinner we have the reverse, i.e. including arm dts files from arm64.
Regards
ChenYu
> 2. Use relative path of arm64 directory and include that (seems not
> great to look at)
>
> 3. Copy the file (simplest but least preferred)
>
> Or is there a better idea to solve this...?
>
> [1]: arch/arm64/boot/dts/qcom/pm8150b.dtsi
>
> Thanks
> --
> ~Vinod
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@...ts.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Powered by blists - more mailing lists