From nobody Wed Oct 8 11:39:41 2025 Received: from mxout4.routing.net (mxout4.routing.net [134.0.28.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC2C32376E6; Sat, 28 Jun 2025 09:18:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102289; cv=none; b=aHasI07qmnjGu+2oog63MxyEyii/KSdtVAOnoLsAF3U7oHJyNoBkNtvUWLnNUG01p9DZWv5Ikm/clGbnnyrgS1LT5jiTx3XrQHkXMpqpTwcnl1IFgtt+jVP/kwim+s3MytafP7FfovaJMNqfqu8x0SDQzRFRH3TyiVCfBw6cc5M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102289; c=relaxed/simple; bh=C1RUEfL3U6ktbAFjvGq274icPXL9Jkfk4QLyxZWoaFw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PcnzWp8kWGgoJdnnCktSqcOUd0/9IF6Cml46XhYMXlqLOHXJj7T1/7PaYBZBuVzhhCkeNKqDB7sH/QvqwgaPxHatt/PrnnGp705Z/O4gUKjMi7u7ZpOaXU9tXUE2RbqPwft4d/4WOjvrJw2JSkaN833bs6StIGKVlUMkP8srzuk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=XRUHkz4s; arc=none smtp.client-ip=134.0.28.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="XRUHkz4s" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout4.routing.net (Postfix) with ESMTP id CC4D61012C5; Sat, 28 Jun 2025 09:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101851; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cu4UvP0WhUrIwMsfp2DxE5DkGiBKGgC1AcTaw2pOQM0=; b=XRUHkz4sk/+TiMTXPz7i5l7SO4tBFYawgJzsgXqtumLQW9Fl/hOb1OvPWXBYxW13uV31Ul +BfZQeAUgMqVGl3X3WvVdozFVRJZi+0K3JPhzLJ6X/ZGUK9ejFV5Lv1bb9sBn9dvbSWuPT JARBZxakcP1ONmnp5+j2i5N5fQJ3byA= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 6ACAA12272D; Sat, 28 Jun 2025 09:10:50 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 01/15] dt-bindings: net: mediatek,net: update for mt7988 Date: Sat, 28 Jun 2025 11:10:25 +0200 Message-ID: <20250628091043.57645-2-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Update binding for mt7988 which has 3 gmac and a sram for dma operations. MT7988 has 4 FE IRQs (currently only 2 are used) and 4 IRQs for use with RSS/LRO later. Add interrupt-names to make them accessible by name. Signed-off-by: Frank Wunderlich --- v6: - update irq(name) min count to 4 - move interrupt-names up and limiting for all socs below - add sram-property and drop second reg entry - drop minitems as there is only 1 item left now v5: - fix v4 logmessage and change description a bit describing how i get the irq count. - update binding for 8 irqs with different names (rx,tx =3D> fe0..fe3) including the 2 reserved irqs which can be used later - change rx-ringX to pdmaX to be closer to hardware documentation v4: - increase max interrupts to 6 because of adding RSS/LRO interrupts (4) and dropping 2 reserved irqs (0+3) around rx+tx - dropped Robs RB due to this change - allow interrupt names - add interrupt-names without reserved IRQs on mt7988 this requires mtk driver patch: https://patchwork.kernel.org/project/netdevbpf/patch/20250616080738.11799= 3-2-linux@fw-web.de/ v2: - change reg to list of items --- .../devicetree/bindings/net/mediatek,net.yaml | 47 +++++++++++++++++-- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Docu= mentation/devicetree/bindings/net/mediatek,net.yaml index 9e02fd80af83..74a139000f60 100644 --- a/Documentation/devicetree/bindings/net/mediatek,net.yaml +++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml @@ -28,7 +28,8 @@ properties: - ralink,rt5350-eth =20 reg: - maxItems: 1 + items: + - description: Register for accessing the MACs. =20 clocks: minItems: 2 @@ -40,7 +41,19 @@ properties: =20 interrupts: minItems: 1 - maxItems: 4 + maxItems: 8 + + interrupt-names: + minItems: 1 + items: + - const: fe0 + - const: fe1 + - const: fe2 + - const: fe3 + - const: pdma0 + - const: pdma1 + - const: pdma2 + - const: pdma3 =20 power-domains: maxItems: 1 @@ -54,6 +67,10 @@ properties: - const: gmac - const: ppe =20 + sram: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to mmio SRAM + mediatek,ethsys: $ref: /schemas/types.yaml#/definitions/phandle description: @@ -135,6 +152,10 @@ allOf: minItems: 3 maxItems: 3 =20 + interrupt-names: + minItems: 3 + maxItems: 3 + clocks: minItems: 4 maxItems: 4 @@ -166,6 +187,9 @@ allOf: interrupts: maxItems: 1 =20 + interrupt-namess: + maxItems: 1 + clocks: minItems: 2 maxItems: 2 @@ -192,6 +216,10 @@ allOf: minItems: 3 maxItems: 3 =20 + interrupt-names: + minItems: 3 + maxItems: 3 + clocks: minItems: 11 maxItems: 11 @@ -232,6 +260,10 @@ allOf: minItems: 3 maxItems: 3 =20 + interrupt-names: + minItems: 3 + maxItems: 3 + clocks: minItems: 17 maxItems: 17 @@ -274,6 +306,9 @@ allOf: interrupts: minItems: 4 =20 + interrupt-names: + minItems: 4 + clocks: minItems: 15 maxItems: 15 @@ -312,6 +347,9 @@ allOf: interrupts: minItems: 4 =20 + interrupt-names: + minItems: 4 + clocks: minItems: 15 maxItems: 15 @@ -350,6 +388,9 @@ allOf: interrupts: minItems: 4 =20 + interrupt-names: + minItems: 4 + clocks: minItems: 24 maxItems: 24 @@ -382,7 +423,7 @@ allOf: - const: xgp3 =20 patternProperties: - "^mac@[0-1]$": + "^mac@[0-2]$": type: object unevaluatedProperties: false allOf: --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout3.routing.net (mxout3.routing.net [134.0.28.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB3B623373D; Sat, 28 Jun 2025 09:19:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.8 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102371; cv=none; b=d8ne3bcjAujVDXu74okok0ZhySYM+/vSnSf6B/wJH5GKESdmtmISvKrt6ujyJkW3nNrRNmZAIHxLHQml3he11iC1B2vef+TacWYGdqH0VRE5FxXR/e1OR/qN8+QzBWtgiH8Ub8rT8L09mXwGWRvt7KomaBzrjqQPcm+SmcPpDWQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102371; c=relaxed/simple; bh=nkVcV3wUNVe/zcsTpVmUYTSaAg8gW0lc9PLvnuMVIIM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pPWr1UE3MLSKBRK/b1blsqiyzX+J0LW6yWp9zO0HAGWaDOziRZ+/Mt+ezsg3PdMeBHiCoDtBhPp5/acK0WYNSKDfrh2sAvDmW35zIpNy9fW0fYMBaTxaxY6a1z+jd5NLNFxytR3vtfVIRBnlr8WGELyXWO/kmNNkIS0BS21mLYU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=NlXU94fu; arc=none smtp.client-ip=134.0.28.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="NlXU94fu" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout3.routing.net (Postfix) with ESMTP id 33C3D61653; Sat, 28 Jun 2025 09:10:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101851; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r/pxDHLdKM59vQwtrSmRPlY+HDheivtQ/80IDfz7MYk=; b=NlXU94fuD7PZgRpdcwnXLnEy7O21mBgpj6X5gUNpSNwEesWqQ0C+0SLeB9g3e16ZLvgWVf ltW3KitRagMYlYfgOVw5/fouLgDwoMwmr3+G1POIYx7dF9tyWo2r18K1WDI/1uXCcwbDmH UbA767+i1qWtf7alV8ZhRXo0VrATRR8= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id CD4B61226F5; Sat, 28 Jun 2025 09:10:50 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 02/15] dt-bindings: net: mediatek,net: allow irq names Date: Sat, 28 Jun 2025 11:10:26 +0200 Message-ID: <20250628091043.57645-3-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich In preparation for MT7988 and RSS/LRO allow the interrupt-names property. Also increase the maximum IRQ count to 8 (4 FE + 4 RSS), but set boundaries for all compatibles same as irq count. Signed-off-by: Frank Wunderlich --- v6: new patch splitted from the mt7988 changes --- Documentation/devicetree/bindings/net/mediatek,net.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Docu= mentation/devicetree/bindings/net/mediatek,net.yaml index 74a139000f60..6672db206b38 100644 --- a/Documentation/devicetree/bindings/net/mediatek,net.yaml +++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml @@ -28,8 +28,7 @@ properties: - ralink,rt5350-eth =20 reg: - items: - - description: Register for accessing the MACs. + maxItems: 1 =20 clocks: minItems: 2 @@ -67,10 +66,6 @@ properties: - const: gmac - const: ppe =20 - sram: - $ref: /schemas/types.yaml#/definitions/phandle - description: phandle to mmio SRAM - mediatek,ethsys: $ref: /schemas/types.yaml#/definitions/phandle description: @@ -423,7 +418,7 @@ allOf: - const: xgp3 =20 patternProperties: - "^mac@[0-2]$": + "^mac@[0-1]$": type: object unevaluatedProperties: false allOf: --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout2.routing.net (mxout2.routing.net [134.0.28.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25917225387; Sat, 28 Jun 2025 09:18:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102296; cv=none; b=n/SFA3QVOGceVJeiNfjTzpCKvM++rCWSCYSKnEN9SfgPz3LoWlqWOy9/GQDjmA4ID5lJwaeueLelOpVFDm6Zo6QcYP5Umm+0AiOWrg10tHapq5UE/Ao8Qj3H2R0+ZQWrXp/m4nJwvpDxCWR5E/3mwB2+gE6p16gJdp8LGzJINiM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102296; c=relaxed/simple; bh=Hfaa0gy3uc6c4TBbK3YEGBZqHHPIma4PeUvbj0qjqyE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r9sgDL4x8xSTI34hcxzQUk1TSf2JJl6ZxoA0u2wibd18ArLlg9HEkQwevi0wRIlgLm9BuzfB6MPeFolbYNEQi3ckx3XPQ5DwIHA3s6LD1W6iZmpIvUFvGD4NuCXdp/tTU82eciWkXD0SCSqdjXmFR/1BIZMDX8De/bIwWyOMD0A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=AjLz9Omz; arc=none smtp.client-ip=134.0.28.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="AjLz9Omz" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout2.routing.net (Postfix) with ESMTP id 920895FD7B; Sat, 28 Jun 2025 09:10:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101851; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DgeEoJwP1RRKkglcECdGpkEEfNbWqvY35txVx4ntqiU=; b=AjLz9OmzYbggR4Ei1+YPIRF1/sNAVGGSlsI/4Z7ZjbytXLQ9j9wcZpPaQrcjjmARskZkHp T17tmyPEjUCgU2g8LYa7l3TxXAJC0y2jpiska5emk0t0/2BbGdUlV/ZRTmPJz8anEqRC43 qsjNZkd+CitzoEwR8MRKESJdsfdm1PE= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 3618212272D; Sat, 28 Jun 2025 09:10:51 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 03/15] dt-bindings: net: mediatek,net: update for mt7988 Date: Sat, 28 Jun 2025 11:10:27 +0200 Message-ID: <20250628091043.57645-4-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Update binding for mt7988 which has 3 gmac and a sram for dma operations. MT7988 has 4 FE IRQs (currently only 2 are used) and 4 IRQs for use with RSS/LRO later. Signed-off-by: Frank Wunderlich --- v6: - split out the interrupt-names into separate patch - update irq(name) min count to 4 - add sram-property - drop second reg entry and minitems as there is only 1 item left again v5: - fix v4 logmessage and change description a bit describing how i get the irq count. - update binding for 8 irqs with different names (rx,tx =3D> fe0..fe3) including the 2 reserved irqs which can be used later - change rx-ringX to pdmaX to be closer to hardware documentation v4: - increase max interrupts to 6 because of adding RSS/LRO interrupts (4) and dropping 2 reserved irqs (0+3) around rx+tx - dropped Robs RB due to this change - allow interrupt names - add interrupt-names without reserved IRQs on mt7988 this requires mtk driver patch: https://patchwork.kernel.org/project/netdevbpf/patch/20250616080738.11799= 3-2-linux@fw-web.de/ v2: - change reg to list of items --- Documentation/devicetree/bindings/net/mediatek,net.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Docu= mentation/devicetree/bindings/net/mediatek,net.yaml index 6672db206b38..74a139000f60 100644 --- a/Documentation/devicetree/bindings/net/mediatek,net.yaml +++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml @@ -28,7 +28,8 @@ properties: - ralink,rt5350-eth =20 reg: - maxItems: 1 + items: + - description: Register for accessing the MACs. =20 clocks: minItems: 2 @@ -66,6 +67,10 @@ properties: - const: gmac - const: ppe =20 + sram: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to mmio SRAM + mediatek,ethsys: $ref: /schemas/types.yaml#/definitions/phandle description: @@ -418,7 +423,7 @@ allOf: - const: xgp3 =20 patternProperties: - "^mac@[0-1]$": + "^mac@[0-2]$": type: object unevaluatedProperties: false allOf: --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout1.routing.net (mxout1.routing.net [134.0.28.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E5F618FDA5; Sat, 28 Jun 2025 09:17:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102238; cv=none; b=Pq2mALwmujWlaqdCxbkq2FavqA7TbZ9oBTClswFm4GlhMdPv2K7g5u6p12duo/gEEo9jNQX2zB87yXDYLh5qB/G28wd0jjDLZ72onuNxGLAZzRTAV7P8TUV8CsBw+iwZQfNTusY/8YZgraQhvTsKOryHVG76TknlpE7DE2FmLGM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102238; c=relaxed/simple; bh=JgZ1cPMKbEPkJlrteoo8n9KC9VeiMg4oo1zrlG+bnQQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=J6Cf0hl910MZ7ojN96eaNvfdsfulmLHyqcJTWqDjxypVS/hGuvl13yT3htnJdWkQarxVpACzjte4BRrLKysgEjzAO/BWiiJFG42r+iL52ulAhTmaXxTfJsTXvYSRdxIITpigdrN7grUOovDLQMMlur50VMVPyVPzrm3yKwgoGdQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=HhNXOnrx; arc=none smtp.client-ip=134.0.28.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="HhNXOnrx" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout1.routing.net (Postfix) with ESMTP id 039E141B98; Sat, 28 Jun 2025 09:10:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101852; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R99PFLgv7EGPI4uV/VSEzfV0kYW/ZQPDNvpGbpm2GOY=; b=HhNXOnrxpy9EHODacj5PdX10JsTlN3CHjWtsocQwoAvlDUlfP8sPBXAoQgtCmo0RHN/g93 dNtIm1A5wvnvOaCIynf9mkqUXuCVHeWU+0Sx5VgbJEOR9CvFYYun3lztmV2VlzocyyLu9a hUXB1b971w0HQ67OYToQsHj9zcPxc3Q= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 958321226F5; Sat, 28 Jun 2025 09:10:51 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 04/15] dt-bindings: net: dsa: mediatek,mt7530: add dsa-port definition for mt7988 Date: Sat, 28 Jun 2025 11:10:28 +0200 Message-ID: <20250628091043.57645-5-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add own dsa-port binding for SoC with internal switch where only phy-mode 'internal' is valid. Signed-off-by: Frank Wunderlich Reviewed-by: Rob Herring (Arm) Reviewed-by: AngeloGioacchino Del Regno --- .../bindings/net/dsa/mediatek,mt7530.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml= b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 51205f9f2985..9b983fdbf3c7 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -190,6 +190,18 @@ required: - reg =20 $defs: + builtin-dsa-port: + patternProperties: + "^(ethernet-)?ports$": + patternProperties: + "^(ethernet-)?port@[0-6]$": + if: + required: [ ethernet ] + then: + properties: + phy-mode: + const: internal + mt7530-dsa-port: patternProperties: "^(ethernet-)?ports$": @@ -297,7 +309,7 @@ allOf: - airoha,en7581-switch - airoha,an7583-switch then: - $ref: "#/$defs/mt7530-dsa-port" + $ref: "#/$defs/builtin-dsa-port" properties: gpio-controller: false mediatek,mcm: false --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout4.routing.net (mxout4.routing.net [134.0.28.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC25E2343C9; Sat, 28 Jun 2025 09:18:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102290; cv=none; b=Ggl/npa+pRncNlA6ldE5fP/w8RJrPB5Nz5HcMnBUgvjR/o9BV9m347HJiuibQqZJ2jN3ZmI7T8Dva8gsrogR7z+3oCK9SZaBlGExg7iyAvKMVHY+NufOo2iVsFkBboVw4JLxb8tSiR9bDtLGQwac6lBKg3TfMG11hkkvEZIpReU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102290; c=relaxed/simple; bh=/2RYzQamWMFGRk3UZGy8S3jPYaE9HT85GHRvJ+BZpds=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lzMmxtkZ9pG6Wi1L5AfF6MJg8IEnrkCCHLRIKtpfhp+U8jR11DCP0AV/GHCLchcMeywdaBRKCoHmFo/4/Gybye1rBakQ6pBzlRH7LUaPt6QGO0CNZkU9oEw33rvOR1SgOl4LwSf4czK2vt/qx7vQsOCsBooO2i6el8yBsMbGGwM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=qlxuqrTS; arc=none smtp.client-ip=134.0.28.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="qlxuqrTS" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout4.routing.net (Postfix) with ESMTP id 5CDB21012C4; Sat, 28 Jun 2025 09:10:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101852; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hvtxU4D3ohmA54ipUVXLZQjWygAPvZxaNNALd63s61k=; b=qlxuqrTS5nFWaF2uTQ5fu9KBUin17+dYeGjY7EoJw0zgyAeOQRbnwt58j5fEXNmYHYhpgT IAXK0/0UXS53bAE9ryANBFYUL+k8u6sMr0PyHXDzeCgur5+57eY3pCSpJaXbxtHlMkAolA coqXajh4Ca3ZF4gKos5MYrfdK7P5rH0= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 0279512272D; Sat, 28 Jun 2025 09:10:51 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 05/15] dt-bindings: net: dsa: mediatek,mt7530: add internal mdio bus Date: Sat, 28 Jun 2025 11:10:29 +0200 Message-ID: <20250628091043.57645-6-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Mt7988 buildin switch has own mdio bus where ge-phys are connected. Add related property for this. Signed-off-by: Frank Wunderlich Reviewed-by: Rob Herring (Arm) Reviewed-by: AngeloGioacchino Del Regno --- v2: - change from patternproperty to property - add unevaluatedProperties and mediatek,pio subproperty --- .../devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml= b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 9b983fdbf3c7..815a90808901 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -136,6 +136,16 @@ properties: See Documentation/devicetree/bindings/regulator/mt6323-regulator.txt= for details for the regulator setup on these boards. =20 + mdio: + $ref: /schemas/net/mdio.yaml# + unevaluatedProperties: false + + properties: + mediatek,pio: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle pointing to the mediatek pinctrl node. + mediatek,mcm: type: boolean description: --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout3.routing.net (mxout3.routing.net [134.0.28.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB350232379; Sat, 28 Jun 2025 09:19:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.8 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102371; cv=none; b=hlPFujkxNaLnpdOMz4e4CDGey+9p9B36+JnoAN6YByy1bGTqxz9iHdFCcdhVNqCLxxhfJamK8x96iv846CfEMWEdnAV228eQuNC6dmG6eB5thegu4OfXJfBaDC+BkAwF/3RvpMbYXcH4J6LLHtpQ7VaI+XI3xVfuKM1lPkUseyE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102371; c=relaxed/simple; bh=UqjLIff6vGDqoMa6cY1ayiqDZQRlXcFOsz9VjFf7ivw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dkgISrIhVLkIuR+glapQ5yVZ8HQ66wvhAJ57h0oxwmNPySt9RlCwCajrIqMcSJgNStejJJF4ZyVujmEDkVEJ0fQN0JHmQuYsso5C/K8WW3rbdzr+X8WvOOfZnSI/sr8vkXRBMNyWTWIBvn+IRvI3cLBesjwG6NRrx/95YHssx28= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=s5b0Y0Z7; arc=none smtp.client-ip=134.0.28.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="s5b0Y0Z7" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout3.routing.net (Postfix) with ESMTP id BCB5361654; Sat, 28 Jun 2025 09:10:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YcSTaKN401XjS/lTU3UuVzaGoC+mAi1n71I7Mb7VeT4=; b=s5b0Y0Z7VZEwnuhyqUiyYldOTv/RnzR2K/IzpDQAfKrAL0O0jJTLeqPQl3QmBb1uqjQDlb M5gbW4gHarBX9t+d5nC8kr5oEMGYK3dy5hTpisHmlqn8EudyUOhSEAwugqJZJjS8+O7AWg Wzh1UtA6bQTzrb9Fks1vv93XjuOTi/M= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 610F71226F5; Sat, 28 Jun 2025 09:10:52 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 06/15] dt-bindings: interconnect: add mt7988-cci compatible Date: Sat, 28 Jun 2025 11:10:30 +0200 Message-ID: <20250628091043.57645-7-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add compatible for Mediatek MT7988 SoC with mediatek,mt8183-cci fallback which is taken by driver. Signed-off-by: Frank Wunderlich Acked-by: Rob Herring (Arm) Reviewed-by: AngeloGioacchino Del Regno Acked-by: Georgi Djakov --- v2: - no RFC - drop "items" as sugested by conor --- .../bindings/interconnect/mediatek,cci.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/interconnect/mediatek,cci.ya= ml b/Documentation/devicetree/bindings/interconnect/mediatek,cci.yaml index 58611ba2a0f4..4d72525f407e 100644 --- a/Documentation/devicetree/bindings/interconnect/mediatek,cci.yaml +++ b/Documentation/devicetree/bindings/interconnect/mediatek,cci.yaml @@ -17,9 +17,14 @@ description: | =20 properties: compatible: - enum: - - mediatek,mt8183-cci - - mediatek,mt8186-cci + oneOf: + - enum: + - mediatek,mt8183-cci + - mediatek,mt8186-cci + - items: + - enum: + - mediatek,mt7988-cci + - const: mediatek,mt8183-cci =20 clocks: items: --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout2.routing.net (mxout2.routing.net [134.0.28.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 260B122D781; Sat, 28 Jun 2025 09:18:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102297; cv=none; b=FsZFmE87yJhTlNHQf6X+WleutrdOM97YakKlgDQUhDOSwFqe07rxwYqyW5J2xEJQc5d5OLwBvae3gOoraFDdPTH8jBa0PHGAs76hlwaFDxAkKC4rDqdEPbX2QTlFwAkZnW4WkRe6cmHBr85FAdmZ+hE+ZG8Bc6vYhiAbagGfR7U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751102297; c=relaxed/simple; bh=CXJdMVM7yfnfOWdD19oSNPqLnLxqQfuOKdmhOWln+X4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YGPgGOvKgX9bvq83yR1KxZML59xwakRQ9KzqE+yCKveFo4pHU9khoEvBkibQZCaZiyRbK9l6elliXTrcd4k/dvTpxhD9dAFhTJPr6kz8yD+3AJjaiKCBmyeBN+Y/Si0oiHaUMAu85JI+sK8ioUHy8zd7/xSUGZH2fGy5/5iSs4c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=OJl61i4w; arc=none smtp.client-ip=134.0.28.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="OJl61i4w" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout2.routing.net (Postfix) with ESMTP id 26A2B601EA; Sat, 28 Jun 2025 09:10:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SHQ5vPeo13GqSQMpnsgrtHpzp9AC7Cqs5ZLxrZU37Ag=; b=OJl61i4w2r/wDPM1tGfm8/8OPZ+kfX6xnX4H5olTFdvH1P56Bi3tvDF4wJXup6QWaBWYoJ my4TlWMxW50bd1r4gfm7i06RMWk/hdCSUOPRrKziQw4NEfBWFeP1KnU/KK5E3oqgn6GxGU kYylN55GWY0gOSJd++IxB3xapRESAhg= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id BFFF512272D; Sat, 28 Jun 2025 09:10:52 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 07/15] arm64: dts: mediatek: mt7988: add cci node Date: Sat, 28 Jun 2025 11:10:31 +0200 Message-ID: <20250628091043.57645-8-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add cci devicetree node for cpu frequency scaling. Signed-off-by: Daniel Golle Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- v3: - add mt7988-cci compatible as suggested by angelo --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index c46b31f8d653..560ec86dbec0 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -12,6 +12,35 @@ / { #address-cells =3D <2>; #size-cells =3D <2>; =20 + cci: cci { + compatible =3D "mediatek,mt7988-cci", "mediatek,mt8183-cci"; + clocks =3D <&mcusys CLK_MCU_BUS_DIV_SEL>, + <&topckgen CLK_TOP_XTAL>; + clock-names =3D "cci", "intermediate"; + operating-points-v2 =3D <&cci_opp>; + }; + + cci_opp: opp-table-cci { + compatible =3D "operating-points-v2"; + opp-shared; + opp-480000000 { + opp-hz =3D /bits/ 64 <480000000>; + opp-microvolt =3D <850000>; + }; + opp-660000000 { + opp-hz =3D /bits/ 64 <660000000>; + opp-microvolt =3D <850000>; + }; + opp-900000000 { + opp-hz =3D /bits/ 64 <900000000>; + opp-microvolt =3D <850000>; + }; + opp-1080000000 { + opp-hz =3D /bits/ 64 <1080000000>; + opp-microvolt =3D <900000>; + }; + }; + cpus { #address-cells =3D <1>; #size-cells =3D <0>; @@ -25,6 +54,7 @@ cpu0: cpu@0 { <&topckgen CLK_TOP_XTAL>; clock-names =3D "cpu", "intermediate"; operating-points-v2 =3D <&cluster0_opp>; + mediatek,cci =3D <&cci>; }; =20 cpu1: cpu@1 { @@ -36,6 +66,7 @@ cpu1: cpu@1 { <&topckgen CLK_TOP_XTAL>; clock-names =3D "cpu", "intermediate"; operating-points-v2 =3D <&cluster0_opp>; + mediatek,cci =3D <&cci>; }; =20 cpu2: cpu@2 { @@ -47,6 +78,7 @@ cpu2: cpu@2 { <&topckgen CLK_TOP_XTAL>; clock-names =3D "cpu", "intermediate"; operating-points-v2 =3D <&cluster0_opp>; + mediatek,cci =3D <&cci>; }; =20 cpu3: cpu@3 { @@ -58,6 +90,7 @@ cpu3: cpu@3 { <&topckgen CLK_TOP_XTAL>; clock-names =3D "cpu", "intermediate"; operating-points-v2 =3D <&cluster0_opp>; + mediatek,cci =3D <&cci>; }; =20 cluster0_opp: opp-table-0 { --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout1.routing.net (mxout1.routing.net [134.0.28.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A94CA22170B; Sat, 28 Jun 2025 09:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101864; cv=none; b=PzP2mpW9+imNiqhcCYa0JRZCp9IFwXedR6SlYVqlnWB14rgwnkYT+Mzj2Xo5NRYFQ0YQnOO0sZRUt2sagNcrhM6sc6bMCuhl5s/zCvwd6nMSaG46XzZdvYEb02yUpP4G3Ej1YwKrUTYze/kbeOJbk4B5lsc8eg3jJlJ/34afIAY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101864; c=relaxed/simple; bh=qfBix3/voP9oHESfM587vBtlQy1ugMjpeEneZpd9Poc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L28H5NCceTe/qpejibOaJuSMUM3jVpwzvm9N5C+mkeqd7e+CgL2zHQCJZRHdnKK/CSZiDkOdXMAucIXA6rEbpzzcN41y4UV4mKbXy5MxbEY5aI5v4lgNhbLVXBWxGPYcmID7lZFcj7LfzQjU/++OS0d8IjOmvLuF+OiNkQIXMe0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=JrEHhVk4; arc=none smtp.client-ip=134.0.28.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="JrEHhVk4" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout1.routing.net (Postfix) with ESMTP id 81F3641B99; Sat, 28 Jun 2025 09:10:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7dT9YZ7gi77SwhEBS1HcRZe6Y8Dtm4B6SBBEYc1Een0=; b=JrEHhVk4VBQ1t/MGxiLb79NWgU98DTUaILD2Fw42vpVvd1HlZvrcDSq2XXtjQoW90/uXAT JT9TMssQi0FIgWjKtPFizOwdKgb/gnOSp/r+tPR+buRQ6KT/8eWozfxt93GaWoloFe0V5R vO54nGmvB4GEC5T1phwXEo0G82b3ugQ= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 2A33E1226F5; Sat, 28 Jun 2025 09:10:53 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 08/15] arm64: dts: mediatek: mt7988: add basic ethernet-nodes Date: Sat, 28 Jun 2025 11:10:32 +0200 Message-ID: <20250628091043.57645-9-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add basic ethernet related nodes. Mac1+2 needs pcs (sgmii+usxgmii) to work correctly which will be linked later when driver is merged. Signed-off-by: Daniel Golle Signed-off-by: Frank Wunderlich --- v6: - fix whitespace-errors for pdma irqs (spaces vs. tabs) - move sram from eth reg to own sram node (needs CONFIG_SRAM) v5: - add reserved irqs and change names to fe0..fe3 - change rx-ringX to pdmaX to be closer to documentation v4: - comment for fixed-link on gmac0 - update 2g5 phy node - unit-name dec instead of hex to match reg property - move compatible before reg - drop phy-mode - add interrupts for RSS - add interrupt-names and drop reserved irqs for ethernet - some reordering - eth-reg and clock whitespace-fix based on angelos review --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 137 +++++++++++++++++++++- 1 file changed, 134 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index 560ec86dbec0..cf765a6b1fa8 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -680,7 +680,28 @@ xphyu3port0: usb-phy@11e13000 { }; }; =20 - clock-controller@11f40000 { + xfi_tphy0: phy@11f20000 { + compatible =3D "mediatek,mt7988-xfi-tphy"; + reg =3D <0 0x11f20000 0 0x10000>; + clocks =3D <&xfi_pll CLK_XFIPLL_PLL_EN>, + <&topckgen CLK_TOP_XFI_PHY_0_XTAL_SEL>; + clock-names =3D "xfipll", "topxtal"; + resets =3D <&watchdog 14>; + mediatek,usxgmii-performance-errata; + #phy-cells =3D <0>; + }; + + xfi_tphy1: phy@11f30000 { + compatible =3D "mediatek,mt7988-xfi-tphy"; + reg =3D <0 0x11f30000 0 0x10000>; + clocks =3D <&xfi_pll CLK_XFIPLL_PLL_EN>, + <&topckgen CLK_TOP_XFI_PHY_1_XTAL_SEL>; + clock-names =3D "xfipll", "topxtal"; + resets =3D <&watchdog 15>; + #phy-cells =3D <0>; + }; + + xfi_pll: clock-controller@11f40000 { compatible =3D "mediatek,mt7988-xfi-pll"; reg =3D <0 0x11f40000 0 0x1000>; resets =3D <&watchdog 16>; @@ -714,19 +735,129 @@ phy_calibration_p3: calib@97c { }; }; =20 - clock-controller@15000000 { + ethsys: clock-controller@15000000 { compatible =3D "mediatek,mt7988-ethsys", "syscon"; reg =3D <0 0x15000000 0 0x1000>; #clock-cells =3D <1>; #reset-cells =3D <1>; }; =20 - clock-controller@15031000 { + ethwarp: clock-controller@15031000 { compatible =3D "mediatek,mt7988-ethwarp"; reg =3D <0 0x15031000 0 0x1000>; #clock-cells =3D <1>; #reset-cells =3D <1>; }; + + eth: ethernet@15100000 { + compatible =3D "mediatek,mt7988-eth"; + reg =3D <0 0x15100000 0 0x80000>; + interrupts =3D , + , + , + , + , + , + , + ; + interrupt-names =3D "fe0", "fe1", "fe2", "fe3", "pdma0", + "pdma1", "pdma2", "pdma3"; + clocks =3D <ðsys CLK_ETHDMA_CRYPT0_EN>, + <ðsys CLK_ETHDMA_FE_EN>, + <ðsys CLK_ETHDMA_GP2_EN>, + <ðsys CLK_ETHDMA_GP1_EN>, + <ðsys CLK_ETHDMA_GP3_EN>, + <ðwarp CLK_ETHWARP_WOCPU2_EN>, + <ðwarp CLK_ETHWARP_WOCPU1_EN>, + <ðwarp CLK_ETHWARP_WOCPU0_EN>, + <ðsys CLK_ETHDMA_ESW_EN>, + <&topckgen CLK_TOP_ETH_GMII_SEL>, + <&topckgen CLK_TOP_ETH_REFCK_50M_SEL>, + <&topckgen CLK_TOP_ETH_SYS_200M_SEL>, + <&topckgen CLK_TOP_ETH_SYS_SEL>, + <&topckgen CLK_TOP_ETH_XGMII_SEL>, + <&topckgen CLK_TOP_ETH_MII_SEL>, + <&topckgen CLK_TOP_NETSYS_SEL>, + <&topckgen CLK_TOP_NETSYS_500M_SEL>, + <&topckgen CLK_TOP_NETSYS_PAO_2X_SEL>, + <&topckgen CLK_TOP_NETSYS_SYNC_250M_SEL>, + <&topckgen CLK_TOP_NETSYS_PPEFB_250M_SEL>, + <&topckgen CLK_TOP_NETSYS_WARP_SEL>, + <ðsys CLK_ETHDMA_XGP1_EN>, + <ðsys CLK_ETHDMA_XGP2_EN>, + <ðsys CLK_ETHDMA_XGP3_EN>; + clock-names =3D "crypto", "fe", "gp2", "gp1", "gp3", + "ethwarp_wocpu2", "ethwarp_wocpu1", + "ethwarp_wocpu0", "esw", "top_eth_gmii_sel", + "top_eth_refck_50m_sel", "top_eth_sys_200m_sel", + "top_eth_sys_sel", "top_eth_xgmii_sel", + "top_eth_mii_sel", "top_netsys_sel", + "top_netsys_500m_sel", "top_netsys_pao_2x_sel", + "top_netsys_sync_250m_sel", + "top_netsys_ppefb_250m_sel", + "top_netsys_warp_sel","xgp1", "xgp2", "xgp3"; + assigned-clocks =3D <&topckgen CLK_TOP_NETSYS_2X_SEL>, + <&topckgen CLK_TOP_NETSYS_GSW_SEL>, + <&topckgen CLK_TOP_USXGMII_SBUS_0_SEL>, + <&topckgen CLK_TOP_USXGMII_SBUS_1_SEL>, + <&topckgen CLK_TOP_SGM_0_SEL>, + <&topckgen CLK_TOP_SGM_1_SEL>; + assigned-clock-parents =3D <&apmixedsys CLK_APMIXED_NET2PLL>, + <&topckgen CLK_TOP_NET1PLL_D4>, + <&topckgen CLK_TOP_NET1PLL_D8_D4>, + <&topckgen CLK_TOP_NET1PLL_D8_D4>, + <&apmixedsys CLK_APMIXED_SGMPLL>, + <&apmixedsys CLK_APMIXED_SGMPLL>; + sram =3D <ð_sram>; + #address-cells =3D <1>; + #size-cells =3D <0>; + mediatek,ethsys =3D <ðsys>; + mediatek,infracfg =3D <&topmisc>; + + gmac0: mac@0 { + compatible =3D "mediatek,eth-mac"; + reg =3D <0>; + phy-mode =3D "internal"; + + /* Connected to internal switch */ + fixed-link { + speed =3D <10000>; + full-duplex; + pause; + }; + }; + + gmac1: mac@1 { + compatible =3D "mediatek,eth-mac"; + reg =3D <1>; + status =3D "disabled"; + }; + + gmac2: mac@2 { + compatible =3D "mediatek,eth-mac"; + reg =3D <2>; + status =3D "disabled"; + }; + + mdio_bus: mdio-bus { + #address-cells =3D <1>; + #size-cells =3D <0>; + + /* internal 2.5G PHY */ + int_2p5g_phy: ethernet-phy@15 { + compatible =3D "ethernet-phy-ieee802.3-c45"; + reg =3D <15>; + }; + }; + }; + + eth_sram: sram@15400000 { + compatible =3D "mmio-sram"; + reg =3D <0 0x15400000 0 0x200000>; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges =3D <0 0x15400000 0 0x200000>; + }; }; =20 thermal-zones { --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout4.routing.net (mxout4.routing.net [134.0.28.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FBEE224B14; Sat, 28 Jun 2025 09:11:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101864; cv=none; b=ggQN/vlEsiXO77JiAoFBaskxpKZDImZtwMe9MIm5W9j24lgnJGBUydbNqZvtbz/5H4eOfzZLSTpT2xPiwiGCJAEuo5MgqgiE1lguvjcjj0biNX4m14OY65D+fQyk/t1hzMuwsMXjiKyaPkeEo261mR/HB0VWtLZRsAGLOLc8+QU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101864; c=relaxed/simple; bh=gPrGHtbLr6wNB43kPK+9dUxlp1aSRU8byJ8ozBbRMGw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DLYEuilinzg/9ZdGVyuGg0I/k3tZtn6ezhLZQAEQ18VdhoIM9ZmkBZ6mA/Szcs+V5qDedaGP9y/M05jjzDfU8Y2fUFOIahQnr11pLP0XSFbZTP3nMyT7/zEjsKbxtmbj1hTljjJ8kv0fzfALBVe4sdp5K71EtM5x7p9FPA/CAgA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=mWudAFyR; arc=none smtp.client-ip=134.0.28.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="mWudAFyR" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout4.routing.net (Postfix) with ESMTP id E29AF1012C7; Sat, 28 Jun 2025 09:10:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2Up+TpRAQJFsd3iE9H547AQliakgI9CQqLhSEL2RQMo=; b=mWudAFyRKc5vJ1Nv/ipL2L9dbatHBVzl4YvJ7/OQRGZbgeU+nySu0LqK4KBJ9QCwuDNAAY cP87iWrYCDYEOHbV9Py21Xbi1sgl3aITzL0Y1H52HLb3YHM9barH44QtF5NkA4nQCyXM8S nbcWU+g3uT8pi6KneZCSovBYWnwV+uY= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 88BB812272D; Sat, 28 Jun 2025 09:10:53 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 09/15] arm64: dts: mediatek: mt7988: add switch node Date: Sat, 28 Jun 2025 11:10:33 +0200 Message-ID: <20250628091043.57645-10-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add mt7988 builtin mt753x switch nodes. Signed-off-by: Daniel Golle Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- v4: - drop phy-mode for gsw-phy - reorder phy-mode after phy-handle - drop interrupt parent from switch v2: - drop labels and led-function too (have to be in board) --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 148 ++++++++++++++++++++++ 1 file changed, 148 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7988a.dtsi index cf765a6b1fa8..767782a207a4 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -742,6 +742,154 @@ ethsys: clock-controller@15000000 { #reset-cells =3D <1>; }; =20 + switch: switch@15020000 { + compatible =3D "mediatek,mt7988-switch"; + reg =3D <0 0x15020000 0 0x8000>; + interrupt-controller; + #interrupt-cells =3D <1>; + interrupts =3D ; + resets =3D <ðwarp MT7988_ETHWARP_RST_SWITCH>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + gsw_port0: port@0 { + reg =3D <0>; + phy-handle =3D <&gsw_phy0>; + phy-mode =3D "internal"; + }; + + gsw_port1: port@1 { + reg =3D <1>; + phy-handle =3D <&gsw_phy1>; + phy-mode =3D "internal"; + }; + + gsw_port2: port@2 { + reg =3D <2>; + phy-handle =3D <&gsw_phy2>; + phy-mode =3D "internal"; + }; + + gsw_port3: port@3 { + reg =3D <3>; + phy-handle =3D <&gsw_phy3>; + phy-mode =3D "internal"; + }; + + port@6 { + reg =3D <6>; + ethernet =3D <&gmac0>; + phy-mode =3D "internal"; + + fixed-link { + speed =3D <10000>; + full-duplex; + pause; + }; + }; + }; + + mdio { + #address-cells =3D <1>; + #size-cells =3D <0>; + mediatek,pio =3D <&pio>; + + gsw_phy0: ethernet-phy@0 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <0>; + interrupts =3D <0>; + nvmem-cells =3D <&phy_calibration_p0>; + nvmem-cell-names =3D "phy-cal-data"; + + leds { + #address-cells =3D <1>; + #size-cells =3D <0>; + + gsw_phy0_led0: led@0 { + reg =3D <0>; + status =3D "disabled"; + }; + + gsw_phy0_led1: led@1 { + reg =3D <1>; + status =3D "disabled"; + }; + }; + }; + + gsw_phy1: ethernet-phy@1 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <1>; + interrupts =3D <1>; + nvmem-cells =3D <&phy_calibration_p1>; + nvmem-cell-names =3D "phy-cal-data"; + + leds { + #address-cells =3D <1>; + #size-cells =3D <0>; + + gsw_phy1_led0: led@0 { + reg =3D <0>; + status =3D "disabled"; + }; + + gsw_phy1_led1: led@1 { + reg =3D <1>; + status =3D "disabled"; + }; + }; + }; + + gsw_phy2: ethernet-phy@2 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <2>; + interrupts =3D <2>; + nvmem-cells =3D <&phy_calibration_p2>; + nvmem-cell-names =3D "phy-cal-data"; + + leds { + #address-cells =3D <1>; + #size-cells =3D <0>; + + gsw_phy2_led0: led@0 { + reg =3D <0>; + status =3D "disabled"; + }; + + gsw_phy2_led1: led@1 { + reg =3D <1>; + status =3D "disabled"; + }; + }; + }; + + gsw_phy3: ethernet-phy@3 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <3>; + interrupts =3D <3>; + nvmem-cells =3D <&phy_calibration_p3>; + nvmem-cell-names =3D "phy-cal-data"; + + leds { + #address-cells =3D <1>; + #size-cells =3D <0>; + + gsw_phy3_led0: led@0 { + reg =3D <0>; + status =3D "disabled"; + }; + + gsw_phy3_led1: led@1 { + reg =3D <1>; + status =3D "disabled"; + }; + }; + }; + }; + }; + ethwarp: clock-controller@15031000 { compatible =3D "mediatek,mt7988-ethwarp"; reg =3D <0 0x15031000 0 0x1000>; --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout3.routing.net (mxout3.routing.net [134.0.28.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66B26224B13; Sat, 28 Jun 2025 09:11:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.8 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101863; cv=none; b=gNxFZGWw7DWJkU3hGcS2m4jMdT8PmAvHRQqO1YBFRGUNnHBHCIBv1dtMlyH7YFwu4fpK+yYm6gqzGuCAelFzys8Yh+Or7ZhtvFJnAIP5wh41HC4hszmnBRfwoTpH7+08AEAkrkqKpnMqvPIdZ1T3HXF5z4f+WPCSBlJIl/J6lzk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101863; c=relaxed/simple; bh=Dgdiq1horuDoHLdNztjJFaG+cA4sLMSMTTMWhbKe7+Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TCzvMO3EZwIfHz0/zCuCQaJmn10CVyn24OYvwdVoJNgswTXOdoSekURB1r0KDc7OAWJ7OjXPCt7hEH1kEX0nEc9jF6XF1+l6Yu3R7nbTBjvut+Y/C+thnJfVHx7evman9e5k8KKQoUllYMWPerpzlUGtkQrMaLFkvKLdvezUcrc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=J7mx63bP; arc=none smtp.client-ip=134.0.28.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="J7mx63bP" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout3.routing.net (Postfix) with ESMTP id 51CE661657; Sat, 28 Jun 2025 09:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101854; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DIMuNne++IWVgY0azMoYkvyXCjaefI/n17TVM+rpZxc=; b=J7mx63bPm9HQTcvKlMeKSfBWzEcqWRcVsPqFXKvMY2ipEcMFrY5sieI5vjx1NWuXi4k5cA JzueiB9r6BYmn6t8RxwxEtBRIp3lHUW8rf6TpnyaET53r1kLVJzCMPN/PTTa0Nq+wcw+vW GyNKbfTbcUU3qFHQJaesAsjKAu5U3zM= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id EE7501226F5; Sat, 28 Jun 2025 09:10:53 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 10/15] arm64: dts: mediatek: mt7988a-bpi-r4: add proc-supply for cci Date: Sat, 28 Jun 2025 11:10:34 +0200 Message-ID: <20250628091043.57645-11-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich CCI requires proc-supply. Add it on board level. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi b/ar= ch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi index 81ba045e0e0e..afa9e3b2b16a 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi @@ -40,6 +40,10 @@ reg_3p3v: regulator-3p3v { }; }; =20 +&cci { + proc-supply =3D <&rt5190_buck3>; +}; + &cpu0 { proc-supply =3D <&rt5190_buck3>; }; --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout2.routing.net (mxout2.routing.net [134.0.28.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6ADBF2264BC; Sat, 28 Jun 2025 09:11:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101865; cv=none; b=DlCd/1V6jePzoPpI5YOfsKYN4VqAprV5kIA46CETpo7JqBUTUJlYAnh0qfdJ9eXGiqVWiZvFjzMHa/ezoaCZrx4Wv+F/Z3zjzKJ2t+OL6jlDINuiZK2zz2iRHVUw1TFf1dVfNF00J4ySh+lxMUjmjiqKRXsNsaTn1vyQ/t5yesM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101865; c=relaxed/simple; bh=oEHCeCyYmhRvcoDsSzTQBlneOLnSQNdeNvfMRFj69TE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=g6QC45PfUDE/XJrOCfMGocKYYaEFWvIaOk//XoCIWrxiXLpPAQTeQUTzq/w5BD0QJz7azrWEH02s/Ku4kF6KWUHid94Yrbn9c/tMl3cI5adL55PuxNKpNrMq4iq2mo/7nOR0CwWxerjLIiATaS+pQJokSQSliQRBmokzyZ4GTgI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=NA+1GxSS; arc=none smtp.client-ip=134.0.28.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="NA+1GxSS" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout2.routing.net (Postfix) with ESMTP id B2F2860276; Sat, 28 Jun 2025 09:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101854; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zCArQQjnZOoBXdfm7YKc01KniAiMbD7wl2wyNkiAMyg=; b=NA+1GxSSDuEqbCyzF2WJa3x7c+Oq77hshvVwamfGDOOsLiaffWi0pdETpcdH5yz+ztlFxs /f2d7Tcy5sZqIHnFbi1cNYFXOp9YrGmpiTn9C9qWFOa2FrUZl7lVgn4mM2t/86dTexB/VD vUhgt0WVFxupAoJgw832fJjt4dGA1D8= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 5899212272D; Sat, 28 Jun 2025 09:10:54 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 11/15] arm64: dts: mediatek: mt7988a-bpi-r4: drop unused pins Date: Sat, 28 Jun 2025 11:10:35 +0200 Message-ID: <20250628091043.57645-12-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Pins were moved from SoC dtsi to Board level dtsi without cleaning up to needed ones. Drop the unused pins now. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi | 89 ------------------- 1 file changed, 89 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi b/ar= ch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi index afa9e3b2b16a..30affedf84d4 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi @@ -223,18 +223,6 @@ &pcie3 { }; =20 &pio { - mdio0_pins: mdio0-pins { - mux { - function =3D "eth"; - groups =3D "mdc_mdio0"; - }; - - conf { - pins =3D "SMI_0_MDC", "SMI_0_MDIO"; - drive-strength =3D <8>; - }; - }; - i2c0_pins: i2c0-g0-pins { mux { function =3D "i2c"; @@ -249,20 +237,6 @@ mux { }; }; =20 - i2c1_sfp_pins: i2c1-sfp-g0-pins { - mux { - function =3D "i2c"; - groups =3D "i2c1_sfp"; - }; - }; - - i2c2_0_pins: i2c2-g0-pins { - mux { - function =3D "i2c"; - groups =3D "i2c2_0"; - }; - }; - i2c2_1_pins: i2c2-g1-pins { mux { function =3D "i2c"; @@ -298,34 +272,6 @@ mux { }; }; =20 - gbe0_led1_pins: gbe0-led1-pins { - mux { - function =3D "led"; - groups =3D "gbe0_led1"; - }; - }; - - gbe1_led1_pins: gbe1-led1-pins { - mux { - function =3D "led"; - groups =3D "gbe1_led1"; - }; - }; - - gbe2_led1_pins: gbe2-led1-pins { - mux { - function =3D "led"; - groups =3D "gbe2_led1"; - }; - }; - - gbe3_led1_pins: gbe3-led1-pins { - mux { - function =3D "led"; - groups =3D "gbe3_led1"; - }; - }; - i2p5gbe_led0_pins: 2p5gbe-led0-pins { mux { function =3D "led"; @@ -333,13 +279,6 @@ mux { }; }; =20 - i2p5gbe_led1_pins: 2p5gbe-led1-pins { - mux { - function =3D "led"; - groups =3D "2p5gbe_led1"; - }; - }; - mmc0_pins_emmc_45: mmc0-emmc-45-pins { mux { function =3D "flash"; @@ -361,40 +300,12 @@ mux { }; }; =20 - snfi_pins: snfi-pins { - mux { - function =3D "flash"; - groups =3D "snfi"; - }; - }; - - spi0_pins: spi0-pins { - mux { - function =3D "spi"; - groups =3D "spi0"; - }; - }; - spi0_flash_pins: spi0-flash-pins { mux { function =3D "spi"; groups =3D "spi0", "spi0_wp_hold"; }; }; - - spi2_pins: spi2-pins { - mux { - function =3D "spi"; - groups =3D "spi2"; - }; - }; - - spi2_flash_pins: spi2-flash-pins { - mux { - function =3D "spi"; - groups =3D "spi2", "spi2_wp_hold"; - }; - }; }; =20 &pwm { --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout4.routing.net (mxout4.routing.net [134.0.28.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4D1B224AEF; Sat, 28 Jun 2025 09:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101863; cv=none; b=T+OSDzVDMEB9SqEzps9mzjKLkAw0L3Bar1WlbgeToK2tIEM1Yev1N4RrgqoMDhGjXM2SMo4wsRtt9HimX2/lsFzG1fPYoiL3XMmHV2akFM7i6JofeMtotK7zndz1Cl5lFuRS3SN3fwqquQb6A7XbFZnDP8UNNZT6RU6Dq25WXZc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101863; c=relaxed/simple; bh=vasLuAIVGN71piVbyel+Q8mRVI3PJ2R3OaDC4gFrR5k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DNm9TvGrF7IPuti4/LupS2+ZKDwMklVd8r9FhRs7R1N70zbdAgfK3RQ90moxkb7UKKIp7uBZMc7csmXbyX9L3U9yWUG261/h2widSAvSGwoqkqE80V5nzLC+eDj8hvTZN7rUGgpp9BCdZaPzTzzS/mJ0F14GGqanncrsSHRrJwI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=u9GW4OQz; arc=none smtp.client-ip=134.0.28.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="u9GW4OQz" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout4.routing.net (Postfix) with ESMTP id 23ACA1012D4; Sat, 28 Jun 2025 09:10:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7sHWoK+S4dor/cCGOhSqusJFB/am18LqdmWaQ7hQvKA=; b=u9GW4OQzOc7exqNlyrupVC5dvGApSPBP01ub9s1y8CHn9MRHiDm8ASmvngNGAUT/hoOzd3 aPpr+la+tXw9KAcqYE764SjOCPlvFc8IOecVitfGMurjhvBGkcBcGIORvcDQvX+zs2hvOe 4tJAeSCDGvuvN0uef0l8eQg4zVaEecI= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id BF1011226F5; Sat, 28 Jun 2025 09:10:54 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 12/15] arm64: dts: mediatek: mt7988a-bpi-r4: add gpio leds Date: Sat, 28 Jun 2025 11:10:36 +0200 Message-ID: <20250628091043.57645-13-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Bananapi R4 has a green and a blue led which can be switched by gpio. Green led is for running state so default on. Green led also shares pin with eeprom writeprotect where led off allows writing to eeprom. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi b/ar= ch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi index 30affedf84d4..21eb91c8609f 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi @@ -21,6 +21,25 @@ fan: pwm-fan { status =3D "okay"; }; =20 + gpio-leds { + compatible =3D "gpio-leds"; + + led_green: led-green { + function =3D LED_FUNCTION_STATUS; + color =3D ; + gpios =3D <&pio 79 GPIO_ACTIVE_HIGH>; + default-state =3D "on"; + }; + + led_blue: led-blue { + function =3D LED_FUNCTION_WPS; + color =3D ; + gpios =3D <&pio 63 GPIO_ACTIVE_HIGH>; + default-state =3D "off"; + }; + }; + + reg_1p8v: regulator-1p8v { compatible =3D "regulator-fixed"; regulator-name =3D "fixed-1.8V"; --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout3.routing.net (mxout3.routing.net [134.0.28.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83670224AF7; Sat, 28 Jun 2025 09:11:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.8 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101863; cv=none; b=aF3FzmVGCtN4IrwjDnd1wOLDpk3oO5sgP4E97jzpbJRixEvKG78qngeMxAjwSimihwXVGVGF9fHKq0/ZkA6FewGO7OtTrvfEhJt3MrBw8Q/+4zURdluMw+Efy/KsUeOkJLnqSp+a1uOHk7l6nd2LBz909smGUigK2QdzWyPpWmU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101863; c=relaxed/simple; bh=P/EOW+pd0YQ7LiMHFX+KMFe53eWNEXq3yNdzkShDgOU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P/M6/WMOeIWtcewSIgF1GGyVl3lcGbUPXozRKclVIjDg+fOuZlQj90RSsKcHcSaSqPfw/w9VcN6c85UZuc03on8i6jdhAnhYfptKCGDyK77ajWXcjl98XtyD5NBBPC+ChUZlGvyzIeNYWWHhpAm7ZG+Lgr2YVEDKUpdEj4NLSFY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=CN8hTQ6F; arc=none smtp.client-ip=134.0.28.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="CN8hTQ6F" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout3.routing.net (Postfix) with ESMTP id 8491461665; Sat, 28 Jun 2025 09:10:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c58atM53j6xJlfjeW4uz3/6gYrG19vaD/Ky2Z6w23+4=; b=CN8hTQ6F2JgD81hp5vRG+KaTQmCq/h5BnDTH2xfxCOyxMXx2MqsRyUxIv93BLL/5So2t8c kW3XrAaJvthnvFP1+dzAxC8SESEyaWq1MVaE4isWSNERCz39runHqQYjMD/7cTY1VThfFZ A4ieKYI9gEkzKXA08pIuR3C25iRMiqo= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 2C47812272D; Sat, 28 Jun 2025 09:10:55 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 13/15] arm64: dts: mediatek: mt7988a-bpi-r4: add aliases for ethernet Date: Sat, 28 Jun 2025 11:10:37 +0200 Message-ID: <20250628091043.57645-14-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add aliases for gmacs to allow bootloader setting mac-adresses. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi b/ar= ch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi index 21eb91c8609f..20073eb4d1bd 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi @@ -8,6 +8,12 @@ #include "mt7988a.dtsi" =20 / { + aliases { + ethernet0 =3D &gmac0; + ethernet1 =3D &gmac1; + ethernet2 =3D &gmac2; + }; + chosen { stdout-path =3D "serial0:115200n8"; }; --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout2.routing.net (mxout2.routing.net [134.0.28.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1E63224B0F; Sat, 28 Jun 2025 09:11:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101863; cv=none; b=T/iTnt6gdL7jHXzrHd/QyVILN12IK74MnWTbc7GILj3tkervXAaFn1XCy+fRF2Tr5Y4r67egDTHEP17d6BpN/PVuqLfgj3EdSkuW1o70XgbI0QLLpLzohd7eu2p0LGB3IoV2iBI2V8VPv8V21uPdvJBrQrKsAtImpmCXyK9V5r0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101863; c=relaxed/simple; bh=6rXB9uhFua0CDavnN2LWnw7HTLqju5HTq/AgWYbkQns=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bDUAGz1DCo9PHHRi3zyDGeLGHzj0uTDbiq+RVpcPr660KIM4i40IO5cFayihC++OMZ4hejZwqE69hPMMoySAJYiZPlH/j/bhlanhWNIHtKxXcKKxV6dJfgr5hp8D4c2Fpt0wk6wLENV1jXMf/9gWcq24WYojl7gquV036QhTReM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=Eh7pU0t5; arc=none smtp.client-ip=134.0.28.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="Eh7pU0t5" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout2.routing.net (Postfix) with ESMTP id F31E66027C; Sat, 28 Jun 2025 09:10:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101856; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Po3wYPbug5oitTRavuGEWn/QaJpRE4HKrgqN22L2B/4=; b=Eh7pU0t5FHKq9kbyDe6rdCXsrNxHDUDtBfNeg35OsKxKSPissuTkDx8OHadarbg25DJ109 4H5+qNXE5s75ocymYon5DHw9IDXFpuElRcCwmhS4dqk2kYImxp1ov9JgsDYzamIkME4/xi FbjsBV0BfWA7W92cpP4PeycMZUiX1TY= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 8B8761226F5; Sat, 28 Jun 2025 09:10:55 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 14/15] arm64: dts: mediatek: mt7988a-bpi-r4: add sfp cages and link to gmac Date: Sat, 28 Jun 2025 11:10:38 +0200 Message-ID: <20250628091043.57645-15-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add SFP cages to Bananapi-R4 board. The 2.5g phy variant only contains the wan-SFP, so add this to common dtsi and the lan-sfp only to the dual-SFP variant. Signed-off-by: Daniel Golle Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- v4: - update 2g5-board (reorder and drop phy-connection-type) - order sfp properties v3: - enable mac with 2.5g phy on r4 phy variant because driver is now mainline --- .../mediatek/mt7988a-bananapi-bpi-r4-2g5.dts | 11 +++++++++++ .../dts/mediatek/mt7988a-bananapi-bpi-r4.dts | 19 +++++++++++++++++++ .../dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi | 19 +++++++++++++++++++ 3 files changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4-2g5.dts b= /arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4-2g5.dts index 53de9c113f60..6f0c81e3fd94 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4-2g5.dts +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4-2g5.dts @@ -9,3 +9,14 @@ / { model =3D "Banana Pi BPI-R4 (1x SFP+, 1x 2.5GbE)"; chassis-type =3D "embedded"; }; + +&gmac1 { + phy =3D <&int_2p5g_phy>; + phy-mode =3D "internal"; + status =3D "okay"; +}; + +&int_2p5g_phy { + pinctrl-0 =3D <&i2p5gbe_led0_pins>; + pinctrl-names =3D "i2p5gbe-led"; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts b/arc= h/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts index 36bd1ef2efab..4b3796ba82e3 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts @@ -8,6 +8,25 @@ / { compatible =3D "bananapi,bpi-r4", "mediatek,mt7988a"; model =3D "Banana Pi BPI-R4 (2x SFP+)"; chassis-type =3D "embedded"; + + /* SFP2 cage (LAN) */ + sfp2: sfp2 { + compatible =3D "sff,sfp"; + i2c-bus =3D <&i2c_sfp2>; + maximum-power-milliwatt =3D <3000>; + + los-gpios =3D <&pio 2 GPIO_ACTIVE_HIGH>; + mod-def0-gpios =3D <&pio 83 GPIO_ACTIVE_LOW>; + rate-select0-gpios =3D <&pio 3 GPIO_ACTIVE_LOW>; + tx-disable-gpios =3D <&pio 0 GPIO_ACTIVE_HIGH>; + tx-fault-gpios =3D <&pio 1 GPIO_ACTIVE_HIGH>; + }; +}; + +&gmac1 { + managed =3D "in-band-status"; + phy-mode =3D "usxgmii"; + sfp =3D <&sfp2>; }; =20 &pca9545 { diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi b/ar= ch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi index 20073eb4d1bd..4d709ee527df 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi @@ -63,6 +63,19 @@ reg_3p3v: regulator-3p3v { regulator-boot-on; regulator-always-on; }; + + /* SFP1 cage (WAN) */ + sfp1: sfp1 { + compatible =3D "sff,sfp"; + i2c-bus =3D <&i2c_sfp1>; + maximum-power-milliwatt =3D <3000>; + + los-gpios =3D <&pio 54 GPIO_ACTIVE_HIGH>; + mod-def0-gpios =3D <&pio 82 GPIO_ACTIVE_LOW>; + rate-select0-gpios =3D <&pio 21 GPIO_ACTIVE_LOW>; + tx-disable-gpios =3D <&pio 70 GPIO_ACTIVE_HIGH>; + tx-fault-gpios =3D <&pio 69 GPIO_ACTIVE_HIGH>; + }; }; =20 &cci { @@ -133,6 +146,12 @@ map-cpu-active-low { }; }; =20 +&gmac2 { + managed =3D "in-band-status"; + phy-mode =3D "usxgmii"; + sfp =3D <&sfp1>; +}; + &i2c0 { pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c0_pins>; --=20 2.43.0 From nobody Wed Oct 8 11:39:41 2025 Received: from mxout1.routing.net (mxout1.routing.net [134.0.28.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5A452253A0; Sat, 28 Jun 2025 09:11:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101864; cv=none; b=XhIaWT7qycSSebmwQUKMtChnW8wbB4+3NKsJOP+uaOChBXKBsPP9ls5ZLXr0xNV8+1s3B+EpALIKEER7OX+MAhneTko7FQQ8yITf/FL8EjxONhKBdjeEaQFSgVihJaIa/HYJGLuTGpk72dBXv6V+lWoeYfDhuMVndFzQo9pzSj8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751101864; c=relaxed/simple; bh=owery2Y9xho1bAvAYoxF0F6uDfB7KsKdTzyV/Nr07xM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=odQqimo6clDhICdUEiuUvXNrzI9pYuF5sVu9dS3KUij4qS59He4BIdPLMaS/K6a3yTWOmeeeYZr4Pp6GYZxsuoHgrOwoKpRP0Uq+aYNb1FBQhE4tJbqVZoqCFr7XRRJF8DWtJTZxxgeQaiupIRlGN7oA9xw8bhsOIUYVEFF+gT4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=r/s3poRq; arc=none smtp.client-ip=134.0.28.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="r/s3poRq" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout1.routing.net (Postfix) with ESMTP id 6597441B9A; Sat, 28 Jun 2025 09:10:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1751101856; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mw75z6h4HeFha6AF7YI1R1VXg23z1dS7Y1C1o8vw7rQ=; b=r/s3poRqq/VChsGtyFgPlDXqq72CLYUbSfojrYIpQDxm+axAk4IYVdvqL65kjsb/WoIQRt ZFIo6bZfqpyao7+yjmEacYygPp80IJuKzIWRvKSHKjcta8uI3rUCW0bRZUwo9OkjOy9Q8V 1NcshjhY4uxuASOq5MabTXLHPmLZN/s= Received: from frank-u24.. (fttx-pool-217.61.150.139.bambit.de [217.61.150.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 0AAB512272D; Sat, 28 Jun 2025 09:10:56 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v6 15/15] arm64: dts: mediatek: mt7988a-bpi-r4: configure switch phys and leds Date: Sat, 28 Jun 2025 11:10:39 +0200 Message-ID: <20250628091043.57645-16-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250628091043.57645-1-linux@fw-web.de> References: <20250628091043.57645-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Assign pinctrl to switch phys and leds. Signed-off-by: Daniel Golle Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- v4: - reorder switch phy(-led) properties v2: - add labels and led-function and include after dropping from soc dtsi --- .../dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi b/ar= ch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi index 4d709ee527df..7c9df606f60d 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi @@ -4,6 +4,7 @@ =20 #include #include +#include =20 #include "mt7988a.dtsi" =20 @@ -152,6 +153,66 @@ &gmac2 { sfp =3D <&sfp1>; }; =20 +&gsw_phy0 { + pinctrl-0 =3D <&gbe0_led0_pins>; + pinctrl-names =3D "gbe-led"; +}; + +&gsw_phy0_led0 { + function =3D LED_FUNCTION_WAN; + color =3D ; + status =3D "okay"; +}; + +&gsw_port0 { + label =3D "wan"; +}; + +&gsw_phy1 { + pinctrl-0 =3D <&gbe1_led0_pins>; + pinctrl-names =3D "gbe-led"; +}; + +&gsw_phy1_led0 { + function =3D LED_FUNCTION_LAN; + color =3D ; + status =3D "okay"; +}; + +&gsw_port1 { + label =3D "lan1"; +}; + +&gsw_phy2 { + pinctrl-0 =3D <&gbe2_led0_pins>; + pinctrl-names =3D "gbe-led"; +}; + +&gsw_phy2_led0 { + function =3D LED_FUNCTION_LAN; + color =3D ; + status =3D "okay"; +}; + +&gsw_port2 { + label =3D "lan2"; +}; + +&gsw_phy3 { + pinctrl-0 =3D <&gbe3_led0_pins>; + pinctrl-names =3D "gbe-led"; +}; + +&gsw_phy3_led0 { + function =3D LED_FUNCTION_LAN; + color =3D ; + status =3D "okay"; +}; + +&gsw_port3 { + label =3D "lan3"; +}; + &i2c0 { pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c0_pins>; --=20 2.43.0