Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5953670pxv; Thu, 29 Jul 2021 02:42:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPSKkQQ8hQnR3lzGzgr05xvQk+07oLp8DnJ6E9gg65OWSp+pmoj2Q/2SWSAu0VDsxmmjCX X-Received: by 2002:a92:d78a:: with SMTP id d10mr3039666iln.303.1627551725811; Thu, 29 Jul 2021 02:42:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1627551725; cv=pass; d=google.com; s=arc-20160816; b=PH4Gwl2ZhMxxH3M0K6bXOHtxjUa4umTSIVd6HbM1eKRqivzJ3Vib8Z1AVOpuZjMz1V iTEjjBu7csBEfbS2cH9A35Of8q61bW6ZKMtlvJQvdZ+hzvo1fgtp10ds8ErV58UaNTtk ofkrEPa2k5gJqIm1L9Zs5sctH2T2bWG/oZyYKTNKjA0+/u23kfYcbKIjZ4bOQTJXXNaL ms3bgM3pqRAke6/Y0YqnSgeQKryRIqGFGI4/fRNfP/gNOnrVVMQF7tlDtLbBd0KEG3Mq MUJwULmvPHYuwd1lvT3CWBA6RRjeGUVTF53js+PgVKoWGMTHkprZFE5J/CtZw8hn3SaL HP1Q== 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=NDIuIB38PU4xC2xgQoi/K9TO4SYXZkiu0tudwsbcRAc=; b=cUuKW5GIbAkjujf6BO/mxpNkd1JT3WCs4iWCDS8olLrZ9fliADnsFFUOEU2HgyvMRW 85m+EJoizs3QKVSbEKLfxoi2aO/vJyeyIVX0OC0F+F+ye9kWP10wSJ7vwoAp557cBDo/ 9P8QHM9Jy1PNhiUrkOisq+8uHa/OwntisSL0iPqJGm6r9dclJYebzOnIP1eW3Cce3TjY F/AG1eC28C/42/Y+vbQGAu3wv2cVINcNsqD98NoD4lRQaFqsgaIhklgK9ZnaKysNw5z4 9oIUB0CTb9GADfiw4lDhZ2Kh3JBWk1sMqh86nO/ws39QgFdEg//Lk926trKLPczdWRjF rY+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=Z7jNEjuV; 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 j17si2711556jaj.70.2021.07.29.02.41.54; Thu, 29 Jul 2021 02:42:05 -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=Z7jNEjuV; 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 S236197AbhG2Jj6 (ORCPT + 99 others); Thu, 29 Jul 2021 05:39:58 -0400 Received: from mail-eopbgr130052.outbound.protection.outlook.com ([40.107.13.52]:57577 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236177AbhG2Jjx (ORCPT ); Thu, 29 Jul 2021 05:39:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kFRoZ74VUwbdIEcLuYB9BDKiKA0EutbCvxjgUVb9UvfrD3OUwEzAIumRlpMDN5UQqTRHmbMv9mNwM7nbNqgbBHpqqxASMMslBG/p9PUpIpi8it+XuCh+oH6n8amqc3nIivYviKtoEEvQ8bF6BsholoEFk7fcAIcPvaPVeQ1cCKmmyn5LgXGzxyIPeANkEmxdMI8iv16DXCqcThu6tp0mbhivyK/r/Mhw6xM/uYIEHuw9bgI2P37SB2gD4UrWjU0LegeXLVr62cibIwcxtd3u07HnZbjllfwpIMTvlHhr1rQmC0Tvh5B9D7THv8TyMRtBoa1rxHsXdjbixxmyiUAGHg== 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=NDIuIB38PU4xC2xgQoi/K9TO4SYXZkiu0tudwsbcRAc=; b=bXnhoVLpTRZO4CkdRD/TN0A8ar4R4kOiX45WvBEp17doUB6eLYVtUfp1quethvPWJfn191N3prGBnd/dMDCPUtGToCWm63jhdpMNdeyvX6koZyjYSKoqt/Iuw5T3tMJUunJsuuTocLIlLRTR24C9AfyOqdWA/PQxdiQkU9AN4PfW2qNpoQbuz46Bo2o+bLEHD0s42X/Zi6mTvlApXBAH8eTXYRreE5Qcvu92Xg0aMVoyOTUYczMA8EDliSENiX4+jaTf3Mtlm2UfQdFbamRnSPj0nDUSNFgq2/Mfk0OXEkXfdOQ/GoJOYcfxn1oXsaUbQ8cp3ae1Gv/QM5DI6vi3fw== 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=NDIuIB38PU4xC2xgQoi/K9TO4SYXZkiu0tudwsbcRAc=; b=Z7jNEjuVkCeK+C5lU+j3YX5qnHmz0mNk/hNYCYNpMtfrKX0oWR8S0yifopJNe3AC3irTkkxPtjNoL9oOI0+kVpmEeov/8aB/7j7xEWSMJk/X9MCzlxrAqDRVMIBO4ZLnvK//OydNxlkz3wEwcnPOrEsOYfuhNnVHJ3rUsDuX0zY= 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 DB7PR08MB3548.eurprd08.prod.outlook.com (2603:10a6:10:4d::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.31; Thu, 29 Jul 2021 09:39:48 +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; Thu, 29 Jul 2021 09:39:48 +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 v2 1/2] arm64: dts: rockchip: add gmac0 node to rk3568 Date: Thu, 29 Jul 2021 11:39:12 +0200 Message-Id: <20210729093913.8917-2-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210729093913.8917-1-michael.riesch@wolfvision.net> References: <20210729093913.8917-1-michael.riesch@wolfvision.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM5PR0701CA0018.eurprd07.prod.outlook.com (2603:10a6:203:51::28) 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 AM5PR0701CA0018.eurprd07.prod.outlook.com (2603:10a6:203:51::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.6 via Frontend Transport; Thu, 29 Jul 2021 09:39:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 14d2362b-2413-42b1-6911-08d95274cea4 X-MS-TrafficTypeDiagnostic: DB7PR08MB3548: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1303; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7mfO8RgoySFi66Vx11+4N1cduQ49X6AMtYKTMCLXo55ace04h6iyAvMwMk/OfNRpf7gZMMzqYaWubuT/a9F1HRlE2dRa6Ml3jTzlTHbbPPGSi/0SUUgjksSjwbGSDggRLZo07WLqa58zft56SqeNbLooyjYT3ZjmUCxGpi1U8kNtEfqk2hjNErfHpY0cPiocWrtnNDwGwIWrpD2nZ+kqaWfTJAeRB42PIy8l4xU4wLpZxxgSWe2lZFwh4hmDvP7lUTvQUaOBdhiJQJREDZWqLpgcRP8RiWPRpK6fN07k2E7JECu+uCPLBJ3jDP5LiRKXEpWMauru7Ep+MdgoVnEzOc2/dKFxK89J6UIBftO8qiW780mn01GevYypa7EIm6JnTVwzMSz4Vy0FcFZIqfPYsmTRmHISV8D73Kr5+g/iA20C5bmkUrV7WGipWmcPPFvXf2dCzMaRs/ZSyn95iivaYO3H21pQG/izzjhBEnPamx1hb0DZHwrtk9ALy1PyvTBX+e4AylBs6YyeDFxObzDFdWNFEF796ZuKls3bsHLxZBP9u0XPFv9G4ijPKgOPoh4VPClFLw45eZnsAuxULFxxdKe0UD1D/thrEbjRA7ld/glTW21VvdVaYKkLSOueYnBk81hRu/DUjInfKTq9RfOQFN+pJGXmDvirvzhP1akPCfty/nUBqErSYqpxZp99qMGlFD3xPYjYGx/ZtN264L6JGA== 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)(396003)(39840400004)(366004)(346002)(136003)(376002)(8676002)(52116002)(5660300002)(26005)(2616005)(44832011)(316002)(6506007)(54906003)(66946007)(6666004)(66476007)(2906002)(186003)(478600001)(36756003)(6486002)(38350700002)(1076003)(38100700002)(83380400001)(8936002)(956004)(86362001)(66556008)(6512007)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?wB3m3CMmyIawFL9Z+NThqrYO/g/9QH2X2nMVblQDwcPhuBEdCBiDXjogE7H+?= =?us-ascii?Q?/Q0OCBxQ29g6qYyYFdfv3zaXB7nrou2vL0Xrr4+Ec+0+xsNEzE3O5XLC4FB0?= =?us-ascii?Q?zDKP25tVxQVk+41MHYPtd+Umjd73eLfgQ5oeEnvlb9zlqd1qicendfyaoUVO?= =?us-ascii?Q?FesNIaJcaNjbY9Rkpwbe8hTciCPdGb0UdbYgRICempJbtAcwhIUbBmapeb1D?= =?us-ascii?Q?RCQlw1rvRhMRG3Nq3yio6aFcoC9EpCoS/iyKUUTUNqh4snki78079yzi0gPZ?= =?us-ascii?Q?FkTMklP9BSOehCXBnmQXpakLoElaUjx3nuyBJU5h/U7edA3bSvo9hlNnB61I?= =?us-ascii?Q?SsyJ6CKGwBaLzq4c7uOgBAO6Td9ObLGi4JJoQ76GO5/qBUxwX1UOOjZPlA+U?= =?us-ascii?Q?Y8LUqYcUe7DCJS02kIJctKWFRZMs2JyMYWjy5UuqGvQvO/Es+3AzhX0ahdsm?= =?us-ascii?Q?J+HTtY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.net X-MS-Exchange-CrossTenant-Network-Message-Id: 14d2362b-2413-42b1-6911-08d95274cea4 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2021 09:39:48.7600 (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: 1olO8a2u9xwKJucqZPsSl/8JJK+X4eNF1jPyyLaQtHhP93aOCVeSqziLAPHiOLCTjna7RIThMUR/uXqzMdlJ/aAU3vT3pKh9/5opUiRAjDU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3548 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While both RK3566 and RK3568 feature the gmac1 node, the gmac0 node is exclusive to the RK3568. Signed-off-by: Michael Riesch --- v2: - sort properties alphabetically arch/arm64/boot/dts/rockchip/rk3568.dtsi | 49 ++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568.dtsi b/arch/arm64/boot/dts/rockchip/rk3568.dtsi index da01a59f6f26..2fd313a295f8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi @@ -22,6 +22,55 @@ compatible = "rockchip,rk3568-qos", "syscon"; reg = <0x0 0xfe190200 0x0 0x20>; }; + + gmac0: ethernet@fe2a0000 { + compatible = "rockchip,rk3568-gmac", "snps,dwmac-4.20a"; + reg = <0x0 0xfe2a0000 0x0 0x10000>; + interrupts = , + ; + interrupt-names = "macirq", "eth_wake_irq"; + clocks = <&cru SCLK_GMAC0>, <&cru SCLK_GMAC0_RX_TX>, + <&cru SCLK_GMAC0_RX_TX>, <&cru CLK_MAC0_REFOUT>, + <&cru ACLK_GMAC0>, <&cru PCLK_GMAC0>, + <&cru SCLK_GMAC0_RX_TX>, <&cru CLK_GMAC0_PTP_REF>, + <&cru PCLK_XPCS>; + clock-names = "stmmaceth", "mac_clk_rx", + "mac_clk_tx", "clk_mac_refout", + "aclk_mac", "pclk_mac", + "clk_mac_speed", "ptp_ref", + "pclk_xpcs"; + resets = <&cru SRST_A_GMAC0>; + reset-names = "stmmaceth"; + rockchip,grf = <&grf>; + snps,axi-config = <&gmac0_stmmac_axi_setup>; + snps,mixed-burst; + snps,mtl-rx-config = <&gmac0_mtl_rx_setup>; + snps,mtl-tx-config = <&gmac0_mtl_tx_setup>; + snps,tso; + status = "disabled"; + + mdio0: mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <0x1>; + #size-cells = <0x0>; + }; + + gmac0_stmmac_axi_setup: stmmac-axi-config { + snps,blen = <0 0 0 0 16 8 4>; + snps,rd_osr_lmt = <8>; + snps,wr_osr_lmt = <4>; + }; + + gmac0_mtl_rx_setup: rx-queues-config { + snps,rx-queues-to-use = <1>; + queue0 {}; + }; + + gmac0_mtl_tx_setup: tx-queues-config { + snps,tx-queues-to-use = <1>; + queue0 {}; + }; + }; }; &cpu0_opp_table { -- 2.20.1