From nobody Fri Dec 19 20:12:09 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 F363427AC4D; Fri, 16 May 2025 18:02:08 +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=1747418530; cv=none; b=KDEr3oE/JiD4IzHtQ3NpOGORkaQofYT/3Jm+PVajCHpguUQuKPEK7pFF7B66adUpk11tshhxm+f3qCwAkdR26HX8e6bXJpyUIbG7Qf0T7c9GpYOm3jsVn+C6fV34WiI/sDujCeoo8rTJpjGusmd5yTgrDetKsRdm9Wv+21b1bIM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747418530; c=relaxed/simple; bh=2Q3Lh8RzFPt5G0ZmLhPVEopmeU5KWn/0EC2Iut2Gi+c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WLX4CMMnZzNaIQY+kydZ+iVKzAXerpVR3Cwy1dOPWdPuMohF3SYTs/9P4ZuG+Awpn1AQZdbT44ks+rtQVYzf7diTVw78ppT4rN4oE5neI7RZ+75B94/0/DMUARnqYCqpnNs+8aBLsAFrVTigMu19cfqLoMFyxXKfSUEgJMiqVHU= 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=AEBfa2Dy; 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="AEBfa2Dy" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout4.routing.net (Postfix) with ESMTP id 43CF11007D9; Fri, 16 May 2025 18:02:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1747418520; 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=qDKwXO4W7gl7E+DfM+kKfgbEcodSxNbRXwjNIlU84So=; b=AEBfa2DyrBYvNlT632AR13bSsOAc33Wx8Cos7GJIi9ttjOZe/InxjRTNRBeGNriqggZpMH YqwXfgPdJRoiNYzUUTGyS6HctDezfsouaXCHJH9aO7zD9AEMj7s9UQ1Mh0s+PlHcc+9qfW GqhtOTCOloPflj9RMEknhYZ9jtjcUcg= Received: from frank-u24.. (fttx-pool-157.180.226.139.bambit.de [157.180.226.139]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id E91C71226F2; Fri, 16 May 2025 18:01:59 +0000 (UTC) From: Frank Wunderlich To: Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 14/14] arm64: dts: mediatek: mt7988a-bpi-r4: configure switch phys and leds Date: Fri, 16 May 2025 20:01:45 +0200 Message-ID: <20250516180147.10416-16-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250516180147.10416-1-linux@fw-web.de> References: <20250516180147.10416-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 --- 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 d40c8dbcd18e..9e4ae4c4ea17 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 @@ -126,6 +127,66 @@ &gmac2 { phy-mode =3D "usxgmii"; }; =20 +&gsw_phy0 { + pinctrl-names =3D "gbe-led"; + pinctrl-0 =3D <&gbe0_led0_pins>; +}; + +&gsw_phy0_led0 { + status =3D "okay"; + function =3D LED_FUNCTION_WAN; + color =3D ; +}; + +&gsw_port0 { + label =3D "wan"; +}; + +&gsw_phy1 { + pinctrl-names =3D "gbe-led"; + pinctrl-0 =3D <&gbe1_led0_pins>; +}; + +&gsw_phy1_led0 { + status =3D "okay"; + function =3D LED_FUNCTION_LAN; + color =3D ; +}; + +&gsw_port1 { + label =3D "lan1"; +}; + +&gsw_phy2 { + pinctrl-names =3D "gbe-led"; + pinctrl-0 =3D <&gbe2_led0_pins>; +}; + +&gsw_phy2_led0 { + status =3D "okay"; + function =3D LED_FUNCTION_LAN; + color =3D ; +}; + +&gsw_port2 { + label =3D "lan2"; +}; + +&gsw_phy3 { + pinctrl-names =3D "gbe-led"; + function =3D LED_FUNCTION_LAN; + pinctrl-0 =3D <&gbe3_led0_pins>; +}; + +&gsw_phy3_led0 { + status =3D "okay"; + color =3D ; +}; + +&gsw_port3 { + label =3D "lan3"; +}; + &i2c0 { pinctrl-names =3D "default"; pinctrl-0 =3D <&i2c0_pins>; --=20 2.43.0