From nobody Thu Oct 31 00:18:44 2024 Received: from xn--80adja5bqm.su (xn--80adja5bqm.su [198.44.140.76]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5821A1BBBCC; Wed, 14 Aug 2024 17:01:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.44.140.76 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723654894; cv=none; b=CyGxZSl4+061jMjVq9zi9TbQy47JuP1dQyHAeaUbZppFW9D0gLn9K9fbDEQwaLnIpQm2DAsTpa01kR8lXp1cUN0pM/uAQgfxD2/9avvpRLWUwrNdJcx/CsxqYox0XFw29GSEFoBJQr3B6QI137zE36FSy82mlIoxh7QeC6OOWyE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723654894; c=relaxed/simple; bh=ACf6VgbHVRXgS+SfXwLNva9kdcJ56r93s9Sim2553XU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=R45qDaD0xZoLjgtbI2ALwn4Kwgi76b/DhXMhZFUE31LzG0Wxv1WEFIBGbCTuRLNVLoaOayzGgmMl1fBKgAybiiGNCqJ7LoBGCrFsxHbKjdp8GfKrPjsGdmZ8/Ke3BEfjzLnqilPEOkNDUmg1wGiAZGYxiCjlfq8sJVBgWsIiAtY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mediatomb.cc; spf=pass smtp.mailfrom=xn--80adja5bqm.su; dkim=pass (2048-bit key) header.d=mediatomb.cc header.i=@mediatomb.cc header.b=BXrTPXh5; arc=none smtp.client-ip=198.44.140.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mediatomb.cc Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xn--80adja5bqm.su Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mediatomb.cc header.i=@mediatomb.cc header.b="BXrTPXh5" Received: by xn--80adja5bqm.su (Postfix, from userid 1000) id ADA7340460CF; Wed, 14 Aug 2024 17:01:15 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 xn--80adja5bqm.su ADA7340460CF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mediatomb.cc; s=default; t=1723654875; bh=ACf6VgbHVRXgS+SfXwLNva9kdcJ56r93s9Sim2553XU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BXrTPXh5uUagGPopLbSjTJE+04t339oOT9bQgn2PzWBtwXPg355OBnLtjR1nR+uNE YtrHEk1RQm8Gd2IRYYPSClwFAxG9eI5A3fbiHXiWIRO2P774jXpR4DNT3zxa+HVI/N 5EfPr8JYGwC9KW9IKhZ29OnNP1N0oQTp2Zy1+8qiFQxFpRhDE6B8Yo4jzqGEsfTdUQ YwTF335CQOUAV5lcjQnVrz9IgRyXyBOlODit4CLEPCMZIlC1R5MJ3w2e6cqDFjcUhN 3QDSkzEKscjAQ9h2YK54jS7zcsAGG4dZAK29xozr/uYYmZ+lUo6nGV+ADsKOcZ2u1f nHadmjNvyMUFw== From: Sergey Bostandzhyan To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Sergey Bostandzhyan Subject: [PATCH v3 1/3] arm64: dts: rockchip: Add DTS for FriendlyARM NanoPi R2S Plus Date: Wed, 14 Aug 2024 17:00:46 +0000 Message-Id: <20240814170048.23816-2-jin@mediatomb.cc> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240814170048.23816-1-jin@mediatomb.cc> References: <20240814170048.23816-1-jin@mediatomb.cc> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The R2S Plus is basically an R2S with additional eMMC. The eMMC configuration for the DTS has been extracted and copied from rk3328-nanopi-r2.dts, v2017.09 branch from the friendlyarm/uboot-rockchip repository. Signed-off-by: Sergey Bostandzhyan --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../dts/rockchip/rk3328-nanopi-r2s-plus.dts | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/ro= ckchip/Makefile index fda1b980eb4b..36258dc8dafd 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -20,6 +20,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3328-evb.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3328-nanopi-r2c.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3328-nanopi-r2c-plus.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3328-nanopi-r2s.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3328-nanopi-r2s-plus.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3328-orangepi-r1-plus.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3328-orangepi-r1-plus-lts.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3328-rock64.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts b/arch= /arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts new file mode 100644 index 000000000000..12eabdbf8fe8 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * (C) Copyright 2018 FriendlyElec Computer Tech. Co., Ltd. + * (http://www.friendlyarm.com) + * + * (C) Copyright 2016 Rockchip Electronics Co., Ltd + */ + +/dts-v1/; +#include "rk3328-nanopi-r2s.dts" + +/ { + model =3D "FriendlyElec NanoPi R2S Plus"; + compatible =3D "friendlyarm,nanopi-r2s-plus", "rockchip,rk3328"; + + aliases { + mmc1 =3D &emmc; + }; +}; + +&emmc { + bus-width =3D <8>; + cap-mmc-highspeed; + supports-emmc; + disable-wp; + non-removable; + num-slots =3D <1>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&emmc_clk &emmc_cmd &emmc_bus8>; + status =3D "okay"; +}; --=20 2.20.1 From nobody Thu Oct 31 00:18:44 2024 Received: from xn--80adja5bqm.su (xn--80adja5bqm.su [198.44.140.76]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 118D91BBBDA; Wed, 14 Aug 2024 17:01:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.44.140.76 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723654894; cv=none; b=WjOsigZY5EHpHur+AimxjU39IfcxRJ08ufpJni9fPEHQt0ANAwbs926rMw3MMNRAtxvrd/BfOPH9rLrXiwMCnlqTwuFpTTAM6gzGMtYQFmDStUfDkrIr3PaRzS4yE3gkarbn5oSyf2ZXG3E/2yweuYrLsZP5bCPWosvsbMHyB+g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723654894; c=relaxed/simple; bh=FhHzZ7Fofg7D9EyPQCAwN+Azjn9o2X8l0uUXnvwgdA0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AQqJxPP+c5kyg1umUKVhkPubxS5/gv+Kx9/dJGQQRVs2s2nvbVACZJBnrqgshI18wwthgywr6f1cbH1prXRaJ65Rqt/dF63dcs+65s1xRvFcL74VPDte/OIR/O+1AyNKKbBxP/N/kd+x2AIUAJ8zcrgNtPxXr2Sk68CubkUqnkM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mediatomb.cc; spf=pass smtp.mailfrom=xn--80adja5bqm.su; dkim=pass (2048-bit key) header.d=mediatomb.cc header.i=@mediatomb.cc header.b=KtR4RYZj; arc=none smtp.client-ip=198.44.140.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mediatomb.cc Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xn--80adja5bqm.su Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mediatomb.cc header.i=@mediatomb.cc header.b="KtR4RYZj" Received: by xn--80adja5bqm.su (Postfix, from userid 1000) id 77AD840460D0; Wed, 14 Aug 2024 17:01:17 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 xn--80adja5bqm.su 77AD840460D0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mediatomb.cc; s=default; t=1723654877; bh=FhHzZ7Fofg7D9EyPQCAwN+Azjn9o2X8l0uUXnvwgdA0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KtR4RYZjwnDWPF/ssvHdl0xyQzyTKC83HYw4xaa0GPlSKthQKyIXpLCpO8cqxExYY HiKxh17wsBAQ1xVvyvLN8fvDVZaAJpo8VnQx+qtM3p0IRlS0taUU2VZ4ir8Qo6es8r 5x4gVUbMyCmBwqwH99pkaEIbDaCDhi07wBY/1XmPZGAUu6QewJYwn1CpVcj0WeTeQP jqKUno2sKWARSK/CCbUuB5+aOA6PXn5yhHNyKToU5NTcycoH+mN/UjzSZAlox4WErN vI/LP9mQxm8Z1pEB5qJzEN9GpChczs0RlL458/2awFng1uWu0Ch6xTY8Sdenj7o28l sudT/0euU3WDw== From: Sergey Bostandzhyan To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Sergey Bostandzhyan Subject: [PATCH v3 2/3] dt-bindings: arm: rockchip: Add NanoPi R2S Plus Date: Wed, 14 Aug 2024 17:00:47 +0000 Message-Id: <20240814170048.23816-3-jin@mediatomb.cc> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240814170048.23816-1-jin@mediatomb.cc> References: <20240814170048.23816-1-jin@mediatomb.cc> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add the NanoPi R2S Plus variant, which is an R2S with eMMC. Signed-off-by: Sergey Bostandzhyan Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/arm/rockchip.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Document= ation/devicetree/bindings/arm/rockchip.yaml index 1ef09fbfdfaf..e3121d4eba18 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -216,6 +216,7 @@ properties: - friendlyarm,nanopi-r2c - friendlyarm,nanopi-r2c-plus - friendlyarm,nanopi-r2s + - friendlyarm,nanopi-r2s-plus - const: rockchip,rk3328 =20 - description: FriendlyElec NanoPi4 series boards --=20 2.20.1 From nobody Thu Oct 31 00:18:44 2024 Received: from xn--80adja5bqm.su (xn--80adja5bqm.su [198.44.140.76]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8AF21BC06D; Wed, 14 Aug 2024 17:01:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.44.140.76 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723654897; cv=none; b=MRxh97yY8rIBnPlAjMHfBQV1hNmNaLUPt6cqKQUlDhTbwZzaqVHl8njWUn68yOm+5/+gAB1RS5Uf5oX2A7Mvxe7qejLZSFwEgufUUx+yVtz0byJYg2++6DluzYJfrzp8KYoacByAJ/cYNc/IrvT6Xafl7xE00FgjVcgyuSFO4Sg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723654897; c=relaxed/simple; bh=xvEWlAGjWOuN3MgtbMsNH5e+ZpaxGF+5lo3BiZBgJRY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=R+2Yg5ntlU3k2oPxmNjGmMEdbxYFEzNF2+DnuGhNWJhZLlDk4erL1g5ez4z19teJtlaWjab3h+l3P6yVuccLV1Qbdj0AYnLFfajvqYZel0rGax3CqULydeXR1rui2qI74mJeO7EltGIMGOxkn8+hhmqO/CRpW59/4Q6pVpTjYBg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mediatomb.cc; spf=pass smtp.mailfrom=xn--80adja5bqm.su; dkim=pass (2048-bit key) header.d=mediatomb.cc header.i=@mediatomb.cc header.b=gmxP+Q3g; arc=none smtp.client-ip=198.44.140.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mediatomb.cc Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xn--80adja5bqm.su Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mediatomb.cc header.i=@mediatomb.cc header.b="gmxP+Q3g" Received: by xn--80adja5bqm.su (Postfix, from userid 1000) id 2422F40460D1; Wed, 14 Aug 2024 17:01:20 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 xn--80adja5bqm.su 2422F40460D1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mediatomb.cc; s=default; t=1723654880; bh=xvEWlAGjWOuN3MgtbMsNH5e+ZpaxGF+5lo3BiZBgJRY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gmxP+Q3gPsylM4hiOn5vA/OUpPMgr1DB8e/9tVeURTTZzC3pZx8/S8iHsjeWC06Q5 VvvoB5ZGO2ZOasDixLme85XPwGho/OuD50ajCbBdgiBSdSadM4+uwP6bBTSdmw+xnx RBfzw1NOMf/egnKr/grpPwxn/G15cDQmGSmi7xxvE6eJZcQdi68Vq7aHqfoWvqyAa8 t5XK55HFnH4WltRm/Es8foKiI+pwvSsPW7O42uD9HXqVl6Ma+1fZV7K3udWIP9mWMm 8b2LPeO0w6ZlXJ2CHzY4N5wOAgwxzH81DhWqhGAy8WRuDfc59sFirRqbwbctbQGlv6 k8PsBkafYplmA== From: Sergey Bostandzhyan To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Sergey Bostandzhyan Subject: [PATCH v3 3/3] arm64: dts: rockchip: improve eMMC speed on NanoPi R2S Plus Date: Wed, 14 Aug 2024 17:00:48 +0000 Message-Id: <20240814170048.23816-4-jin@mediatomb.cc> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240814170048.23816-1-jin@mediatomb.cc> References: <20240814170048.23816-1-jin@mediatomb.cc> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This change has been suggested by Daniel Golle during patch review, adding mmc-hs200-1_8v; makes sure that eMMC gets detected as HS200 which improves it's performance. Signed-off-by: Sergey Bostandzhyan --- arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts b/arch= /arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts index 12eabdbf8fe8..146b1da198b8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts @@ -23,6 +23,7 @@ cap-mmc-highspeed; supports-emmc; disable-wp; + mmc-hs200-1_8v; non-removable; num-slots =3D <1>; pinctrl-names =3D "default"; --=20 2.20.1