From patchwork Tue Jul 27 11:22:07 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: 488167 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=-19.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 77BBDC4338F for ; Tue, 27 Jul 2021 11:22:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5C8CE610D0 for ; Tue, 27 Jul 2021 11:22:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236345AbhG0LWO (ORCPT ); Tue, 27 Jul 2021 07:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236284AbhG0LWN (ORCPT ); Tue, 27 Jul 2021 07:22:13 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0241FC061757 for ; Tue, 27 Jul 2021 04:22:14 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id l19so17333031pjz.0 for ; Tue, 27 Jul 2021 04:22:13 -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=A9OpObOhNKRT1oPCp9Nu/AHOlXXiMYSXBYlg8dkzJ3E=; b=DiqnuquaXJwP3eaObksalDscAsH+YhayozsjW33Um66W84C9i6JolTO8sPjpHayoGX Ust6aHXUxkBKmmpQzgoYt0z4noDFlUKo7Aid+kRozpswPZwPI+u+dMdkK0nlTuOhLjBF ZdQ2JagFO3TqOd+66LDEiQ1243a2V6zstmblM= 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=A9OpObOhNKRT1oPCp9Nu/AHOlXXiMYSXBYlg8dkzJ3E=; b=Nz+oyTNf8zI2yUuBgx0tDIXRamVTpTnRDbbmHI9jNrbefg35bjvUOXhe4cokcM2lSq mRfghr3YmLSb4yN8TtE++vX9uMSzCniPGnsq04fCDI5RBoO5/gcjN/qScq55Wxj8akqV xGyqjG0g77PsjbTCEFKi0notbQ51aPbHfXc5Hu+3F1uP5cGe5GaDp7iMZzebxGOguoeu BeQZFvXaeP9D+k0eFMzQ89S4x0n1VggE875HJbUCS3WT19BoaS7CgaeQfaTHkwbThHrZ ra6jAZnowuyc9NiMSlgmlVg8w5SeGlLcnMuj+4tAUz+kDax3FyvkhKOBo+SEgNC7EqwV 9Odw== X-Gm-Message-State: AOAM532hy4njMvXbKi6rLa3CqC2SIlP/gJYQIXTM8n8PVRroXIa8F3vQ uxKTJmv85JlPOE+b+Gy2tozOZg== X-Google-Smtp-Source: ABdhPJxj1u4Gxg84zfPYkvKEg+0aPmJrlpRhck/HakTm5IhumkZ5XEl0Y2WzjGh2P9uFjnQZaZYWQw== X-Received: by 2002:a17:90a:f86:: with SMTP id 6mr3889825pjz.68.1627384933489; Tue, 27 Jul 2021 04:22:13 -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 20sm3506467pfh.15.2021.07.27.04.22.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 04:22:13 -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 v3 1/2] arm64: dts: mt8183: kukui: Use aliases to mmc nodes Date: Tue, 27 Jul 2021 19:22:07 +0800 Message-Id: <20210727112208.2508675-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.32.0.432.gabb21c7263-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org fa2d0aa96941 ("mmc: core: Allow setting slot index via device tree alias") allows the use of aliases to number SD/MMC slots. 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 --- v2->v3: fix indentation error and add more commit message. --- 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 Tue Jul 27 11:22:08 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: 486934 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=-19.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 1B628C4320E for ; Tue, 27 Jul 2021 11:22:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 049D861A03 for ; Tue, 27 Jul 2021 11:22:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236493AbhG0LWT (ORCPT ); Tue, 27 Jul 2021 07:22:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236476AbhG0LWQ (ORCPT ); Tue, 27 Jul 2021 07:22:16 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BD6DC061757 for ; Tue, 27 Jul 2021 04:22:17 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d17so15348038plh.10 for ; Tue, 27 Jul 2021 04:22: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:in-reply-to:references :mime-version:content-transfer-encoding; bh=7I/jF2S0x4GNrJTMatkqZ5v2AExG75w8sw95n03TZZ0=; b=PqCGjDl0ZDJC6BzPx1oirKsbbPKW0TT0QoNZEJ5bgaUHxNW2pP0EjwwbnRgprztDqb BEn6zo6NOK4y1DgVh5S9XW+su4WkiyxAGq2tH16BQ26TyZZep208NdTgIfaVkUv+aGo6 c359te2EWFAgsQ15StoybDeaVCYRnApyYGWh0= 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=7I/jF2S0x4GNrJTMatkqZ5v2AExG75w8sw95n03TZZ0=; b=pHR59YG8D3uPkaklTf0Pr0yJDSW2hg/Po1MLOFAXPpffkasITNysGmVVwB/1k9CK9N SG2/Bh/DdkFPbPlSD3z/yzFref5vCqKrReAJQAILbVLZs6fdjvYeJgZMcOW4PJZx4EjK SCKJngLFPDC1BFEzZbDhxO4dHHaXeHCIflVh5N089su6bvbrQvCBH+mx5sekUU3X/mbZ zVjIOYNkfSE7d4Zew4zBV4kZkZbXd0YLGk4lzb/9uPDm0GJjDDZkym3WHOG50Omo+1jL 0VVWaztq8GHB5E81comXLeaqvMYyfBveMD2b5ConhGfRjgwPwVgrpNlM6rjLuerWg53k 8mUg== X-Gm-Message-State: AOAM531NL3XkD/2ye+4kc644jdeU2PSvc1sCQ+Lls+sgCp1ENGkjMiEO NY/PYjxyCb1hcMcZqwcllzwlsQ== X-Google-Smtp-Source: ABdhPJxO2igEEqSKLOzbj7utbR/KZmD++/50YFoHbGgBIVgwGez26YNeYy09LVDcdVm7+GbWPGivmA== X-Received: by 2002:a63:f515:: with SMTP id w21mr22984558pgh.343.1627384935268; Tue, 27 Jul 2021 04:22:15 -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 20sm3506467pfh.15.2021.07.27.04.22.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 04:22:14 -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 2/2] arm64: dts: mt8173: elm: Use aliases to mmc nodes Date: Tue, 27 Jul 2021 19:22:08 +0800 Message-Id: <20210727112208.2508675-2-hsinyi@chromium.org> X-Mailer: git-send-email 2.32.0.432.gabb21c7263-goog In-Reply-To: <20210727112208.2508675-1-hsinyi@chromium.org> References: <20210727112208.2508675-1-hsinyi@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org fa2d0aa96941 ("mmc: core: Allow setting slot index via device tree alias") allows the use of aliases to number SD/MMC slots. 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 --- v2->v3: add more commit message. --- 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>;