Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp539309ybz; Wed, 15 Apr 2020 13:35:32 -0700 (PDT) X-Google-Smtp-Source: APiQypJ+6dWQUqZqxl31MPV0pNUslc5GmweG7bLp3hydmI4KO/UWiEO/PcFaleitSd2EMTULmxjz X-Received: by 2002:a17:907:361:: with SMTP id rs1mr6861283ejb.228.1586982932382; Wed, 15 Apr 2020 13:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586982932; cv=none; d=google.com; s=arc-20160816; b=W1J6FC7uthGV1S7pGs+jUU0F1EIgBWVeCqZchDgthdpSX6oQ6CmL+Py6RoGrHTgnq/ uNNUCurccKigz5Jp/iPFlDgTNL+ZvfAHdTONFnnXQ53npjAER5RXZmqUaQcOGwuERC76 1rShjdxEx+fccUmMBl+xmVp5DcCL1a/At8Nv6kUBboV7PRWxdBOeynnOELnIBxd2YVg/ d/pFBbgovD1UrLExv0zbS0WMF8QIe0qEMD9k8gLORMCoB6JAWzGcXvQ/26C0DPqKdNS7 yWj7+GLKryx0vlr0EYMRpOQnw2VVhKSwYELSg0XhXALsHBS7GVXb4FgoMntqSQFFafgU Ia4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=M4zJHn01SjR6Igt2W9XuELolPfvn0Xo0MEyV92NR+ww=; b=XifjbcTzv/jrJzvtBuwDZiTf/velUIumv8ormq/LeQ/Lsz49GQkM5r4AIvPV1wopji /CN1YxWlTmpv3MJ7X9cKh0f0DQ8u+C6/dpkYfDaFOwP2clXbJvlkm+u+BIb+vZ7yjgye TD0u3NYfNX2qaOXsIlwcCyf1U1pyEHPWEq5OP+hapuVMLbiNz+9WZu4iiEBQ1fZ0FSt1 Ew68kmyX3qRCQGyCIJ1uPn9un3G+vahuagztd714IRmsA/fejXEXi6ufVf8E963v3hCL mXwwzB/47zKMKo9UelQ8G3nkUlnOUGp9wXJ0djJy0TW8UvoSmMX0bx0XDMGIDBhJk+zF Uglw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si10595647ejq.15.2020.04.15.13.35.08; Wed, 15 Apr 2020 13:35:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438092AbgDNKDB (ORCPT + 99 others); Tue, 14 Apr 2020 06:03:01 -0400 Received: from foss.arm.com ([217.140.110.172]:52260 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438072AbgDNKDA (ORCPT ); Tue, 14 Apr 2020 06:03:00 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3CE641FB; Tue, 14 Apr 2020 03:02:59 -0700 (PDT) Received: from [10.57.33.145] (unknown [10.57.33.145]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1E4E63F6C4; Tue, 14 Apr 2020 03:02:57 -0700 (PDT) Subject: Re: [PATCH] arm64: dts: rockchip: remove bus-width from mmc nodes in rk3308.dtsi To: Johan Jonker , heiko@sntech.de Cc: devicetree@vger.kernel.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org References: <20200413193652.1952-1-jbx6244@gmail.com> From: Robin Murphy Message-ID: <20c81edc-247c-8db0-2b3c-a6c2fcad6b4e@arm.com> Date: Tue, 14 Apr 2020 11:02:46 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200413193652.1952-1-jbx6244@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-04-13 8:36 pm, Johan Jonker wrote: > The 'bus-width' property for mmc nodes is defined both in > 'rk3308.dtsi' and 'rk3308-roc-cc.dts'. > In line with the other Rockchip SoCs define that in a user dts only, > so remove all entries from mmc nodes in 'rk3308.dtsi'. Judging by the pinctrl entries, these represent the number of pins provided by the SoC itself. Obviously boards need to override that if for some reason they don't wire up all the available data lines, but it seems backwards to have every board restate the SoC's default value. In fact, having brought it up, for this particular case the pinctrl setting is inherently related to the bus width, so having one without the other in either place doesn't smell right. Robin. > Signed-off-by: Johan Jonker > --- > arch/arm64/boot/dts/rockchip/rk3308.dtsi | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3308.dtsi b/arch/arm64/boot/dts/rockchip/rk3308.dtsi > index a9b98555d..130771ede 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi > @@ -587,7 +587,6 @@ > compatible = "rockchip,rk3308-dw-mshc", "rockchip,rk3288-dw-mshc"; > reg = <0x0 0xff480000 0x0 0x4000>; > interrupts = ; > - bus-width = <4>; > clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, > <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; > clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; > @@ -602,7 +601,6 @@ > compatible = "rockchip,rk3308-dw-mshc", "rockchip,rk3288-dw-mshc"; > reg = <0x0 0xff490000 0x0 0x4000>; > interrupts = ; > - bus-width = <8>; > clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, > <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; > clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; > @@ -615,7 +613,6 @@ > compatible = "rockchip,rk3308-dw-mshc", "rockchip,rk3288-dw-mshc"; > reg = <0x0 0xff4a0000 0x0 0x4000>; > interrupts = ; > - bus-width = <4>; > clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, > <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; > clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; >