Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7523906rwl; Thu, 23 Mar 2023 05:39:18 -0700 (PDT) X-Google-Smtp-Source: AK7set9LhPO8/hfn5MSbOCQQwUgcdJqLYY3Dwe4a4quGjqfzpnvU/aw9DlTsNjlTRSQvfiNB/At+ X-Received: by 2002:a17:906:7c4a:b0:92d:9767:8e0a with SMTP id g10-20020a1709067c4a00b0092d97678e0amr10740979ejp.13.1679575158304; Thu, 23 Mar 2023 05:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679575158; cv=none; d=google.com; s=arc-20160816; b=HNEGWLMKVj7IDj5g1teGTY0ro+UHvIrVEXrigIdR/dOS4riQJ+j2Cy/6ySDSeYWpCs WxmweS2giNdwAS7zDvuixqj44AC66YJfdjUWKN7lR5MWOWly5C3C1zQE8QUg4XlcZYDn xvoXtngoyuDWs4lWaZqXGbFf/q37uV499zNCs8EInDg1vBxdihCvKaz8U4DYZbqMP/z2 CLjODI1Mh9bOX83dVZD43P5lfQ6zq6SSNlKkg4YredguUeBdbLQ7MyuHD1mOXS7C7IjE dB5moOknjt0JKch2UPpQo84gepgRA3BJKv8q5PJPpgSRQj9p5UAPpwiSnDyBF+YKFU0S HobA== 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=eOjM89dV+f1cFPNk0j8IHVhvMB89HUV+FlvJghSUjlQ=; b=PVY9VE0hTzx9eYtP7QHulhETXqCkLzS8L5rz+PtUcr1yUkqqDVf3klYnF3ZqYT1q82 arGnJ8In4EdZ+T4/cNAKhhyZC1alPAOASsEMz4RoDP+rlzXkxnAOyWiXtgurd36W5H3k ceL+9/8kfjS9/BXSaoMfhpxGErrWURc64r4Rlz5wzEptxB7RbgtMIKNqw6yONKmH3K7D dLSDecPZs94hSsRZPqWTFwr7riBB+Qsj7cZAhcUa4Bp/E2x/pQMiZtTGXZIhWftwT7zG gxFlN7gA9pNeGQD4A4B2x+KNyHD6sk0/69hzLe5CwrTO9ZGc6agKf6u6FYH0FH2o9C/N J7YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oDrfA7He; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp17-20020a1709073e1100b0093cd9603fcbsi1825649ejc.721.2023.03.23.05.38.54; Thu, 23 Mar 2023 05:39:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oDrfA7He; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231878AbjCWMiU (ORCPT + 99 others); Thu, 23 Mar 2023 08:38:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbjCWMiQ (ORCPT ); Thu, 23 Mar 2023 08:38:16 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFD9E2210F; Thu, 23 Mar 2023 05:38:15 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id d14so6997804ion.9; Thu, 23 Mar 2023 05:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679575095; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eOjM89dV+f1cFPNk0j8IHVhvMB89HUV+FlvJghSUjlQ=; b=oDrfA7Heo6Vii3zxTD9VbIKYMRnBixv6HAELcEcGLMpFGeAoZH9vdFffAgj20IE0Cm JdyQaJsBpjRACmOt7cGpDQ9ak8eIsM21e+iUUk57AYhfjF8fDHMC975KoxQhH/f61Xsj hINIucw99ESCNrZZ8q/a8tRz/oVzaCa7M8zScJ6G8TCrE/W8HrEpoeO3MDmmlmU0oznQ N3gvJs5hXYStRNmzcJe6H7H7SzuOdrJFLjo1UotAOHRWhfMssbongPqHjFobM4ng+D8Q TWD5xJP7Mry1dHTfJ1XvrW6aOYiDgivIxtISxvfu1VT0uuhv6buQ1GcGLSVy9yaz0zYT eAZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679575095; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eOjM89dV+f1cFPNk0j8IHVhvMB89HUV+FlvJghSUjlQ=; b=GAQy+F9SnBZPXGYIUlwrcbVcJSB8QgroUYbBEBGhiaEeTJg5yth9tAJX5wAdya1/hA oSaC2SqrNAHLkvjT2henAcuxo5TSstsOOtVyH+6wgZTC36RcjJ300xQNFNu38KUyTobc x7MbK3mwIr7FciyuTXvGOO3jgBXCwleT/KqQtvMyzVDtvOZbU2BPwq19uYy87GweHf0n xIo3j5cdnwA8Gsatg1L7AqQm9ffcyWuE7xCuBZipc4c37LcQNQA/kbVjBV18O9GCzTJD GIxx0NOEFLlNSa+Kp0f1LGHb9atyz2ygwvy/I1hsZifps0DZFDQJCT0JJfYZuaUberH0 v/jw== X-Gm-Message-State: AO0yUKWHPOYQf6zqwKzcekdqC5YuUtZKO3anJ6zrv3ypXozQH03nQKoF 31XjznazcvDP4IB6SsKyO3s= X-Received: by 2002:a5d:894b:0:b0:74c:9df4:5c2a with SMTP id b11-20020a5d894b000000b0074c9df45c2amr6030449iot.12.1679575095047; Thu, 23 Mar 2023 05:38:15 -0700 (PDT) Received: from localhost.localdomain (tunnel785484-pt.tunnel.tserv9.chi1.ipv6.he.net. [2001:470:1f10:aed::2]) by smtp.googlemail.com with ESMTPSA id n11-20020a6bed0b000000b00758993500f3sm1307608iog.7.2023.03.23.05.38.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 05:38:14 -0700 (PDT) From: Tianling Shen To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Jagan Teki , Tianling Shen , Andy Yan , Peter Geis , Brian Norris , Chris Morgan , Andrew Lunn , Michael Riesch , Maya Matuszczyk Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] arm64: dts: rockchip: Add FriendlyARM NanoPi R2C Date: Thu, 23 Mar 2023 20:38:05 +0800 Message-Id: <20230323123807.11882-3-cnsztl@gmail.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230323123807.11882-1-cnsztl@gmail.com> References: <20230323123807.11882-1-cnsztl@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 The NanoPi R2C is a minor variant of NanoPi R2S with the on-board NIC chip changed from rtl8211e to yt8521s, and otherwise identical to R2S. Signed-off-by: Tianling Shen --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3328-nanopi-r2c.dts | 40 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2c.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index a315a8117b0f..0bdcddd221f8 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -14,6 +14,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go2-v11.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go3.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-a1.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-evb.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2c.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2s.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-orangepi-r1-plus.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-rock64.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2c.dts b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2c.dts new file mode 100644 index 000000000000..a07a26b944a0 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2c.dts @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright (c) 2021 FriendlyElec Computer Tech. Co., Ltd. + * (http://www.friendlyarm.com) + * + * Copyright (c) 2021-2023 Tianling Shen + */ + +/dts-v1/; +#include "rk3328-nanopi-r2s.dts" + +/ { + model = "FriendlyElec NanoPi R2C"; + compatible = "friendlyarm,nanopi-r2c", "rockchip,rk3328"; +}; + +&gmac2io { + phy-handle = <&yt8521s>; + tx_delay = <0x22>; + rx_delay = <0x12>; + + mdio { + /delete-node/ ethernet-phy@1; + + yt8521s: ethernet-phy@3 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <3>; + + motorcomm,clk-out-frequency-hz = <125000000>; + motorcomm,keep-pll-enabled; + motorcomm,auto-sleep-disabled; + + pinctrl-0 = <ð_phy_reset_pin>; + pinctrl-names = "default"; + reset-assert-us = <10000>; + reset-deassert-us = <50000>; + reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>; + }; + }; +}; -- 2.40.0