From patchwork Thu Mar 23 12:38:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tianling Shen X-Patchwork-Id: 13185614 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 8A75DC6FD1C for ; Thu, 23 Mar 2023 12:39:14 +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=Iu7PAAIGKL1BqdwfbBYlVzH+2AESznjSICLvPZGUcwQ=; b=U7nXvTIPzw/aS2 MRMCq7qhyyyiXtjQNylWhdduo8P20nni+uijjcx8Vyq8bP1z87KXCT3TGghrAr6IF+firTqCe5IK9 xJ7/3u0+7Ur0lg8xa3xWRqhFyjxeyAxFn56+WKInp+y9JJCozxVdK3xss3myj4r85CoP+jn5N9LH9 JMI4HWoeeBEO/QSvhhB4MSt1AdGx6ZiYl8inX6q0d5H2pvgMmIUlHMxHRb+WHWnrjuzrHF5PCe0kR L227hnBRX1RqJ8C7ymcgux5+PRVbpAx37dBx5bMDxia/QZGZsrQhCP5yrEnJAs+2VWNy4KaRAuSs7 stf+LJJQPeki0+Lw956Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfKD4-001wKL-0r; Thu, 23 Mar 2023 12:38:26 +0000 Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfKCu-001wFb-1i; Thu, 23 Mar 2023 12:38:17 +0000 Received: by mail-io1-xd2a.google.com with SMTP id o12so9876529iow.6; Thu, 23 Mar 2023 05:38:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679575094; 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=elyff+jc0Dmn8L8o0mKSvi+OnSPUaZQkUoy2yMJRlrY=; b=ROJW454d0ZORZyCxD8eYjE/BQ2imMWkRbHcixAhlMziFGE89Pp9xt3g3kEmOy4/Niz Bm7VKSUr98fclycy0fqcgfx856uIB9+qj9DQzJi5FTAapkFNo9+NQMHG/JSo+yUIAioJ MTPy4uOKwPRs6IUGwCiqVsELUiPNKT5pOftbCum0uQZy/TYduetqqtlv7LP7dNrHRrdR FtvWtGGmcL/wk3VnsHRwPR0X34qMFwQJ4Encw7+BTlJA1AvfErC3FWX8uVAiVkoJl/Yz QmPMYBoKnRDEhxx79ZfClwC7ViOrXej7OlDx7lDcmPHfR6P8sod2jaNQWKBByvlDaE7Y sr9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679575094; 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=elyff+jc0Dmn8L8o0mKSvi+OnSPUaZQkUoy2yMJRlrY=; b=yox6d2f9IkdbgaJzcHUfFJ/NlPz6IHKigac+M5eWnJSEF5GZmsudPDxxxx85M7drot ussm/qJP4ZgfXaufE5gLez+1R1wfi2U1EcoVUazsVDUs5vxcBzpT0G1fUmiTeuOtxQN2 ezAuxv6xWOVsE6M1nZmUtGeeOx0Sw/zQBaY3tG8Y1e0ovyEe01RqdgWUcabzb4Q7E/El B2mXJMD/bskjAIFVryRwKGrzynMZbBtTru5qSZQnQ5U10WxG3nnkjNHcyFXdrr5FWu0H Sd7+NoXJ4J9EfhCXzQia3XkzomSGC2sXURkYHeAQ60aT6sa6ycRnuNLrL5Xak8JASsqs 44IQ== X-Gm-Message-State: AO0yUKU4tnnvJFEgYnlGdNRa+OAQ2vrc6EwnPQauq88q5v4JSwIFfnRG 2xuLXCdrPsSe5FGkj5GdF7k= X-Google-Smtp-Source: AK7set/0iydoq+EtlUmADjV58UvVzo5A4y1nyq6acf+hjG5Ez293WSfJs6GXV46+QkptKUhZBNHCIw== X-Received: by 2002:a5e:850c:0:b0:758:b06f:6ab2 with SMTP id i12-20020a5e850c000000b00758b06f6ab2mr3250924ioj.2.1679575093694; Thu, 23 Mar 2023 05:38:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 05:38:13 -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 1/4] dt-bindings: Add doc for FriendlyARM NanoPi R2C Date: Thu, 23 Mar 2023 20:38:04 +0800 Message-Id: <20230323123807.11882-2-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230323_053816_566594_120A0853 X-CRM114-Status: GOOD ( 10.73 ) 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 --- 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..01df9a5a0cf5 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 R2C/S items: - - const: friendlyarm,nanopi-r2s + - enum: + - friendlyarm,nanopi-r2c + - friendlyarm,nanopi-r2s - const: rockchip,rk3328 - description: FriendlyElec NanoPi4 series boards From patchwork Thu Mar 23 12:38:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tianling Shen X-Patchwork-Id: 13185617 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 857C0C6FD1D for ; Thu, 23 Mar 2023 12:39:22 +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=QHCvA/XVBcPooq 713XdBGbtbQj2Ts6Y6klhd3eXy/vABz28lfRzqy+98yjBGs9uDpQeBJ691rOZ1r79J0HFsGyXkZwG qoZnYnZA6WmeX6T7VWs9mwMYxUllMY/XidkLaNwdYhttqLjqN3B9oGJ2kujH4g7t3NMef5GTAc+/N 1bb2JeSYY4Jv8Av7aDCI8IyxvOAGJAPCEttXh8LIxNos15OKYGxtaLdOg4TihikD4mToGgOdtK8No MO3BZE5zxWGhnP92G/nkvR9uQh1zbOjgGtv1518MoxZs9MSDXViuDgc22LNxhahGvTH84AZ4I3MAh zgHfAVX6IQoitlWjSLtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfKD5-001wLE-2b; Thu, 23 Mar 2023 12:38:27 +0000 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfKCz-001wFv-0F; Thu, 23 Mar 2023 12:38:22 +0000 Received: by mail-io1-xd30.google.com with SMTP id bl9so3424810iob.8; 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=BuNbmSD9piA/vT0W1/nnHaEyumuRFAqV5+pmkSFiVE9G1oBROZj0nV26T5D2NY6akF wCupEO0JkaQU2yMxjGHEojk+/yRSxdaLYJb+2RUlPTyHYck36McI9JdFAboDRTXNHBH6 gra+rYhu7AkWXGoXVrnzNTTNkRxHDGA5zPzbUO7OJ14/M1+BtdU6UzqMN9OMxitTPDgR IOypsIXZ6BqyV++dYA50qknsZdXSeHpbVa7yAusgS7NS+EomeE5TV9eLY8K6IxEr0KTN PdYj6Ml/4IeoGpHYfupy4ax+Qii5B5QccjMctRkWBKX3a87GuXpdIcvdZfZvbt957Vs7 JZNg== X-Gm-Message-State: AO0yUKVYSXfdULiW5HMypAA8jaipOn/OZ9qjvkDxefc31Z18TnSoB3/z 1sfPhUzd46+OdCE4q2zb3PE= X-Google-Smtp-Source: AK7set/emyrbUtQ4ilsKCyUOhtWp+dPiXfrcqXwi6fGfLTvcANPirMisjAWHgkNVsSJSdpJfqH5FxQ== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230323_053821_113065_E905CCF1 X-CRM114-Status: GOOD ( 14.72 ) 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 Thu Mar 23 12:38:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tianling Shen X-Patchwork-Id: 13185616 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 1D7B7C76195 for ; Thu, 23 Mar 2023 12:39: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=iqUkF3HuulemE/EzbOeLt7mHddEIVwJFMXG/w4GeqU8=; b=f1m0qThal1yoVk haRF0k1PJyZNcd8duL3XoSmw1jCt3Jyslk7SP6XydjQJnjokCNzWWZdOxiBuHla/5yimGEco/C+VM hfvfiCARcj/mLjj1cgrjL+5mQ74TrWWPSi1iYCRIIC5dUPmWzfLcx1wVfPFnT4TA/dufWrN+wb20M iOtDqoWCgWt7WVeuJbYT7upo2DOmpcK31yIefEjGHM0/Ave4ZjDR46a4IDik7WuA/VjuNbdVSzp1k wW7Byh44hMw1Z0JurWyJgxm+E6Q/tC3F65K0uffJWdxIhsvD09CJsIvwTcCgER7pKIYMtQflggBvu cLF89eEZIL92y4owkmKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfKD9-001wNS-2F; Thu, 23 Mar 2023 12:38:31 +0000 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfKD0-001wGV-2S; Thu, 23 Mar 2023 12:38:23 +0000 Received: by mail-il1-x132.google.com with SMTP id s1so5548727ild.6; Thu, 23 Mar 2023 05:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679575096; 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=1NrJl98Wq/VFN/yn07I9btG+z5z9nbLGL2qm/kQRv2Q=; b=RBeBfX/9tL/CbzDuswXSHMrbVF2l+xUgqV9oijBAWbZNUSN30SAa4BGumOO57ZJjNR mjnc+cVEimwRFJNfcJ/9llQlEz0cIVieiWX2LNhGY+syfwlpOY/My16y9LTMVHq3PTOE StM4rehYNGlSebhI1B9v2mnRQW9sf++ldUdMSVVOTKK77VLdC3Y+FwsgqHUTiTwCM9dz tIxFbQ76ZiNdn+mpw+6B4rjW12CugnZG7l5//IW1tux7iJozneu+FCZZyijSIz2yU2zC DdSueEezvmY/OIKd/ZTVpaaEYI468KLnqtHpbK3nv9RnKwjHQXbag50iwzVOkjQz8f7/ MrMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679575096; 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=1NrJl98Wq/VFN/yn07I9btG+z5z9nbLGL2qm/kQRv2Q=; b=fygxobhhwHYMMXzo+5MB8LLK9F5QecPhTg5hC++LYHBg+eMF4DCF9i6Z5NFRYaIga1 TO5UMsT02xcqwElMZBebEo9xoi+WfsprnB1hFADJrM4Fcw9333tGajyT/31cSgt16fB8 j3Aqnk+89YXe/1em0G/C9O5OHzI5EQjgWksnWRZ1otrjVvQCQ0hvXYzjxgOLMWZp7fkt npld7qVzRyFGL3fbaURfCUjtTgVB0xROWZvOPwx2ZWOvUMlscbH5uSlbonHyzxAF9HyX aL5C/Z4tkHLpV55sWwlAnpSWnc2wKJxKuGgfpKWseM37WQ/djxroEXEiHGijYb0GIzWs qizg== X-Gm-Message-State: AO0yUKWdLNZZIrJ6gwGFPxNZkOiEhbcWV4IFViBUvzuP8QFohnKoN4Cb Ktk9flFh2j7XnDejEkyMt5g= X-Google-Smtp-Source: AK7set9Pab8qklvfXaksZLPOMTdj06BRiNdxIgLWC1L6TCmhaG4H2ugKGm2v62LuWYgE0u0AQcTIuA== X-Received: by 2002:a92:dc07:0:b0:322:f878:abcc with SMTP id t7-20020a92dc07000000b00322f878abccmr6168611iln.24.1679575096360; Thu, 23 Mar 2023 05:38:16 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 05:38:16 -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 3/4] dt-bindings: Add doc for Xunlong OrangePi R1 Plus LTS Date: Thu, 23 Mar 2023 20:38:06 +0800 Message-Id: <20230323123807.11882-4-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230323_053822_809681_B9324019 X-CRM114-Status: GOOD ( 10.52 ) 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 --- 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 01df9a5a0cf5..210213a1eaa9 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 Thu Mar 23 12:38:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tianling Shen X-Patchwork-Id: 13185615 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 92547C6FD1D for ; Thu, 23 Mar 2023 12:39:18 +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=LIMA2mYlUKnnlF 3c6ykITI678BznWL8G2wErbxIfEFU7mxp1WQVFnhCGuHpUEVrfQCtBpccBnLHmfWp8cuceS5UxQXl 9mWwpcpiwrjm4yhdAPlP5WN0dogHVpSZhk3yhTPEcAVZuBrMSj8uKOcgrV9asiVhnJiA57La9Qc0c cNP+QetMFqqK7C7oW/C/wxSClANSUxaTbk9nei9HFO0dgO4h98LyYz5ogkKpTqJ2DHVIh9Jm0KUGC MKb4E4naaBSCGyn1HpRW5icQy2k45f/rY9X0d+YiNm+XlTYFPj1XkTGNgCg+f4FimiI1GdDirLMSz 3P67ZWhPCmFWFm7ZHqBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfKD7-001wMP-2G; Thu, 23 Mar 2023 12:38:29 +0000 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfKCz-001wH4-1p; Thu, 23 Mar 2023 12:38:23 +0000 Received: by mail-io1-xd33.google.com with SMTP id k17so9886895iob.1; Thu, 23 Mar 2023 05:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679575098; 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=gusgrPJ5tIfDMajJ9dD9H6OPD/k85/TF8VNdLZ9CSn3HKJpS2UHnT3ndA7cbj+z6Yg D/R40cVIC2EW/UvTz2uoeTG1q5tQ7He0Sa5cBtLuM8D8+WVssapgIT7mQoII1OtfGpwR snxu1+TuXy9KzPh/yCKcn/TeveiTxMy5FeJZRNq4D9g5xtgy3pY/tqGRudkE6gwk6xyI rOvm5US8DecYxfAy1fMcGGi/4jlTz5o4L5zY1NcmQFbitFu8GUddM11TA4qjwYCMOqFR QtuzEBQyQ+D72cmqVTT3+3ibT57+GI4ckVz1KExeq6c7ieHBg34I5oZi45YYlJjV4zmm vVDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679575098; 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=UYt7/c/F+hF0F30x0PJt0cach75SFAf8w+og48wTB6T+t4pNNXuHLk3V0Yg1opzPtH fWAyv+30fxqqz5AfQBGLpW9PfELWDkxGKqpdrB6YEVZTNK5GTrBPlsQCu37JKeHtgllw fxbi0N2oDbzdfGG2VjWU4CpbABipDf1TOXnXX95Mk2i7Rw+upVjelzz/ZTZJjfyM4uvC NJ4EAiT12BwMgPFj59MYlOlsYaLNxXl+g/gwKFsbmHInukMvDqgy3yBVoeucTaqX5HfG A+t1aGSUkrWTDRuDoX7x58hL6L9AvF8z8apOZw0zfXQRn3U1UL9uWOU4ggtht89/fgwD 6P/w== X-Gm-Message-State: AO0yUKVTtyK9O/Xt0Yaji1Xsz04eLTgXQOBkIQx9PQ4/6rwr4ry9KjyA CkSvZG1QOSaRMoLwTq8qbjM= X-Google-Smtp-Source: AK7set+IaJfYgWqqcuRAkH2Km+qXS+Iwzem0q/SeHq8SA0lVnfafOdrDz9WP8FLjnAaL1C8mue4bQA== X-Received: by 2002:a5e:9705:0:b0:758:a91a:aa82 with SMTP id w5-20020a5e9705000000b00758a91aaa82mr3711730ioj.11.1679575097662; Thu, 23 Mar 2023 05:38:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Mar 2023 05:38:17 -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 4/4] arm64: dts: rockchip: Add Xunlong OrangePi R1 Plus LTS Date: Thu, 23 Mar 2023 20:38:07 +0800 Message-Id: <20230323123807.11882-5-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230323_053821_603755_6962E368 X-CRM114-Status: GOOD ( 14.72 ) 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>; + }; + }; +};