From patchwork Sun Apr 10 20:31:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 12808256 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 C817CC433F5 for ; Sun, 10 Apr 2022 20:32:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243926AbiDJUei (ORCPT ); Sun, 10 Apr 2022 16:34:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242214AbiDJUee (ORCPT ); Sun, 10 Apr 2022 16:34:34 -0400 Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 318BC36696; Sun, 10 Apr 2022 13:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649622725; cv=none; d=zohomail.com; s=zohoarc; b=jXdnh4aUEPVVkA6EtiCcN6TSmImKgdp4fMgYb0Rv0FSjx5WTBIjPBcQ4RpG/yQi59H2et8GaGLCBLxn/D+tgbd6iP74HuWdPpO34v3jegKpI4TM3Z/Czv4/NpWaKeyxV+FAaCarXYnYB5J65Osii6CNG9iyWOvk1lVV8u6D4t4s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649622725; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=3Bdr3ICR42EV4+Gp0uVKnzUG3CsEtqwPWuz6oFmIFog=; b=PoySZ3s3FSrXk1zJTDM7EAidnQXtnpk+XRSnLy8YLBm3DjLR3HBwbb9TeZFXV7XtqbRlEP6CmFr7OB5sp4A9XDNo2+vDBQ4QV865v59dTJv9yjLvbp4RQPBIz0kMtpqQ8KTUKZR47ZnRcZ5R0zW7R1HkaiwjuQUEmUW/xCeqbOg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1649622725; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=3Bdr3ICR42EV4+Gp0uVKnzUG3CsEtqwPWuz6oFmIFog=; b=Q2FD6ild+jvJRxdxl6l7vDoExFiAXBM/GXvduyOuywZX1gC4oWtXnHqo5LX23rhC hMJD7Vq6k2DWUjzbkoVLymjV/nEv46PlKWBoOmcgdbPg8NzSSMHH0MNks27LlDw7d6c 9Vhyjqw8zBDTeqHji+ViPCVB2yeEakx3U0TgJ2co= Received: from arinc9-PC.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1649622724346210.97787152203682; Sun, 10 Apr 2022 13:32:04 -0700 (PDT) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Sergio Paracuellos , Rob Herring , Krzysztof Kozlowski , Thomas Bogendoerfer , Matthias Brugger Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= Subject: [PATCH 1/3] mips: dts: mt7621: add mdio label to mdio-bus Date: Sun, 10 Apr 2022 23:31:36 +0300 Message-Id: <20220410203138.22513-1-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-ZohoMailClient: External Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Add mdio label to the mdio-bus node to easily refer to it. Use the newly created label on the GB-PC2 devicetree. Signed-off-by: Arınç ÜNAL Reviewed-by: Sergio Paracuellos --- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 18 ++++++++---------- arch/mips/boot/dts/ralink/mt7621.dtsi | 2 +- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts index a7fce8de6147..b427ae9e081f 100644 --- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts +++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts @@ -93,17 +93,15 @@ gpio-pinmux { }; }; -ðernet { - gmac1: mac@1 { - status = "okay"; - phy-handle = <ðphy7>; - }; +&gmac1 { + status = "okay"; + phy-handle = <ðphy7>; +}; - mdio-bus { - ethphy7: ethernet-phy@7 { - reg = <7>; - phy-mode = "rgmii-rxid"; - }; +&mdio { + ethphy7: ethernet-phy@7 { + reg = <7>; + phy-mode = "rgmii-rxid"; }; }; diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi b/arch/mips/boot/dts/ralink/mt7621.dtsi index 3222684915ac..40d0f28446ca 100644 --- a/arch/mips/boot/dts/ralink/mt7621.dtsi +++ b/arch/mips/boot/dts/ralink/mt7621.dtsi @@ -342,7 +342,7 @@ gmac1: mac@1 { phy-mode = "rgmii-rxid"; }; - mdio-bus { + mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>; From patchwork Sun Apr 10 20:31:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 12808257 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 6FD9EC4332F for ; Sun, 10 Apr 2022 20:32:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243931AbiDJUei (ORCPT ); Sun, 10 Apr 2022 16:34:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238914AbiDJUee (ORCPT ); Sun, 10 Apr 2022 16:34:34 -0400 Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F059B12ACD; Sun, 10 Apr 2022 13:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649622729; cv=none; d=zohomail.com; s=zohoarc; b=GEQjRguIJZYHBHb1etQ4PriBmnya+eD7hSHE4mtsUSoj/AC+g2WgUYB5vmChbmJO1KqjiPZ4xmNQJeZJMULWDNHAltgSKTkfne3bsqXTK/MbZn1529kND4GcEblYIQtzh9nShoDHI4qIb6Dkix3s/P9Hog8HvauakmhgKBm8ywk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649622729; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=XK2YqT7nlytvRR0jjgieJSJ0MKgXSnwQ6QlocLMC3Yg=; b=agFnNEWp7AeMpce2wS6R5M0CSwLzTeimeR5JIRInnIXlwZBuf/KDI/1H+m0RD3C3O/G6JUxm0w7Sainl14DEK9KggZ7zuOqBy+WfvkAoNVgP8R3zpgZO+oYNxYRkXVYfGJ02x5wsQKmN7McrZNdbpAApXdyTvSyLs9yKG+K7Xzg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1649622729; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=XK2YqT7nlytvRR0jjgieJSJ0MKgXSnwQ6QlocLMC3Yg=; b=JfnbIWgD67HPe2UUlSbDAHUl6AiTVDLpixgd+RjFuozcX6EWtN/0NtCeA7ymmRQG 7tKd/M/kLdFsVkE9360EffYBZvG6pfgYFIdcQIT2jk9CcegJ+7aOxLj6IKU753oLEoG jlGTKSZw8AnKxjHvVFvQBVV9umWWJ4MC2dzolCm8= Received: from arinc9-PC.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1649622727528283.822930182718; Sun, 10 Apr 2022 13:32:07 -0700 (PDT) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Sergio Paracuellos , Rob Herring , Krzysztof Kozlowski , Thomas Bogendoerfer , Matthias Brugger Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= Subject: [PATCH 2/3] mips: dts: mt7621: mux phy4 to gmac1 for GB-PC1 Date: Sun, 10 Apr 2022 23:31:37 +0300 Message-Id: <20220410203138.22513-2-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220410203138.22513-1-arinc.unal@arinc9.com> References: <20220410203138.22513-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-ZohoMailClient: External Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Mux the MT7530 switch's phy4 to the SoC's gmac1 on the GB-PC1 devicetree. This achieves 2 Gbps total bandwidth to the CPU using the second RGMII. Signed-off-by: Arınç ÜNAL Reviewed-by: Sergio Paracuellos --- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts index 5892bcf71595..75f3b0425487 100644 --- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts +++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts @@ -103,14 +103,21 @@ &pinctrl { state_default: state-default { gpio-pinmux { - groups = "rgmii2", "uart3", "wdt"; + groups = "uart3", "wdt"; function = "gpio"; }; }; }; -ðernet { - pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>; +&gmac1 { + status = "okay"; + phy-handle = <ðphy4>; +}; + +&mdio { + ethphy4: ethernet-phy@4 { + reg = <4>; + }; }; &switch0 { @@ -119,10 +126,5 @@ port@0 { status = "okay"; label = "ethblack"; }; - - port@4 { - status = "okay"; - label = "ethblue"; - }; }; }; From patchwork Sun Apr 10 20:31:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 12808258 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 0903EC43217 for ; Sun, 10 Apr 2022 20:32:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243935AbiDJUej (ORCPT ); Sun, 10 Apr 2022 16:34:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243925AbiDJUee (ORCPT ); Sun, 10 Apr 2022 16:34:34 -0400 Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E70EB36339; Sun, 10 Apr 2022 13:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649622731; cv=none; d=zohomail.com; s=zohoarc; b=gIHrux1Qx6cY6Pyu4y77mzgZzBjZyceD7oDM7YFkR/mKow87bN1DefCaocxDQfjgqeimJ/WAQS33ic0N0V8cu0nJh9im/KZsru1pPLA4fbe2J8cUiF+mvZ4OXHqCrgIGoYDBDpV+xRr7HbHy0Ywdm1+so3iL+pSIdcJNCeQsqqA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649622731; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=/MOMK34Z6z6C4CqZb8rLYQ4jYbrhj9LEWEwpaErwP4o=; b=XLiSQj5h+xt2fR9KFl/aQJnOAIAJH+F8JK+SPP7MoDqFEYvcnPop1m2C1o3N2+iYxxJa2k1JbcAx74taP/ufzMq7A2Bra2HOJvj93VbKwxioUT/VtSP73P1OU63gWrcIExksd+Ibv3yY21/4BIDQLwSdR6ttmnHiYRJDBZzOnh4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1649622731; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=/MOMK34Z6z6C4CqZb8rLYQ4jYbrhj9LEWEwpaErwP4o=; b=IEqd05QgWct3oxoPxsxQmyqf/6IlDq+nbX7nej93sqGJqCJiJxW00t9S3XUwi+m+ K3ZWJHZfC3+l7SXb2VCkjmtO0+Zl/VcWAf91U+Tme95kJe+LFtoI23zC5yI3OMnjv21 6wo149RY6tWIXTSm7xg1V8aSycanXsH/CpHehsvg= Received: from arinc9-PC.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1649622730691527.6330187658422; Sun, 10 Apr 2022 13:32:10 -0700 (PDT) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Sergio Paracuellos , Rob Herring , Krzysztof Kozlowski , Thomas Bogendoerfer , Matthias Brugger Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= Subject: [PATCH 3/3] mips: dts: mt7621: remove binding for defining gpio function for pin groups Date: Sun, 10 Apr 2022 23:31:38 +0300 Message-Id: <20220410203138.22513-3-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220410203138.22513-1-arinc.unal@arinc9.com> References: <20220410203138.22513-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-ZohoMailClient: External Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org All pin groups function as gpio unless set otherwise. Therefore, remove this unnecessary binding. Tested on UniElec U7621-06-16M on OpenWrt. Signed-off-by: Arınç ÜNAL Reviewed-by: Sergio Paracuellos --- arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 12 ------------ arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts index 75f3b0425487..c307a0edb91f 100644 --- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts +++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts @@ -97,18 +97,6 @@ &pcie { status = "okay"; }; -&pinctrl { - pinctrl-names = "default"; - pinctrl-0 = <&state_default>; - - state_default: state-default { - gpio-pinmux { - groups = "uart3", "wdt"; - function = "gpio"; - }; - }; -}; - &gmac1 { status = "okay"; phy-handle = <ðphy4>; diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts index b427ae9e081f..8268d738e74f 100644 --- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts +++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts @@ -81,18 +81,6 @@ &pcie { status = "okay"; }; -&pinctrl { - pinctrl-names = "default"; - pinctrl-0 = <&state_default>; - - state_default: state-default { - gpio-pinmux { - groups = "wdt"; - function = "gpio"; - }; - }; -}; - &gmac1 { status = "okay"; phy-handle = <ðphy7>;