From patchwork Wed Aug 31 08:02:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 601590 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC443ECAAD4 for ; Wed, 31 Aug 2022 08:04:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231309AbiHaIEc (ORCPT ); Wed, 31 Aug 2022 04:04:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231313AbiHaIE3 (ORCPT ); Wed, 31 Aug 2022 04:04:29 -0400 Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F344FC58D1; Wed, 31 Aug 2022 01:04:01 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id C8770DF6D2; Wed, 31 Aug 2022 01:03: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 Dp67oS9Wm6KH; Wed, 31 Aug 2022 01:03:30 -0700 (PDT) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1661933010; bh=yaZZI5m921+EyANDEcdH4Vsbrq6CyoF91jveOMdpW9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q4BdqsmOdXvCkyS4IHTVAWMXjhMNfB6SrDRbYIyTq3AJFB85ij6yn+c0/Nj5CkXl9 2yXOF4/HzDUfYH0tgj0Ocz4LxdFS5osoMMd5Fd279bWllj0DR3ZNgx964PxU9TSHzn kR37teHWkQrckZgn9jTRQDZ87G6sN7X+MNrLfgQj7CufKXnNGsnZaeDObLdj57YVeA hop9g72A8OfD+XcfnBjWPm6I+9ii7TIE0DQWTlWIVWuWCpRuRXQxtq/O8SeByf1yXg GWzhq1PXyzzCsi+IAfCTrY8s71IIpUl3Fatqq7qdh2jZEaR8yYPszxFoxPUGafKjX9 kBOh/2srCxJ6Q== 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 v1 1/5] arm64: dts: imx8mq-librem5: describe the voice coil motor for focus control Date: Wed, 31 Aug 2022 10:02:57 +0200 Message-Id: <20220831080301.1092737-2-martin.kepplinger@puri.sm> In-Reply-To: <20220831080301.1092737-1-martin.kepplinger@puri.sm> References: <20220831080301.1092737-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 Wed Aug 31 08:02:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 601591 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1F80C3DA6B for ; Wed, 31 Aug 2022 08:03:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230111AbiHaIDn (ORCPT ); Wed, 31 Aug 2022 04:03:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231298AbiHaIDk (ORCPT ); Wed, 31 Aug 2022 04:03:40 -0400 Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53AC8B9F9A; Wed, 31 Aug 2022 01:03:37 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id C1DD2DF774; Wed, 31 Aug 2022 01:03: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 pTixk_d-HRmK; Wed, 31 Aug 2022 01:03:36 -0700 (PDT) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1661933016; bh=vrU6a0X2Tj3PoMyyepXVXDWrv/gf3VSv27chaSDREEs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zlc4XckiQK5J46QGyxGbDyudSTjq6MD1FOYfaFyZup0y3G9fJXJrN/NBLCXg/UQYm EVgqr0gSsBWCSVuesLPYWT7u0KdSzflAr/cniilRb2upr87cA1t0llyPNBdVICpKnN au9msbW4Kll1KcqZ9nC97riuuxjK9QOAN101NgrPwaPbHRSinNG7wvRpl805NjF1kG SQcbYG0s8it7TSy3t2ROQiADRqI4MU6/oNpZdaIhsO3Vb8zxQvLgQyZpyBWOyO9Idh pyg/732XoqX7WKIv7h0rtXlHGU8LJ9Mr9VjCv5cP9nqDPn3WCZ9/8XjvmCOaDzqkVK ZW8hQizGoEeoQ== 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 v1 3/5] arm64: dts: imx8mq-librem5: Add bq25895 as max17055's power supply Date: Wed, 31 Aug 2022 10:02:59 +0200 Message-Id: <20220831080301.1092737-4-martin.kepplinger@puri.sm> In-Reply-To: <20220831080301.1092737-1-martin.kepplinger@puri.sm> References: <20220831080301.1092737-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 bbf49e419b498..996930d72d209 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 Wed Aug 31 08:03:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 601589 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A9BFC0502C for ; Wed, 31 Aug 2022 08:04:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231313AbiHaIEq (ORCPT ); Wed, 31 Aug 2022 04:04:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230519AbiHaIEh (ORCPT ); Wed, 31 Aug 2022 04:04:37 -0400 Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F327C32F5; Wed, 31 Aug 2022 01:04:13 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id DBE8EDF8D9; Wed, 31 Aug 2022 01:03:42 -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 HoFfwWJ9Hs3T; Wed, 31 Aug 2022 01:03:42 -0700 (PDT) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1661933022; bh=pTAM1GG6G97KUgnlgXB/M7yFHEvP6eRofoU5RlNqxKM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DRbLYS6OJx6shFzLIrYUFTZtfUFEPfnMa8+PbfRdSKLzinAbkNEz5gtFf2yxhlW+g W4Uiw9YjLga3qQvf609FRTudkrJJm0LRGUlpcSpY12VFCJ8tRARz72yjqMt5xhWf50 G86nH9ClvaHXqz/FiMNdg873VidJjMMhF0skSMnFQDvyIfYqo32dKBys2whykDmoue 3c0HvYbmRWf86PAhGB6ivTJgr4Jcfi1iDY6s+ruU5GS/dmLGfy/R3yV1fFetnBZH41 UTU1zIeXOPY3UmYIQZyDpaWgOsVjrGbmQQNumLfDvub85LuxZrKX6vdEBTNKITW0GF B0J1s/NS1aC3g== 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 v1 5/5] arm64: dts: imx8mq-librem5: add usb-role-switch property to dwc3 Date: Wed, 31 Aug 2022 10:03:01 +0200 Message-Id: <20220831080301.1092737-6-martin.kepplinger@puri.sm> In-Reply-To: <20220831080301.1092737-1-martin.kepplinger@puri.sm> References: <20220831080301.1092737-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 d5c7c35d2e85f..e685a636ca6c4 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 {