From patchwork Sat Mar 25 07:40:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tianling Shen X-Patchwork-Id: 13187660 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BCF0BC6FD1F for ; Sat, 25 Mar 2023 07:41:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YwQTfpUSVzhFyfTudekp0EAU5fdetxPElM0Bfb7IynE=; b=CvteUOTyPYhuqv hBX9nCSBx02Zgra5dmHqgpTlQP8R0RWgp4Hk99E9pJiP0DOLaWCZq5M2O4lxDWylvnad+aGBPLG43 S+t7ORGe5cPN1KTt7lqwZgU7sLcsfeav2+DqonZOzmDipNPwsNBIu/OfWfF9SfTesDy34szvbDSp+ oxqi4MMPwrCdCeIhCKYCBMSm/RC1XDIckka+dzQt0mtC1KkAaeGAN8kZiZJGlgnrxRJ/H1pIVVBh0 P9wco7uQvHifvlLpxwFU+mFKl2SwAsPH7bXYW5aq1mFVKxX+Af9vhzqDcRKqQUjkgjzGS3skiO+oW GQSIy4VzSnYHrruonGMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfyVt-006NSR-2q; Sat, 25 Mar 2023 07:40:33 +0000 Received: from mail-yb1-xb2c.google.com ([2607:f8b0:4864:20::b2c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfyVp-006NPy-0a; Sat, 25 Mar 2023 07:40:30 +0000 Received: by mail-yb1-xb2c.google.com with SMTP id p204so4811609ybc.12; Sat, 25 Mar 2023 00:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679730027; 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=D1IG/1kt/Y9xOco97EKexl0aCGg2ZwXOiS8z/jOTAxY=; b=Kz0NMsvL2drzYhlbOpIYQko84qzIPh50R3MnkyFwgpmKIZYC/qhaEfGlUvpvuo0QOa ioa9An4lUFoK/TKLMjdtTEUCbUSu1tSMAPZgdIkTGzl5HjT2kjsoq8jbBqgVOIuI+r7B BILKd0YJNGKZz1+Kgs8+XUg3jpdfvEHrz10nZ/5y9o5nYU1NGAN/ennW8iOxEUNEldnQ 8A13u5NTVHfrmElL0XlIXVGt3sY1xGC0Ne3mJUWg0wpNCkOwMORFJslOxHSrTk5TvXoR rjF1W1/WCMELRu1aOglHKPLVvYawenn5psnyZcZM9mNNt0yfwofmejrpXyYxXzIOoWKX Ff9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679730027; 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=D1IG/1kt/Y9xOco97EKexl0aCGg2ZwXOiS8z/jOTAxY=; b=BtckqTlozIim+IhydCliajndM+JjJL86Ur0NHzB0vi9Jf7nQqN590sqgqLWa+XknYp jtySnK/bDamiP8qszOSSnMGtyzwjSh5ldxjH+EAWrMlqtttiB+dLfxmbwgBpXFlrpWis 2Yeosz1f19LDyA+EnclTzk9UCnZd74tYFHB0ePc7GEixm/Smhajgg/uJxtUid41iWZld Wc8eW8UDYy4KfDY+P+FWas3QvDb3khqNInMy9uFAfjOy7FmeOK/RKu6hfDW5JVRjs5W5 gR8U11jErUeFoIplbLY9l0EKm14b5NGlzxjK97+r9dx/MMYwFFLUb8eRtq8Tc7zsokIg 1f6w== X-Gm-Message-State: AAQBX9cSes55219tAVWTvYvmBBQ1Bvoj6+bFxLZ5u3ksCnzH8/bpz+4X cS12qgRJqTz1yrKzlBijxFc= X-Google-Smtp-Source: AKy350YKtqc4xm5jVoKtAYVD+vHoIATs1mebKljtVf7DqcKBmtWTngWkLrUevKxUeU2bpI+I742aqQ== X-Received: by 2002:a25:db4b:0:b0:b6a:51c9:d7ba with SMTP id g72-20020a25db4b000000b00b6a51c9d7bamr4845123ybf.20.1679730027579; Sat, 25 Mar 2023 00:40:27 -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 w20-20020a25c714000000b00b7767ca7498sm969629ybe.53.2023.03.25.00.40.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Mar 2023 00:40:27 -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 , Vincent Legoll Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: Add doc for FriendlyARM NanoPi R2C Date: Sat, 25 Mar 2023 15:40:19 +0800 Message-Id: <20230325074022.9818-2-cnsztl@gmail.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230325074022.9818-1-cnsztl@gmail.com> References: <20230325074022.9818-1-cnsztl@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230325_004029_220459_4B8FE84D X-CRM114-Status: GOOD ( 10.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add devicetree binding documentation for the FriendlyARM NanoPi R2C. Signed-off-by: Tianling Shen Acked-by: Krzysztof Kozlowski Reviewed-by: Jagan Teki --- Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index 6f4270f2bd9e..883c9d36e4e5 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -185,9 +185,11 @@ properties: - const: firefly,rk3566-roc-pc - const: rockchip,rk3566 - - description: FriendlyElec NanoPi R2S + - description: FriendlyElec NanoPi R2 series boards items: - - const: friendlyarm,nanopi-r2s + - enum: + - friendlyarm,nanopi-r2c + - friendlyarm,nanopi-r2s - const: rockchip,rk3328 - description: FriendlyElec NanoPi4 series boards From patchwork Sat Mar 25 07:40:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tianling Shen X-Patchwork-Id: 13187661 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E15D9C6FD1C for ; Sat, 25 Mar 2023 07:41:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JCjXe38M8Z0JSVMKtPlbA9QRazPK3ACi7eXmFyZICDo=; b=BsMM0XiO53TpAS /oJ+2RMUz2wUu97NPYcJ3hckdnP45wnYHTV6s9RO5eKMnSw02jeaC6IFVS5crKS+a4VHjfDKqFJsA HXKmK1W3meL5BY/khiFby+PIoToQbz2CFnWa/F/qzuvV8307RWm7VMRHwHRf8PEFMAuU0+mNx1AaA SDw3jaVNT+g8O+1ZS4TuDjSJF8zh2BDMIRiI1oMxqZYruUPBeNks5wkjdLqiQTNCN4wfEneaSyTLj 9obrWik3DT4+cO+UMKpmSWCEfNkQ3Q4GQUrcVFZO4LhxZ63usVxFKnFQKj5SR9Xcfxjr2usgv7M9n dw/EE5uqKHfkMfxSutCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfyW0-006NUs-1S; Sat, 25 Mar 2023 07:40:40 +0000 Received: from mail-yb1-xb2d.google.com ([2607:f8b0:4864:20::b2d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfyVq-006NQV-0p; Sat, 25 Mar 2023 07:40:31 +0000 Received: by mail-yb1-xb2d.google.com with SMTP id i7so4899100ybt.0; Sat, 25 Mar 2023 00:40:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679730029; 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=gfRyBqIuHNtuwisQ4ZSxroEKvFZoJbr3nas9/f7xD74gwOPMMD6Xvf204czxNB20Xv Tja2SvkYzR002rDfUvE94qoNlZHiXFXwhvWjfEq+GhEuMMGjF4F9zkWCFPK4Teyia7Z+ xOSa9ujsTkL0zAKj2i1lrWLeyD9Ai6nCsXHH85j3FdQXMah0lY45iFdRdSjxnyy69Jkm fUN2TTiJnCLmnzIeSbGwPZHJdlbsbllJNDqH5zRL0ID4Oq690uz2L6vt/VNOB+cvvXei SoM3x1UgGz8/2F7+Ju8oj1P+zfqELz43wzXZEHCUwjPsGp9cDqJM811Nx48yUNtbStrd yV1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679730029; 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=mlkZevFP/gZLIlupUXXindyfZRDs54s9LiuQf6nFuP9hZ+LR8/HaxjjlJw+RW7Hb/F daLATEpm8+XwoD/PPVDy3SOHqGHBkEfSqqvsAMuNXIMNjwf4HOrgm6paSq0wUIpsHaVa PsT+bfgnKqoGy0vJmglOT807HSGnLiYCCkgxzEYMBLJkV/4HR5CaPvy60kZI0A1NzzXg aqVN9wIDFU+rPLv9ecxvp2/whkXKFbXuClz37QngU4q2jV65UaTzyvjcIaveWiXyRg8h tkIu4jLJNd1qspsjftkQCOGyNGfTde8uGLEKXEfQlJtmhVaURNr7BCM5z9RuB4v14K4U tDSA== X-Gm-Message-State: AAQBX9dxivwy2b0rwlllELNk9hBCwhXoCZWjIp+PdQXyzxDoJDbSgfz1 THuo6VTPt9sn2SztOB10Kgo= X-Google-Smtp-Source: AKy350bKgQHX0o/LdQ5YecW3frRWq3nWQ5rIjUiyBiF+dynqiC4j/ODd0gT0jo7b766gNsbVe/fwHQ== X-Received: by 2002:a05:6902:154f:b0:b72:571d:f6cc with SMTP id r15-20020a056902154f00b00b72571df6ccmr926484ybu.4.1679730028858; Sat, 25 Mar 2023 00:40:28 -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 w20-20020a25c714000000b00b7767ca7498sm969629ybe.53.2023.03.25.00.40.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Mar 2023 00:40:28 -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 , Vincent Legoll Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] arm64: dts: rockchip: Add FriendlyARM NanoPi R2C Date: Sat, 25 Mar 2023 15:40:20 +0800 Message-Id: <20230325074022.9818-3-cnsztl@gmail.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230325074022.9818-1-cnsztl@gmail.com> References: <20230325074022.9818-1-cnsztl@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230325_004030_291264_A990CB79 X-CRM114-Status: GOOD ( 14.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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>; + }; + }; +}; From patchwork Sat Mar 25 07:40:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tianling Shen X-Patchwork-Id: 13187663 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D5613C6FD1F for ; Sat, 25 Mar 2023 07:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YS1nWyykd84Dc2ErxKy4IQzccqFhJc8YSBUQxOoWJSc=; b=P6boYdpQ1mTkPs ANtcWs8teb7eR7zi36q6U3XQb674lDT2RFrknzfEKG5Q5uaxDWN5/0CfxtXjZdPd997+z0eXHrHvL ofrMcrHbzBQh0fsahHp06G7zSAZOFgizquQviH5ncMCXD6hYm/uRD+hV1vAjxZ+mvY4eis++PZARL ekt4cHnBrMv5RLFWlY6bKt9tkWBNnguEXOP++bUW80cuHsSn1GjMx3eZm/+TxVqHipCICviFtyZuQ NNxBbDq1hr6z+Du9OzsReDwUBA4SpJ57C54T4qtdisk80ceqa8kmFwWB8s453eJT5XQC0d4UEy0Hx lzZCySimx6QKLh2Ftorw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfyW8-006NXu-20; Sat, 25 Mar 2023 07:40:48 +0000 Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfyVr-006NR8-2N; Sat, 25 Mar 2023 07:40:32 +0000 Received: by mail-yb1-xb2e.google.com with SMTP id n125so4839761ybg.7; Sat, 25 Mar 2023 00:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679730030; 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=NDcKlqWwiEbWvCmMV2E4cuAQ9yjvAR7tqhw3SRJQR8k=; b=crEbB+pY9dKKXfQv7fH96zxQmt61orUCbhj9tj/PwU8VAC0TPct9ZdHu6ln60ksrC/ zAAw/C+DRnkA7+M+MRK0A5tb2G5h9WafLQN1pk+5camCgkgCBnTQ1evk4yJjA28+t0gz ylLcJI0kQwCU7FyK0RC5i69oH5MsY5x2+DE5gNWxTsSvoXwXOjtR7gLk1HhHyXfo3YHC DZu/lsItu36xKdGy6Sj4zDWrIjCeKsms97UcI5+G8wmrdCGRwxCFmXUkx5HqEedHMRKG 3IwdPZJ0hs5IvhePR7ayDQ4AbLwgwzCqNBymjVmkGuCLyioEFvjyvYWvhOiFRJKCUtMb 6ODA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679730030; 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=NDcKlqWwiEbWvCmMV2E4cuAQ9yjvAR7tqhw3SRJQR8k=; b=0FXD6vF1xQ9SnQhU3/b3ZjB5vxFM6edchS4FI5tLqTD3WHaM/jyraXUQgndgupVCt+ gMSnx6E/5LeFZ02szPxJakLsWRm5OYtVyF7afeoQ8BJ0s/a4C+5AgA12AnpthUSnpVwM /XoKh/RxsOPKmGQET34CfwvpFJqhoneycMk8oSF+ki+i8lknFjuI0HY68ETO1D2nLV+D eGzZkZyYk05rvcwgOI0YMuVt5nOiAhN7vdWSB3oSr9qxPjjszJwtn0tlE26bbMkf5RPA PBEKRMwPoQRGbymosDdk6QQGxNegnc1mlqEzgEfE8sWW5uibwXobK/XDGiCAHAo5pBqM AjrA== X-Gm-Message-State: AAQBX9fSOgj94EuT/dkZGTzVlyqMqFXjsRbaK/V1ebqLaq2hu/aW47bJ /sF1zY4JwflauUre6Z1zke/pCpqxNlay5YD0 X-Google-Smtp-Source: AKy350ZmNUnytb2HQL1zKl2feAM2o40Diq1Q6MnLckdbYwxnBFt8iAv59ZcXGif4KLF9G3juwoBVmg== X-Received: by 2002:a25:54f:0:b0:b73:839:d8e8 with SMTP id 76-20020a25054f000000b00b730839d8e8mr4725883ybf.3.1679730030141; Sat, 25 Mar 2023 00:40:30 -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 w20-20020a25c714000000b00b7767ca7498sm969629ybe.53.2023.03.25.00.40.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Mar 2023 00:40:29 -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 , Vincent Legoll Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] dt-bindings: Add doc for Xunlong OrangePi R1 Plus LTS Date: Sat, 25 Mar 2023 15:40:21 +0800 Message-Id: <20230325074022.9818-4-cnsztl@gmail.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230325074022.9818-1-cnsztl@gmail.com> References: <20230325074022.9818-1-cnsztl@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230325_004031_776551_560F5E53 X-CRM114-Status: GOOD ( 10.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add devicetree binding documentation for the Xunlong OrangePi R1 Plus LTS. Signed-off-by: Tianling Shen Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index 883c9d36e4e5..ec141c937b8b 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -831,9 +831,11 @@ properties: - const: tronsmart,orion-r68-meta - const: rockchip,rk3368 - - description: Xunlong Orange Pi R1 Plus + - description: Xunlong Orange Pi R1 Plus / LTS items: - - const: xunlong,orangepi-r1-plus + - enum: + - xunlong,orangepi-r1-plus + - xunlong,orangepi-r1-plus-lts - const: rockchip,rk3328 - description: Zkmagic A95X Z2 From patchwork Sat Mar 25 07:40:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tianling Shen X-Patchwork-Id: 13187664 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 23012C6FD1F for ; Sat, 25 Mar 2023 07:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mfu98pmEd1f3s6+Yme8JqkSKtJmzHQXuJkI0yxE6+t0=; b=Su4GE5kec63S+5 0uFdMu5u0fRRrHvJ4k/pw06AWVTGdh+B1L/of8AK8B5QlyTX/fq+JrI+fCqLym+gyFdbistofxmF/ EIMoWH1KmIWsLabLxPn62MogirsBgAfvpVKxtwA54lWTTo0ZiYP5gOpwNFdXDdC9lALsaZEmXBK6D uoU/+x6/4Nz1LFrNSYhT4Uu2Av9ybxs2pdKQvk3iiAec6i+mTwLPPcSZwMA772Ap+pwCXFjLrQwoG km0E4remWE8QKZaivbsoekOUO1FLZ4LEbXv6kyXIKwyJecIc8bF2eqq2zn+cFVMSMF34268oIs7lN 59WulHhV0E6I5AiPXplA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfyWH-006NbL-1C; Sat, 25 Mar 2023 07:40:57 +0000 Received: from mail-yb1-xb33.google.com ([2607:f8b0:4864:20::b33]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfyVt-006NRm-0D; Sat, 25 Mar 2023 07:40:34 +0000 Received: by mail-yb1-xb33.google.com with SMTP id r187so4844428ybr.6; Sat, 25 Mar 2023 00:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679730031; 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=3ENFbyVo6ntDOx+QsNQdjIvn/5kMh1BsTEjEJ3xCsmA=; b=ex/GczeP++ovZupQ3HqNy/MkN7HsVMa286tPtX0GrLD7Ds+ia9eNEyltaSDKqsF86P 87Tt9nc5bAbOzPuKG92VXQn+8gjjA2190hqm/GCuUFHhNkRQjVhsizRW8UPrd30ny8Vr pZ0xmsT4Iv3P7V8hAs05kwy9TcvXx0FSBoDfRS4mWyql1+IBUZ8BotngWsujRK22k5o+ 6r9XTenmqUx3Lhnw6k/+rQAPVEKlHZLj2IsSduDihxy1/FMwJAI0cttfKGxGzjyUuSy/ 2Ma0KXEjnLCbm8/SBDSIl5e98ksZ8M4Qr6J9c6GbcZF1rhOr6q3H/oDaNxiopgVf7pYS 8vEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679730031; 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=3ENFbyVo6ntDOx+QsNQdjIvn/5kMh1BsTEjEJ3xCsmA=; b=xHOg+JrNpjkVB63WoYP32N5yyfdSh2MY3uu6OkDIeNXnW6Zo3W2z0phbqF7+JqFIuU 9isffQcufdx8m+MwJTjUiWLUQG9oRnUKoiLqCpeS3w/71UJFZ9A6K1gXrdXJJGthQN6T RQE3jKe3b2Q7BJTDsq1mqpMfQBahuNCqJ7NpNw0cbNFnMdGU2S8t9vD2cYiW6aoeGSE3 vVLm5Tie9EqR9soyMLXJssB25n+L3IWrpdpa0KIndvvWkXjtuU1Av00mh2dt3d5P4C9y /j+POdCyqbAdLt0UF8ydwt9LolvxcLHkB6lXhTt1kE1YC9jy4s09GLmJ/zwRAh3W7TiN o1XA== X-Gm-Message-State: AAQBX9c9ieS+HDiX0Wz9QOtNOvmsKrETwV3YlZ+B7Nh6BZs8YAlZwuBy UpELapaJi8qF962JXLZXiOU= X-Google-Smtp-Source: AKy350aV8Slwn420heuYfAiUsnb7FYpKpCpimHVxcbyjyQTUtydCvA9ErH1v7wPW9p19HECCceqFgg== X-Received: by 2002:a05:6902:1108:b0:aee:c71c:1845 with SMTP id o8-20020a056902110800b00aeec71c1845mr6924755ybu.19.1679730031503; Sat, 25 Mar 2023 00:40:31 -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 w20-20020a25c714000000b00b7767ca7498sm969629ybe.53.2023.03.25.00.40.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Mar 2023 00:40:31 -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 , Vincent Legoll Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] arm64: dts: rockchip: Add Xunlong OrangePi R1 Plus LTS Date: Sat, 25 Mar 2023 15:40:22 +0800 Message-Id: <20230325074022.9818-5-cnsztl@gmail.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230325074022.9818-1-cnsztl@gmail.com> References: <20230325074022.9818-1-cnsztl@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230325_004033_114354_AF6A2540 X-CRM114-Status: GOOD ( 14.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The OrangePi R1 Plus LTS is a minor variant of OrangePi R1 Plus with the on-board NIC chip changed from rtl8211e to yt8531c, and otherwise identical to OrangePi R1 Plus. Signed-off-by: Tianling Shen --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../rockchip/rk3328-orangepi-r1-plus-lts.dts | 40 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus-lts.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index 0bdcddd221f8..2d585bbb8f3a 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -17,6 +17,7 @@ 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-orangepi-r1-plus-lts.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-rock64.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-rock-pi-e.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-roc-cc.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus-lts.dts b/arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus-lts.dts new file mode 100644 index 000000000000..5d7d567283e5 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus-lts.dts @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright (c) 2016 Xunlong Software. Co., Ltd. + * (http://www.orangepi.org) + * + * Copyright (c) 2021-2023 Tianling Shen + */ + +/dts-v1/; +#include "rk3328-orangepi-r1-plus.dts" + +/ { + model = "Xunlong Orange Pi R1 Plus LTS"; + compatible = "xunlong,orangepi-r1-plus-lts", "rockchip,rk3328"; +}; + +&gmac2io { + phy-handle = <&yt8531c>; + tx_delay = <0x19>; + rx_delay = <0x05>; + + mdio { + /delete-node/ ethernet-phy@1; + + yt8531c: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + + 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 = <15000>; + reset-deassert-us = <50000>; + reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>; + }; + }; +};