From patchwork Wed Jul 28 04:07:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12404995 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB4D8C4338F for ; Wed, 28 Jul 2021 04:07:46 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 75F9360EBB for ; Wed, 28 Jul 2021 04:07:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 75F9360EBB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=pg72spnwJaObGDqDkzWs2+L/HjVee17XglozxS3PsZA=; b=QfuYfX5fqfELvV hat/x+K+yZ+tJROpEzvzlvoKxqWKetFLRqfjd4RXGJHEhUzBxeTex9VbF80OLgi8/CMM+X3DzsNkH AnlyqiGbr0vkPPPXiXgmdu33COAQVmu+kSgK2EuP0NB0PRrlIDVUajrgFLCp7eg7Odhovmp54nbrU TxY2rC1BtHzUkRg+ABvdpHzAvIVB7bUNv8BqjgfiZwaNN3QV8PhSPn/OZKeGPwiE2LbGd2YWgk7Au ylGN1zIl2NXsRFv2s7wBh9BvQWwl9A5JSF8iV409mPi61ITtCryuU6LtlW55hb3hSAbZjGhNRMbb+ Yqc6nKxFJPDT+G97Q3qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8aqy-00H12U-Ca; Wed, 28 Jul 2021 04:07:32 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8aqk-00H0yp-2d for linux-mediatek@lists.infradead.org; Wed, 28 Jul 2021 04:07:19 +0000 Received: by mail-pj1-x102e.google.com with SMTP id g23-20020a17090a5797b02901765d605e14so2307386pji.5 for ; Tue, 27 Jul 2021 21:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pks90ivSERYpMZj4hwgFuxICQ3PbMdWHSdug+r6DdN0=; b=fN6OB9+rOqF2+0AFhpPtM/haCGqRJ7JsODJOFsCEcERuuTE3aB5cIrjUKdhQwJ8CII LVp+mM1J0c/7BLHTLg9gnQhyGP3nQ64G6jaiMP97sFY7vxwaItPm8n+1OvUMvyB7jQfC NX7Gls4xWfl4rgH6SxBlHQNP3qk4b4mbNEF98= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pks90ivSERYpMZj4hwgFuxICQ3PbMdWHSdug+r6DdN0=; b=C1xHGYpduM7nV5f31rmHy7B93+jWByMvPV2bae6Wn+LsOvTN7KUKV87N3UzlYyiadh TtsNL5jH9MVz4Rc4cNaKCwt8cp7SdubLYSKqHQokpn+jeTfkBbFZoOnXEFH6QmFbXza2 SOVVYFOOuxHDnIgffCwxPLsQmLUiNtpwQADqZme8LzyqEeP4JIDCFIV6z/Te9SNh6ske 5FSWcCTOMvUAgbdU0d4nSMk404phXlbbqFNrf29tGsNnZ5I74Nd0/VbIs+8/b1OQ7Rtj +xrW+7X6F0hOAEbULRkjv6Huf+l0o3HXjKXNbnAeci/erJqob1384MBaUOjuuWJ18ILp wjCg== X-Gm-Message-State: AOAM531ZLy/31jd5CG0lan5GsjvjnUiE8ouOFhV4dA8jl1KOdV1Wbfyk NpG87dYrzHiE01KllRzHosRXAg== X-Google-Smtp-Source: ABdhPJzA5Yn7qXrzqWhBBZSJiX8eTQpgB2GRbV65UIQ8yec4OJwIMR1tPd7b67aFSc/ImJX+yARX9g== X-Received: by 2002:a17:902:ab98:b029:12b:acc0:e18c with SMTP id f24-20020a170902ab98b029012bacc0e18cmr21358229plr.10.1627445236800; Tue, 27 Jul 2021 21:07:16 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:5176:76cc:2193:9b8f]) by smtp.gmail.com with ESMTPSA id 6sm5536012pfg.108.2021.07.27.21.07.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 21:07:16 -0700 (PDT) From: Hsin-Yi Wang To: Matthias Brugger Cc: Rob Herring , Enric Balletbo Serra , eizan@chromium.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/2] arm64: dts: mt8183: kukui: Use aliases to mmc nodes Date: Wed, 28 Jul 2021 12:07:09 +0800 Message-Id: <20210728040710.2891955-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.32.0.432.gabb21c7263-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210727_210718_199677_40411057 X-CRM114-Status: GOOD ( 11.20 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org With commit 1796164fac7e ("dt-bindings: mmc: document alias support"), a way to specify fixed index numbers was provided. This patch use aliases to mmc nodes so the partition name for eMMC and SD card will be consistent across boots. Signed-off-by: Hsin-Yi Wang Reviewed-by: Chen-Yu Tsai Tested-by: Enric Balletbo i Serra --- v3->v4: change commit message based on review in v3. --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi index ae549d55a94fc..8e9cf36a9a41a 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -13,6 +13,8 @@ / { aliases { serial0 = &uart0; + mmc0 = &mmc0; + mmc1 = &mmc1; }; chosen { From patchwork Wed Jul 28 04:07:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12404997 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B6DCC4338F for ; Wed, 28 Jul 2021 04:07:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 57CCE60F41 for ; Wed, 28 Jul 2021 04:07:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 57CCE60F41 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=83k8eT0wlOf7mgvfJVoB0CnjIE7X9zb1PJjpn7vz184=; b=ecrs3AKgKX5Oun 55rJ22Jb2VngvtIsRTlhkm5j8JAEyHHgLbVbAWUez1IairaAjRl/Az11uoMxnxZoJTQ4whDDNAW1k p0l9R9aQg60QGLwXX6Oh9ng/IlfeCzhGVG+YbWMiFjtxYwKd5cjGiXbskyNMJY7hO7sfBIZrivbrI z/SccfUI0BmW9tf3WYVl64hlSI2Uc4uTWwv/ZpujFlJI901uB1pGk1GNxoGbD0LnnlQQpaQQ3cATs bSRlK6pydWL7KWlOQ4r4niWT0fQBQOkZkjT0qv3f2ukZeLwQ+YYcpwrfmT7uGGI879nYTXV74PsI0 a2zqk9uX56lO/62kk0mA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8arA-00H14h-TH; Wed, 28 Jul 2021 04:07:44 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8aqm-00H0zj-DN for linux-mediatek@lists.infradead.org; Wed, 28 Jul 2021 04:07:21 +0000 Received: by mail-pl1-x630.google.com with SMTP id c16so1115078plh.7 for ; Tue, 27 Jul 2021 21:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+fqG4R+4qOt1ELoyg7PgFn0oDWuwuLmHhCt0oIoufOs=; b=leiQUpg97lA0cyhIJNpA37EZPKMHTpmtrVStYeFXvNCJ1xyRsmHlWPqKfdlCllPmjI mOyT4TnU4QLIXcO7Zxl1XD+VvxZAfjtgOk25vKX1d6v5xLIUJpdGVKPM86Qk//U5KjB2 ebdk2A7Rj+dpo2AS5h/WGB4EOF4U/F72/Ppms= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+fqG4R+4qOt1ELoyg7PgFn0oDWuwuLmHhCt0oIoufOs=; b=RZ30+3Z1d89gSgOyWLBeeAVHJLRHe7MQzCrEpLpUnHMmde4K4tV7eVLaNzwYPTkAyF MoXluv812oOaVUSY3Sfw5eVH14IfAjU443buaWQV55VapeOAU10sbOZHlbydBZ3634Pu EqejUTS3uf/43osPnLv0Cre25BEPV9x7ZZT9j9lxZpebFUW3c+ybWqOdiwg7+V7XU9vn m/+yLbohI/pzBXcpwc3o852TtLkaXzBuI5qz4Y6pvrneiq/P7O6bhKHSd6yjFPHZCk6w 4D/kVoHba0w5wnP4kpANFKbZrnvbgSe3ffCVGaVAi7P2xt5rl9O38njWTCVIki9HKOtk sF4g== X-Gm-Message-State: AOAM531NXMLu4MvLkqbuTYY7uF8pdjEPsJG9aqeDHnDKAiM/9hKq+JF2 9SQCBWI7ZKmaxxTBXd1MaC5ILg== X-Google-Smtp-Source: ABdhPJyDCFmwyf2fn2UI5FGK/JoEH7OH9IM47ZOeYNpro93++WTNtr6+NaqTR9oGAv3jyqKHNRGf9g== X-Received: by 2002:a63:1614:: with SMTP id w20mr27210465pgl.198.1627445239405; Tue, 27 Jul 2021 21:07:19 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:5176:76cc:2193:9b8f]) by smtp.gmail.com with ESMTPSA id 6sm5536012pfg.108.2021.07.27.21.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 21:07:19 -0700 (PDT) From: Hsin-Yi Wang To: Matthias Brugger Cc: Rob Herring , Enric Balletbo Serra , eizan@chromium.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/2] arm64: dts: mt8173: elm: Use aliases to mmc nodes Date: Wed, 28 Jul 2021 12:07:10 +0800 Message-Id: <20210728040710.2891955-2-hsinyi@chromium.org> X-Mailer: git-send-email 2.32.0.432.gabb21c7263-goog In-Reply-To: <20210728040710.2891955-1-hsinyi@chromium.org> References: <20210728040710.2891955-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210727_210720_497019_9D23BE9B X-CRM114-Status: GOOD ( 11.73 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org With commit 1796164fac7e ("dt-bindings: mmc: document alias support"), a way to specify fixed index numbers was provided. This patch use aliases to mmc nodes so the partition name for eMMC and SD card will be consistent across boots. Signed-off-by: Hsin-Yi Wang Reviewed-by: Chen-Yu Tsai --- v3->v4: change commit message based on review in v3. --- arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi index 21452c51a20a8..d5a2cad39c9c7 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi @@ -10,6 +10,12 @@ #include "mt8173.dtsi" / { + aliases { + mmc0 = &mmc0; + mmc1 = &mmc1; + mmc2 = &mmc3; + }; + memory@40000000 { device_type = "memory"; reg = <0 0x40000000 0 0x80000000>;