Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp580114ybz; Wed, 15 Apr 2020 14:27:58 -0700 (PDT) X-Google-Smtp-Source: APiQypLEHcwYsiHgeZWsSdB6nHoDb/qlCajanDpnc8+48Y/vlave4VYTLfYFmAS40rhEyMUXN/HP X-Received: by 2002:a17:906:5051:: with SMTP id e17mr6720332ejk.142.1586986078301; Wed, 15 Apr 2020 14:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586986078; cv=none; d=google.com; s=arc-20160816; b=nF7b8QS4ymloewMsNi/wsre7FmXBx68JxAV7+miB7jI7YwfA6NuH6AXNmV32rHycd4 78Prt0CnzIPZfQoce8mmRGM++JQuloZ8M5qbw4Ln4r/Boi9aFRbONxO31UcRxw79Eous Z2ksIlc4ou4WFfSDoVes55rk7cCmQGa/VET0vOQvaeyIhoH10UWJALFd8Cn+1ML1XmdK NghuC4/yDucFBCdrIhUJMtQjDqWnoO+PEzdtk54GhsH2JO+wMBplCc+uBSS2dJIsJJtC 2jF02xSwmkmHckB0lvneZfg8dYu+HIQbd7CBLt+glRTr941H5sv92PMtSuQObC7rig6o yJRw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=rR5ExX9GMibCUEWADDDy6il04ByAVE+hkKawIWe94pM=; b=p76MrhUIG7XG/R+AB8cWuxeS95JQYBwyPGwU6cdq85t8a+PxrVPUfFPEgw4NXNp94b 9qahQ0vlm5/Qu7C7HLTG6MSq+2SjsoXYlBktKnoOpjoLXifOD7Mclv4WzMVtQNsm1B71 PtlrAeG/9rzouuxMdgwFKi7aALIf9OXpNIPS+xGHE7jYpdq7AXg9Qt4VNb1ULh/skats Hw/+0QWgq5qKhOcMizbMQ3B/zTZqdcsrqJJoCwTnQTAFwZPqTkKveNHuVS4RGtCBHip8 UwnLP8rY2F9e2sVD8G6f2lypR/JHvFy6VoGl4EQaoORWFNnZ3lgDjFioajnMH9fJxS2B mq6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: 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 h20si4137707ejt.165.2020.04.15.14.27.35; Wed, 15 Apr 2020 14:27:58 -0700 (PDT) Received-SPF: pass (google.com: 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: 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 S2439760AbgDNMB1 (ORCPT + 99 others); Tue, 14 Apr 2020 08:01:27 -0400 Received: from gloria.sntech.de ([185.11.138.130]:40032 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439755AbgDNMBY (ORCPT ); Tue, 14 Apr 2020 08:01:24 -0400 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jOKFk-0008I1-1j; Tue, 14 Apr 2020 14:01:20 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Johan Jonker Cc: Robin Murphy , devicetree@vger.kernel.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH] arm64: dts: rockchip: remove bus-width from mmc nodes in rk3308.dtsi Date: Tue, 14 Apr 2020 14:01:19 +0200 Message-ID: <2038198.JSHZf9jCco@diego> In-Reply-To: References: <20200413193652.1952-1-jbx6244@gmail.com> <20c81edc-247c-8db0-2b3c-a6c2fcad6b4e@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Johan, Am Dienstag, 14. April 2020, 13:45:00 CEST schrieb Johan Jonker: > Hi Robin, Heiko, > > If the Rockchip DT maintainers(= Heiko) agree that the new line for the > 'bus-width' properties is that it should be placed in dtsi I'll produce > a version 2. Please advise what should be done with the other Rockchip > SoCs. Change them too? (1) as Robin pointed out bus-width and pinctrl containing the bus-pins should be in the same file, as they describe parts of the same property (2) essentially it is ok for pinctrl-defaults to live in the dtsi, when there are no pin variants ... (like the uartX_mY pin variants), so if you enable a node and only have essentially one pin variant to enable, this should live in the soc dtsi (like essentially all boards using 4-pin sdmmc and 8-pin emmc) (3) Fixing other devicetrees is optional, so I won't oppose it of course but it's also not something "that must be done" ;-) Heiko > On 4/14/20 12:02 PM, Robin Murphy wrote: > > 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"; > >> > >