From patchwork Wed Apr 19 19:16:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 85533 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp616610vqo; Wed, 19 Apr 2023 12:25:55 -0700 (PDT) X-Google-Smtp-Source: AKy350YrVFG1vUoEkFunuqpIi2kV8lDppu6NcP+doftGHRfNg57/Kh9Sz7SEcj2O4lwBky0sqPGD X-Received: by 2002:a05:6a00:4489:b0:63b:7bab:26ff with SMTP id cu9-20020a056a00448900b0063b7bab26ffmr4048124pfb.16.1681932354933; Wed, 19 Apr 2023 12:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681932354; cv=none; d=google.com; s=arc-20160816; b=VKHW9Qwugr6ug+MRIOnCxuTyhlQ5TcngtJpoebGjwpHUqfa69vY7wRX1FpFq1HC/6e nYy6+sm36DN8s79jlkkqiuBJawS9qfOwrdyUnPYRKZiH+cOGQpaiVylLOc0gvdg6GB9E kFoCTX9Tod+0LrhjHhp4xB3TTkHS3xsRaoCEQ9d13OImXA1LfW7OTmGixkPVO0hSPeFZ KFOfiStVbv5SKk1KtlJoyBbCyHUWSEH4sIHA90ikS0v68q0hLi2menaMZEyhYobscBFG A82DE1YqexncPdiYh8nZ9it6BCQiiv6WK+wWRyiL4p3LTk3lWt0/GLQ0bo9fcuQFIiYV tXSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date; bh=psFZxbaYCemdb+vmkuoPFFRak2oUUncjuT/T0fG/57w=; b=wOpMsf9K5ayWulSWUVZ8fxVeDyjdzYPdP2aX8mUPAeQ+TEFZGRbTE6rY6+7AB5HNb0 M1vlG6QAz1OxEPNmSvkfecG3BTY54eb714P0D59ZT6ezTI7Ry5WJUCRAQg6ZLbFjjMD5 ZvO6nV+r3Pf0C3r1Hwl5SRGGaTZ8Gq797J0xnV40/LCDnnPLpA2maON5NolLkbm5dYXF HBhxZjSqTCIYih7AatAnI0zgh5y5vKWyzfCWAyIva1u/ONQEHPb6IlzJBpdhHOoOn8gP asyWSJGQsGBDIbxhr9mnhFt7mRqyaSzD6ZtvLdABfD2jNxYuXhlv8lsoAj1JPSBMS4Y+ WnPw== ARC-Authentication-Results: i=1; mx.google.com; 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 a21-20020a63e855000000b00502d75b6681si17742277pgk.228.2023.04.19.12.25.42; Wed, 19 Apr 2023 12:25:54 -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; 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 S231520AbjDSTQj (ORCPT + 99 others); Wed, 19 Apr 2023 15:16:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbjDSTQg (ORCPT ); Wed, 19 Apr 2023 15:16:36 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 047AD527C; Wed, 19 Apr 2023 12:16:36 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1ppDIA-0003s0-1W; Wed, 19 Apr 2023 21:16:34 +0200 Date: Wed, 19 Apr 2023 20:16:29 +0100 From: Daniel Golle To: devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Subject: [PATCH 2/2] arm64: dts: mt7622: handle interrupts from MT7531 switch on BPI-R64 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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?1763633901029094457?= X-GMAIL-MSGID: =?utf-8?q?1763633901029094457?= Since commit ba751e28d442 ("net: dsa: mt7530: add interrupt support") the mt7530 driver can act as an interrupt controller. Wire up irq line of the MT7531 switch on the BananaPi BPi-R64 board, so the status of the PHYs of the five 1000Base-T ports doesn't need to be polled any more. Signed-off-by: Daniel Golle --- arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts index d583e816684cf..aabd104b12acf 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts @@ -150,6 +150,10 @@ mdio: mdio-bus { switch@0 { compatible = "mediatek,mt7531"; reg = <0>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&pio>; + interrupts = <53 IRQ_TYPE_LEVEL_HIGH>; reset-gpios = <&pio 54 0>; ports {