All of lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: Vinod Koul <vkoul@kernel.org>
Cc: Olof Johansson <olof@lixom.net>, Rob Herring <robh+dt@kernel.org>,
	devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	LKML <linux-kernel@vger.kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: Reusing DTS from arm64 to arm
Date: Tue, 24 Nov 2020 07:38:15 +0200	[thread overview]
Message-ID: <87lferwbzs.fsf@tarshish> (raw)
In-Reply-To: <20201124052701.GF8403@vkoul-mobl>

Hi Vinod,

On Tue, Nov 24 2020, Vinod Koul wrote:
> 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..?

You might want to take a look at Raspberry Pi. For example:

arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts:
// SPDX-License-Identifier: GPL-2.0
#include "arm/bcm2837-rpi-3-b.dts"

baruch

> 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
>
> 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


-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

WARNING: multiple messages have this Message-ID (diff)
From: Baruch Siach <baruch@tkos.co.il>
To: Vinod Koul <vkoul@kernel.org>
Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	LKML <linux-kernel@vger.kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
	Olof Johansson <olof@lixom.net>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: Reusing DTS from arm64 to arm
Date: Tue, 24 Nov 2020 07:38:15 +0200	[thread overview]
Message-ID: <87lferwbzs.fsf@tarshish> (raw)
In-Reply-To: <20201124052701.GF8403@vkoul-mobl>

Hi Vinod,

On Tue, Nov 24 2020, Vinod Koul wrote:
> 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..?

You might want to take a look at Raspberry Pi. For example:

arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts:
// SPDX-License-Identifier: GPL-2.0
#include "arm/bcm2837-rpi-3-b.dts"

baruch

> 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
>
> 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


-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2020-11-24  5:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-24  5:27 Reusing DTS from arm64 to arm Vinod Koul
2020-11-24  5:27 ` Vinod Koul
2020-11-24  5:36 ` Chen-Yu Tsai
2020-11-24  5:36   ` Chen-Yu Tsai
2020-11-24  5:44   ` Vinod Koul
2020-11-24  5:44     ` Vinod Koul
2020-11-24  5:38 ` Baruch Siach [this message]
2020-11-24  5:38   ` Baruch Siach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lferwbzs.fsf@tarshish \
    --to=baruch@tkos.co.il \
    --cc=bjorn.andersson@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=olof@lixom.net \
    --cc=robh+dt@kernel.org \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.