Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp487969pxb; Fri, 15 Oct 2021 09:32:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnGKicelygITRQ0Tk4NArCu8UR77xNU8TdydpycpJdPvmcQlb7L6UZkWN5zRoGfmgKrypN X-Received: by 2002:a63:6f83:: with SMTP id k125mr9735574pgc.162.1634315528983; Fri, 15 Oct 2021 09:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634315528; cv=none; d=google.com; s=arc-20160816; b=VxDtHA4ljqjZt3ZkUY5XK7CpqpmGhb8+eOxlet2wPK5spArplAuj1AOzsd8e6O9tik HC7AqWYrP3VxY6E5cSyJ1d2RH4kgJCw8ItuQlCZFpMFvRe9aP2uL+mxlPArMJWYb1+NB R1+uJJ+PBvp58EqZlf6ifZ0LCBimSJKxoScAPDKABkVMs2Z3xXrjF31+9g6W3C0IF+AW 7BE7S8u0Tt7eQDIGmziDOvH85GR+XAVo7TkClE2/ZBeMkgxziRNoOUYG200qGs0nTmEA cUlDjPGaBWyhof1i7RZDkfhP6oDWdRjbSvlOdhnk5rB5Mhwrn5+LP4cXDP7nRNAijjUw plLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LpfXgJIpjSftaA6YJgx5Yq8yjtQ+GequMveUv8t6Jl0=; b=iTh8RWOG6S/awC7nd0Ec9CF6c3rZ3fQgpfDmoyHPeRoHliWH4hW/SmpB/9XP3nuZEO +M2jSyKLOpwFIKfmeSHGRfkyRP5nXYAjnf7D0Xr6EBhF0sEqhSeJW0PRw6f4QJqJDslf fzdFQ0WLarT184IM0MOlaMVNK5Zlc9q1rd9fEFff9QrSV9E1Qw+RK70Uco5Vh3wD+gKK WxG0gnaX6KCaA5UfG5wkp9eLTtKKBokDy+eInUAIMJ61Q48tO4In2f1PBbEUrhdh49/F a0Z8teYZnYA0cCzoiqeNoo98P4bPOx9ulCcqCx2Utbpof2Ayr5F9EwIWdDZY69yB8wAA xV7Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si478885pll.61.2021.10.15.09.31.55; Fri, 15 Oct 2021 09:32:08 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237091AbhJOIiP (ORCPT + 99 others); Fri, 15 Oct 2021 04:38:15 -0400 Received: from comms.puri.sm ([159.203.221.185]:44610 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237075AbhJOIiO (ORCPT ); Fri, 15 Oct 2021 04:38:14 -0400 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 5A054DFE3F; Fri, 15 Oct 2021 01:36:08 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id quN_lx_fwOP8; Fri, 15 Oct 2021 01:36:07 -0700 (PDT) From: Martin Kepplinger To: robh@kernel.org, shawnguo@kernel.org, festevam@gmail.com, krzk@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, kernel@puri.sm, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, Martin Kepplinger Subject: [RFC PATCH v1 1/4] arm64: dts: split out a shared imx8mq-librem5-r3.dtsi description Date: Fri, 15 Oct 2021 10:35:03 +0200 Message-Id: <20211015083506.4182875-2-martin.kepplinger@puri.sm> In-Reply-To: <20211015083506.4182875-1-martin.kepplinger@puri.sm> References: <20211015083506.4182875-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Librem 5 r3 ("Dogwood") and r4 ("Evergreen") revisions are quite similar. Add a shared imx8mq-librem5-r3.dtsi description to be included in r3 and later dts files in order to avoid duplication. This is no change in the descriptions but only refactoring. Signed-off-by: Martin Kepplinger --- .../boot/dts/freescale/imx8mq-librem5-r3.dts | 25 ++------------- .../boot/dts/freescale/imx8mq-librem5-r3.dtsi | 32 +++++++++++++++++++ .../boot/dts/freescale/imx8mq-librem5-r4.dts | 16 ++-------- 3 files changed, 36 insertions(+), 37 deletions(-) create mode 100644 arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dts index cd3c3edd48fa..4533a84fb0b9 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dts @@ -1,14 +1,9 @@ // SPDX-License-Identifier: (GPL-2.0+ OR MIT) -// Copyright (C) 2020 Purism SPC +// Copyright (C) 2021 Purism SPC /dts-v1/; -#include "imx8mq-librem5.dtsi" - -/ { - model = "Purism Librem 5r3"; - compatible = "purism,librem5r3", "purism,librem5", "fsl,imx8mq"; -}; +#include "imx8mq-librem5-r3.dtsi" &a53_opp_table { opp-1000000000 { @@ -16,22 +11,6 @@ opp-1000000000 { }; }; -&accel_gyro { - mount-matrix = "1", "0", "0", - "0", "1", "0", - "0", "0", "-1"; -}; - -&bq25895 { - ti,battery-regulation-voltage = <4200000>; /* uV */ - ti,charge-current = <1500000>; /* uA */ - ti,termination-current = <144000>; /* uA */ -}; - &buck3_reg { regulator-always-on; }; - -&proximity { - proximity-near-level = <25>; -}; diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi new file mode 100644 index 000000000000..e872eb4b1cf9 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// Copyright (C) 2021 Purism SPC + +/dts-v1/; + +/* + * This file describes hardware that is shared among r3 ("Dogwood") and + * later revisions of the Librem 5 so it has to be included in dts there. + */ + +#include "imx8mq-librem5.dtsi" + +/ { + model = "Purism Librem 5r3"; + compatible = "purism,librem5r3", "purism,librem5", "fsl,imx8mq"; +}; + +&accel_gyro { + mount-matrix = "1", "0", "0", + "0", "1", "0", + "0", "0", "-1"; +}; + +&bq25895 { + ti,battery-regulation-voltage = <4200000>; /* uV */ + ti,charge-current = <1500000>; /* uA */ + ti,termination-current = <144000>; /* uA */ +}; + +&proximity { + proximity-near-level = <25>; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts index cbfb49aa2563..30d65bef6939 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts @@ -1,31 +1,19 @@ // SPDX-License-Identifier: (GPL-2.0+ OR MIT) -// Copyright (C) 2020 Purism SPC +// Copyright (C) 2021 Purism SPC /dts-v1/; -#include "imx8mq-librem5.dtsi" +#include "imx8mq-librem5-r3.dtsi" / { model = "Purism Librem 5r4"; compatible = "purism,librem5r4", "purism,librem5", "fsl,imx8mq"; }; -&accel_gyro { - mount-matrix = "1", "0", "0", - "0", "1", "0", - "0", "0", "-1"; -}; - &bat { maxim,rsns-microohm = <1667>; }; -&bq25895 { - ti,battery-regulation-voltage = <4200000>; /* uV */ - ti,charge-current = <1500000>; /* uA */ - ti,termination-current = <144000>; /* uA */ -}; - &led_backlight { led-max-microamp = <25000>; }; -- 2.30.2