From patchwork Fri Jun 16 13:18:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 109123 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1339256vqr; Fri, 16 Jun 2023 06:21:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/YBd20Djw3VcU+ofd8l0O0MP2YehFWKZ99Rn2Log/7X1n4f7lt4plxzzQj+L7LX+73m+z X-Received: by 2002:a05:6a20:4fa3:b0:117:eaef:53 with SMTP id gh35-20020a056a204fa300b00117eaef0053mr2477661pzb.35.1686921680414; Fri, 16 Jun 2023 06:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686921680; cv=none; d=google.com; s=arc-20160816; b=lht3QEXUIhr+jDtoZpe3KwzX9uMC1GSyfd/FcCp4XvvcMitbTBwfcHwWAEkm/wXWhA MLLuhMY48TdiQvZ56AazPZsm7CntkW55xHpdF9YJuAA7dTAkDJa91WDtAQaT5sHmh8zX 3paL3rz5sr1doqX7ah58Z9vsdDsukNr5z8eDrKu+z1k+EqRpAhmLCI1G5GVUL579zwbW 86kcYRjHl4G8R2ZGhMcvPv5PDFOWxdNCLqKX9oGhVLdtClMyKCXJ1WanhbXIIEVS3RbQ R/+53wC0wKra+rp4i8ysdcUmyKTzC/peV8snk6re5v1d0BAcEs4KplVXmzEFfSxSkVT4 PdZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=jNn4OM77Q5BelIpi+0XSlZTvCwpclkRRhawK+nMPiqA=; b=wXHgKR2QqTMHnhrrEoaycdzwngV6xjtDfkA8Bv8Mg0e91M3f0DD/RBLzPw+e/etzh7 H112YLzTTA7R5EchelR0RaA+TQNsu0ekDP1DkXz5tlzLRUjcKVFSMRMOVq8xT3LgWjms uUHm2r9sd4SeHNc3eUZ6NUrzt/D3DJl+YpTKMtWvek0MGxaqtHenIPQXG/3jNXwiVT8H 3NKkezMeERD+JyTNvS+R3VzU55vSYQO0JsfCj2vHhW55SNEHw5/L8dlCxYegPpiLLFtE 5Cw8W+wzByTEcoBRdCLzPMHwdzEnXkNwtHsaQnvq1GEQY5PhOvxCgRsxFVOwsMP7n+Gj FUmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q5kKRw8h; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a170903244e00b001b1a2bf4f68si10346776pls.78.2023.06.16.06.21.05; Fri, 16 Jun 2023 06:21:20 -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=pass header.i=@kernel.org header.s=k20201202 header.b=Q5kKRw8h; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345534AbjFPNSu (ORCPT + 99 others); Fri, 16 Jun 2023 09:18:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345460AbjFPNSq (ORCPT ); Fri, 16 Jun 2023 09:18:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11ACD2D76; Fri, 16 Jun 2023 06:18:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 968CD6235A; Fri, 16 Jun 2023 13:18:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49FEFC433C9; Fri, 16 Jun 2023 13:18:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686921524; bh=ujXXaGv6G+SCDcJBNR1oC27N7OsXhgxvDcvu0PGLvgU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Q5kKRw8hDSeZUDVBNIokSNwKFeVea4ZWC67u5E1Nph4ljA01y1fRRkNH41gg/Slx5 iKxKTkE5OmlrK0B6fxCBawWb0UZqD4J9YNaaxkVaN4M4RzG2D3mI7Gh9ueBq+nYBNq iQiAtykd3I+qcB03NtseR0tJvu+EwZdiGNjeRsjHoe5s+wSgIp2ledXq42e2bcNtwZ wrpQtWvqK/yTVs1OV+xg9CIuB8w0kZ1XgtSdmVaai7A8s14VrB5s1KMaLIV/Jjh9Dw ZnFVcUGmUZIElvq29PjrmP/CuDnIwN9ExiBbQYemrDJ7dU0VAfd2ymz0ab1+i3n0PK tbI8QTrlXQ2WA== From: Michael Walle Date: Fri, 16 Jun 2023 15:18:39 +0200 Subject: [PATCH 1/3] ARM: dts: lan966x: kontron-d10: fix board reset MIME-Version: 1.0 Message-Id: <20230616-feature-d10-dt-cleanups-v1-1-50dd0452b8fe@kernel.org> References: <20230616-feature-d10-dt-cleanups-v1-0-50dd0452b8fe@kernel.org> In-Reply-To: <20230616-feature-d10-dt-cleanups-v1-0-50dd0452b8fe@kernel.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Claudiu Beznea , Nicolas Ferre , Michael Walle Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768865588040356935?= X-GMAIL-MSGID: =?utf-8?q?1768865588040356935?= The pinctrl node was missing which change the pin mux to GPIO mode. Add it. Fixes: 79d83b3a458e ("ARM: dts: lan966x: add basic Kontron KSwitch D10 support") Signed-off-by: Michael Walle --- arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi index 0097e72e3fb2..f86e2e751403 100644 --- a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi +++ b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi @@ -17,6 +17,8 @@ chosen { }; gpio-restart { + pinctrl-0 = <&reset_pins>; + pinctrl-names = "default"; compatible = "gpio-restart"; gpios = <&gpio 56 GPIO_ACTIVE_LOW>; priority = <200>; @@ -59,6 +61,12 @@ miim_c_pins: miim-c-pins { function = "miim_c"; }; + reset_pins: reset-pins { + /* SYS_RST# */ + pins = "GPIO_56"; + function = "gpio"; + }; + sgpio_a_pins: sgpio-a-pins { /* SCK, D0, D1 */ pins = "GPIO_32", "GPIO_33", "GPIO_34"; From patchwork Fri Jun 16 13:18:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 109129 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1349675vqr; Fri, 16 Jun 2023 06:37:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ77xaQcWHcdPxO0qjwtAkWBpsICmByTGeMvDhsARqLEd57Go81uwdXHDwLagSL4bwwGDZM2 X-Received: by 2002:a9d:664d:0:b0:6b1:5e8f:e50c with SMTP id q13-20020a9d664d000000b006b15e8fe50cmr2119925otm.30.1686922631474; Fri, 16 Jun 2023 06:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686922631; cv=none; d=google.com; s=arc-20160816; b=LnkFixrmKNIxeWNtSC/ouZIVgN/etMzuJBiZ6JT4I0ydygxv0h/cSKWyimIJjX1RRu oXAEt4sReHBEyL1TA+U6+dLUbBgWNYF7tpnErlgiKktvyWRSK9GdrK2oSgRqMkOKKX6K /BFPlC8fa51/Y7LtrLdkxZJALD8YTGO+2gWL6qRTktw0ejmoPoCd2VsApko5ZVRG0aSp 3E26mt1ohWrURuXap9RBCYN6c5WvakYItpmz/il5ou2lyHx9ynFhQO9+CxSGzF6eT8U+ TfayN+W8Q7cNRaWHsHBBPAPee3ULBACmm3uhaeRtOIAG8mncCgicLyVyp2NB08/2yAgi 7VLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=M0CSkdcliPVcIQrgsia6q3aH7H6dLkogqdHzeZDDouw=; b=O0r+CWycQfb/NUFUD5gJy0KJfOlkhjSKqK/hhfqwC3F00cA1fa1oSQnBTWKYtwdzNq 4XizD494F1eArlcS6UXjtmYCM+pqZuvktYuBxfTf5LMUcoRv69VqNABvu2DPW5BjnY5k 7sYv9FiC365f405cfkJOdxamV8k+LXFDmx5usHCnLa1Z5vl0xzdjbe4Y65qBJZEGEhHQ oZnXmV1ZPCLxlWpV3Edr15KF7Qa+Gfwe/qrc03m+lzCZNd5cDwjQoTu5hM+VTkuDGYaG P3+vyibfdsnpDmcHTx/Q2krmfrbLJn7M8auL+EOeQ2y4YuGHxAYz8n1KJB4IRC5MV8U9 +xhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G9wMzkPR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gz21-20020a17090b0ed500b00256ba93c131si390936pjb.4.2023.06.16.06.36.59; Fri, 16 Jun 2023 06:37:11 -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=pass header.i=@kernel.org header.s=k20201202 header.b=G9wMzkPR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345574AbjFPNSy (ORCPT + 99 others); Fri, 16 Jun 2023 09:18:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345495AbjFPNSs (ORCPT ); Fri, 16 Jun 2023 09:18:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12B0C2D76; Fri, 16 Jun 2023 06:18:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A05DC617C2; Fri, 16 Jun 2023 13:18:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 577A2C433CC; Fri, 16 Jun 2023 13:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686921527; bh=ky7P3RtqcOUivRrABeRZDfxDG7HLEb0fst/3IVa0vkk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=G9wMzkPR/PSyqmXP/c9CA1bVeChhXCXnNWwj6MLfNF8LbMm/dqACsJo6eemmQ4hNs 4cX58CyC5X6WTQ/YUG5zbB3dmqB5/7oI/lsElDnImMID9EavDoNJBp248Dtw3dOdGu 0QTh7zPyZCoK7IdVA3SyT8WZKzgiGGOa1dWzzMcGk8gw9KtpdalKBRFB4386XbhNA3 hXVIO8TYEp7boV0w8rfTsm6bBqM29gJDMO1RNB97zUUUBmZ91fpe3zKJYNsY0pdj9U kWMPiAkTLJPOVMLrBz1VPAJNpKDDJRAdgwVFWBJ+UCc6HMja+6p5R7Anj5b82GOysx GUy0nF+MCsnwA== From: Michael Walle Date: Fri, 16 Jun 2023 15:18:40 +0200 Subject: [PATCH 2/3] ARM: dts: lan966x: kontron-d10: fix SPI CS MIME-Version: 1.0 Message-Id: <20230616-feature-d10-dt-cleanups-v1-2-50dd0452b8fe@kernel.org> References: <20230616-feature-d10-dt-cleanups-v1-0-50dd0452b8fe@kernel.org> In-Reply-To: <20230616-feature-d10-dt-cleanups-v1-0-50dd0452b8fe@kernel.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Claudiu Beznea , Nicolas Ferre , Michael Walle Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768866585067597713?= X-GMAIL-MSGID: =?utf-8?q?1768866585067597713?= The pinctrl node was missing which change the pin mux to GPIO mode. Add it so we don't have to rely on the bootloader to set the correct mode. Fixes: 79d83b3a458e ("ARM: dts: lan966x: add basic Kontron KSwitch D10 support") Signed-off-by: Michael Walle --- arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi index f86e2e751403..2e16217ac88e 100644 --- a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi +++ b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi @@ -41,7 +41,7 @@ &flx3 { status = "okay"; spi3: spi@400 { - pinctrl-0 = <&fc3_b_pins>; + pinctrl-0 = <&fc3_b_pins>, <&spi3_cs_pins>; pinctrl-names = "default"; status = "okay"; cs-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; @@ -79,6 +79,12 @@ sgpio_b_pins: sgpio-b-pins { function = "sgpio_b"; }; + spi3_cs_pins: spi3-cs-pins { + /* CS# */ + pins = "GPIO_46"; + function = "gpio"; + }; + usart0_pins: usart0-pins { /* RXD, TXD */ pins = "GPIO_25", "GPIO_26"; From patchwork Fri Jun 16 13:18:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 109130 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1350293vqr; Fri, 16 Jun 2023 06:38:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5stBmD1z9RJafcIrdw2FUyaDiBnE4SCTRos/OVUDOWvgva8uM8q6I2882ENCBrRkmI5dQc X-Received: by 2002:a05:6a00:148f:b0:64f:5406:d59e with SMTP id v15-20020a056a00148f00b0064f5406d59emr2838156pfu.17.1686922694137; Fri, 16 Jun 2023 06:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686922694; cv=none; d=google.com; s=arc-20160816; b=SkP6iqb0TSW0HP/T0/V0htYrLYPIBNyhlYGjGu/GKbLbbutV3TOxSlADsZxUFFcNlc MvB/rdmv4nTqlMuMTPeqLuZ7wRmQAkXaSP4BlY7FD4nT7l93VFvPWDnEQitMdxCtmZmh /ZNbJW1r9QAHd2ezPMrD0zhZSvPMLLqNL/U0IN6FK/if1ntknyjMzG/cQol5NqQaMGU4 nj4hutRt/cZ524X/iFiGrI0hV9ZjUoIDLJ9ReKw1+AJTWbxbXrfPKmRi8EIzkSkqx7tN nyzBjmUR1teJjArxlFvdLusgZHYvdyWwUSUgO7sUqY3KfFUsrbcAFiFuwMDEWrvd+89K ZG7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=67SPk5F97WV+mqg+OisoiPd/QEzJ49SaBZtmcBoTRr4=; b=hGuXZ5I6WVgAHGBLA9y6oPXU1T8hsfTMJBpTO8MHSUoS2G9RUrBM1s9bURuTw4fQmD DM/uSvsKDE55p8h1RL2TlSML6zpCyPvoMSRRWYp4GxRDIRiUD1eFkF0A234f9GvzmaU5 qqmSuO9gLkoIfLtqVkVsdJt7pCSnTes8Gesvl4asQOlQKwa4A6dKkX959MtzsV5BQ7Tj p/0/zbif9xqROvY4B4utZkvwV4Gyk18EgDG5NYESKOPsfsh+yj5pKRdBzp+KnB2UGacQ G2ySlEuIf1h7omTMSXiBslEcxpHIOGApVOFDD4yZycYK1OdVQ+T/uvVVbTUuZhcNHgLT QSLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RtDQpDu5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t184-20020a625fc1000000b0064d5e926241si15088615pfb.149.2023.06.16.06.37.59; Fri, 16 Jun 2023 06:38:14 -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=pass header.i=@kernel.org header.s=k20201202 header.b=RtDQpDu5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345599AbjFPNTE (ORCPT + 99 others); Fri, 16 Jun 2023 09:19:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345594AbjFPNS4 (ORCPT ); Fri, 16 Jun 2023 09:18:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E3F2358C; Fri, 16 Jun 2023 06:18:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C084C61EF9; Fri, 16 Jun 2023 13:18:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63EEBC433C0; Fri, 16 Jun 2023 13:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686921529; bh=0pu0X2SPWMxt5JJ65o5tAUskJ9Xk9kKnXMbXLVjzKKw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=RtDQpDu5/HcaOuIagLMhuA094Yv+8pwvksCEQ63FVJEnCdUI7DzjBFNtECpuaGiAO GF1XidvCBs9j/SgPzU6ELebBtTAg0V71S6VBVu1jxKrFkskB0+P6k4w+LqRLNXt7Z8 PwBhAgRjy7iLXh85UVPKxSrVRHYBfOnwPRPXO63+M8+GnXbW9GNBA/y1dzOJRq7fSW FiDnlPpszUui0Qlq+kkyxWH70JZWhqQP0HOyDVarEi3yMY2AOY+9fd4xynJY1i/Ig2 Q1ix2KdbbDHJ9cn29QhrPBnOQO9U6kbjdzSLXUvjysfZ6TWMuyihRVcBdeHDPcbZ9m Zn7l4SYSn00yA== From: Michael Walle Date: Fri, 16 Jun 2023 15:18:41 +0200 Subject: [PATCH 3/3] ARM: dts: lan966x: kontron-d10: add PHY interrupts MIME-Version: 1.0 Message-Id: <20230616-feature-d10-dt-cleanups-v1-3-50dd0452b8fe@kernel.org> References: <20230616-feature-d10-dt-cleanups-v1-0-50dd0452b8fe@kernel.org> In-Reply-To: <20230616-feature-d10-dt-cleanups-v1-0-50dd0452b8fe@kernel.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Claudiu Beznea , Nicolas Ferre , Michael Walle Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768866650869978939?= X-GMAIL-MSGID: =?utf-8?q?1768866650869978939?= With interrupt handling fixed in the MaxLinear PHY driver, see commit 97a89ed101bb ("net: phy: mxl-gpy: disable interrupts on GPY215 by default"), we can finally add the correct interrupt description to the device tree. Signed-off-by: Michael Walle --- arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt-8g.dts | 2 ++ arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt-8g.dts b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt-8g.dts index 5feef9a59a79..ad5d8b56e6fa 100644 --- a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt-8g.dts +++ b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt-8g.dts @@ -15,10 +15,12 @@ / { &mdio0 { phy2: ethernet-phy@3 { reg = <3>; + interrupts-extended = <&gpio 24 IRQ_TYPE_LEVEL_LOW>; }; phy3: ethernet-phy@4 { reg = <4>; + interrupts-extended = <&gpio 24 IRQ_TYPE_LEVEL_LOW>; }; }; diff --git a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi index 2e16217ac88e..83a1c23887e7 100644 --- a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi +++ b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi @@ -49,6 +49,9 @@ spi3: spi@400 { }; &gpio { + pinctrl-0 = <&phy_int_pins>; + pinctrl-names = "default"; + fc3_b_pins: fc3-b-pins { /* SCK, MISO, MOSI */ pins = "GPIO_51", "GPIO_52", "GPIO_53"; @@ -61,6 +64,12 @@ miim_c_pins: miim-c-pins { function = "miim_c"; }; + phy_int_pins: phy-int-pins { + /* PHY_INT# */ + pins = "GPIO_24"; + function = "gpio"; + }; + reset_pins: reset-pins { /* SYS_RST# */ pins = "GPIO_56"; @@ -107,21 +116,25 @@ &mdio0 { phy4: ethernet-phy@5 { reg = <5>; + interrupts-extended = <&gpio 24 IRQ_TYPE_LEVEL_LOW>; coma-mode-gpios = <&gpio 37 GPIO_OPEN_DRAIN>; }; phy5: ethernet-phy@6 { reg = <6>; + interrupts-extended = <&gpio 24 IRQ_TYPE_LEVEL_LOW>; coma-mode-gpios = <&gpio 37 GPIO_OPEN_DRAIN>; }; phy6: ethernet-phy@7 { reg = <7>; + interrupts-extended = <&gpio 24 IRQ_TYPE_LEVEL_LOW>; coma-mode-gpios = <&gpio 37 GPIO_OPEN_DRAIN>; }; phy7: ethernet-phy@8 { reg = <8>; + interrupts-extended = <&gpio 24 IRQ_TYPE_LEVEL_LOW>; coma-mode-gpios = <&gpio 37 GPIO_OPEN_DRAIN>; }; };