From nobody Tue Jun 23 19:25:41 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 645F9C4321E for ; Mon, 28 Feb 2022 13:19:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235436AbiB1NUV (ORCPT ); Mon, 28 Feb 2022 08:20:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234688AbiB1NUT (ORCPT ); Mon, 28 Feb 2022 08:20:19 -0500 X-Greylist: delayed 385 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 28 Feb 2022 05:19:40 PST Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF58220FF; Mon, 28 Feb 2022 05:19:40 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 60BF7DF67F; Mon, 28 Feb 2022 05:12:40 -0800 (PST) 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 DEBaQBv-q0qf; Mon, 28 Feb 2022 05:12:39 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, krzysztof.kozlowski@canonical.com, shawnguo@kernel.org, festevam@gmail.com Cc: kernel@pengutronix.de, kernel@puri.sm, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kepplinger Subject: [PATCH v1 1/5] arm64: dts: imx8mq-librem5: make the volume buttons a wakeup source Date: Mon, 28 Feb 2022 14:12:18 +0100 Message-Id: <20220228131222.917137-2-martin.kepplinger@puri.sm> In-Reply-To: <20220228131222.917137-1-martin.kepplinger@puri.sm> References: <20220228131222.917137-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" They turn on the display currently so to be consistent, let's make them wake the system from suspend as well. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64= /boot/dts/freescale/imx8mq-librem5.dtsi index 05c16376b4d8..0d391468bf21 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -42,6 +42,7 @@ vol-down { gpios =3D <&gpio1 17 GPIO_ACTIVE_LOW>; linux,code =3D ; debounce-interval =3D <50>; + wakeup-source; }; =20 vol-up { @@ -49,6 +50,7 @@ vol-up { gpios =3D <&gpio1 16 GPIO_ACTIVE_LOW>; linux,code =3D ; debounce-interval =3D <50>; + wakeup-source; }; }; =20 --=20 2.30.2 From nobody Tue Jun 23 19:25:41 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4490C43219 for ; Mon, 28 Feb 2022 13:20:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235514AbiB1NUx (ORCPT ); Mon, 28 Feb 2022 08:20:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234709AbiB1NUv (ORCPT ); Mon, 28 Feb 2022 08:20:51 -0500 Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8164359A5F; Mon, 28 Feb 2022 05:20:10 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 299FFDFD97; Mon, 28 Feb 2022 05:12:45 -0800 (PST) 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 KksHJPEXtqJz; Mon, 28 Feb 2022 05:12:44 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, krzysztof.kozlowski@canonical.com, shawnguo@kernel.org, festevam@gmail.com Cc: kernel@pengutronix.de, kernel@puri.sm, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kepplinger Subject: [PATCH v1 2/5] arm64: dts: imx8mq-librem5: remove description of CHG_STATUS_B Date: Mon, 28 Feb 2022 14:12:19 +0100 Message-Id: <20220228131222.917137-3-martin.kepplinger@puri.sm> In-Reply-To: <20220228131222.917137-1-martin.kepplinger@puri.sm> References: <20220228131222.917137-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" That pin is not connected on the board so no need to describe it. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64= /boot/dts/freescale/imx8mq-librem5.dtsi index 0d391468bf21..b7d9edc1358b 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -389,8 +389,6 @@ pinctrl_charger_in: chargeringrp { fsl,pins =3D < /* CHRG_INT */ MX8MQ_IOMUXC_NAND_CE2_B_GPIO3_IO3 0x80 - /* CHG_STATUS_B */ - MX8MQ_IOMUXC_NAND_ALE_GPIO3_IO0 0x80 >; }; =20 --=20 2.30.2 From nobody Tue Jun 23 19:25:41 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E477C433EF for ; Mon, 28 Feb 2022 13:20:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235533AbiB1NUz (ORCPT ); Mon, 28 Feb 2022 08:20:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234963AbiB1NUw (ORCPT ); Mon, 28 Feb 2022 08:20:52 -0500 Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 816B25BD1A; Mon, 28 Feb 2022 05:20:10 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 2BA5EDFE17; Mon, 28 Feb 2022 05:12:49 -0800 (PST) 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 aYvn57pCe-wn; Mon, 28 Feb 2022 05:12:48 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, krzysztof.kozlowski@canonical.com, shawnguo@kernel.org, festevam@gmail.com Cc: kernel@pengutronix.de, kernel@puri.sm, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Guido=20G=C3=BCnther?= , Martin Kepplinger Subject: [PATCH v1 3/5] arm64: dts: imx8mq-librem5: higher boost regulation current Date: Mon, 28 Feb 2022 14:12:20 +0100 Message-Id: <20220228131222.917137-4-martin.kepplinger@puri.sm> In-Reply-To: <20220228131222.917137-1-martin.kepplinger@puri.sm> References: <20220228131222.917137-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guido G=C3=BCnther 1,5A is what's used by the type-c controller on the Librem 5 board so increase ti,boost-max-current to 1,5A too. Signed-off-by: Guido G=C3=BCnther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64= /boot/dts/freescale/imx8mq-librem5.dtsi index b7d9edc1358b..a0c8191bd33c 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -1098,7 +1098,7 @@ bq25895: charger@6a { ti,precharge-current =3D <130000>; /* uA */ ti,minimum-sys-voltage =3D <3700000>; /* uV */ ti,boost-voltage =3D <5000000>; /* uV */ - ti,boost-max-current =3D <500000>; /* uA */ + ti,boost-max-current =3D <1500000>; /* uA */ ti,use-vinmin-threshold =3D <1>; /* enable VINDPM */ ti,vinmin-threshold =3D <3900000>; /* uV */ monitored-battery =3D <&bat>; --=20 2.30.2 From nobody Tue Jun 23 19:25:41 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F014CC433EF for ; Mon, 28 Feb 2022 13:19:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235466AbiB1NUX (ORCPT ); Mon, 28 Feb 2022 08:20:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235306AbiB1NUT (ORCPT ); Mon, 28 Feb 2022 08:20:19 -0500 Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4C5922502; Mon, 28 Feb 2022 05:19:40 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 4F6DEDFE24; Mon, 28 Feb 2022 05:12:52 -0800 (PST) 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 xdcGnh66sa7n; Mon, 28 Feb 2022 05:12:51 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, krzysztof.kozlowski@canonical.com, shawnguo@kernel.org, festevam@gmail.com Cc: kernel@pengutronix.de, kernel@puri.sm, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Angus Ainslie , Martin Kepplinger Subject: [PATCH v1 4/5] arm64: dts: imx8mq-librem5: add a RO firmware partition Date: Mon, 28 Feb 2022 14:12:21 +0100 Message-Id: <20220228131222.917137-5-martin.kepplinger@puri.sm> In-Reply-To: <20220228131222.917137-1-martin.kepplinger@puri.sm> References: <20220228131222.917137-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Angus Ainslie This partition will hold a squashfs firmware jail. Only one read-only partition is needed. Signed-off-by: Angus Ainslie Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64= /boot/dts/freescale/imx8mq-librem5.dtsi index a0c8191bd33c..587e55aaa57b 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -325,15 +325,10 @@ partition@0 { }; =20 partition@30000 { - label =3D "protected1"; - reg =3D <0x30000 0x10000>; + label =3D "firmware"; + reg =3D <0x30000 0x1d0000>; read-only; }; - - partition@40000 { - label =3D "rw"; - reg =3D <0x40000 0x1C0000>; - }; }; }; =20 --=20 2.30.2 From nobody Tue Jun 23 19:25:41 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2162DC433EF for ; Mon, 28 Feb 2022 13:19:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235469AbiB1NU0 (ORCPT ); Mon, 28 Feb 2022 08:20:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235352AbiB1NUU (ORCPT ); Mon, 28 Feb 2022 08:20:20 -0500 Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B74BA22B3E; Mon, 28 Feb 2022 05:19:41 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 8CA7EDFE13; Mon, 28 Feb 2022 05:12:55 -0800 (PST) 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 XoIFEqnc3zYT; Mon, 28 Feb 2022 05:12:55 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, krzysztof.kozlowski@canonical.com, shawnguo@kernel.org, festevam@gmail.com Cc: kernel@pengutronix.de, kernel@puri.sm, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Guido=20G=C3=BCnther?= , Martin Kepplinger Subject: [PATCH v1 5/5] arm64: dts: imx8mq-librem5-r4: add the correct panel Date: Mon, 28 Feb 2022 14:12:22 +0100 Message-Id: <20220228131222.917137-6-martin.kepplinger@puri.sm> In-Reply-To: <20220228131222.917137-1-martin.kepplinger@puri.sm> References: <20220228131222.917137-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guido G=C3=BCnther The r4 ("Evergreen") hardware revision of the Librem 5 phone includes a slightly different panel than the revisions before it. Since its' description is available, describe it properly for the board. Signed-off-by: Guido G=C3=BCnther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts b/arch/arm= 64/boot/dts/freescale/imx8mq-librem5-r4.dts index 30d65bef6939..1056b7981bdb 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts @@ -18,6 +18,10 @@ &led_backlight { led-max-microamp =3D <25000>; }; =20 +&lcd_panel { + compatible =3D "ys,ys57pss36bh5gq"; +}; + &proximity { proximity-near-level =3D <10>; }; --=20 2.30.2