From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24CBEC56201 for ; Tue, 24 Nov 2020 05:47:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BA48220888 for ; Tue, 24 Nov 2020 05:47:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729268AbgKXFrD (ORCPT ); Tue, 24 Nov 2020 00:47:03 -0500 Received: from guitar.tcltek.co.il ([192.115.133.116]:39273 "EHLO mx.tkos.co.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729217AbgKXFrD (ORCPT ); Tue, 24 Nov 2020 00:47:03 -0500 X-Greylist: delayed 521 seconds by postgrey-1.27 at vger.kernel.org; Tue, 24 Nov 2020 00:47:02 EST Received: from tarshish (unknown [10.0.8.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id 4BAD64400C6; Tue, 24 Nov 2020 07:38:16 +0200 (IST) References: <20201124052701.GF8403@vkoul-mobl> User-agent: mu4e 1.4.13; emacs 27.1 From: Baruch Siach To: Vinod Koul Cc: Olof Johansson , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, LKML , Bjorn Andersson , Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org Subject: Re: Reusing DTS from arm64 to arm In-reply-to: <20201124052701.GF8403@vkoul-mobl> Date: Tue, 24 Nov 2020 07:38:15 +0200 Message-ID: <87lferwbzs.fsf@tarshish> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -