Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp178460iob; Mon, 2 May 2022 16:23:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2YdHS691QgvfiGK9h/AlfgKllzaHJ/J/mO2XhH8zgPLBDj45LmvuieNC2Bf688L4ZizoL X-Received: by 2002:a17:90b:3b42:b0:1dc:5cdf:5649 with SMTP id ot2-20020a17090b3b4200b001dc5cdf5649mr1619338pjb.239.1651533801492; Mon, 02 May 2022 16:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651533801; cv=none; d=google.com; s=arc-20160816; b=XqlRhDmU1qAq2pQgZ/KLgOfEDgfDCxej9R+lS0A60/JrM4NXyxbaywD4iFz6Awddjs 6QiX37USxkb5AKGabuVgVCSUPcMBwJuVnHVMtWn+K1u9wSyAB7m7EWjE0Zpa2HwJITv2 n7/xlWG5Taq8R+f+qclExSgoX8l0srmKB2yiXM18p85WBySO/hYxOW4dOz0l3JXq3TkI 2NkoBd1EN4leUOdw+Ttn3245iJ2hBfkPsT4LiPyNeUS/BA/zT3CRIeC/8sh0PwNJds1M nDiAJ74G0EUtWKEAysrxlCSFyi7IySODfA/CHMXspiYJDQtiQaQdhyEaJIEydzQ4a3hW TT2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GM+Ycw7JRJshz1Q3+FfKqWy+7YsZfps4DWp8/f6DDDU=; b=DvNDgaUUx7M4ANv5TG5T2+ImsIqP7jA4hhF8K8xmNTlQFYdLdO4XoigzhIBxvMsDXi 5K9mm+EwbWa8mdCG1LFhVMYFZKMvsZuda2gG1zO1ViR4vJUIAoRqJ75dl5/VXdZ7A1K6 VMz+EDStsoQ+7gZaHjdupQwAYhachDYvKly3iaXM3+HjDVObF1SLH3bturRmTOIjPZMk /eJSi2TuR5J1A1PS0OK89JD+cnZdPgiI7daklt9BvcEQafDKWLg+AYDIROeY3W99cYRF wIXkKSdf4MIBoQ0rBYvcG34KAAAWEwIZOJ9L19NrkNXimg8BycLiWwK828ty0nTRsaIQ a1SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=sRdOBjR7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q21-20020a056a00151500b0050d49448114si15666264pfu.286.2022.05.02.16.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:23:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=sRdOBjR7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DE9C82A718; Mon, 2 May 2022 16:23:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235871AbiD3NHn (ORCPT + 99 others); Sat, 30 Apr 2022 09:07:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382613AbiD3NH1 (ORCPT ); Sat, 30 Apr 2022 09:07:27 -0400 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04EA68073A; Sat, 30 Apr 2022 06:04:05 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout3.routing.net (Postfix) with ESMTP id 68D7D6055D; Sat, 30 Apr 2022 13:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1651323844; 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=GM+Ycw7JRJshz1Q3+FfKqWy+7YsZfps4DWp8/f6DDDU=; b=sRdOBjR79U2mq4SlifVo7D5lyfwMR/dMKdi2Y+psuLjwplZLj70t0owsYXoSA2JNBj+DH8 6/5jcSrWLKGZzRwxT0KZTQqb5iu+Wi0hzfPXbRfzMDS3yWQgHUGF777Ms51i0dKTu323Rj N3feSlovKyQXY7pfn5JHQlwAxFeUDDk= Received: from localhost.localdomain (fttx-pool-80.245.72.211.bambit.de [80.245.72.211]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 4ACE4360076; Sat, 30 Apr 2022 13:04:03 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Matthias Brugger , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [RFC v2 4/4] arm64: dts: rockchip: Add mt7531 dsa node to BPI-R2-Pro board Date: Sat, 30 Apr 2022 15:03:47 +0200 Message-Id: <20220430130347.15190-5-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220430130347.15190-1-linux@fw-web.de> References: <20220430130347.15190-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: f08159d2-4b69-4f0e-9e3d-d03ff0a7a758 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Wunderlich Add Device Tree node for mt7531 switch connected to gmac0. Signed-off-by: Frank Wunderlich --- v2: - drop status=disabled --- .../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts index ed2f2bd9a016..f0ffbe818170 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts @@ -437,6 +437,54 @@ &i2c5 { status = "disabled"; }; +&mdio0 { + #address-cells = <1>; + #size-cells = <0>; + + switch@0 { + compatible = "mediatek,mt7531"; + reg = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + label = "lan0"; + }; + + port@2 { + reg = <2>; + label = "lan1"; + }; + + port@3 { + reg = <3>; + label = "lan2"; + }; + + port@4 { + reg = <4>; + label = "lan3"; + }; + + port@5 { + reg = <5>; + label = "cpu"; + ethernet = <&gmac0>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + }; + }; +}; + &mdio1 { rgmii_phy1: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; -- 2.25.1