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: 13187654 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 EABCDC6FD1C for ; Sat, 25 Mar 2023 07:40:53 +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=bpqbcXEL0CuLQqpvq85nn/UG5m2rfiuUiN2Pvaerhrc=; b=UXIKtCp8sn3o4c EMUOj5sYHJeDa66GaDrbL01alX7peMf0r40gBL8snyIE7M4WzRERLCPwLxBGM0W3mvryzpFKk/7Yl FLWrbyOR+AdCdc7W0QFiOCbNT0MJXZzk5TPhJU7dBNWPwmC/9O/WHnr+wUDY5BVp6/gO65b7TWQZL WxWFI/8aEXji605nAoa9itLs93XFGOhhTriQMeUU/Hl99qoHwVphA2+duuYSlMoG4Hoc+3/rz/Zea Gr5onagdFB7cZqtI9C4Rc3h8AGhwuye5VYg6OjABlmxDrJIx72vho3QB+AAC5eWTy0spBfyVGdRZl gIxrzcYH22eovugP7QMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfyVu-006NSg-2W; Sat, 25 Mar 2023 07:40:34 +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-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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: 13187656 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 BF8C6C6FD1F for ; Sat, 25 Mar 2023 07:40:55 +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=7fVI3XlEfSdj7IKDbU+q50qlBzhH3NAQjXzVSMt4h8g=; b=Hi3CJRtNFH8eKP 9LfP4xrF68ZqQH/5M3pgrN1VPd3YPzdRMXo/Jx4n6OqoGxR1wrY7eP0jj1jVyKNXICN/fcEev/8JF W3gTf+IMbomZNta/t9GYVsss5HO9Vdio3dV/+Kvdn5T0RwvvQflehbQI0KLPDw1zn71/p2TIqm9TT 2GKebXQqOkfuYJwjImQDFKWTqw7iPYe7Yz/5U/LC3iYFiKm1VwlyiezL+XOveseWXqhTZgjCx6uxJ n8e5ZCT7LfuUEgOgp0AZg8ruWTDyZTyhC49AMx+kMhSXUb5pdOvrx70wNUbk6/AeTJu/oxn+jxjGp FoL3vIpk3o/C8oecZJuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfyW1-006NVF-1I; Sat, 25 Mar 2023 07:40:41 +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-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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: 13187655 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 E480FC6FD20 for ; Sat, 25 Mar 2023 07:40:54 +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=zuUzuSiPBADttBFQ9FwXztUbgLa/gEQTmrv3SVZEuqk=; b=r+kRJ7mquzagNC N1PJDN7k5ntPo3qmZKMtzyQe+ucnDQGEJtqVQQBxQfr/ogIhjZe8Y+au9VVUwTbBPmSlownU62d6A 16m3QsPhNjQ3lucDRaRYyiaxOCMF8ACH2Llf/WWA5Y4iiUfUn7nkryJKp+u5UuGX5p9R46E0et5qw r2QaPqlUG5c35sDyK17TXpAtjUosHBMdHmTsM+GQKkO2CVKH9VlOSqEDSN9dXOP0NUUC+wQfa7INo j8SXzX1eiF81Zdj5y+FkIseIR60haNKWSmwows187m4CcdvJZ2FKhA3z66vnmMrOWMjbq3U2lfiPP Jb0+f/hpx5jzJHTUe3LA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfyW9-006NYN-21; Sat, 25 Mar 2023 07:40:49 +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-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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: 13187658 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 EB545C6FD1C for ; Sat, 25 Mar 2023 07:41:06 +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=zPu1rHa6PHXpexYM3LOsmJlXQC40TE2Jl9lgfrizI4Q=; b=OZxmob2Fg81eji EOp1NljS3jE6osS5/2nOX6fEUnlVHxCzxeA2+WlvMTDiDkrfHW3BNB7w5hgDFWHshw/AOOFWkVkkE rVFUQCOA76kdKWUQoGEbCYAaEsz0x8nn0oBKTtmBFkyNUGc7SeSOgvc5h2WOlwglOwTNAREtWqasm 2hCBAVrqYR57VU3VQPdmSIpDmzKxeU8K1lR1cBTt2XqEsK17arWXzbC2+Y47i4t5M9Sa6KAS3GmWB Ip0GF2P16+DPI9lKA/kA/YTse3FR+aIM7pMKrMP79PiGbUgKvwT/Sr89ncr3vZHnaH4JkBV6hZO/K Xwq3kFJvW6oS4dlVn69A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfyWJ-006NcW-1V; Sat, 25 Mar 2023 07:40:59 +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-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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>; + }; + }; +};