Skip to contentSkip to conversation

Reusing DTS from arm64 to arm

DISCUSSION Vinod Koul 3 participants 4 messages Nov 24, 2020 Arm Qualcomm mailing list

lore
Share & tools
lore

Vinod Koul

author
#0 lore raw

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

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

Signature · 1 line
~Vinod
#1 lore raw

Hi,

Quoted 6 lines · Vinod Koul

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.

Quoted 8 lines

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

Quoted 16 lines

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
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw
In reply to Vinod Koul

Hi Vinod,

Quoted 5 lines · Vinod Koul

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

Quoted 16 lines

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

Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -
author
#2 lore raw
In reply to Chen-Yu Tsai

Hello Chen-Yu,

Quoted 18 lines · Chen-Yu Tsai

Hi,

Quoted 6 lines · Vinod Koul

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.

Quoted 8 lines

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

Quoted 7 lines

These are already provided. See scripts/dtc/include-prefixes/ .

So just put

#include <arm64/qcom/pm8150b.dtsi>

in your DTS and it should work?

It does work, thank you for pointing me to this

Signature · 1 line
~Vinod