Received: by 2002:ac0:cd04:0:0:0:0:0 with SMTP id w4csp305871imn; Fri, 1 Jul 2022 15:47:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sIS/npySRccF2nKYZ7s68LEM/sGfred4CCnuV+W2XVaW/mEvHAXzt1++9sFpjnXHBA6clh X-Received: by 2002:a05:6a00:3488:b0:528:3c8b:7b3a with SMTP id cp8-20020a056a00348800b005283c8b7b3amr3393203pfb.57.1656715664478; Fri, 01 Jul 2022 15:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656715664; cv=none; d=google.com; s=arc-20160816; b=PbxWeHZ0XGllQOk1NjXZAFZM4Gh5swvLwgP6JRz61OiQlwIJo/0Y5EecgpjHzYXI9/ zVTLC2t8/RF9lOclMaYMKMa2Yiz5mjtYpsXBdO9ZR7CTsPoIIDUxEM7wsMdi44Jf3Nst 97bakGZDgVLYwtdQ3N2DJn+X3RxTNXXK2OVCJfdxmSeFXQX5Qk02ftTAhlm99CdBLLeg XLP3f8nSGGBrZ8+VULfbg5Guacq1O9tZ97SbC976proMDMFwBVqd1Sj3lniF1LGRJ4am eVsYKDQRpQXCaB62osjN42J5CHUmDAuXo6yQf+MUJpaipHl9jfMb7ncTaZWC/XSHdtf0 xX+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=B02bzRGbPhS5MRaci1qJ7WstNeRx1qZ4Qr/Z7LI3oHQ=; b=mWyY1t/jeqy1dut13Hr/PCy4quXtqLQsXogPsOS4ErwRV1Wb9UjHzHbDKIe6sfGO7G ngmq/llqeG3JFF0HvOCP7+5OnkW4aUPSsi7h8yak33nWSgO91A77yBdwgNzJ3uNWj7b3 bTXabYRz9w508o8PbC/aAKR1oVd199Gg0bYTLzpCJqdoBXNT38JVIOHLkQiSS27ogasC 9SE1ChKrDIVJxhxBMYbUla1TQAXEgxqjZ2ZoVsK92AFJdyqg724FopY3755dBNJBnXNk DSids0Qm/WcPLHNqEhHHmcsVRkw2qmb0lt5g47FM5TwwsRSCyrTceNYiauzhHpf6RMCt bXYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=eSR5xImL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e125-20020a636983000000b004119d1bc68csi153925pgc.718.2022.07.01.15.47.32; Fri, 01 Jul 2022 15:47:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=eSR5xImL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230261AbiGAWhA (ORCPT + 99 others); Fri, 1 Jul 2022 18:37:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbiGAWg7 (ORCPT ); Fri, 1 Jul 2022 18:36:59 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C09A138795; Fri, 1 Jul 2022 15:36:58 -0700 (PDT) Received: from notapiano (unknown [194.36.25.35]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 070F266017F5; Fri, 1 Jul 2022 23:36:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656715017; bh=vZ3irZ1TSm2BYJfU1kDyXnE/zMCI6E+fE9pW9wuk8Go=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eSR5xImLUn316LrjljZ1ZE2vpJUZM4TVRpGvnWzfv4NErflfdKirKLu8UPCVzqron l4YGAOJWdXyKYK6D2OrVmU07Xj0/Wp+90Ey1FT9698Nd5TWi4qJsOKQTIY9ABVbCMN 73NxzIc/WJqP1kt5p7h2izMmWdnFOy5ZA4odTghE7lkPbjsABsydmEZO4ZmDIsu2P0 /SJkm9X2cTQ12UVvM/HQm4peSCLCUgGBID/YFa8egtT/YuL0NskPQ/6Jzx/Y01WWsm w5IUGXT1fRjR8AILu/a22mSqxIsQb+bVOnQ2gE95eNxUzjd1ezd55oFIdvr5gGXm92 I3XECuFDuJE8g== Date: Fri, 1 Jul 2022 18:36:48 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: AngeloGioacchino Del Regno Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, hsinyi@chromium.org, allen-kh.cheng@mediatek.com, gtk3@inbox.ru, luca@z3ntu.xyz, sam.shih@mediatek.com, sean.wang@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org Subject: Re: [PATCH 05/11] arm64: dts: mediatek: cherry: Add support for internal eMMC storage Message-ID: <20220701223648.ps76hfjdnfoj3bf2@notapiano> References: <20220630153316.308767-1-angelogioacchino.delregno@collabora.com> <20220630153316.308767-6-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220630153316.308767-6-angelogioacchino.delregno@collabora.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 30, 2022 at 05:33:10PM +0200, AngeloGioacchino Del Regno wrote: > Add mtk-sd controller and pin configuration to enable the internal > eMMC storage: now it is possible to mount a rootfs located at the > internal storage. > > Signed-off-by: AngeloGioacchino Del Regno > --- > .../boot/dts/mediatek/mt8195-cherry.dtsi | 87 +++++++++++++++++++ > 1 file changed, 87 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi > index 091338f7d5ff..8c4b492f774f 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi > @@ -9,6 +9,7 @@ > > / { > aliases { > + mmc0 = &mmc0; There was this discussion about adding aliases on dtsi's or not [1]. The case in favor of adding them in the dtsi seemed stronger, but it wasn't conclusive... Anyway, I guess it's fine. [1] https://lore.kernel.org/all/CAD=FV=Wi9xTnWTPbakSnf9rKkiT+4AT=3db-uwhww1bdLKjv9g@mail.gmail.com/ > serial0 = &uart0; > }; [..] > +&pio { > + mmc0_pins_default: mmc0-default-pins { > + pins-cmd-dat { > + pinmux = , > + , > + , > + , > + , > + , > + , > + , > + ; > + input-enable; > + drive-strength = ; These MTK_DRIVE_*mA macros map directly to the values, and the drive-strength property is already standard and defined to take values in mA, so it's better to use the value directly: drive-strength = <6>; (Likewise below and in some other patches) Otherwise, Reviewed-by: N?colas F. R. A. Prado Thanks, N?colas