From patchwork Wed Jul 19 11:43:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrej Picej X-Patchwork-Id: 122579 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2392883vqt; Wed, 19 Jul 2023 05:14:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlG1+dpfi2y/RnRYj1BiygByyrR1SJTdpyzLol+SbAjNOAa+iE2PPbFjqHKLLaJFHdl55lYt X-Received: by 2002:aa7:cd6a:0:b0:51e:4439:f476 with SMTP id ca10-20020aa7cd6a000000b0051e4439f476mr2234934edb.25.1689768888289; Wed, 19 Jul 2023 05:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689768888; cv=none; d=google.com; s=arc-20160816; b=c5aLw7JR9X+hS8D59l2xGgVj8CHJmmv+y0GEuNhURMEYpJbzdzK7EvDnrxS85sQMXs QhUfKrXg7r94tcubjdcWWajKU8sKfOFH1CxZaOv04nWPOPpaN08EmGO6NpsjprpsZ9eB nyOf5MQjDscV/ncR7PkLVjp4VCnX2aMHPG7JtfsyFyjOwQIkND67pJYhGeV4j1XnfNbs 25g9jtlJ5n6NdOqotJtxtcBdAmHomfp895fBJpjGOZ/HjyIsvE+JqskccY0kWWulfGmG iYwtKXF3sxG2O6kuomXNiSI5hc6acWsmR3Hp9UenHOEusPuBtFw22S5vWQnSeIPM+jlT kM6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+EU1kAbJnGFga+DEMcEz14EYTyUDbcZAv8+vk+63FuM=; fh=CzCMK3rTO2cZV+kQzNvY9MGpIP1fLob9Xn+tMMV1Zng=; b=gROB1yItM56dmZy7dHz5gVX0oj09hWJgiHNlvIomPv+sIX7lMzKXstWudBxhn4kuXc DF0gymjOhQwdi23SJPVK3cBaAwuMfKkjmPw2w1T/jctVe+Y2BPBDRIYuZwxSQxwYU3Gm tA8yOui/9F1wy9gRV2kn3bwwB+p/n1jTA/HqNUO3pKGnU+3w7tsOZRSvmHaSA+/Q6peH uzNUI1jAf2zSsyQplk10iuQrucy/hACyUJ2fdT9GI4PsnsQE9k/w8Z0vb861ORpdEGWM i5o4cJSu/uxZqkVwizOEbDTCcTVIlf6jDavLhp/VyhtKBjKzElxm7nBbHXzmJrcAF33t 9Niw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=nsbEEhKq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1-20020a50eb01000000b00518744a06a4si3113794edp.83.2023.07.19.05.14.24; Wed, 19 Jul 2023 05:14:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=nsbEEhKq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230261AbjGSLoM (ORCPT + 99 others); Wed, 19 Jul 2023 07:44:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjGSLoK (ORCPT ); Wed, 19 Jul 2023 07:44:10 -0400 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29FB3CD; Wed, 19 Jul 2023 04:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=+EU1kAbJnGFga+DEMcEz14EYTyUDbcZAv8+vk+63FuM=; b=nsbEEhKqh6tCAlxcT2tlI+xVbQ gY8Yzr06WqyfKI33pSb1lMnwnxV+Y89PvV5H+ARV06q7CEjFtRFiRjASMuwEqQ+HOTkphJiyn7ZyN bfqc3WFJG1mVjinfwJ0L+OPvC+oM6ifgoO7znN19j8W0yLGp+Unk5peTGah8Mlc8rz4gm14jZxBrp xOnYfl6SOBh/YDFyy5d+pkFjGgRXeFxNIHVSMq8mWlaeO0ozf10gQdnOUrRTW9SWkNjpQRvmrR5In QJsKdVpc5FPio0rGOfAuiEYXvxdo/dxBDOPWcHH1u5tGcSt7CbYRu7RumZrePUbdv+xSujV1dLw06 CFzE+VuA==; Received: from 89-212-21-243.static.t-2.net ([89.212.21.243]:56038 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1qM5b1-00DcDD-1U; Wed, 19 Jul 2023 13:43:55 +0200 From: Andrej Picej To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, S.Riedmueller@phytec.de, S.Mueller-Klieser@phytec.de, upstream@phytec.de Subject: [PATCH v2 1/3] ARM: dts: imx6: phytec: fix RTC interrupt level Date: Wed, 19 Jul 2023 13:43:26 +0200 Message-Id: <20230719114328.2239818-1-andrej.picej@norik.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: andrej.picej@norik.com X-Authenticated-Sender: cpanel.siel.si: andrej.picej@norik.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771851101465835854 X-GMAIL-MSGID: 1771851101465835854 RTC interrupt level should be set to "LOW". This was revealed by the introduction of commit: f181987ef477 ("rtc: m41t80: use IRQ flags obtained from fwnode") which changed the way IRQ type is obtained. Signed-off-by: Andrej Picej Reviewed-by: Stefan Riedmüller Reviewed-by: Stefan Riedmüller Reviewed-by: Stefan Riedmüller --- Changes in v2: - no changes --- arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-mira.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-mira.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-mira.dtsi index 1a599c294ab8..1ca4d219609f 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-mira.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-mira.dtsi @@ -182,7 +182,7 @@ i2c_rtc: rtc@68 { pinctrl-0 = <&pinctrl_rtc_int>; reg = <0x68>; interrupt-parent = <&gpio7>; - interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <8 IRQ_TYPE_LEVEL_LOW>; status = "disabled"; }; }; From patchwork Wed Jul 19 11:43:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrej Picej X-Patchwork-Id: 122598 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2408538vqt; Wed, 19 Jul 2023 05:42:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlEi3l6B39xf6Xm94oqbSx3A+xvZvdV3LjmLc5/8zoeb4ubBIcK6uaOZ0dZctUwKJfxUPlNf X-Received: by 2002:a05:6512:252a:b0:4fd:c923:db5e with SMTP id be42-20020a056512252a00b004fdc923db5emr1930102lfb.21.1689770529471; Wed, 19 Jul 2023 05:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689770529; cv=none; d=google.com; s=arc-20160816; b=SdY7FNW7T5+b2O3wByOtP4/KdDhjiU7a6nbRqCUtmrnYjvIxFnTfGDBa/nrBf0QQYa 70uYJt9Vxc5infxP2E//a7Biugkubkdis/WuMOtW0moYIbL1mB28GsbAnm76arwE0qWL d727NaDS9XllNcpL70meHGQqK0Kdi7m4X4B8welauZ0LaXMiK4f/U/t8w3fKn3ubxS17 lnlQg0UZJEkQdKxnakijE1nu00TvEp+wkirCyJBboUyAvP2oGmN2HIWIj/VJ+G1CBzQb OPXYShwEw+/cYJsaSyPNoMUJi5A6SWzjGCTRf/cfoVQ3pyaLa6q7/GpfDgSDSPNoYgg0 UBGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MSdPB9oiEpbaOVi+tO3RL5bqf6DBFI0pi7P36ku9dg4=; fh=CzCMK3rTO2cZV+kQzNvY9MGpIP1fLob9Xn+tMMV1Zng=; b=hqFcJogBPoK7L0h2JqjPMzgZzIYHdLT8knRDtpH8lJn+oE9hIB/iq2NcVOqwbGN9hw HQKDEgiHJEXJnyx5qpJaWfy9LVt7hYk1cLudezcOeDbvWruHDx/lG5H19tlEuDdxmUTS 1Jw53j7cqLqBv/wVVEn4EgHjDuJlac3wpAfSgVrXUoxXQB1kfPghSJPSXsa7KnB87Mkv ikNDqfBfNv6h9TlbpStPPFOwuc1H57coBzfX0Ro42mrY5SFZCVRdM4qD8znZtEkACoLK 9+z7PdbxD2TauBbEtGfaeUYpnsHm7e7nALOVS1PM1nSxMxLgrb4ga2l7rqt5jTXh2YNC o4jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=WNX3eKxT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i1-20020a50fc01000000b0051e2486c1ecsi2829075edr.252.2023.07.19.05.41.45; Wed, 19 Jul 2023 05:42:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=WNX3eKxT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230376AbjGSLoS (ORCPT + 99 others); Wed, 19 Jul 2023 07:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230120AbjGSLoK (ORCPT ); Wed, 19 Jul 2023 07:44:10 -0400 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 218AEC7; Wed, 19 Jul 2023 04:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=MSdPB9oiEpbaOVi+tO3RL5bqf6DBFI0pi7P36ku9dg4=; b=WNX3eKxTXMeqw3xHrBFpCXoTLe C4KhmHF9gM4h6SB+Z5XPfSxi6Sj/wFjvEbIe2Gv1U+InxysNlX02c0HcIfl25ECgcMP7GGr7YRwsn 20H0stYVgajGpgVaCwtpbtEJr8kPxhvNzmkxktBBzacarpY47wjDKMM3N8vEjRWXDJWYyHxK81hXo 9+Di+m0fGkVxWBbikM6Sfakmo7+1ib7vJ8q9cSdNurI1NC2/Twqlc9dBpL2xk2VFbDGUyg4yobsoz o/s83WPxvGM4JOB4gxUsHTjhgZf4C0xJ3yfyDsm19mVvVqW/ovqo0ZoGmPaobDg1nWL+2v1BdwxJz FMDgqXaw==; Received: from 89-212-21-243.static.t-2.net ([89.212.21.243]:56038 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1qM5b1-00DcDD-1o; Wed, 19 Jul 2023 13:43:55 +0200 From: Andrej Picej To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, S.Riedmueller@phytec.de, S.Mueller-Klieser@phytec.de, upstream@phytec.de Subject: [PATCH v2 2/3] ARM: dts: imx6: pfla02: Rely on PMIC reboot/reset handler Date: Wed, 19 Jul 2023 13:43:27 +0200 Message-Id: <20230719114328.2239818-2-andrej.picej@norik.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230719114328.2239818-1-andrej.picej@norik.com> References: <20230719114328.2239818-1-andrej.picej@norik.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: andrej.picej@norik.com X-Authenticated-Sender: cpanel.siel.si: andrej.picej@norik.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771851411939380076 X-GMAIL-MSGID: 1771852822717579992 Due to the missing signal connection between i.MX6 WDOG_B pin and the PMICs external reset, the internal i.MX6 watchdog is not able to reset the phyFLEX SoM properly. Thus disable the internal i.MX6 watchdog to prevent unexpected PMIC settings after reset. NOTE: This patch should not be backported as it might break existing uses and fixes in bootloaders. Signed-off-by: Andrej Picej --- Changes in v2: - this is a substitute patch with a proper fix. --- arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-pfla02.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-pfla02.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-pfla02.dtsi index 80adb2a02cc9..65fd7b4a6f27 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-pfla02.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-pfla02.dtsi @@ -464,3 +464,11 @@ &usdhc3 { vmmc-supply = <&vdd_sd0_reg>; status = "disabled"; }; + +&wdog1 { + /* + * Rely on PMIC reboot handler. Internal i.MX6 watchdog, that is also + * used for reboot, does not reset all external PMIC voltages on reset. + */ + status = "disabled"; +}; From patchwork Wed Jul 19 11:43:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrej Picej X-Patchwork-Id: 122585 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2396637vqt; Wed, 19 Jul 2023 05:20:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlEYEwX9rU1JmIU2lMTT8s2yYwt5E2ioSRAVheSFNRFldtD/uNuT6whgS7MvKYCEJ1v8JZ0e X-Received: by 2002:aa7:d957:0:b0:519:b784:b157 with SMTP id l23-20020aa7d957000000b00519b784b157mr2070453eds.12.1689769255028; Wed, 19 Jul 2023 05:20:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689769255; cv=none; d=google.com; s=arc-20160816; b=Zflu8AJ8gHyj7C7ayaRyt7lScg28MKD6yaAzxAhNO3k0po11+yq7LY8bF/sRgwAySM QUGqaBp3fwVE3CSzNSc7TVNnhCt1Cpj6XAJ31winMl70jggyVarU+KNI5bvnPadccwfF P3J8uqT/+RV6eIprsJA+cVX4EnR31Z6FQb8xtaomYmHEvqXVSFYpUKF+srML5+l7mG6D 7i0ipyfAzYw8zaFbRuXjtzay4IpD7CfdBwWPJKljf+tRVa7BcTMMmAOM3m8dXs142VKa zELBz4LCiWgCqG4HNE5YykxBHOfoombn2EbWxs0jxi2A6KUH2O0QFClPZN6BSSUfyns5 y7wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=25qOFGwl4u5Fl3P3TnP8f7cSLj7dX/d3+BVvY9wImlA=; fh=CzCMK3rTO2cZV+kQzNvY9MGpIP1fLob9Xn+tMMV1Zng=; b=arShYB7iqmaCQk/LP/VC+XtWAZ9/RYdk2fDDzObYqMzaC92ZocM9i6TCwHaska9i2M SVtSn1UaptD7PLCwmveCHXpGemU0QNKhFhn+CB3FaKK0NSaB8/cIYSKPUSKCLn6jrRAE PfOZKLWn56GGP9Lu7D90Z0S4YClRV6C5qi7FbeeSWUTG2G1Z+ywk9MnBE6BIcxSBBz3J pz6nLL0/rnMgEfdaEJ/3+5NZJWszKrgtFQWC7zQul3KWWjk7d8Er4fwaGDouwtF5pl4/ CLeQH2Kx/s55Rmfk7Tsp7GaRj5QVEB09psrouRIwZKchbUyc1YZ61wXXl1NPU5QZ0r8A zmyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=qzlp175s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n18-20020aa7db52000000b0051da89f0c01si2991684edt.355.2023.07.19.05.20.31; Wed, 19 Jul 2023 05:20:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=qzlp175s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230083AbjGSLoO (ORCPT + 99 others); Wed, 19 Jul 2023 07:44:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229824AbjGSLoK (ORCPT ); Wed, 19 Jul 2023 07:44:10 -0400 Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35FDFD3; Wed, 19 Jul 2023 04:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=25qOFGwl4u5Fl3P3TnP8f7cSLj7dX/d3+BVvY9wImlA=; b=qzlp175sRYu6+KoahiLjhlbjNe wVUM9JyTvLBZT4kgY5LOPCpYioW2Ah5gY6Gw4xgzHjKsDA/b8Ec77KC2DdMRY52EHnWda4OIvz5yR mAMzNq55MkVEnamyttJOVukjFQuoUhCK2/+H+0B7Hhx2reqqHyUlKgxYCzDorM7h4+zaS5fJ0x3LK oZJyNuuaBpJCleKSCIQ53t1Y8thhOYBTqOzxs22RSSOAoExXs4H20M80GQ3I6Boy6gKfMa04mJEaZ IrP1D6zUuR2GwBMdTQzPwDRjNxadoYG6KkCwzAxRtQyONJ3Ujg+Kss6m/7Ims2v07hZY7uc+YWCW2 eZZBosTA==; Received: from 89-212-21-243.static.t-2.net ([89.212.21.243]:56038 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1qM5b1-00DcDD-29; Wed, 19 Jul 2023 13:43:55 +0200 From: Andrej Picej To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, S.Riedmueller@phytec.de, S.Mueller-Klieser@phytec.de, upstream@phytec.de Subject: [PATCH v2 3/3] ARM: dts: imx6: phycore: Rely on PMIC reboot/reset handler Date: Wed, 19 Jul 2023 13:43:28 +0200 Message-Id: <20230719114328.2239818-3-andrej.picej@norik.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230719114328.2239818-1-andrej.picej@norik.com> References: <20230719114328.2239818-1-andrej.picej@norik.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: andrej.picej@norik.com X-Authenticated-Sender: cpanel.siel.si: andrej.picej@norik.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771851382334820406 X-GMAIL-MSGID: 1771851486582344011 Due to the missing signal connection between i.MX6 WDOG_B pin and the PMICs external reset, the internal i.MX6 watchdog is not able to reset the phyCORE i.MX6 SoM properly. Thus disable the internal i.MX6 watchdog to prevent unexpected PMIC settings after reset. NOTE: This patch should not be backported as it might break existing uses and fixes in bootloaders. Signed-off-by: Andrej Picej --- Changes in v2: - new patch - i.MX6 phyCOREs have the same problem as phyFLEX devices. --- arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-phycore-som.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-phycore-som.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-phycore-som.dtsi index 28a805384668..86b4269e0e01 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-phycore-som.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-phytec-phycore-som.dtsi @@ -309,3 +309,11 @@ MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059 >; }; }; + +&wdog1 { + /* + * Rely on PMIC reboot handler. Internal i.MX6 watchdog, that is also + * used for reboot, does not reset all external PMIC voltages on reset. + */ + status = "disabled"; +};