From nobody Thu Dec 18 05:20:36 2025 Received: from mail-m49197.qiye.163.com (mail-m49197.qiye.163.com [45.254.49.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C974819408C; Wed, 10 Jul 2024 14:31:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720621863; cv=none; b=MTrIeyLs6WjjiRQuFHmmsAPaWO4ezrSug/0d92++rMUvML7EMkCzEQUCF4B+vc2xqQOQ1cD3h1Naf3Fq7vEOAM+dMZUl3FCvev7z2i/kNv2CNkLHUOBfYmr7OpFvyp5M1oS+P+F/XVEkJBVwP6mSZCjvuZ9whoJKHMgeiKqqoIk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720621863; c=relaxed/simple; bh=BHRSRVDN7UY8ojCth3OQGeUyoeHM/w9ju1dYitSn/do=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lNrVyR+GeOXsS5fyNnC2EmJb8LyKGiALVmK5B7cH9RZRMpIVPxCjazcI8UzDiJBd7NNQnkpHfx+OP6mQfDCiQfrbZYKkdhBFhOORwNuRbYSNap2PASJBBlp0ZcRIXSVNGoARtwX7FzEAyqBtagBCXY+7Cv1EIzEDHgwVlVRu/vc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn; spf=pass smtp.mailfrom=jmu.edu.cn; arc=none smtp.client-ip=45.254.49.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jmu.edu.cn Received: from amadeus-Vostro-3710.lan (unknown [IPV6:240e:3b3:2c00:fb60:82c0:6879:f4d2:caf4]) by smtp.qiye.163.com (Hmail) with ESMTPA id 017297E017F; Wed, 10 Jul 2024 22:30:37 +0800 (CST) From: Chukun Pan To: Heiko Stuebner Cc: Krzysztof Kozlowski , Conor Dooley , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chukun Pan Subject: [PATCH v3 1/3] arm64: dts: rockchip: use generic Ethernet PHY reset bindings for Lunzn Fastrhino R68S Date: Wed, 10 Jul 2024 22:30:15 +0800 Message-Id: <20240710143017.685905-2-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240710143017.685905-1-amadeus@jmu.edu.cn> References: <20240710143017.685905-1-amadeus@jmu.edu.cn> 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 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlCTh8aVkwfSh1LSkwfGUIdH1YeHw5VEwETFhoSFy QUDg9ZV1kYEgtZQVlJT0seQUgZSEFJGEtLQR0ZTUtBQ0kYS0FNQ0xCQR1PH0lBGBodT1lXWRYaDx IVHRRZQVlPS0hVSktJQkNDTVVKS0tVS1kG X-HM-Tid: 0a909d0daf8603a2kunm017297e017f X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MDY6FSo4EzI8EDA4LEtLPQo8 CjYwFApVSlVKTElLTUlKQ0hDTkJCVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUlP Sx5BSBlIQUkYS0tBHRlNS0FDSRhLQU1DTEJBHU8fSUEYGh1PWVdZCAFZQUhPQko3Bg++ Content-Type: text/plain; charset="utf-8" Replace the deprecated snps,reset-xxx bindings to the generic Ethernet PHY reset GPIO bindings. According to the PHY datasheet, the RTL8211F PHY needs a 10ms assert delay and at least 72ms deassert delay.=20 Considering the possibility of mixed use of PHY chips, increased the reset time. Fixes: b9f8ca655d80 ("arm64: dts: rockchip: Add Lunzn Fastrhino R68S") Signed-off-by: Chukun Pan --- .../boot/dts/rockchip/rk3568-fastrhino-r68s.dts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts b/arch/= arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts index ce2a5e1ccefc..02d966d218fd 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts @@ -39,10 +39,6 @@ &gmac0_tx_bus2 &gmac0_rx_bus2 &gmac0_rgmii_clk &gmac0_rgmii_bus>; - snps,reset-gpio =3D <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>; - snps,reset-active-low; - /* Reset time is 15ms, 50ms for rtl8211f */ - snps,reset-delays-us =3D <0 15000 50000>; tx_delay =3D <0x3c>; rx_delay =3D <0x2f>; status =3D "okay"; @@ -61,10 +57,6 @@ &gmac1m1_tx_bus2 &gmac1m1_rx_bus2 &gmac1m1_rgmii_clk &gmac1m1_rgmii_bus>; - snps,reset-gpio =3D <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>; - snps,reset-active-low; - /* Reset time is 15ms, 50ms for rtl8211f */ - snps,reset-delays-us =3D <0 15000 50000>; tx_delay =3D <0x4f>; rx_delay =3D <0x26>; status =3D "okay"; @@ -76,6 +68,9 @@ rgmii_phy0: ethernet-phy@1 { reg =3D <0x1>; pinctrl-0 =3D <ð_phy0_reset_pin>; pinctrl-names =3D "default"; + reset-assert-us =3D <20000>; + reset-deassert-us =3D <100000>; + reset-gpios =3D <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>; }; }; =20 @@ -85,6 +80,9 @@ rgmii_phy1: ethernet-phy@1 { reg =3D <0x1>; pinctrl-0 =3D <ð_phy1_reset_pin>; pinctrl-names =3D "default"; + reset-assert-us =3D <20000>; + reset-deassert-us =3D <100000>; + reset-gpios =3D <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>; }; }; =20 --=20 2.25.1 From nobody Thu Dec 18 05:20:36 2025 Received: from mail-m49198.qiye.163.com (mail-m49198.qiye.163.com [45.254.49.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB92419413C; Wed, 10 Jul 2024 14:31:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.198 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720621866; cv=none; b=EBmOpS9ztSON/1g+zoA4bhRBGL4jhDyVtsvOLWPgQBbXvHTHyX7OuJEQ/yTfrDGEMdyMvznwb0qbjueK9p/GT9TRX7cV81Ll/vIv9DDwIWHNXJddq98aixHevDUQQt3yFkVp0t2wuWbMmZkDZcNnN83LUz+GgKW4cMSD2StEr5M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720621866; c=relaxed/simple; bh=Ka8TDxRrvq/QMKiwR/kAJmsQAcG8YwV5EicJrDLe8mI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CfvnHd2t93tRjTqNLHu0yI2R+F/VRelutjx4et/uQV90GMJZnpbbgs5ciBwgqdDVsGlNV5cS5nVkTdsNf/kyiA3iRumwiwpSBCj94EbyUhGFTquDdPSGkqUIB5Enyn06hFdUzZ1WnPB3LtMRrKfq5K4XA8qeJ5rP48EvB2e6t9k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn; spf=pass smtp.mailfrom=jmu.edu.cn; arc=none smtp.client-ip=45.254.49.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jmu.edu.cn Received: from amadeus-Vostro-3710.lan (unknown [IPV6:240e:3b3:2c00:fb60:82c0:6879:f4d2:caf4]) by smtp.qiye.163.com (Hmail) with ESMTPA id 6D51A7E014F; Wed, 10 Jul 2024 22:30:42 +0800 (CST) From: Chukun Pan To: Heiko Stuebner Cc: Krzysztof Kozlowski , Conor Dooley , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chukun Pan Subject: [PATCH v3 2/3] arm64: dts: rockchip: remove useless tx/rx_delay for Lunzn Fastrhino R68S Date: Wed, 10 Jul 2024 22:30:16 +0800 Message-Id: <20240710143017.685905-3-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240710143017.685905-1-amadeus@jmu.edu.cn> References: <20240710143017.685905-1-amadeus@jmu.edu.cn> 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 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlDTRpDVk9CTUgZH0kaSU9KHVYeHw5VEwETFhoSFy QUDg9ZV1kYEgtZQVlJT0seQUgZSEFJGEtLQR0ZTUtBQ0kYS0FNQ0xCQR1PH0lBGBodT1lXWRYaDx IVHRRZQVlPS0hVSktJT09PS1VKS0tVS1kG X-HM-Tid: 0a909d0dc0de03a2kunm6d51a7e014f X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PAw6Ejo4DTI1LjAvS0sZPRVO N1YaFAJVSlVKTElLTUlKQ09IS09NVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUlP Sx5BSBlIQUkYS0tBHRlNS0FDSRhLQU1DTEJBHU8fSUEYGh1PWVdZCAFZQUlIQ0w3Bg++ Content-Type: text/plain; charset="utf-8" Since we use rgmii-id as the phy mode, remove the useless tx_delay and rx_delay properties. Fixes: b9f8ca655d80 ("arm64: dts: rockchip: Add Lunzn Fastrhino R68S") Signed-off-by: Chukun Pan --- arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts b/arch/= arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts index 02d966d218fd..d27eb37b5b35 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r68s.dts @@ -39,8 +39,6 @@ &gmac0_tx_bus2 &gmac0_rx_bus2 &gmac0_rgmii_clk &gmac0_rgmii_bus>; - tx_delay =3D <0x3c>; - rx_delay =3D <0x2f>; status =3D "okay"; }; =20 @@ -57,8 +55,6 @@ &gmac1m1_tx_bus2 &gmac1m1_rx_bus2 &gmac1m1_rgmii_clk &gmac1m1_rgmii_bus>; - tx_delay =3D <0x4f>; - rx_delay =3D <0x26>; status =3D "okay"; }; =20 --=20 2.25.1 From nobody Thu Dec 18 05:20:36 2025 Received: from mail-m49198.qiye.163.com (mail-m49198.qiye.163.com [45.254.49.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E27D0194090; Wed, 10 Jul 2024 14:31:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.198 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720621863; cv=none; b=sqYgFxwW8D9kS24kN9r+HTOKJYXSxu1YNcnNODm+bxIYsG2O8nctqOSucCQ000AiuWqbnwa5B6SRrrgJM3jryiFSNExdEX5KBKyknEnsKU0pK4e7sWxemk6K4ABFSWjqc4cknNpJtI+hA2By3S689OEIxXsbzg3fXaHB1Dm81fg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720621863; c=relaxed/simple; bh=FbPLGAdPKDgVaxAJAVLqZmYC+GPn3gPqG4v8AyTchtc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SWQuHRchVyqoHf06SqQwRylU4TPxeFxp+TLGGrbTLMPf8sbrioAoUWUzYUXFzf8o1HP0FlLp9O1wlSi0hp7DCYwE8/vHBGRPzPUAYJ9/JIQVoq0zhnnud5bBqYT2H+mpZBxaNvaJjIthNtJ/l/EhHrPA7GdSdQTJJk6/ILHNmGU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn; spf=pass smtp.mailfrom=jmu.edu.cn; arc=none smtp.client-ip=45.254.49.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jmu.edu.cn Received: from amadeus-Vostro-3710.lan (unknown [IPV6:240e:3b3:2c00:fb60:82c0:6879:f4d2:caf4]) by smtp.qiye.163.com (Hmail) with ESMTPA id ADB257E0173; Wed, 10 Jul 2024 22:30:44 +0800 (CST) From: Chukun Pan To: Heiko Stuebner Cc: Krzysztof Kozlowski , Conor Dooley , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chukun Pan Subject: [PATCH v3 3/3] arm64: dts: rockchip: Enable UHS-I SDR-50 for Lunzn FastRhino R66S Date: Wed, 10 Jul 2024 22:30:17 +0800 Message-Id: <20240710143017.685905-4-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240710143017.685905-1-amadeus@jmu.edu.cn> References: <20240710143017.685905-1-amadeus@jmu.edu.cn> 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 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZQx9MVkpDTx1MHk1KQklPGVYeHw5VEwETFhoSFy QUDg9ZV1kYEgtZQVlJT0seQUgZSEFJGEtLQR0ZTUtBQ0kYS0FNQ0xCQR1PH0lBGBodT1lXWRYaDx IVHRRZQVlPS0hVSktJSEJLQ1VKS0tVSkJZBg++ X-HM-Tid: 0a909d0dc9bf03a2kunmadb257e0173 X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PlE6MRw*EDI1DDAwPEofPRBC KT8aCT9VSlVKTElLTUlKQ09OSUxIVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUlP Sx5BSBlIQUkYS0tBHRlNS0FDSRhLQU1DTEJBHU8fSUEYGh1PWVdZCAFZQUlITUM3Bg++ Content-Type: text/plain; charset="utf-8" This board can work in UHS-I SDR-104 mode, but may not be stable, use SDR-50 instead. Remove the max-frequency property, which is already defined in rk356x.dtsi. Fixes: c79dab407afd ("arm64: dts: rockchip: Add Lunzn Fastrhino R66S") Signed-off-by: Chukun Pan --- arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts b/arch/= arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts index b5e67990dd0f..8e5c182ef76c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dts @@ -20,9 +20,9 @@ &sdmmc0 { cap-mmc-highspeed; cap-sd-highspeed; disable-wp; - max-frequency =3D <150000000>; no-sdio; no-mmc; + sd-uhs-sdr50; pinctrl-names =3D "default"; pinctrl-0 =3D <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; vmmc-supply =3D <&vcc3v3_sd>; --=20 2.25.1