Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5374150pxv; Wed, 28 Jul 2021 09:15:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuTgvb6vIORBhF+MxRLsE1axzB1FpwEznp+8HAicXmj4I0GHUk9ztgC3zuN101ENw+9FbB X-Received: by 2002:a05:6e02:50c:: with SMTP id d12mr409714ils.256.1627488906976; Wed, 28 Jul 2021 09:15:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1627488906; cv=pass; d=google.com; s=arc-20160816; b=LzvQmFSgJdFkAm1CCuoVYb7ZoIhDMz380EW4MZmdYFjgVIB1T2R7tu3/CtoeqbWUT/ DQjVseUaSIEmeTtYXQRnBYw3LeAIAgn9uBEtLcsnXeYY33+muiiZQ7eeOkUG2EPhm+ah suzekYyWb06zfQG3hZGlZJR2iG+vErVJvx0l2vgsEZXbAyEK+wk1PBd82QznVXiDLGnh h8qvIYIeyTObLup0+q/aTAjdkxItAAc+IV9JRWTORzIP8Qh2ugDY9sfgfY+aqQxmJ9iB HQssm6ZGeZmdvc4xxjJMjW/2hiaW5g7IlEE+sUP7bYDvfACBlaY7Zrh4EpRV4lwCVl/m PK/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NZsEGH/2QpechhZqBCSFYTYl1I7nPrtHfqwt/0Or2IE=; b=SGNHfOJaOlWvHK3ncCRbIc/zAWPlqhyx1NODf/iFI9Mg5i6b0N+spS6zwxZ/TlU+85 28yJL96ug4iJ1pdb/2zM3s5M9bZBjy/CenFdbIb48Xe0e6iC/y13uyuUI/oxezy+4rxU 2ulGZohc09gXWgZjVTuD20D9tKDJizaKUDtzdNOK2DY/Mmtyd7QecmXy4vZquG/eMpLk YGTSK6c8EXxgNDo/q0+GWZmqhCQbEILNctVF/qne671q7/dW8uAgzSd5QwP/PEhXQZ+E 3SncWAJFMrvdUB3t5V5Jxs6CYY7AXLEBw1+SkzElsg7cxnkhqPSbAnR6ILUuQ5TM7hII Yekg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=2Ct6H2zZ; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si299344iot.9.2021.07.28.09.14.55; Wed, 28 Jul 2021 09:15:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=2Ct6H2zZ; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237488AbhG1QLj (ORCPT + 99 others); Wed, 28 Jul 2021 12:11:39 -0400 Received: from mail-vi1eur05on2062.outbound.protection.outlook.com ([40.107.21.62]:61856 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S237399AbhG1QLd (ORCPT ); Wed, 28 Jul 2021 12:11:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hxY4v8h8YkGDmOBC+OZIH/UKwOXLJo3Yy8H+jV+YgHx4d7ryD9jg2C/09Hq7+xVax7yDqKUN3DSs5VnWEQc492SBNMnFDJJN9K++KRP1vzMqekouzQoTuR83utE6l6C4PhWrgXl3x56C5yt76CH8zZCtqj7zJPIxZIJGHUkxDMo7T+LIubnGmypDOAMuNQ1v1mq5pcB4DyohZekAb9Gr/VHs9hdBzsT/j/v2EnGkDv3h8mE7ZAGXOBCVIa1SpS4+sgR2Pu1Dl/w9o4kT00xDxJCL3c2dA6kIjNwptRWgpR9qNos9Xb3dg0jdkOayx2GGZGue10dwbEqYjfusBD+gMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NZsEGH/2QpechhZqBCSFYTYl1I7nPrtHfqwt/0Or2IE=; b=e0GSb8oQoI3BQtcES1rjTwTOj5rLdmdfG63zaCfpj/93nRxElkZarO5kOXkfpEWfvP29Lzki/+TXialFfnzxNotgjWCgemTMQK0bBnWXf6g2K6lYmm/3Nw16yhX9bK6EmoKaKfFnnFsvbPuW1UNYjCh/mWDbJ723dY1A/T9wzcmzU5wKCDfO74bF/yKEVSYp6eddRm6rBfur7KOTH91w1pgDfOqm37KMHVYWq7UW/3Q6XK9U00pjULsSIxRWcL1/Q9ViGRqlAic7abLF+QUmXk2cbGCoR4/QGLDOu6aKvavClpw7Pkk8NDd6rO3dBwRzYaCmTYj9KPjR1MuUnWsKSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NZsEGH/2QpechhZqBCSFYTYl1I7nPrtHfqwt/0Or2IE=; b=2Ct6H2zZBGP1EMO3yzMviKjhrMUZCDXYaBLT9RuJsiX/SJMDC65CI7+GyClLTefY+XUnd4NDc0a5cRBVmMNBuKoNdgEocNTSOL0tiD4a8YFpigAalRqQpzqQBypj7FSVgqI0ZzU5QClmVXnnupd/JJL8kgQEiXK+cFewcyqUEno= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=wolfvision.net; Received: from DBBPR08MB4523.eurprd08.prod.outlook.com (2603:10a6:10:c8::19) by DB7PR08MB3195.eurprd08.prod.outlook.com (2603:10a6:5:1e::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.28; Wed, 28 Jul 2021 16:11:29 +0000 Received: from DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::ade3:93e2:735c:c10b]) by DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::ade3:93e2:735c:c10b%7]) with mapi id 15.20.4373.019; Wed, 28 Jul 2021 16:11:29 +0000 From: Michael Riesch To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Heiko Stuebner , Liang Chen , Peter Geis , Michael Riesch , Simon Xue Subject: [PATCH 2/2] arm64: dts: rockchip: rk3568-evb1-v10: add ethernet support Date: Wed, 28 Jul 2021 18:10:20 +0200 Message-Id: <20210728161020.3905-3-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210728161020.3905-1-michael.riesch@wolfvision.net> References: <20210728161020.3905-1-michael.riesch@wolfvision.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM6PR0502CA0068.eurprd05.prod.outlook.com (2603:10a6:20b:56::45) To DBBPR08MB4523.eurprd08.prod.outlook.com (2603:10a6:10:c8::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from carlos.wolfvision-at.intra (91.118.163.37) by AM6PR0502CA0068.eurprd05.prod.outlook.com (2603:10a6:20b:56::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Wed, 28 Jul 2021 16:11:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1704915a-3c0f-4668-173a-08d951e25b65 X-MS-TrafficTypeDiagnostic: DB7PR08MB3195: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1002; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EnDId1vHABCYyrwZ008WtT1WxK/Wzcd7eOHxZn4AJ1T1KRHr2jc14xQp+uC6gIt59uh03NMd71gQw7XwBU6Sz/9+Ps5GUJNji2MvBg+uPWDNgCtgxmUFY6uSMVlCnBKyqo6OXip+ucgnlOV85g7hatqjLsAFjjaY1w0WwC6IF1bAAD/MguPxX2joyBxYlOMxZXkNaNh2fgvM289PdSOmWrhDCDVWAejmc9f2i6UH76OlAW/KW3vnIBlkON46ebDZfiNviavVzRQUTn3Ce9kbJmXYV5/JqlfIFVqfPABid3baRrUZNSxlThKFT0Y9GRJ2lvFc2SpYHOQS9wGvVNondHeuu2BwdiZ4J5MtM3iro3U1hySet0BF7JIdsggQZadZDxkSLtwmz6zFh8tK3UfZVqegkQdTt52MqZKAkH0xnFaU2RHnrRZamLGQ5zo4GBd28NnuRwt+LRFCZJ0LcNNGOc9lQzV/oITrTsVOX5K9Uz0B92cr77k0ntMyvNuKUersbz6VD3pmMkGcov1FljSSNsxrWzOfK/aFkGy4Q+Sq5VqusrizPFWluHvflAod1lKkrraluWZKFZE93ZG765+2neaN69qLdsyaqvchlIrjHyxyLJxcjQ92eq8OeuG1hut+wzw3XNfwJ9usgybZlLjVmwnb2BM3YwUg/jyMq4uATTlGXw6Ukk7rkJIOaIWNya5wV8vSun/h8vRxXGU88FjXRw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DBBPR08MB4523.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(346002)(136003)(396003)(39840400004)(376002)(86362001)(6506007)(66476007)(66946007)(8676002)(186003)(6512007)(5660300002)(8936002)(6486002)(36756003)(316002)(26005)(4326008)(83380400001)(2906002)(52116002)(6666004)(54906003)(38100700002)(478600001)(1076003)(44832011)(956004)(66556008)(2616005)(38350700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Il05wt0odPRHxt4IoKoR3pN9hlpXhR9DFad+LCgCD0Aho1dbyJJ0lkP1/G9h?= =?us-ascii?Q?IE8QhpQ+0SwCcgHl+RSPWZi4VX3u9jpBCCn/mK29YID/9i4QUQvm4nCafy/4?= =?us-ascii?Q?3geFgmBaJU3gBvy63Radu7uShA9Gj7Y0B8E8q5WrKiOIJR/zzsbAxxY+EKY4?= =?us-ascii?Q?srlFg2018FEgKO2XJwCiBPrV80XU8qdAZv8MypPQkzyYUIlzZG8rQE2b3QZZ?= =?us-ascii?Q?sR5YpNEIfwaLvH4fWQMittooIGOg3AL3uBGrjEZIdu6No3t3AIf7YasUSIvw?= =?us-ascii?Q?GxSqVU/OeQKpliRSdfm6sye+TXpr+nDj1glmKUyWuEbBOUOLejiUjJEcN2Lr?= =?us-ascii?Q?ovdQ1iQ6n0lj2iSMHK85yPZ+89QoHlZqQiWxohKUfbaNikC/ovsgNXWtuq5t?= =?us-ascii?Q?y3VhZ60SRrHuYuYm2y3AzG2IfmUoHn2vjR+7ixymWeSrIqy2iOI5jAaCn/FC?= =?us-ascii?Q?kM21qQc+/ay5P7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ossTenant-Network-Message-Id: 1704915a-3c0f-4668-173a-08d951e25b65 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2021 16:11:28.8955 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: D88v5gPUR2DG7GCUmSTAWNmIeY+pDi0TduQqe53WqSDPuRQcculmxM1T2X15dOoRCcZWV04VTKZjnyZAGVTDEIeGh55sb7z2oCKU1SzGjbI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3195 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Michael Riesch --- .../boot/dts/rockchip/rk3568-evb1-v10.dts | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts index 69786557093d..8f4c40d71914 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts @@ -13,6 +13,11 @@ model = "Rockchip RK3568 EVB1 DDR4 V10 Board"; compatible = "rockchip,rk3568-evb1-v10", "rockchip,rk3568"; + aliases { + ethernet0 = &gmac0; + ethernet1 = &gmac1; + }; + chosen: chosen { stdout-path = "serial2:1500000n8"; }; @@ -67,6 +72,70 @@ }; }; +&gmac0 { + phy-mode = "rgmii"; + clock_in_out = "output"; + + assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>; + assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>; + assigned-clock-rates = <0>, <125000000>; + + pinctrl-names = "default"; + pinctrl-0 = <&gmac0_miim + &gmac0_tx_bus2 + &gmac0_rx_bus2 + &gmac0_rgmii_clk + &gmac0_rgmii_bus>; + + tx_delay = <0x3c>; + rx_delay = <0x2f>; + + phy-handle = <&rgmii_phy0>; + status = "okay"; +}; + +&gmac1 { + phy-mode = "rgmii"; + clock_in_out = "output"; + + assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; + assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>; + assigned-clock-rates = <0>, <125000000>; + + pinctrl-names = "default"; + pinctrl-0 = <&gmac1m1_miim + &gmac1m1_tx_bus2 + &gmac1m1_rx_bus2 + &gmac1m1_rgmii_clk + &gmac1m1_rgmii_bus>; + + tx_delay = <0x4f>; + rx_delay = <0x26>; + + phy-handle = <&rgmii_phy1>; + status = "okay"; +}; + +&mdio0 { + rgmii_phy0: phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reset-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>; + reset-assert-us = <20000>; + reset-deassert-us = <100000>; + reg = <0x0>; + }; +}; + +&mdio1 { + rgmii_phy1: phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reset-gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_LOW>; + reset-assert-us = <20000>; + reset-deassert-us = <100000>; + reg = <0x0>; + }; +}; + &sdhci { bus-width = <8>; max-frequency = <200000000>; -- 2.20.1