Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1394068pxu; Mon, 23 Nov 2020 21:40:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzx+8UD1gUJe+q2XeflI1OV1AzTP7Ix/p+RkraehcyxBRD3xLMFYs9txrMMZ9bYeiSn4Vv4 X-Received: by 2002:aa7:c74e:: with SMTP id c14mr2497592eds.202.1606196427261; Mon, 23 Nov 2020 21:40:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606196427; cv=none; d=google.com; s=arc-20160816; b=M4O3zcTYal0nu50FuAJpF9XofksW8VOqPFsHcBNb7RBZWVskSWrWDuga7RLZDQMXu5 VibjosaHYh2IgFjnb9ffoFQrHhtN6pxX+nMny5vhIS3PJn2HUewbTS0KAAwz+hKghaV2 apJ/BmOeJEA58ZOy43y7GCqTbfINugkeoN1TtNy/9ZeUnJXp313YaR06YJbLxOujdhDi YJYs02d8We+SNelouyX0n8K7RS0ETDtei/5T+yBVZFZ6MUlHTb7qcFgl1ULsIx2dGQfP EAS7Z2SrwTqsRwQN4ba6JHnfjgaTvWTSf7oQvL+WrZoVIB332YOxCb41xJAsFJFZYRlM WpDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PY5GOVNfFhgXvqmnxwhdOyaq1u3p5yH99M056S09Er0=; b=ti6uzAUNf7+qtlRpI+r2A+D1HCZ0548u3XpUy475jbM+3KjkA9UhIP2iLKXAIOAL1z wpssW5WHfbGfw0gX0MC67KzBFjNhFG51eQIAIHdFvvWih5oC1EoLrj0qqNtcv+HbzecA Qq5Et8tEJY7KHc+FS+gIWcOgmZhBqFrlnLJTJvhstR1Pbw9NUVOZ/Z+WuGwFXCKg2TQo NxwOw+pY58UgotRg14gWHENtdIqQuBf/FJh10BptKjSyUXSOeKpzr8FrtGxC5veNuPUi 72fGbiVHutujgJef9359lXzSCLI8aSjyFgNvUGkxib9sj4XToCUaekzgiBmfT5/bvSts ieYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cR64A+OR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si7792342ejb.186.2020.11.23.21.40.04; Mon, 23 Nov 2020 21:40:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cR64A+OR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728462AbgKXFgT (ORCPT + 99 others); Tue, 24 Nov 2020 00:36:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:54774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbgKXFgS (ORCPT ); Tue, 24 Nov 2020 00:36:18 -0500 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 94AC9206FB; Tue, 24 Nov 2020 05:36:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606196178; bh=PY5GOVNfFhgXvqmnxwhdOyaq1u3p5yH99M056S09Er0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=cR64A+ORQ6400oZFz1g+eHgUnarSwZTqjxgzn9tbuahVRr45T8kTEGAUL9cWflc4b eK+8hQbPW6mR7T1yNz/MS9fobqiHy33dgjqNRoeg5aUuevBfnlNwlSZkNiAbBrG9pZ aT+V3rklptNYUx64JXQv97sC4Rekv5XXL2XYTgZI= Received: by mail-lf1-f54.google.com with SMTP id s30so27144726lfc.4; Mon, 23 Nov 2020 21:36:17 -0800 (PST) X-Gm-Message-State: AOAM532KKLQ50i0yDFeEiHf2KruQFmxwpAlFqhNRX4O2NYAM4MDHGuN2 Yvb7yWtQ2srEDaF1VsA4TZznCiiUsywMvgFeeOY= X-Received: by 2002:a19:ecf:: with SMTP id 198mr992157lfo.193.1606196175805; Mon, 23 Nov 2020 21:36:15 -0800 (PST) MIME-Version: 1.0 References: <20201124052701.GF8403@vkoul-mobl> In-Reply-To: <20201124052701.GF8403@vkoul-mobl> From: Chen-Yu Tsai Date: Tue, 24 Nov 2020 13:36:04 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Reusing DTS from arm64 to arm To: Vinod Koul Cc: Olof Johansson , Rob Herring , devicetree , linux-arm-msm , LKML , Bjorn Andersson , Manivannan Sadhasivam , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Nov 24, 2020 at 1:28 PM Vinod Koul 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 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@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel