From patchwork Thu Mar 9 20:45:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168317 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1246CC61DA4 for ; Thu, 9 Mar 2023 20:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0CEE1E2tFQNeN8EDGbN5HjQxAeHyoji0CIxDOiAuoIk=; b=MG05v9zdIxRJ9s WdtZK6fwYfFPdz7quui77ElznMGnHZR3HeVXWPdEZc9Z0nHIhClvzFv/77fNptxr86cUD0c0mjYQS NYPsacT7pXbqc3+F1g7ADHlti6MdY47hx/MkPk6vRj/B9spJnhXOchNI/YpJFBTJYP/VNR89XOP5L gv0qST4wPqlRht4H/oxvnFBXmetM8MOObLxebzeVieJv0JRV9GuVjTFS8HPkcEva+rx4233H85XKe R8HeIvBPB91yw11gNeexA1J3FmExzIfEVyo6GbZvQcrcxOwCDCfJbiBrjQhxNLpNQt8AUWQEw7cbB em3WtJsiLCVS28+FKnLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNB9-00Boy0-V6; Thu, 09 Mar 2023 20:48:00 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAH-00BoWF-5A for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:47:07 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 7EEE3E9843; Thu, 9 Mar 2023 12:46:34 -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 XdmdtZIwla9w; Thu, 9 Mar 2023 12:46:33 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394793; bh=kH7aQE7e3IvmrZCyAx9WYSO5F0vKvEHVshKC+bqbnCY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FYVNVUsaCVPykbjqFdNC0ILcsb6ok2OyJDxYKnOSri1oJiGf1COpJYVoLouRMAqkB h0+srzrDFfOzW/55iVR5snboIdU6bsMNtQ71WMzfrPTiXlysY+ETNK3OJWyXxglRkb 6z7+2wHCGuhNZkkmhoVY6tyONSTJyyxHG7sUNtdI3nIvfu10lpz/OQke/mTCT9zrUg e2KijTmBsHU/df/hhzxFCZlr3eRi9vx4YJHtG7F9104ZA7Vp7sU+gvDeh05uH79atJ LLw1f3mXNQDYveEbkocjrXIkC9+BibKEUEYVIKbTVbK3jGxUBk1bP0CJ//bGhEdDUz TBIkia55cjMiA== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, 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 01/14] arm64: dts: imx8mq-librem5: lower the mipi csi 1 frequencies Date: Thu, 9 Mar 2023 21:45:55 +0100 Message-Id: <20230309204608.237605-2-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124705_246895_8AEAB66A X-CRM114-Status: UNSURE ( 8.48 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org No frames are streamed when using the default frequencies. I'm not yet sure why the fastest ones don't work here but we've been using these frequencies successfully for a long time now. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index 6895bcc121651..c81cf3e6582b1 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -1143,6 +1143,7 @@ &lcdif { }; &mipi_csi1 { + assigned-clock-rates = <266000000>, <200000000>, <66000000>; status = "okay"; ports { From patchwork Thu Mar 9 20:45:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168320 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F3928C64EC4 for ; Thu, 9 Mar 2023 20:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nlb3eVJLeZ7ClG+4zVEGA08UhxagmEsMPMA2sygqMv0=; b=ePfzX41NTiAABK w61bIxgpr85ow+HY3CX16GboYTluzO8BlLLOehITB/LeZ3gHPflpcpmuMai3llt1OER1lI2wrP7FX KFhVrHaW9q+SWZxOX3coILInr/nvB13cR0YAtfSMoPezZUNzTcG951bUMaUCeJNSOA9yhWWDbmON2 rnH9PsmnQKQUa4/2w8vmIca0g946txJtF5byMCZNq+b9eWmiWxkjrAj7jSkvt9zk977+F6A260oHT hRDAN8uVj9zfBBPiIOmgsN2EML/1fq49W0s50FjqOP6lFswiaKpx1MLLfBedgbnQIetJb7aVp3gfJ fGZTErlJx1RkE1RT5o8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNCH-00Bpgd-VD; Thu, 09 Mar 2023 20:49:10 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAJ-00BoY6-SZ for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:47:09 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 8713CE9850; Thu, 9 Mar 2023 12:46:37 -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 ffLjKzkQbcpa; Thu, 9 Mar 2023 12:46:36 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394796; bh=YuMBgRVd+3H5CpXFdam6+WpwNglEKOVsXHnIMWO7pd8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EUWsOsdE8SQYrYZ+JWgGJekH3kl/y+WozDJNuE+fuU98zW8HvDO3zPZw8+KQBS5W4 A32maBVFmPokdLk7Pbdgm0FqwQDE7k44hsBWjKZK2cT7Y7SpZAhkzZaZ9PA59S0fqL z33cZoWTxjF1iRfe8cg+rAVr0uZoMtaV0uBmOTFdO4lDBrK4+yUNmetJ8IzEbFgtl0 sVXGCybJyx1GdStAk7/ka7dP/nnB/0IH1LirXiOlAILsPGtvqUEMBAd49X9yWJ4PVZ qQM/5MbyEZPySba17Dc2SYIVylxcNGO0Fo0VN6JIW0R+KwCoXNg3/2piKnOjplWjik BPpky4QGNLFXw== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, 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 02/14] arm64: dts: imx8mq-librem5: describe the clock for the csi sensors Date: Thu, 9 Mar 2023 21:45:56 +0100 Message-Id: <20230309204608.237605-3-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124707_995847_BF71D9AE X-CRM114-Status: GOOD ( 10.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The CLKO2 clock is used for both camera CSI interfaces as the driving clock for the connected sensors. In order for it to be available, use this hog. We can't simply add it to 2 different sensor descriptions. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index c81cf3e6582b1..fd1f6fb6d6f6f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -371,6 +371,16 @@ pmic-5v-hog { }; &iomuxc { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hog>; + + pinctrl_hog: hoggrp { + fsl,pins = < + /* CLKO2 for cameras on both CSI1 and CSI2 */ + MX8MQ_IOMUXC_GPIO1_IO15_CCMSRCGPCMIX_CLKO2 0x1f + >; + }; + pinctrl_audiopwr: audiopwrgrp { fsl,pins = < /* AUDIO_POWER_EN_3V3 */ From patchwork Thu Mar 9 20:45:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168298 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35D55C61DA4 for ; Thu, 9 Mar 2023 20:47:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sMSFtE2MXL+Top6WBC5hvu3MbvOL6pH68jDH7qailEg=; b=i2M1Pq5SzssFId 9g+2xxzqIC81z+2OrEj7fgjGARJJmEj4gs342YZOoYbe1Fw+OC4lFNkWB7r6e4PgzaGJM124i/uh+ 3EzyxkjJyhUv5H7RpmYu/zN7KpJrQ3sdl1bNNmxrdVgsUpWC1Q+/EqkaPGCRa0zkUbJWpv7tBQCeq 0NelOQ0GgptcLyGQ6dlLn6sP/y9RyPz/QBRQd4OBZO4yjV/mHgM8GQiLnRw0OeQDF5fE59SFT2Wu0 aqUl5gWkXwkDGWmDxTRC5rTiCbqbYuvry86x5xq1UVSDMj8CXcKy9Edspq4pLoy4rox6/UcJj0Awz AEP+Deb04u3/xoA9rFuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paN9x-00BoPB-Ky; Thu, 09 Mar 2023 20:46:45 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paN9u-00BoNM-8c for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:46:43 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 78388E9897; Thu, 9 Mar 2023 12:46: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 AmyielLRyqtc; Thu, 9 Mar 2023 12:46:39 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394799; bh=Zcg/QS78kOfaAlJQvFM2hpwItcK3AD7jlh3JN46lhH0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DmAut43WgyHKOeNqw8pMn/2bW2gIXNT85NRQMAHsUs+s6qNuL7Y+7rJorAJQdsVpO bKMWXVtWBdfCzk3MUf3pakhRmdhg6MeAbHEmtna6yCmDOpI1lUxDqRyQcuBBFtfCmC t1wb5jcvx818vUrOWj+tcInGyqEoOGNivgUvT9RrnIkE3zAylGHDWiESw0WtkTuQGn gobxwWFMOTO5/7Y7zT4G7E464IfUyXFPQT8QBChuYWiiKfOvk024RRn1mwYuW1HXYH M63WPTUb2TGX9kcWCOewubCUWrQMEU4nKcF9hKsWAJyGkoXWHxpO10ICONiHe2SN/7 30BqXQck/fq5A== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, 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 03/14] arm64: dts: imx8mq-librem5: fix audio-1v8 regulator name Date: Thu, 9 Mar 2023 21:45:57 +0100 Message-Id: <20230309204608.237605-4-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124642_332597_6A944C2A X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix the regulator name for the audio-1v8 regulator. 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 fd1f6fb6d6f6f..6c44af94ac02b 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -84,7 +84,7 @@ reg_aud_1v8: regulator-audio-1v8 { compatible = "regulator-fixed"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_audiopwr>; - regulator-name = "AUDIO_PWR_EN"; + regulator-name = "AUD_1V8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>; From patchwork Thu Mar 9 20:45:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168299 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52E33C64EC4 for ; Thu, 9 Mar 2023 20:47:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=U+cl7H+fCOA5zWG+SL9XtmI+BZu1pl9/WcmzJRZvCec=; b=aI+N56XALNC4NN 9bIfAg9YhucqdLT0yFl6fXCA2I52BaZtu7Wmu/OaWesM6LY9FCZC2y1t7/kHQaMoMFj4sEwHd92OM hh7kQbmpz7xyKwKETgHmrXqPhl/4z7X8U0Sl7onblQintIxJPqHrkZyoaTAVJ0BEa/LhMH9Tp+sFC fvA+t9HoWmOcbnHTCd8d6ZaTUSoeeg6DoVc4B9A57t4fcJlVjCqGcLYxIVaV1Mdn9cZi2Ien97dJF +y4HJW2Yb4B5XL1hx69v6z9+NekRqy21VpAfDtRELFTWACQde+afL4VzRLh2B4RT3UG1kiv54uV+z x6c09fgnzsHs8MAaLQKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNA7-00BoSR-0X; Thu, 09 Mar 2023 20:46:55 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paN9v-00BoOV-QJ for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:46:45 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id AFA24E98D6; Thu, 9 Mar 2023 12:46:43 -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 yTl-O_6SIRfm; Thu, 9 Mar 2023 12:46:43 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394802; bh=/z2SwHM5vj5rYgK4KMzwRo5c5566eC1bvjTqbFPVqIc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qGXTb9It5o2xhSYvsdtVpyWPy2ii2d635wqrCzjlC9KG51BFvXXSwciG72bQjL90U FsWKco/lu9A/GuJUX8hPamvRyIfFg66nBi4LfbY8mZKbDJ1JDrNNNREaTK03X3USyY jqZxTK9NEbYraEcPdDi3y3ARbJK0+vddZIjnx/+E9rXs2rmoks0Bt39g0JlVSJslPQ LoSFv3J5Ri1obD4H9bAqrlPpejina+igOFXKseOLOiFEqu/dP63diXa455hXIE7G4o xHAUou3SKULBluBadiCmui/LEk+jRvMbHH59wwrn1jh0IlxSwg9kP1OabO/AqlPJ1g RIdqu2/MkJREg== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger Subject: [PATCH v1 04/14] arm64: dts: imx8mq-librem5: Describe MIC_2V4 regulator Date: Thu, 9 Mar 2023 21:45:58 +0100 Message-Id: <20230309204608.237605-5-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124643_884150_9E26FAE4 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sebastian Krzyszkowiak No functional change, but it describes the hardware better. Signed-off-by: Sebastian Krzyszkowiak Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index 6c44af94ac02b..9f374da5c18aa 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -91,6 +91,14 @@ reg_aud_1v8: regulator-audio-1v8 { enable-active-high; }; + reg_mic_2v4: regulator-mic-2v4 { + compatible = "regulator-fixed"; + regulator-name = "MIC_2V4"; + regulator-min-microvolt = <2400000>; + regulator-max-microvolt = <2400000>; + vin-supply = <®_aud_1v8>; + }; + /* * the pinctrl for reg_csi_1v8 and reg_vcam_1v8 is added to the PMIC * since we can't have it twice in the 2 different regulator nodes. @@ -1033,7 +1041,7 @@ codec: audio-codec@1a { DBVDD-supply = <®_aud_1v8>; AVDD-supply = <®_aud_1v8>; CPVDD-supply = <®_aud_1v8>; - MICVDD-supply = <®_aud_1v8>; + MICVDD-supply = <®_mic_2v4>; PLLVDD-supply = <®_aud_1v8>; SPKVDD1-supply = <®_vsys_3v4>; SPKVDD2-supply = <®_vsys_3v4>; From patchwork Thu Mar 9 20:45:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168300 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99AADC64EC4 for ; Thu, 9 Mar 2023 20:47:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=97fo5f/9C/6+860Pu60qbeXe216o5LUCRDR4ddSkUtg=; b=y0p5CtC7oQigBK D6p9s64rgtdgp/jpAwIgJRXcpG9p/44i13+nQOdtOl8GOPjNeYLxCxhsT+P7/4NSBOS/Bn4o9ltLd /GOgeTfu5x9Qh1xt9n73wGu7qpm4K7Yh1BLEfqUC5t7ex1qwze9wWGmnrVWC+c3aUSXBHPyqGIE8h WNpO0AzCeDpYthbD8/a3kCRCCPVEcxiIuLvwYhQD0P2NSzQLtA0tKM41+N7aAGagR3TT4RG1JNUdb km1ZG+clL+X6WYeUH5rjW01MpbyZVpoFbVyzASCU7TwujDj9GtPYwHXXkS8ydMpaP3U5skCYK9u5V UOaxeywasIeVFHHhed8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAF-00BoV1-NO; Thu, 09 Mar 2023 20:47:03 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paN9y-00BoPU-OU for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:46:47 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 9D76AE9A1F; Thu, 9 Mar 2023 12:46:46 -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 rWUwUyYcajOu; Thu, 9 Mar 2023 12:46:46 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394805; bh=dJJ+nn2vsU1mmA2UOr8UyD470EUzf8JlUI5IdZnaFSk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FyvuT+wUh1J3jNZqsaBKH0/aAMb077EpTmox6yrTLcNSgKvwh9xJ5BnclSIsrX1qE l6CBjywUqWaItmPIUJjdWhJXoIlAOG4+0x0UhiFLa9iSmEzEjVIdMWK+JKYjRtEkDb sxfydkADr5Xx8VqDnw3jSo7vL9CxpkR5ZXzpb7AO9hHQkOkUoj0S4hjQpzbuZnfyug wt97FgA/S7OqAJNTzHZ5Qotclz6jvt7bUUz3ZKs2n5nBumKywM9IHRDr7aeQonkYR0 n1a44Yy4njiHluegxFgyJ5unZc0rw/26wMTGb7/l+ue8BR5yURqcgCNBpPE/Zn4lCv dtomMjPyf7IJg== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, 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 05/14] arm64: dts: imx8mq-librem5: add brightness levels to led-backlight Date: Thu, 9 Mar 2023 21:45:59 +0100 Message-Id: <20230309204608.237605-6-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124646_816577_90075FD2 X-CRM114-Status: UNSURE ( 8.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add brightness-levels and default-brightness-level properties to the librem5 board description that have been used for a long time. 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 9f374da5c18aa..f8698b6995343 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -20,6 +20,8 @@ / { backlight_dsi: backlight-dsi { compatible = "led-backlight"; leds = <&led_backlight>; + brightness-levels = <255>; + default-brightness-level = <190>; }; pmic_osc: clock-pmic { From patchwork Thu Mar 9 20:46:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168301 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 44627C64EC4 for ; Thu, 9 Mar 2023 20:48:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XlwWRBJB+yUdMFbV4RyFmsHQ+XYZQHQ15KwN0URMTys=; b=IfoF0j4quyOHcA mf/heOyiu+XPWJenAqH5UuuWmsocDGhxN4b1qVSpOQJEny4hkEBY5h3x+eFCXBlK7P/UTTKIGiEE8 HSutd8rP/kvxZghu4KAtp0pVpFt6coFpODIxqgAKGc6pMNKrnU48txDOpQFAcr32zOP5tqr6+5r9a RxniJ3obg1XRsH58hdXfFzLFZPf3ZRRi3aEEpRLXA6s35/WtHoDfFJ77JjFlACuge6nivvizMzLQA bMqnKyErRBNRjiKRvQg4a7nOAbqRgU+J1LbqAYLlpOYG9u6ryAkfFRUODY0vJK2KDIrdzE08kSJnV HWKg2r4YczpcfauzkiNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAT-00Bobt-1F; Thu, 09 Mar 2023 20:47:17 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNA2-00BoQU-0O for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:46:51 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id D9C8FE9A20; Thu, 9 Mar 2023 12:46: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 pYsXb085EP6r; Thu, 9 Mar 2023 12:46:49 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394809; bh=8ae9WzC6o2aQfbxq47hKVQYvaWWmKz7NVcd8S/N/LLY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WZjKmjxU1A1iU89EUDNrP7isToZd9NlyqmeDJcSqzmxL5CPztlrFg/s2/rbnLVNNJ +ZSAPNSMjym4SBMl1zPM53cIgnAhCQHHI5Dnuqq0IyD8wCA5GVeVBSGZKtWE+24Obg +1wqcm4Y3IoqYAIO0rnHZd8TKdedCOjHTBZoUSvGSzEiCepOPG4V5EZWVZK6KEHnI3 PY+ZM6BN1QoiCVaw7jR/RzxozG3P0FaaO5BOqJlLtudRsv7MHtLPpDqMWqkuE15PVP dgxeFbJlAACUP8pkhmW5nJoJnZ97cVC9OQGV2V77wM4TuW3KFtCRtj4h86ls8Lv7Un ov5/fqIZn1RCA== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger Subject: [PATCH v1 06/14] arm64: dts: imx8mq-librem5: Set charger parameters for each batch Date: Thu, 9 Mar 2023 21:46:00 +0100 Message-Id: <20230309204608.237605-7-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124650_090287_581DC811 X-CRM114-Status: GOOD ( 10.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sebastian Krzyszkowiak Correctly set regulation-voltage, termination-current and charge-current for the different librem 5 board revisions. Signed-off-by: Sebastian Krzyszkowiak Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts | 10 ++++------ arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi | 2 -- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 4 +++- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts index 73bd431cbd6a8..4f69eb32b1c90 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts @@ -12,18 +12,16 @@ / { compatible = "purism,librem5r2", "purism,librem5", "fsl,imx8mq"; }; -&bq25895 { - ti,battery-regulation-voltage = <4192000>; /* uV */ - ti,charge-current = <1600000>; /* uA */ - ti,termination-current = <66000>; /* uA */ -}; - &accel_gyro { mount-matrix = "1", "0", "0", "0", "-1", "0", "0", "0", "1"; }; +&bq25895 { + ti,charge-current = <1600000>; /* uA */ +}; + &proximity { proximity-near-level = <120>; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi index e4f8b47cce4f5..c1279e96effd7 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi @@ -22,9 +22,7 @@ &accel_gyro { }; &bq25895 { - ti,battery-regulation-voltage = <4200000>; /* uV */ ti,charge-current = <1500000>; /* uA */ - ti,termination-current = <144000>; /* uA */ }; &camera_front { diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index f8698b6995343..509776a63259b 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -1147,7 +1147,9 @@ bq25895: charger@6a { interrupt-parent = <&gpio3>; interrupts = <3 IRQ_TYPE_EDGE_FALLING>; phys = <&usb3_phy0>; - ti,precharge-current = <130000>; /* uA */ + ti,battery-regulation-voltage = <4208000>; /* uV */ + ti,termination-current = <128000>; /* uA */ + ti,precharge-current = <128000>; /* uA */ ti,minimum-sys-voltage = <3700000>; /* uV */ ti,boost-voltage = <5000000>; /* uV */ ti,boost-max-current = <1500000>; /* uA */ From patchwork Thu Mar 9 20:46:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168315 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 96814C61DA4 for ; Thu, 9 Mar 2023 20:48:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YxdAVAfkJ0Rk2CALNcmdcGcsnBQwI5IQVHHzoqBHTi0=; b=ESmXACJiXMcZlw CFpxMTmyiEzVtQobKS5IVTM+tdrDTo0+WbdF1Gnkt/NtyMRKxyW5JwdqRRj/4PGTthyc6BsY3dA0i deh440C4vRYZrsnahErmmlTf9qFgPXR5j9ln3pHid5zLVv471uc0CJvb4jeulcZXdyMbIaCEHRG73 RyoxFThjp2fLNSZj0Qsr3pjYpC6IzvoRAT+EgUeS8FWztlKGVbKWdT8O9C5eBj24lhAYp2Y6vlT1T jYR8hLxIZyK3kM62YSh/YK10zSRpRLnYmSCMP/u6gaWm54A9+A7J2b5syKwcW66rdlUQBdkl7yNMU tPlCPitDWymfdsMEu9+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAi-00Bojb-7o; Thu, 09 Mar 2023 20:47:32 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNA5-00BoRr-7k for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:46:54 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 1B6BEE9A84; Thu, 9 Mar 2023 12:46:53 -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 MoZNCihRsgGy; Thu, 9 Mar 2023 12:46:52 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394812; bh=UuN/4H4l2HTjHM9gMcn3njZmu2eS3WFPfLWlTyfLDA0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b7s1mkAqh3QUijl8IyMBE/G3afnLH67s7Py1JL7rnpKxlGXDZiijJ6TjDQfYFWXDg /owKPuQcBxFM5VvKw7GL9SttdkhIs4GeHHJ7OE1/rgTRHt/50wf/v+7CEMpGFrmZ0m 5YxfK0uBXJMoV/L+tli1ofRc6LRPsl9S3Mk/m7U3T7F0QyboH2Aap7X5oZAKYrkAdy SnbkVVpxFCboZBGGmPDluKF1le86+pQUcKYt/BbbohhAra2wkwnZtWI+XeY2HPO182 vNBJZliGTL8qF+PUMI83mYqzRV5+qn4/47UP0U/ZTW917fSamvHWBpLo5cWvvhHjJt x5zqEbKmdo14Q== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger Subject: [PATCH v1 07/14] arm64: dts: imx8mq-librem5: Set the DVS voltages lower Date: Thu, 9 Mar 2023 21:46:01 +0100 Message-Id: <20230309204608.237605-8-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124653_312672_56F55DE4 X-CRM114-Status: GOOD ( 13.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sebastian Krzyszkowiak They're still in the operating range according to i.MX 8M Quad datasheet. There's some headroom added over minimal values to account for voltage drop. Operational ranges (min - typ - max [selected]): - VDD_SOC (BUCK1): 0.81 - 0.9 - 0.99 [0.88] - VDD_ARM (BUCK2): 0.81 - 0.9 - 1.05 [0.84] (1000MHz) 0.90 - 1.0 - 1.05 [0.93] (1500MHz) - VDD_GPU (BUCK3): 0.81 - 0.9 - 1.05 [0.85] (800MHz) 0.90 - 1.0 - 1.05 [ -- ] (1000MHz) - VDD_VPU (BUCK4): 0.81 - 0.9 - 1.05 [ -- ] (550/500/588MHz) 0.90 - 1.0 - 1.05 [0.93] (660/600/800MHz) Idle power consumption doesn't appear to be influenced much, but a simple load test (`cat /dev/urandom | pigz - > /dev/null` combined with running Animatch) seems to show about 0.3W of difference. Care is advised, as there may be differences between each units in how low can they be undervolted - in my experience, reaching that point usually makes the phone fail to boot. In my case, it appears that my Birch phone can go down the most. This is a somewhat conservative set of values that I've seen working well on all my devices; I haven't tried very hard to optimize it, so more experiments are welcome. Signed-off-by: Sebastian Krzyszkowiak Signed-off-by: Martin Kepplinger --- .../boot/dts/freescale/imx8mq-librem5-r3.dts | 2 +- .../boot/dts/freescale/imx8mq-librem5.dtsi | 22 ++++++++++++++----- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dts index 4533a84fb0b95..077c5cd2586f7 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dts @@ -7,7 +7,7 @@ &a53_opp_table { opp-1000000000 { - opp-microvolt = <1000000>; + opp-microvolt = <950000>; }; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index 509776a63259b..eaf35cff2f8a6 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -839,8 +839,8 @@ buck1_reg: BUCK1 { regulator-max-microvolt = <1300000>; regulator-boot-on; regulator-ramp-delay = <1250>; - rohm,dvs-run-voltage = <900000>; - rohm,dvs-idle-voltage = <850000>; + rohm,dvs-run-voltage = <880000>; + rohm,dvs-idle-voltage = <820000>; rohm,dvs-suspend-voltage = <800000>; regulator-always-on; }; @@ -851,8 +851,8 @@ buck2_reg: BUCK2 { regulator-max-microvolt = <1300000>; regulator-boot-on; regulator-ramp-delay = <1250>; - rohm,dvs-run-voltage = <1000000>; - rohm,dvs-idle-voltage = <900000>; + rohm,dvs-run-voltage = <950000>; + rohm,dvs-idle-voltage = <850000>; regulator-always-on; }; @@ -861,14 +861,14 @@ buck3_reg: BUCK3 { regulator-min-microvolt = <700000>; regulator-max-microvolt = <1300000>; regulator-boot-on; - rohm,dvs-run-voltage = <900000>; + rohm,dvs-run-voltage = <850000>; }; buck4_reg: BUCK4 { regulator-name = "buck4"; regulator-min-microvolt = <700000>; regulator-max-microvolt = <1300000>; - rohm,dvs-run-voltage = <1000000>; + rohm,dvs-run-voltage = <930000>; }; buck5_reg: BUCK5 { @@ -1403,3 +1403,13 @@ &wdog1 { fsl,ext-reset-output; status = "okay"; }; + +&a53_opp_table { + opp-1000000000 { + opp-microvolt = <850000>; + }; + + opp-1500000000 { + opp-microvolt = <950000>; + }; +}; From patchwork Thu Mar 9 20:46:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168321 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F28FC61DA4 for ; Thu, 9 Mar 2023 20:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0pvWNcI7xrNh054ks8a/Uy9IzmK5RKdxRGB2BkvrDUA=; b=tXfrYqt6vZDaEV KThuPVC7KgIgB1ROK/vIt783Sgak5Ivv6wMB8bohjT9N/MNUGQdek1yASNyXhU9ODMiJ8LjXMF7kk C4nrhU+inKzRJtSt2B1iQxrP1sj6r9zASKCZXdNf2wKkVHp56zYfwfVofa9hJNQfWfWuKndIAk80J Eik4DeEFEjb2kVs+BVVLC0o2VlrCeKpdVkuO+6oCuE4VPr6aB3EBi7eHcWKzp5QRlVMbVdpIYKJzk 32pR6DdWEKS75ZuIk6haKnHwCGX/nx1av9qMCu8Xa9YXFx+7lEq7nzdnf2LyqWFKsu1w6g7Y8wteJ Dv2oVMf3FkPOmsU0YkGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNCa-00Bpr3-53; Thu, 09 Mar 2023 20:49:28 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAc-00Boh2-Ow for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:47:28 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 80729E9B6B; Thu, 9 Mar 2023 12:46:56 -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 Xbgwhex5rcyU; Thu, 9 Mar 2023 12:46:55 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394815; bh=NXsv4ig7pDrayBOyT1swTYNEvnq1e/X07EvKNWu6JMg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IdHzzUznf4Y+UMUd7Z4JmuSX5U04Xr25UBzktwlw3bRvj94HrcJrDuHZ8ZF5q3e/W /lB4N72Wjok1qupn3TZu1pNvZGEgobbeQ4w7+nna/UVUAl75R8PuiMaAWhV3TXTOyI LK1n2bKpEQgCtblIYUiWgrHT+tPkTrRhe5Bi22u994KZd8iRpe9aGqfHWOpSzxlnQU 6AU7BDv7GeF6xWs0/e4KmRUJ3LbFXgxqskFCKaB5eda0WuJ+e4DM8H5oozRqkh6XyI xDJGziyTn3vJbgp6KbpbudMst1DWBVsc67aSsVganM8v+gPXyYqzSn/+3kPOl73qWv xGl+wMhZfx4cw== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, 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 08/14] arm64: dts: imx8mq-librem5: add the magnetometer mount matrix Date: Thu, 9 Mar 2023 21:46:02 +0100 Message-Id: <20230309204608.237605-9-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124726_863772_9173D473 X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Angus Ainslie Userland needs the mount matrix to know the correct orientation of the part. Signed-off-by: Angus Ainslie Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi | 6 ++++++ arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi index c1279e96effd7..db81ed699de75 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi @@ -38,6 +38,12 @@ MX8MQ_IOMUXC_SPDIF_RX_GPIO5_IO4 0x83 }; }; +&magnetometer { + mount-matrix = "1", "0", "0", + "0", "-1", "0", + "0", "0", "-1"; +}; + &proximity { proximity-near-level = <25>; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index eaf35cff2f8a6..7e470135b86a4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -981,7 +981,7 @@ &i2c2 { pinctrl-0 = <&pinctrl_i2c2>; status = "okay"; - magnetometer@1e { + magnetometer: magnetometer@1e { compatible = "st,lsm9ds1-magn"; reg = <0x1e>; pinctrl-names = "default"; From patchwork Thu Mar 9 20:46:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168322 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CE000C61DA4 for ; Thu, 9 Mar 2023 20:50:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ObKOU74zT2NCLJ/BRPsLzJBD54ZkYNa+VpogZCSbt1c=; b=geP6OA6agnIj31 OU22JTsOIfABNP+HprrzzCRx6K8/TnRQPjGMsYysSfsZcZi/LzaJRQBXblHSa6R9KZhgGxr91c99U TFE2sXNBa5S2g+bi5MS3UPgVAacvJ98MKaHEquvM+OoMgezJ+4ftbLkPXwqKXB0xOTdLEiV2tawjg EH0K5eX4dU/1RcaER65Zz90nNt/9SzEja8tmAHn2ZVq5nXqgzjtvShogzJYNiT8+xgXlhWcNyDsCT hdJaoVjnHkYpDXHB0ckURuGs/q57o68FgKQHKLqika1X4zjmI0xsMSbpUKejDui8qv4wMArDLbyai KgHvENtNDJ7mHta1yNbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNCx-00Bq8h-R7; Thu, 09 Mar 2023 20:49:52 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAf-00Boie-Ee for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:47:30 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 4D85AE9BAB; Thu, 9 Mar 2023 12:46:59 -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 FUwib1rnwnHB; Thu, 9 Mar 2023 12:46:58 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394818; bh=lVGIU9lSpOGXhd93/MGHGMlj9wd+t6nKqZmTLFztnWI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jD+ztSxyuGi4t10yRTt9vEYQdNrn16f/GH1C4JIdKvX9+ljFh279UYZqd84HhNv+2 gih7+qmXVI7m+XJgw1HtQ2Cp7lLbr6uvdrTHd279DZDYqtznjfrL1i8Wyl5BM6vVeo /iPFaK7FKmbGWQ3gIskmQTwOlBNoXNx685rMvjfxs215/TaHm+03cnSAIKtYy1sPNS S8tONPtaXA1Ka7VllaPvIwb0LEQqHGtD3fBg551+pPoseHxCcMeSDkOmCkKhyNODj/ GOX3rohyMT7vfNS81j/Ohg4BHXjC+Lpi1agxInjzUraXdQGMn66tu3p3fBWzrAjkic t6rDV5zCn+WwA== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger Subject: [PATCH v1 09/14] arm64: dts: imx8mq-librem5: Bump usdhc2 frequency to 100MHz Date: Thu, 9 Mar 2023 21:46:03 +0100 Message-Id: <20230309204608.237605-10-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124729_549526_439E2A37 X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sebastian Krzyszkowiak RS9116 card already limits itself to 50MHz by being a high-speed card, while AP6275S can work at 100MHz just fine (technically it should work at 200MHz as well since it's a SDR104 card, but it doesn't appear to be the case in practice and further research will be needed to find out why). Signed-off-by: Sebastian Krzyszkowiak 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 7e470135b86a4..0b4b49fa1392a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -1389,7 +1389,7 @@ &usdhc2 { mmc-pwrseq = <&usdhc2_pwrseq>; post-power-on-delay-ms = <1000>; cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; - max-frequency = <50000000>; + max-frequency = <100000000>; disable-wp; cap-sdio-irq; keep-power-in-suspend; From patchwork Thu Mar 9 20:46:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168316 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA278C64EC4 for ; Thu, 9 Mar 2023 20:48:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tnFeAGT4Mt7XTkOpI5kEkjo87hcC75mEskMceMCZJBU=; b=eIEau2YnKbcUk/ PGjBaGR9r+cjVE85hll4LngckJrPdT2Hrrgyqut6jLxGktKNdNE8JY6PdNIJxPHrAKSxq8mBmZzj6 R3x45yAX6WXY8ufsGKkyPEXAlIUEHq52U7hBq6bN9Kvz00UptW7C6dZZHQL9uwNt5Ck4SSqNvxvRb Inygzfe1TxMHoXxjKQ513YxevczMkeNJHVWH8EY2ofDLCShcqmQET0gRklGFalTJyA4mio9Kbezdl aU90/Qx7x0fLsGz5sqdSyk55xaTexB9oUGpJZopiceiTniZgI0XKJl/r5z+khVy/d72D3atzu7hEV BfuET7KSBi/ZL8eABIdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAv-00Boqy-RB; Thu, 09 Mar 2023 20:47:46 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAE-00BoV2-QI for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:47:07 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 7EE07E9BDA; Thu, 9 Mar 2023 12:47:02 -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 OXiuXTj4O0Qt; Thu, 9 Mar 2023 12:47:01 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394821; bh=vHmsWeyl0kk2Tm1nDNXHTPcJ1b7xdBe80joYV/Ib/Zs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UJ4eOZ2V9C2WmLGKozPHozgoQscGsXK7q0usQIEmlEkW+vfEegnSOaVDY+trBLeKK 113dUaudetAtjq2ofYkvSMpZQ5eVd1Cfhuyb/XKqza9JBCNnAQxN7IKqr3fSDmbGK0 UjyB0X7X9jKMvFPiQ8fOpak3g6Ae+JkryT5NVZnHZXJipkGxTzbJmP/wJqGkp4z7za tXgpBn1+3q04u2xCgflnN3GLu64BUDpVfFRrT5eO30G0ZLMiYwWO4RhoGfOgJPiLZP oQFp4TK/y+4xhKWRqu3empK/kfTao77xv5DSrNn3YuBTKvSaj2FBBwm45nh2Lfgsmu 7+2JnZ+Hy71aQ== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger Subject: [PATCH v1 10/14] arm64: dts: imx8mq-librem5: Adjust proximity sensor's near levels Date: Thu, 9 Mar 2023 21:46:04 +0100 Message-Id: <20230309204608.237605-11-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124702_943870_44205A0E X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sebastian Krzyszkowiak Based on tests with my left ear (which appears to require lower levels than the right one), one Birch, one Dogwood and three Evergreens. It seems that the sensor reacts very weakly to hair, so let's make the thresholds rather generous to compensate. Signed-off-by: Sebastian Krzyszkowiak Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts | 2 +- arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi | 2 +- arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts index 4f69eb32b1c90..2b3d437a642a9 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dts @@ -23,5 +23,5 @@ &bq25895 { }; &proximity { - proximity-near-level = <120>; + proximity-near-level = <50>; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi index db81ed699de75..7fd0176e4bd30 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi @@ -45,5 +45,5 @@ &magnetometer { }; &proximity { - proximity-near-level = <25>; + proximity-near-level = <10>; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts index 1056b7981bdbd..97577c0a77158 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r4.dts @@ -23,5 +23,5 @@ &lcd_panel { }; &proximity { - proximity-near-level = <10>; + proximity-near-level = <5>; }; From patchwork Thu Mar 9 20:46:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168319 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB7D6C64EC4 for ; Thu, 9 Mar 2023 20:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DqZZv+fWUw495c29w2fwzfjc/KjA2IoASY+/HyzCHSU=; b=u21NvPJgQa2Slv hq9giu2+Jh5PVVgrGAFqM69mxI56GFD+Knk/wWZ/XJG3qMm3jtwEROSmGPh49b7j3P302efUBDQ/S ELmJAJW0L81copKVsu/25WG13iUvirum5Bb0N30WN7RrkMNXVM+85mKsNRBSKJLcyLcjK4W7ClHhN 3KWZgsLxTL4tqzhAki85TmDHsJ5aYoLoLfpaAmCFBEbuYRnUgFVGlG5wPLh0xm7NbHPHxoAgcydNW KeG6hnicnWd4GBeLzOSUs7X1vXUY5kANFav+I6mg2cuVFwMsoTWcR5S1CkfB+MegwbN3FH1qh/mna UjH/On2eCYcRtnH2rCqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNBt-00BpR9-Fh; Thu, 09 Mar 2023 20:48:45 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAH-00BoWu-QB for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:47:08 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 9325DE9BF0; Thu, 9 Mar 2023 12:47:05 -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 6770ymWoZ0eR; Thu, 9 Mar 2023 12:47:05 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394824; bh=Ktp9bUrxSX7wd0bBSswKFZcvkfXHkuw7rvjQsizXMPo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OYYUTZ+Rs8/QbNaM6HlRfccL931QSSy28/1juCnqS4Q8DHFtRzMJ2YET/PqQI77NZ XF2t+WaecSHra4hPZGp8i9qqLZXM+f2ZNBcG8MqLKB9/udKj8NGG0QSJ4c+ndC5Ju4 UlZUlEVlvVQx4EpuhRfU3Od/+1Tb0YDwSUKBqE2/LVgilKBLTthYdCq8ktQ9ac9njc MhOQ+vKtIGKtv/nhDRksSdpOnW1wtc9JCl3m53OOBcvJQNqqfRixgjYE1mJw8jQBu5 Fiu+wsTBPCQG0EPZvZ5tk37C/+oIs4xCcCZy3k4tg1qcMUHphng92fn4oEKSbHwfoR mKqX5jeGCq29Q== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger Subject: [PATCH v1 11/14] arm64: dts: imx8mq-librem5: Remove dis_u3_susphy_quirk from usb_dwc3_0 Date: Thu, 9 Mar 2023 21:46:05 +0100 Message-Id: <20230309204608.237605-12-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124705_921664_1D386D08 X-CRM114-Status: UNSURE ( 8.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sebastian Krzyszkowiak This reduces power consumption in system suspend by about 10%. Signed-off-by: Sebastian Krzyszkowiak Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index 0b4b49fa1392a..f557632f574fa 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -1322,7 +1322,6 @@ &usb_dwc3_0 { #address-cells = <1>; #size-cells = <0>; dr_mode = "otg"; - snps,dis_u3_susphy_quirk; usb-role-switch; status = "okay"; From patchwork Thu Mar 9 20:46:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168323 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4D20DC61DA4 for ; Thu, 9 Mar 2023 20:51:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OBTJyB6GuiAlIMZTD4NhnB29OgW9vwbx+3BbssRNTto=; b=N8PYGQwlV4tma/ q1Hr6s4WJoGBjaWhTs6ZBs8sGHjiO/e/1E24u3H0jr2pVO0eFJ0QmffrQczNx57e7FcB38wDZ8boS YlbkYRI3Mx+f6SrJPGxs/SgKfpApwgSP8512qgrmOmweIlDVEixcg01mWKKiCidno6Rbjt0k+VSAK icGa4tJaKhlTym2KD3AlIHHIixr2jLs3xcMUXDN0SCsV4FugBuZubFbHcLN2JrIn9FHwvkcyEWIno n61WQFW0v4nzcuv2yHEhi74+tayZuVDT5XHD00ZDDRaTt4UZBym4fCOEcTPOdKTXaY2V9em4KiaU7 +1W3VutmctRh+8c2OuNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNDO-00BqOL-GS; Thu, 09 Mar 2023 20:50:18 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAp-00Bont-8i for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:47:40 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 025CCE9BF6; Thu, 9 Mar 2023 12:47:09 -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 lAvj_M6PkvZ8; Thu, 9 Mar 2023 12:47:08 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394828; bh=1rQ6j4kjxLqtR41D0X3rBEmFBUJyytTdk0ygcZovQkY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PXYLLrIJOReyrrM0i/IPzbu/YyNguunQhQNuytdoz7kkYrC7sfEcHpTb2CjmML1yA JMGfDEgDPMcUyF1WgVIrnUVSmmWGrNvygvG6Tc2ko0+xSJgaebQUCeYaDcg9R89BEM mZ/CiQEiflflTbRvj3emC4slc5H98T5wraVZpBUSIRibm3ySWoF/NDgHG30tJwTpId tPxCgmJjAPlZ3+EpAyX5Gha6RLNso7QuNjYwCmSIR/54FUnzZQb78gDI5pAXa/iUyw Wqu4xxPxHujfmJZ2qALaVADb6Zb5VydMUJmX0zsVaSHDWhncVTIqJ1KYQnauYyq7XF LLgMd1F2Hz4/A== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger Subject: [PATCH v1 12/14] arm64: dts: imx8mq-librem5: Bump BUCK1 suspend voltage to 0.81V Date: Thu, 9 Mar 2023 21:46:06 +0100 Message-Id: <20230309204608.237605-13-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124739_359767_4B5022B1 X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sebastian Krzyszkowiak 0.8V is outside of the operating voltage specified for imx8mq, see chapter 3.1.4 "Operating ranges" of the IMX8MDQLQCEC document. Signed-off-by: Sebastian Krzyszkowiak 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 f557632f574fa..7e70663cffa30 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -841,7 +841,7 @@ buck1_reg: BUCK1 { regulator-ramp-delay = <1250>; rohm,dvs-run-voltage = <880000>; rohm,dvs-idle-voltage = <820000>; - rohm,dvs-suspend-voltage = <800000>; + rohm,dvs-suspend-voltage = <810000>; regulator-always-on; }; From patchwork Thu Mar 9 20:46:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168324 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1930C64EC4 for ; Thu, 9 Mar 2023 20:51:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jCeFJHs5F+onHDB+o4b8maupQL5LmisVDQdeGBH7g6g=; b=A8jOUi9o5Vp4lo W480uf58vryJe0sRYxDLGQHGUSkX2bLuejzXrx4cLIkUC0XtoMKY9MoVr34SHbTRaKLgybNoyofDW QUfOv0UdsVb2nqUR7E/e6V8ZMQdDLWgp/6Y6FSEK5qSMOkoZuwlbHfA46Nbp8NBeXaQO7xOSjxqqU 47M0XFxEdI3fmdwOk6zz1eUyX4/bCIYK4sDKoxw+4nS62nkSE7UJNXtxB0gdvB7wKuriqyv6xqvBh fZotON4Dz+oqORXfpHDeCydA63q3ASFPRqDf5BAYkxldRLtVdpOk+pNSlfyU4yd0p/yJ692YEfAkH BfYFGJqHb899llLLd1Yg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNDr-00BqeG-Ev; Thu, 09 Mar 2023 20:50:48 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAs-00BopT-D5 for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:47:43 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 32E0FE9C7A; Thu, 9 Mar 2023 12:47:12 -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 DOtsMJA8AAFH; Thu, 9 Mar 2023 12:47:11 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394831; bh=pCDAsfR2lOaVwFkXT961/Eh2p4yd/S/PGbqe0bqp1GU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mzsvwsz9LjjAKTjdAHjea0ymln2b0zSpNVG0Rf0444tZ93ZfSERfnh8RahYEY2B/b tEfSPSDynNm75aHogoCoBdMvgJzT2sCD7E9fXM+FKLcjQ5aNSCyXz0+b6qgWiAxR9K 8Ou05VWtG8WhB/1xA83tUZVZ8Q7Y2gkcwa7frEpfZddcPLSOFwZCft3B1bQKm2ld1v Ul4xop5IrnCDMOXa+j5htagsasE43Lw+Z5Zvr44iOb8nFjSwLT4sgf8mWCM7tUlPpt egi7aCq1O3I44zhRXB+KQSzj4TPaScmWz/kJB/5FSQk24VDm6nO25vHPo0yGRbvhan +GlJVjeiuzPNQ== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger Subject: [PATCH v1 13/14] arm64: dts: imx8mq-librem5: Reduce I2C frequency to 384kHz Date: Thu, 9 Mar 2023 21:46:07 +0100 Message-Id: <20230309204608.237605-14-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124742_496641_89395003 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sebastian Krzyszkowiak According to imx8mq errata (ERR007805): > To meet the clock low period requirement in fast speed mode, > SCL must be configured to 384KHz or less. Note that the imx i2c driver already implements this erratum and works around it. This is only for the description to reflect reality. Signed-off-by: Sebastian Krzyszkowiak Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index 7e70663cffa30..35bde8d41e8e7 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -778,7 +778,7 @@ MX8MQ_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0x1f }; &i2c1 { - clock-frequency = <387000>; + clock-frequency = <384000>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; @@ -976,7 +976,7 @@ rtc@68 { }; &i2c2 { - clock-frequency = <387000>; + clock-frequency = <384000>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c2>; status = "okay"; @@ -1025,7 +1025,7 @@ accel_gyro: accel-gyro@6a { }; &i2c3 { - clock-frequency = <387000>; + clock-frequency = <384000>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c3>; status = "okay"; @@ -1115,7 +1115,7 @@ touchscreen@38 { }; &i2c4 { - clock-frequency = <387000>; + clock-frequency = <384000>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c4>; status = "okay"; From patchwork Thu Mar 9 20:46:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168325 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E9BC3C64EC4 for ; Thu, 9 Mar 2023 20:52:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Czzd9MTBzowCtE/BWmoljo3BhPdIbOMYeogp0T+FRNw=; b=WsQURoCeYGuW2i 8BUEe2+tdxUL+ADfTezd40+I0uNGqq/CbLuTloeM1HhpaEdM3b3zEZyJT/8MYgNbKSuuma35fWfYV iJfKtoMgLVt3iAC8XapOAfLQRNAZhDZ5uVUdpTjBJFbzelhx2Jf+xNCPtcvAWK+I0N4GOxEBVTUxu 2tcaKFIXaN6pAea661orHuNMnBcRAD+Ub1Ym73M9U2dE7c4Sd9OyHdSf+kVhP+J2VGjqqPPqvSTj3 NB19zeU9yqSm25a9iLnWfnVvxnvETd0JGCZ0a3gUC06X4cISyr/8zYx35KcJSAq8j4fJFP2JjILol hcPHZ2Qng+hpHOXsSHEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNEN-00BqyM-GN; Thu, 09 Mar 2023 20:51:20 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAv-00BorC-HA for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:47:46 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 4C316E972E; Thu, 9 Mar 2023 12:47:15 -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 7OxTexIafk1Y; Thu, 9 Mar 2023 12:47:14 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394834; bh=b23CjwT84vb1HvVrTGFwqQ7/Y0c4Q+X1AAE+BUxN8bU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=guz7X2pehUeo8q9uB//1aK/PqbFzbajwXs/BR37rIq9qgy1DVdNSfvjUnKHcmNaCA BbXGGUU4v+bsgguYjLs1l0+J2aNAl2EX5a9Quho26a9ANRa04t6z6PTsNro398TXP6 Dt+C2LMLPyAV0tx8ziFx7WBCDzdLgGWL2mEe823D6uZ8UMRst0qmJ19aZp0OvZkOoB AOzI929fpRExrYOuBAlgaBZ6/RQhz3QOfYqJBagToEs+rjLZgsU3U6qXY1uJdrNMYP FJb2a3oKvrGkytLRYAJcGrrPrtrpNLKVO66m4NL3b4Wsgd64aZcOp1UndusKopVri7 DH5ju/d3TYoLA== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger Subject: [PATCH v1 14/14] arm64: dts: imx8mq-librem5: Add 166MHz to DDRC OPP table Date: Thu, 9 Mar 2023 21:46:08 +0100 Message-Id: <20230309204608.237605-15-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124745_625022_AF32899E X-CRM114-Status: UNSURE ( 7.97 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sebastian Krzyszkowiak This is the lowest frequency supported by older iMX8MQ SoC revisions. Signed-off-by: Sebastian Krzyszkowiak Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index 35bde8d41e8e7..ceced6bc4e898 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -329,6 +329,10 @@ opp-100000000 { opp-hz = /bits/ 64 <100000000>; }; + opp-166000000 { + opp-hz = /bits/ 64 <166935483>; + }; + opp-800000000 { opp-hz = /bits/ 64 <800000000>; };