Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1027668rdb; Mon, 19 Feb 2024 01:36:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXgHCb/RPbIdKWRzq0FoWD4jjjnWjNrv4yCVZ6RMCwF7C+UjfqNX0L35T1syOUZGM8YktXrl7woL36pqg1jCxpje5S+RoeZx+G0Zyvfvw== X-Google-Smtp-Source: AGHT+IEgl0PNyr7V1tfGAG27IR+ucfUv6pbNdzY1RXb+YAjpYXsyUAF2fygszbOCCYnwo3t7S1Po X-Received: by 2002:a17:906:eb50:b0:a3e:a856:efae with SMTP id mc16-20020a170906eb5000b00a3ea856efaemr878333ejb.39.1708335404276; Mon, 19 Feb 2024 01:36:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708335404; cv=pass; d=google.com; s=arc-20160816; b=gRtSvpLjdUWjn6XiBp0a4qufr8JJ3/mkhK4JxT1n5G35JwxAVOjr6ofg1dca21VOKt 1hw5JXJmaAvx9flH3Q7UKCsjvwOZNZfBtwrXSH0lGkBFQsIboqiS+iOCeh/UPjsTI1EL K1E4qJ9TNXowyGi/4sRHWscLuDrbnDHlOg3siC82xnT9g797ul74ARZMuyg27+8jii1u 2HeOCw56rc2/xMtKmUMriMo+D7nGy3yj9LBUqhfX6J78JpqJQ9xHwiFDuna6HfD0FTeM LWlurtkQ4vXtye/1cuUnkkurx8ePIkSAnfszz2MN+umZVWMlwF8a6Z/vrqDksogetRCZ mcfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=4oCIXFlkqyeCALzXwK5N/G4IDpZ9xAOp9wrFXq9xNpU=; fh=o4zjno1fvgrGqMFmeHP0MQXTkv35ZFNNGL4ZYYVqkG4=; b=YGWRYP9O4VlPm5ZtWjn7TiK6Zm9Hxr6ASTP5WE/+hcNTgXbzOTqRUoQPbuUk7PNpZX zj/816LF+h603UgLEUF2jq4wwLYuXHXLHP/7QpdR+3N89/VncfCFS5HsyLIjcSZm9+gy FT7hxWaOKJ/ruPjpp3teHHIfVpnnVMi8n/dacyMQ51e5XTfF833VuaChIjrIO+iNCn43 zhnS/AQsdomG20YlSfHJ2toy6uwQjbT/q3S7oAg1sNEw861oJYitOWi4tI8pF3q6v7zT lZX6Jj4tfZqsHiyaPpPhO+g8WGxPUvFKowVDvHa+dk4sol/BUdR3XE2sjiE+wB6Ex3iT P+ew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tuGSa5Pk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71038-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qw12-20020a1709066a0c00b00a3eaca5a768si444957ejc.741.2024.02.19.01.36.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 01:36:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71038-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tuGSa5Pk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71038-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id F22791F21263 for ; Mon, 19 Feb 2024 09:36:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA53F24A19; Mon, 19 Feb 2024 09:36:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tuGSa5Pk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 176432376D; Mon, 19 Feb 2024 09:36:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708335386; cv=none; b=Ixd+TFl50I7qkJrAd45hDj6ycjnFHc5IuOUb6S/30EABOsEebM7YKBSolF5LyK5PuQRwGbi97xvE3ph33fjrFWwrxZrig3xXSKZfqJgL/OoFNItZflIFcRUkIEYyZKkxrhKFTK0haFYF8R8yzSPRCKcpTMBDr0rs4Ux5tcwwbt4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708335386; c=relaxed/simple; bh=JRPmrEv9gjNSe3XKa/1/hoE+552uSlwY7LJEpBHT2NY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qN3PBfzCWOrZy+Lw+JWb7rFjAiCi3fikYK3VVdjPcnE3Sepp3+gIlcXGS3WAKtIROtsozaVTPl/BWLmeTUviFml5A4cdbpNpal1+M12mmwFUv0WqXUKWozk6iJWal/Z+gSLgDRZLCsL6VE1sckUAChCitDJf9ZpfLNEqNZAjbak= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tuGSa5Pk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id B69B1C433C7; Mon, 19 Feb 2024 09:36:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708335385; bh=JRPmrEv9gjNSe3XKa/1/hoE+552uSlwY7LJEpBHT2NY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=tuGSa5PkhnxfWj8GauWyd8CyEDeyka7bRVYv94Xemy74DhPEGCagusutiAM92D3Fg v2PqOQuMCzYLEhYaBspD3NYz4KtMFZPXfCGx8eb3YcnYkcWfJwDixTUH9sgIpYlNEc a1VFrlIXdnwRNyZGtSQsCGzAw80kW6pNIR7IfP9rKl+OrXy3ebl0J/bKmUSpB2J1ub diZv3AD6qkf+CCSFRKRudvj8w1XWUIieabV3fpwa1vpLksgSqUVp6z39UJdV2YkuZs LPs/4+MUHIPW9H13IbA6o2gJSwe7gyWwIlUVVrczIMp9Jm+Ou7oGzUdWw2+Hj7DzwU UcFIu7erN6QmQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A831C48BC3; Mon, 19 Feb 2024 09:36:25 +0000 (UTC) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= via B4 Relay Date: Mon, 19 Feb 2024 12:36:13 +0300 Subject: [PATCH 1/2] arm64: dts: mt7622: add port@5 as CPU port Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240219-for-mediatek-v1-1-7078f23eab82@arinc9.com> References: <20240219-for-mediatek-v1-0-7078f23eab82@arinc9.com> In-Reply-To: <20240219-for-mediatek-v1-0-7078f23eab82@arinc9.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: erkin.bozoglu@xeront.com, mithat.guner@xeront.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?q?Ar=C4=B1n=C3=A7_=C3=9CNAL?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708335384; l=1934; i=arinc.unal@arinc9.com; s=arinc9-patatt; h=from:subject:message-id; bh=Dyf6RoFzaYd8gc3DOMB65qzJ0IGXiSBDbE/B8hL5EUk=; b=GRe/NnYvt1hIheDRqi/7Mopy1KSIqZfbYDKDWSl7bvsU2LCMGywswlvBQ98vQU6C4KmQscnEf wRGauX6MqEMBnFwuS4FzSGyeARFjYw+MJXrvd9qeWyYfrtdh/kcN16B X-Developer-Key: i=arinc.unal@arinc9.com; a=ed25519; pk=VmvgMWwm73yVIrlyJYvGtnXkQJy9CvbaeEqPQO9Z4kA= X-Endpoint-Received: by B4 Relay for arinc.unal@arinc9.com/arinc9-patatt with auth_id=115 X-Original-From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= Reply-To: From: Arınç ÜNAL On Banana Pi BPI-R64 and MediaTek MT7622 RFB1 board, port 5 of the MT7531 switch is connected to the second MAC of the SoC as a CPU port. Add the port and set up the second MAC on the bindings. Signed-off-by: Arınç ÜNAL --- .../boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 12 +++++++++++ arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 24 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts index 850b3e277368..224bb289660c 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts @@ -186,6 +186,18 @@ port@4 { label = "lan3"; }; + port@5 { + reg = <5>; + ethernet = <&gmac1>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + port@6 { reg = <6>; label = "cpu"; diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index 5c26021fc4cf..41629769bdc8 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts @@ -118,6 +118,18 @@ fixed-link { }; }; + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + mdio-bus { #address-cells = <1>; #size-cells = <0>; @@ -156,6 +168,18 @@ port@4 { label = "wan"; }; + port@5 { + reg = <5>; + ethernet = <&gmac1>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + port@6 { reg = <6>; label = "cpu"; -- 2.40.1