From patchwork Fri Sep 2 08:42:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 12963836 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 D23DBC54EE9 for ; Fri, 2 Sep 2022 08:44:06 +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=QhlCwF/WHxqMztTQyuZX3VR7wATeQO6o2/egEL8RMfE=; b=YkLb5RrkvwqyzP TZZRCSUWFCLOO8gs4ZRZrK6mYox/3RGiHJgdBSoWysTUgmCSjm4F2sY3iTz7zaG2Bz8qyikPP6K7N MsmL4dJKZyAcrrH47NXt5DUZI85Z4WGLAyKmPYWVelcsGcsj4dZBfbL1z5M0nzj7wDYknrwdRzbUK QbfHauKaXjdntlVK+kSBzAS6hjvTXaRfGNWgvrUdg2xtG2Z4s7dhNzXewqh2rtDftumAnUJQBI/cz sbcHF8L775qPLsr/ad7eJBz3K6/Fk8zMLRTDto50otQ6nkrFYsQ5qGI4PPZVTzccfOqBhmK57KSFw TDfkWLZWOgWfGdhDCkLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oU2Gb-0020nP-SJ; Fri, 02 Sep 2022 08:43: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 1oU2GT-0020ge-1H for linux-arm-kernel@lists.infradead.org; Fri, 02 Sep 2022 08:43:03 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 6B7D7DFD92; Fri, 2 Sep 2022 01:42:30 -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 8YpgOypMxvnP; Fri, 2 Sep 2022 01:42:29 -0700 (PDT) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1662108149; bh=yaZZI5m921+EyANDEcdH4Vsbrq6CyoF91jveOMdpW9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=plykktG6ighlbWkyyri5fPSEEEt1SrU6ShxPOz6ODAJmKs5BPe3W40eRHBQEh0wRS T+tNCGI32JWdV2uwOuJsmN8i353rJqTVyTFM/StkDteSCSbi7ibyQd3d5BTpiAxoUf XQGj4sG4Qa7ufMbmWg/+J3mFdAutENPWjOa3PySQvh5w5N9MXOtJbRmHETyyDyWEyV OY2UJFN/RvG7djNNDjykhC9p797mN39h3IyYVS814AVDfC/5C0pkoU3w+aeyNId4og rcg0OaZ8deLf/6+e+nP9wjwRoqH5lnW+r1AT2OoUxaJrPOfmoJ5nDZhCf8X+qgmBtG 2MT4ZdcxB28AQ== To: festevam@gmail.com, shawnguo@kernel.org Cc: martin.kepplinger@puri.sm, devicetree@vger.kernel.org, kernel@pengutronix.de, kernel@puri.sm, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, robh@kernel.org Subject: [PATCH v2 1/6] arm64: dts: imx8mq-librem5: describe the voice coil motor for focus control Date: Fri, 2 Sep 2022 10:42:11 +0200 Message-Id: <20220902084216.1259202-2-martin.kepplinger@puri.sm> In-Reply-To: <20220902084216.1259202-1-martin.kepplinger@puri.sm> References: <20220902084216.1259202-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-20220902_014301_098108_AD7769EB X-CRM114-Status: GOOD ( 10.14 ) 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 Describe the focus motor that will be used for the rear camera - even though the rear camera sensor driver is not yet in the mainline. The focus motor is a separate device and can be controlled already. Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index 9eec8a7eecfc8..0626e4194d958 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -1070,6 +1070,12 @@ &i2c4 { pinctrl-0 = <&pinctrl_i2c4>; status = "okay"; + vcm@c { + compatible = "dongwoon,dw9714"; + reg = <0x0c>; + vcc-supply = <®_csi_1v8>; + }; + bat: fuel-gauge@36 { compatible = "maxim,max17055"; reg = <0x36>; From patchwork Fri Sep 2 08:42:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 12963837 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 C72F8C54EE9 for ; Fri, 2 Sep 2022 08:44:29 +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=mqm3deiX7+4jEJBpObmdbfVnVLT3IoJPXPO2dJWEVCE=; b=zNZqKh4ODQ/4Mo IWqNxbboGrvqEqhYsmQGaKQYRsMHG8JBNcskHZXizZCwohUMm9YlKQEXjNdV9mfwcSfqRIa4o8pLW ADV8cTdrwY6041SGFc9nh6xh5nPzy/4cMssck5WeHwV3lT0R2T2yJOHk8D3WpDMi5/heZzcFMX/DR dcLuvGyUauHZZqQmZWrNHqJn5EYw1dqsPAWCGN+cFpub2lJpz7+ue1f7QS6qU/dscOaejyzooutyc WJnvxdPVZ/Yu7p0gUBZTIlYIMeH+FQDgoSlBMSzFJ/boOL3v+fIEOZYOp+GleoNuWvUS2HFxd1pX2 rxacnHISen7plDgrCgnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oU2Gy-00215i-2j; Fri, 02 Sep 2022 08:43: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 1oU2GV-0020iA-P2 for linux-arm-kernel@lists.infradead.org; Fri, 02 Sep 2022 08:43:05 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 9E10ADFE2A; Fri, 2 Sep 2022 01:42:33 -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 2FZVnIlIZDDt; Fri, 2 Sep 2022 01:42:32 -0700 (PDT) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1662108152; bh=XTCJOy1lkwWbbFV/ClvUNuSaI8YS0YPYuLCf+fQ4u70=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NjczDtnuMPfxFD7pvzPTt7m8+EKF5pj6HYfvpQelgRVe1FLyvQpo+tgvicr1dxw57 yFaEQ359kfmHUTUy715IrOjF+Dt8iKjK1sURwit6U2ZhRo1QA7N0HUaXHO5scJXpCh tZooioEePYHowXMHO3mKbtipSWwvntblMRSxzkJJSJim11OrgTc1HlVanzBD1M5J2p QRtCf0HiKm9NSS/+S6vpbsOxjNS08Mg8FBq3U2tbpdJMTz21oVQnU9kiZ00q/53MGu RLmreh17fuVbsSuuYt59e23MQfRwHLb8081NI6V1Vho0WwfdL7O/4yqbG/UlskARJ0 pEUaadBDQGq5w== To: festevam@gmail.com, shawnguo@kernel.org Cc: martin.kepplinger@puri.sm, devicetree@vger.kernel.org, kernel@pengutronix.de, kernel@puri.sm, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, robh@kernel.org, =?utf-8?q?Guido_G=C3=BCnther?= Subject: [PATCH v2 2/6] arm64: dts: imx8mq-librem5: add RGB pwm notification leds Date: Fri, 2 Sep 2022 10:42:12 +0200 Message-Id: <20220902084216.1259202-3-martin.kepplinger@puri.sm> In-Reply-To: <20220902084216.1259202-1-martin.kepplinger@puri.sm> References: <20220902084216.1259202-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-20220902_014303_842776_E9633BFA X-CRM114-Status: UNSURE ( 9.72 ) 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: Guido Günther Describe the RGB notification leds on the Librem 5 phone. Use the common defines so we're sure to adhere to the common patterns, use predefined led colors and functions so we're being warned in case of deprecations. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- .../boot/dts/freescale/imx8mq-librem5.dtsi | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index 0626e4194d958..8da7b87c1aa1f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -7,6 +7,7 @@ #include "dt-bindings/input/input.h" #include +#include #include "dt-bindings/pwm/pwm.h" #include "dt-bindings/usb/pd.h" #include "imx8mq.dtsi" @@ -54,6 +55,31 @@ key-vol-up { }; }; + led-controller { + compatible = "pwm-leds"; + + led-0 { + function = LED_FUNCTION_STATUS; + color = ; + max-brightness = <248>; + pwms = <&pwm2 0 50000 0>; + }; + + led-1 { + function = LED_FUNCTION_STATUS; + color = ; + max-brightness = <248>; + pwms = <&pwm4 0 50000 0>; + }; + + led-2 { + function = LED_FUNCTION_STATUS; + color = ; + max-brightness = <248>; + pwms = <&pwm3 0 50000 0>; + }; + }; + reg_aud_1v8: regulator-audio-1v8 { compatible = "regulator-fixed"; pinctrl-names = "default"; From patchwork Fri Sep 2 08:42:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 12963838 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 BE2B9C54EE9 for ; Fri, 2 Sep 2022 08:44: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=osgO1N9AJVSyeKkGDyTjvzhWz2mkqWmYLlE5m0+Y4SQ=; b=isfH0e8tJgXU6A sfyeEMLqqzMG8Jhhx5m0zybcNlgP0MgHiZ9/IlMdPgLNtFHl7FyuL9T7V/yzbfzGhe03boOTMnKnS UwxcvM3gYQuyVUACyAuBXh0OowR/RjiK4IREEOBHerZpZ8qVsHXJV5tkxyDXDfEjakDwI5y7OUsmO kFfG3ZE2ILhECMIdn4Im/akzI0XKyPHVuFBIuTE8f29e3q7JcDSenwDDa6jBigd2vO4tq4+eQ2pE4 Ec/WH+5q9FpYj6/0xOsNh6PC2vMafINUQeQVx1RqCr+kS3k/0WM9M00cVYt4Vw/s1fwjSJKyXd87M GPBdTOqLrXrvEYih77CA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oU2HB-0021He-Fd; Fri, 02 Sep 2022 08:43: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 1oU2GY-0020k9-W8 for linux-arm-kernel@lists.infradead.org; Fri, 02 Sep 2022 08:43:08 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id C9FFBDFE53; Fri, 2 Sep 2022 01:42:36 -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 GKgNz54uSPJW; Fri, 2 Sep 2022 01:42:36 -0700 (PDT) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1662108156; bh=KUxiFlsvpcd+F5TUJQ2y/X50YrcqnyZ008WHXZXuiUc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ep+tjQXP1ddXX5tsKpXiburC+cb0chbIauIEUqek9UVqh2FrMbc7BHNcrL40plePt 3OpHkzaGEzOy75w9UVYjGYNh843PYqEkO3Igq69mhrIaZ2N2C4E3JI/BBhKoiiODxF A3L+WU6WVG17h8PyJYtIbOG7sQK3Lw8Lw4zl7ES8cvmc3k2zgFS/b+cE/VXT+eh1q3 kynz+s1JBaCBcdbhAxwb7KbEcFQmkBSdyICw2mq7QiQUAEhOqJn8RvCvarXIm2i6mS Aq8LvqhXW476jRbtZCcb4h2O8vucT077cUzvTmD2EHu19SfwhmQpL3Glzsse+V6hpU WK+z0orkXom6w== To: festevam@gmail.com, shawnguo@kernel.org Cc: martin.kepplinger@puri.sm, devicetree@vger.kernel.org, kernel@pengutronix.de, kernel@puri.sm, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, robh@kernel.org, Sebastian Krzyszkowiak Subject: [PATCH v2 3/6] arm64: dts: imx8mq-librem5: Add bq25895 as max17055's power supply Date: Fri, 2 Sep 2022 10:42:13 +0200 Message-Id: <20220902084216.1259202-4-martin.kepplinger@puri.sm> In-Reply-To: <20220902084216.1259202-1-martin.kepplinger@puri.sm> References: <20220902084216.1259202-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-20220902_014307_076141_17CF8F33 X-CRM114-Status: UNSURE ( 8.30 ) 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 allows the userspace to notice that there's not enough current provided to charge the battery, and also fixes issues with 0% SOC values being considered invalid. Signed-off-by: Sebastian Krzyszkowiak 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 8da7b87c1aa1f..7e6c4ad438092 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -1109,6 +1109,7 @@ bat: fuel-gauge@36 { interrupts = <20 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gauge>; + power-supplies = <&bq25895>; maxim,over-heat-temp = <700>; maxim,over-volt = <4500>; maxim,rsns-microohm = <5000>; From patchwork Fri Sep 2 08:42:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 12963839 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 580C0ECAAD5 for ; Fri, 2 Sep 2022 08:45:29 +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=IrujDJsCh2djesSCDnlUPutzTjqUcansT2b4jNBNjuk=; b=yqB2Oi0p4RgM2A 3We2HvJnjpoU9GT+bIhngzCyqGqfLl2YkwTRInHY8pvZeEi0wIcnejLImKeAAysHF3PqM/iSn3/s8 Y2Evfga2mIQQ9BIRFAYS6+tXl/dxqsYaWLthZDtAw1qhwy0agyZq7I8noZBt2ZQSMKhi04bUcDxtX NvXwE79ijPZ6u6I/Zg6IJM+gQzDWSBq3w53yaStFc0cWPohv7SOqJeL58Ee7DJZDtjdmaVxhhssh9 Wl1xWJBKeoGbDfBYG1ELj78ZvGX1zsriPhC1retprx50AB7zleUd/OGm0gxrz+ibRm8GsOZ0K14Et Ti1kYu5dyyq7D0YOGZ/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oU2Hl-0021s4-Iu; Fri, 02 Sep 2022 08:44:21 +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 1oU2Gc-0020oZ-Jx for linux-arm-kernel@lists.infradead.org; Fri, 02 Sep 2022 08:43:11 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id EE41FDFEC1; Fri, 2 Sep 2022 01:42:39 -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 QYOPQjR-QD9P; Fri, 2 Sep 2022 01:42:39 -0700 (PDT) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1662108159; bh=JakZJWZhM51HWNUPYm0nW2ELxI9hOSYdsE72l4TJkxA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P+nMpyav7GRNkNoPtp3/6UBlJD+4MSrUcutwbCfqPs+0gn95M5Tb4+H811VkucS/T UDHMFRMOpw5QrFWmESgi0M/L/pGYrLp7Z8zDbsR/RnW83NjMujwNgoxr0pEroroLAG TQHlVW2ye4Y8+0gWnt9COFUQoiG13leS3q/LR/kmDxupevRgDGwazFR2UNfQFAZxBs CzzAjtx3IUFL1bv1xl1mh2uVEaQHltkmcmquptvyVbxXYBUOAbA0yIjZ2FA6G5BAA8 QT1iSxW07QYnDEGJNY1HRTTa2Ty0HwjUf8NPOxDEJqV22JZb2/1xRoVqIZMymp76l2 1QGVDF1J5AusA== To: festevam@gmail.com, shawnguo@kernel.org Cc: martin.kepplinger@puri.sm, devicetree@vger.kernel.org, kernel@pengutronix.de, kernel@puri.sm, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, robh@kernel.org, Angus Ainslie Subject: [PATCH v2 4/6] arm64: dts: imx8mq-librem5: add USB type-c properties for role switching Date: Fri, 2 Sep 2022 10:42:14 +0200 Message-Id: <20220902084216.1259202-5-martin.kepplinger@puri.sm> In-Reply-To: <20220902084216.1259202-1-martin.kepplinger@puri.sm> References: <20220902084216.1259202-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-20220902_014310_756424_FF55E588 X-CRM114-Status: UNSURE ( 9.28 ) 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 Add the connector properties to the USB type-c stanza to enable (PD) role-switching on the Librem 5 phone. Signed-off-by: Angus Ainslie 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 7e6c4ad438092..f07d1c6e97777 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -773,6 +773,10 @@ typec_pd: usb-pd@3f { interrupt-names = "irq"; connector { + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "dual"; + ports { #address-cells = <1>; #size-cells = <0>; From patchwork Fri Sep 2 08:42:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 12963834 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 D5610C54EE9 for ; Fri, 2 Sep 2022 08:43:40 +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=sugE+xZ4wtL3nHo/WBOS5mnhcQJU1ipsYO2jnScx1B4=; b=p4wPVmnCKgLWsP ZfNkukTZ7QtIIVYuwT1TLzVar64xE+4rUj/T3lszzKZsUr37hALY355btf5UiltYB9TtCebGiqPLk cwyIIP3hPY3xwS0/ViJZZeTSm0qqO+Nx3NkpS+8OPHgSVEPW46fRXgA9WMIahwmsPJ7HxapOcNN2i MfhKZrn7hCbr7nBhRuyCp7gfn0V2hzFCL1uvYUg4mgc22nqXKG9uMF5nnQAU9VyEkaUTlgjj6n/ee d03DMDc//ybxkk6uI780CHa/2oOEdsV6jqXrAaz3E4L5uMBFEu5gtH9zRr74FsAcEqomIybDKbpSc KNLfCFLEWiN7UiKwQysg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oU2GE-0020US-Tc; Fri, 02 Sep 2022 08:42:47 +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 1oU2GB-0020RM-95 for linux-arm-kernel@lists.infradead.org; Fri, 02 Sep 2022 08:42:44 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 19BDEDFC97; Fri, 2 Sep 2022 01:42:43 -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 Qth0n9K1XUrE; Fri, 2 Sep 2022 01:42:42 -0700 (PDT) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1662108162; bh=f5pKOXHbGKD/nYgQOSeg2/+MMasiz7zAAfiGLG+NTJk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=urzOoLmeLNMFJMJGbZH/mv+bUIioZASCyXEWUEs2h6UkYtL9SnNZBry6M8PYWC1P4 CSz6PEo2ndgfEJt1dSTtqNONizhTft7zfQVUSFwpco5QwwF15rk+gApgUlhWLhQIGp QMgSIFLU/dfs6ISLZl810Gf3KEJs1wF1EbuktFiwEob0OaPduYK5R7L+Ey2FhusM1Y 5atxY7Ecp2uBE9TwFvMGK0XaL8QreXs9toiAt16FHf36VYJ/i7M1HDQXDXNxtrrwta DszHDcvvrwEIMkPqZduprCTOgXGsMY2k1itfV2CUJJxCnF1PcUW36HFfJy1ejLMGNp gpAW/o/inxEVw== To: festevam@gmail.com, shawnguo@kernel.org Cc: martin.kepplinger@puri.sm, devicetree@vger.kernel.org, kernel@pengutronix.de, kernel@puri.sm, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, robh@kernel.org, Angus Ainslie Subject: [PATCH v2 5/6] arm64: dts: imx8mq-librem5: add usb-role-switch property to dwc3 Date: Fri, 2 Sep 2022 10:42:15 +0200 Message-Id: <20220902084216.1259202-6-martin.kepplinger@puri.sm> In-Reply-To: <20220902084216.1259202-1-martin.kepplinger@puri.sm> References: <20220902084216.1259202-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-20220902_014243_348047_BCB033A8 X-CRM114-Status: UNSURE ( 8.25 ) 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 In order to enable (PD and data) role switching on the Librem 5 phone, add the usb-role-switch property to imx8mq's dwc3 node. Signed-off-by: Angus Ainslie 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 f07d1c6e97777..058d6ecf109b2 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -1302,6 +1302,7 @@ &usb_dwc3_0 { #size-cells = <0>; dr_mode = "otg"; snps,dis_u3_susphy_quirk; + usb-role-switch; status = "okay"; port@0 { From patchwork Fri Sep 2 08:42:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 12963835 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 DECD4ECAAD5 for ; Fri, 2 Sep 2022 08:43:47 +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=643I2JOkCfCHBkQcNiXc2NXNlG6Gu3Rs0Y/fBKTuuyI=; b=15dtyOLNAWUvpN 5zBpWKflNLnER72ua/hLpCykoCPRV3BiTTPIeCRnXwI+YVT0ItDFK1ztS+nKJs6KlfYC7bT+M6lCJ exXYJUpqAxRevoE6BURUpjG9ag1l3OgII/jocVHdSEeUD57nahXc/S/9wp9JktbmoAUzcMOFFs02/ 1cC99Vv41c0svD21YV7dlBFXlY+FCnnO+nSadShUmdKYKlIQH+n/AoQMkaP8YLfmjwTAqqFtiH7Ll uV3fZHTRAAC6L25JQYtHKA5lP9U6EcE3/NEAcvqLS10cPQ8tFZUJ8Q/3LaByU+isRpEl0dOY3zEaJ XvKhq54IdDOV3FGfHCpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oU2GO-0020bZ-3z; Fri, 02 Sep 2022 08:42:56 +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 1oU2GE-0020UG-5V for linux-arm-kernel@lists.infradead.org; Fri, 02 Sep 2022 08:42:47 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 0F406DFECD; Fri, 2 Sep 2022 01:42:46 -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 obPoZtoo9hhS; Fri, 2 Sep 2022 01:42:45 -0700 (PDT) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1662108165; bh=dLxGZ2rBkhtKIFimeky7PZ5dqQic1x5ZAGAEZHNaB4c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KMrKLYnae4TV1G8nsJKolHN1cTyAeDBWI1JtzSrjglkZfB/BkS8RJ6Y40Ng6/ojdO kttmwFDfFUJ1MBe3I50HWENlKVlyYB3NY4l7vnuoVpV8qYNH8elYfl/R+FWQq2N70Q HwR9ReiAN/feAbHP2TmZ2DGDRipg+uN4+7mnHjsEHSTmLgmxxqsC3ZEkqMky0cbewF 5FSkXA8xGhF7E3bhLLjHuqEVhiYu/KSnm4oqjsliIfGciT/6LWR9KWoQ1i1JGX0heg le+2ausqTbyoHhMAwiCoyHMJ/VeX5HRfyjltSmmmI/BsHOvVSOXUkz1qtjL3OPkveK SdXoyDpV9ewAg== To: festevam@gmail.com, shawnguo@kernel.org Cc: martin.kepplinger@puri.sm, devicetree@vger.kernel.org, kernel@pengutronix.de, kernel@puri.sm, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, robh@kernel.org Subject: [PATCH v2 6/6] arm64: dts: imx8mq-librem5: fix mipi_csi description Date: Fri, 2 Sep 2022 10:42:16 +0200 Message-Id: <20220902084216.1259202-7-martin.kepplinger@puri.sm> In-Reply-To: <20220902084216.1259202-1-martin.kepplinger@puri.sm> References: <20220902084216.1259202-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-20220902_014246_228486_77F61EA1 X-CRM114-Status: UNSURE ( 8.17 ) 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 Properties are not documented so lead to the following error: '#address-cells', '#size-cells', 'interrupts' do not match any of the regexes: 'pinctrl-[0-9]+' Fix this by removing unneeded properties. 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 058d6ecf109b2..ae08556b2ef2f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -1143,8 +1143,6 @@ &lcdif { }; &mipi_csi1 { - #address-cells = <1>; - #size-cells = <0>; status = "okay"; ports {