From patchwork Fri Feb 4 15:35:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horatiu Vultur X-Patchwork-Id: 12735234 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 CF9D0C433EF for ; Fri, 4 Feb 2022 15:35:18 +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=A4NsMfzbsBxunk4DplHJbskD+SBroE+9CVYlSXGhi/Y=; b=ts67NoKLPzfwsn KTqlUC7SoqSY2H7SyJ70w0AFdWvQoNxsdPuV/n2kGrVLPgw73FFazxK/3DnT/aKWwWh1xLjYGVG5u PFYRACQnKk2ERU6JfB5n/5YX2CY08+DsJpCCitxIqtjjXVyltETDMykn9bYzskSxj3Bl9vJbBnlPq 5YTLyxjMW4WfItFBq37gB3tPvBa3nsqBEh1wmvn5ZuP5RNa4sVpqhsxdxOaDN6JuBBp1jsmclm05f f4WKRwu5BL45lco8fRDtJeYQhpFxiWzHUXbNj7eWUdy1VwnmSiabpa/ysnxceM/NXSgyth4b0Hrz4 Y8zAD36YTLKHZKxKyfTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG0bA-004l4A-DK; Fri, 04 Feb 2022 15:34:08 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG0ao-004kw7-E1 for linux-arm-kernel@lists.infradead.org; Fri, 04 Feb 2022 15:33:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1643988826; x=1675524826; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jn5W82d/PJK3RnYJ6ylz47sRhGybpqB76SGsGUGEZVM=; b=N1Xx+IQbOdkUxHVCLrLOMjgrk+ClYmSuQoQLRrnD6gCGgz0ulle8fwEi 6AMcyJxg4H+frIZ0uoEMeglcxv66xfd6Q8xGGgpOsn8XhYMhXyhxzFzQt YtJgq1ErlYg3MKyu9ZdaxERuj10ThKEVV21750XkroQypEzi2astR2yqV Y1c2OOgtoY602sJg6iYd2jv+BvaTHXJB6/0B7aS8VYy2G4j+t4ipf4l4L DO6ogNrmxnhTN0WbeuHcgkEcixqd8g77+PjejptH7ld1z42MMdavOptLp DNMwfrLDTUSbhc2J16m3YcVYI37BFYlBNN0Mprx5ltq7bEKF9H+HYp3Jd A==; IronPort-SDR: j5wnxlThHVdkXuQxtk+Tk+TGGIpyOvHJINBjssfTRHmI842ZTHd2r5ThjUC6aXtSbZ3Lo2A8gj aMaGtiLlvig7OYjxkGsqMTJRErX1MYUaBD82g8lSvK9U475S2rto6u0traVXhPftz+XKaeJgg/ kzw/z79fqvvJRoZeo0A292mzaaTaeuyOTwQrCFmHmuYfFLKKkOan7X/hgzkxRRJOxgj/KjWtuu O0lEUpUVfISGCX5+9raisCUSxxOWeoOLBPY1FUjdthwCUnb21/MfUyH+jdrEP7AQIgZ0vKzkZT ut1Vld9KLFCWihDurYLddgRf X-IronPort-AV: E=Sophos;i="5.88,343,1635231600"; d="scan'208";a="147655023" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Feb 2022 08:33:42 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 4 Feb 2022 08:33:42 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 4 Feb 2022 08:33:40 -0700 From: Horatiu Vultur To: , , , CC: , , , , , Horatiu Vultur Subject: [PATCH 1/2] dt-bindings: pinctrl: pinctrl-microchip-sgpio: Fix example Date: Fri, 4 Feb 2022 16:35:34 +0100 Message-ID: <20220204153535.465827-2-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220204153535.465827-1-horatiu.vultur@microchip.com> References: <20220204153535.465827-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220204_073346_562097_0642DD35 X-CRM114-Status: GOOD ( 10.25 ) 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 The blamed commit adds support for irq, but the reqisters for irq are outside of the memory size. They are at address 0x108. Therefore update the memory size to cover all the registers used by the device. Fixes: 01a9350bdd49fb ("dt-bindings: pinctrl: pinctrl-microchip-sgpio: Add irq support") Signed-off-by: Horatiu Vultur --- .../devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml b/Documentation/devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml index cb554084bdf1..0df4e114fdd6 100644 --- a/Documentation/devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml +++ b/Documentation/devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml @@ -145,7 +145,7 @@ examples: clocks = <&sys_clk>; pinctrl-0 = <&sgpio2_pins>; pinctrl-names = "default"; - reg = <0x1101059c 0x100>; + reg = <0x1101059c 0x118>; microchip,sgpio-port-ranges = <0 0>, <16 18>, <28 31>; bus-frequency = <25000000>; sgpio_in2: gpio@0 { From patchwork Fri Feb 4 15:35:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horatiu Vultur X-Patchwork-Id: 12735233 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 8C137C433F5 for ; Fri, 4 Feb 2022 15:35:07 +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=FCIaxIywM9Mniwc4C4oYCJ5DMkPl06XdjeQTzKzxXTQ=; b=iuakKpsKoUVx2q WeBnkvEhnwGA4XggAFJZQ4sWJ96II1O8r3mFBG/WQVPD++VsxRXcl2qWr7Qw2Ne6uC4PF12A/WV1i ke4WHns1qgdFclWVKOydTskTiAVcPwe7VgpPNoWDBuqQlxXcuhgEf/vJlLQ/ThDqC9Pot5uN7hmN+ fUpRUc7UWDrmq8DnlRY2gyLpI/3nSKiaahoyhb+y34FY2TGgoj/huVTPTorYp5X9yNHraKgwgk789 Eo3Leav+RjJBmoqKyGqAMsavuHYiOkZsMhQKUlbHD6OWQWlfeP5TFqfelwv1LvMC9N4m6n0GXKP+A 8J97ZgjOpTZ4gAbvz8vA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG0b0-004l1E-Bh; Fri, 04 Feb 2022 15:33:58 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nG0an-004kwq-79 for linux-arm-kernel@lists.infradead.org; Fri, 04 Feb 2022 15:33:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1643988825; x=1675524825; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cMuHKZNdUu+zY6CdLdDCUWTRhz2pGKkgXeGpnTamYJQ=; b=2h8fXKgOVw91o8ltCvmi9EnCnVk9H+MjBoWN/ddCMyTdlbtMu5FlQ9jg tP2ZwmDrB1EHe28ndsVwHQQEztx0wf2UYoimkWqv4ieRm1gIojs6rKKJN Xo3EfU9qiMqQ3l86bJlGZk9geGRlWteSN/KmtqVdcRFXwYaNvpCDVuxUP btkX6bpx5V0ZJZ2+rYO9v4XRw7y8RfDsr7O7vLGzRx9qv4EvGOV4uAc5/ +I4x3rxzsJwCfnTy2Khfw/b04mb7khbrhwScLAKVcM36SqAUkvndAKXoW HdeDKNKl1xkPsPwidIdQt1dWwVdYTcw5kHST9Sh97PRxY3m9bX84GzCa+ A==; IronPort-SDR: zpZdcWx37nKUNCq1otdCfN9xDfpo9XBmq4KvCYeAQV+8TuLvlspfalhFwIiH8pGgnTHshrIjjp OURIJqpcWtTPf+RZ5NTrz1hzdnQTbmIugMAT+VL9SuLhJ0JYP59d7kQNqNl132NfS/QJOxLuQg I+hRQCDIicV/4dovh7IQONReCDyTJk3feoq7mhRHjdzY3wY6J6i0y7sSomGy3XHYGVITkcnTkw y0wQTffP9lxZb6TNYFuHyT+qCWNyWXZadqOJPHIJjWlB6JASRAT6qQT/thOq9RX9ehT1IExfcH pAGFoszifsopF/mXTr34MzTg X-IronPort-AV: E=Sophos;i="5.88,343,1635231600"; d="scan'208";a="147655033" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Feb 2022 08:33:44 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 4 Feb 2022 08:33:44 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 4 Feb 2022 08:33:42 -0700 From: Horatiu Vultur To: , , , CC: , , , , , Horatiu Vultur Subject: [PATCH 2/2] arm64: dts: sparx5: Fix for sgpio nodes Date: Fri, 4 Feb 2022 16:35:35 +0100 Message-ID: <20220204153535.465827-3-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220204153535.465827-1-horatiu.vultur@microchip.com> References: <20220204153535.465827-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220204_073345_371068_19983FDB X-CRM114-Status: GOOD ( 10.60 ) 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 When the support for irqs was added for sgpio driver the memory size was not updated. Because the irq registers are found at address 0x108. Fixes: d0f482bb06f944 ("arm64: dts: sparx5: Add the Sparx5 switch node") Signed-off-by: Horatiu Vultur --- arch/arm64/boot/dts/microchip/sparx5.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/microchip/sparx5.dtsi b/arch/arm64/boot/dts/microchip/sparx5.dtsi index 787ebcec121d..b9f2e2fa3d43 100644 --- a/arch/arm64/boot/dts/microchip/sparx5.dtsi +++ b/arch/arm64/boot/dts/microchip/sparx5.dtsi @@ -305,7 +305,7 @@ sgpio0: gpio@61101036c { pinctrl-names = "default"; resets = <&reset 0>; reset-names = "switch"; - reg = <0x6 0x1101036c 0x100>; + reg = <0x6 0x1101036c 0x118>; sgpio_in0: gpio@0 { compatible = "microchip,sparx5-sgpio-bank"; reg = <0>; @@ -335,7 +335,7 @@ sgpio1: gpio@611010484 { pinctrl-names = "default"; resets = <&reset 0>; reset-names = "switch"; - reg = <0x6 0x11010484 0x100>; + reg = <0x6 0x11010484 0x118>; sgpio_in1: gpio@0 { compatible = "microchip,sparx5-sgpio-bank"; reg = <0>; @@ -365,7 +365,7 @@ sgpio2: gpio@61101059c { pinctrl-names = "default"; resets = <&reset 0>; reset-names = "switch"; - reg = <0x6 0x1101059c 0x100>; + reg = <0x6 0x1101059c 0x118>; sgpio_in2: gpio@0 { reg = <0>; compatible = "microchip,sparx5-sgpio-bank";