Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp14432rdh; Mon, 18 Dec 2023 02:57:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGnF/VOrpl4fb7wkkMKg+uyv3RqNsfCUqxHBPuoB7h1dwmAYWX5eAzgfSazoVkliPNUPW3 X-Received: by 2002:a17:902:aa90:b0:1d0:60ce:be09 with SMTP id d16-20020a170902aa9000b001d060cebe09mr7032673plr.61.1702897073207; Mon, 18 Dec 2023 02:57:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702897073; cv=none; d=google.com; s=arc-20160816; b=XCwBPATFO59A+eIVTArFVBdKGpgClO2atd3kp0555ZPqNTBK7ZzW6DBveo0C3pT6FS vR2TKUV2TMM4KA2XUTFfkiCue2DG4On4CdfA3e9J24mCvb0DxS8hKsEVFJDzOF3z+hfs BAUE3R1jRM7dJP2ip3OeB6l64HQgF31UVNIE/AHibCp+sjKMi2VQ94GigwFWisaaKm3m e5IURWvTkVnJb+XkUsYQ28eOLe2KXfZV2yXpEyl2XLbxi6HHTYeI0p7nkn7OEdJZp8lg r5nANZOsehsd0ZCFVvc7MiDMg9pRuYbiuui59Lx5cVV3iOUYgVRjxkCV3tHSa+e5/zG4 Vq4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gwe4zCDjtQz1QKeidqQfolK+ZN+4nQnHqxy78omjQGE=; fh=7bz9NiPhHc8Sm8oLn2h0LU1iRiy3RnhVWzCCFWFUq0M=; b=zI7Ul9Hc5c0NdLfTUH5cqWd9xgYnlK9DT35brlnnrRdy5KA5K8nkp+qNUJF+x9PR7v I0FBh5pOmhmssDVKlSMn4WtTdqcGRzBdmXjJqX5AwHcewNEDHrl0rio81aYZXLg1Vkwy JypKAU4/w9J4CzuKvrH+sk+L/Jso9Ua5u7bD5FhHsLHGM618AvQUfmj7j22SOI7Zg+XF gyLN+377dCjbdi6IVVGpuaz/4IT4JtJ0tFam1wvCNt+ub5U3r5bFZNXPJvX9qnlWczzc N3UqYd6CYczULJxm0Bo1Vbi2qIj2UdRIxEYm6d+wBYiJEzf0xkQV8MGUGYkgF4Wxu5sm jhPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=XPqW6oTY; spf=pass (google.com: domain of linux-kernel+bounces-3391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x3-20020a1709027c0300b001cfd0495291si17565974pll.524.2023.12.18.02.57.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 02:57:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=XPqW6oTY; spf=pass (google.com: domain of linux-kernel+bounces-3391-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A823EB222B7 for ; Mon, 18 Dec 2023 10:57:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F0BA1A59C; Mon, 18 Dec 2023 10:56:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="XPqW6oTY" X-Original-To: linux-kernel@vger.kernel.org Received: from m15.mail.163.com (m15.mail.163.com [45.254.50.219]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EFB6419447; Mon, 18 Dec 2023 10:56:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=gwe4z CDjtQz1QKeidqQfolK+ZN+4nQnHqxy78omjQGE=; b=XPqW6oTYieu8ROm5Akl3l jMmVSzu99c8+QMhO68cwiIQmDLML2nrU38ZjLiJNFalFhCN1/oFL6Xsm+galhFIZ BmFvUDtAvVmMZB/Hz3K8RZjbXpKHKNXmDju3R4uZbUFJHd6GqjrSCMG6b1mLItm0 Twq1MXzgRS3/zyoTvJs0bs= Received: from ProDesk.. (unknown [58.22.7.114]) by zwqz-smtp-mta-g2-2 (Coremail) with SMTP id _____wDn72EdJYBln1v+Bg--.7214S5; Mon, 18 Dec 2023 18:55:31 +0800 (CST) From: Andy Yan To: heiko@sntech.de Cc: krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, zhengxing@rock-chips.com, Andy Yan Subject: [PATCH v2 3/3] ARM: dts: rockchip: Remove rockchip,default-sample-phase from rk3036.dtsi Date: Mon, 18 Dec 2023 18:55:23 +0800 Message-Id: <20231218105523.2478315-4-andyshrk@163.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231218105523.2478315-1-andyshrk@163.com> References: <20231218105523.2478315-1-andyshrk@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:_____wDn72EdJYBln1v+Bg--.7214S5 X-Coremail-Antispam: 1Uf129KBjvJXoW7Cw15tr48GFy8uF4kWF1fXrb_yoW8Cryxpw 13ZrZrGw4xKr1fZasrtwn5Ca9Yyrn8Ga1F9r4xJw1Iqr12qr95GF1a9rZ3XFyUXw42vayY 9F43Xry2ya9rZaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jdZ23UUUUU= X-CM-SenderInfo: 5dqg52xkunqiywtou0bp/xtbBEgVKXmVOBAp8owABs4 From: Andy Yan This should be a per board property, should not be put in a soc core dtsi. And when this property convert from default-sample-phase in linux-5.7 by commit 8a385eb57296 ("ARM: dts: rockchip: fix rockchip,default-sample-phase property names"), the emmc on rk3036 kylin board get a initialising error: [ 4.512797] Freeing unused kernel memory: 8192K [ 4.519500] mmc_host mmc1: Bus speed (slot 0) = 37125000Hz (slot req 37500000Hz, actual 37125000HZ div = 0) [ 4.530971] mmc1: error -84 whilst initialising MMC card [ 4.537277] Run /init as init process [ 4.550932] mmc_host mmc1: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0) [ 4.664717] mmc_host mmc1: Bus speed (slot 0) = 37125000Hz (slot req 37500000Hz, actual 37125000HZ div = 0) [ 4.676156] mmc1: error -84 whilst initialising MMC card I think the reason why the emmc on rk3036 kylin board was able to work before linux-5.7 was that the illegal property was not correctly identified by the rockchip dw_mmc driver. Fixes: faea098e1808 ("ARM: dts: rockchip: add core rk3036 dtsi") Signed-off-by: Andy Yan --- (no changes since v1) arch/arm/boot/dts/rockchip/rk3036.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/rockchip/rk3036.dtsi b/arch/arm/boot/dts/rockchip/rk3036.dtsi index 5344803442a1..466952bf9db4 100644 --- a/arch/arm/boot/dts/rockchip/rk3036.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3036.dtsi @@ -287,7 +287,6 @@ emmc: mmc@1021c000 { clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; - rockchip,default-sample-phase = <158>; disable-wp; dmas = <&pdma 12>; dma-names = "rx-tx"; -- 2.34.1