From patchwork Mon Feb 27 19:38:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Grimler X-Patchwork-Id: 5907 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2609994wrd; Mon, 27 Feb 2023 11:45:33 -0800 (PST) X-Google-Smtp-Source: AK7set/pj8WlzwEOo7KuS526E54XF+qw7JXcLELkw0/slvNN+GGfOp087nklZvcq+p0pJROmp9xt X-Received: by 2002:a05:6402:157:b0:4ab:4569:4b9f with SMTP id s23-20020a056402015700b004ab45694b9fmr832547edu.0.1677527132802; Mon, 27 Feb 2023 11:45:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677527132; cv=none; d=google.com; s=arc-20160816; b=zeHUCeJhupn7JrlaeInaAaq3nhfDdqF5ci8YQVmV4zxmAVc0pCWTzFsbfG+Zb0adiW VWT/YUxv38VDKgbDXNQxpUeeE8ny6uzeaDAoicDlJOfga6fTHjrUfK4yCdm6PE8LKbO1 yS0C9z3myIx3/KiRVZecGIWqvDCzNSTqPjdxSR37K81LdxtTxisgImUfSiOunlhcvK6Q bfZgm5RV28t/ZqjKBxH0RE8Tx3lM8iWg2+XJXxOOdbUKVHyQuha2+FCe1gMbKJBFm6bT u4VHb82DTaDKBwrUgV0sfg3XQ4PdSv+hyDlG9tQ+ehjkqAiD/A2HcN4Xc2cf28IImBma j6zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7f3/V6rulwdsJB4cadc//1WfYWmlU+C6b8gbWiFieEM=; b=e4X9EE+KsZVWLUuVSZ1zr044+Bwcy5d0CiDGSWOhsvopl1+oFnFL+eba+jcweDrEQ5 tRAfKCpb7R0+o8zi5yeqfzdbS3C/CKtf4bx/A3GiVrGnfYkUgoRzMyil9PSFaZZbk1hq DvSodmF8q9NkRlS5fIRoDkgVHk443L55X2aOpyzGJX++aUtyaqIqdo36OoFuEUtkTaMN qogQ7HpTAvpWcngiYdpd3hf/wWRyrHFlk3+ikPd9x99158rJtzFaPuncOnBDwzfIH8aH JzUajz5vZJaDoesuDEAnTqoYGWW7WAG9IL3Kb3lfQQXPw8E63US+spvHKtC8r33G5D0e 0gzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@grimler.se header.s=key1 header.b=YqDlno+S; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=grimler.se Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lu18-20020a170906fad200b008b2756c623dsi99215ejb.175.2023.02.27.11.45.10; Mon, 27 Feb 2023 11:45:32 -0800 (PST) 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=@grimler.se header.s=key1 header.b=YqDlno+S; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=grimler.se Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230222AbjB0Tn5 (ORCPT + 99 others); Mon, 27 Feb 2023 14:43:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230228AbjB0Tnx (ORCPT ); Mon, 27 Feb 2023 14:43:53 -0500 Received: from out-53.mta1.migadu.com (out-53.mta1.migadu.com [95.215.58.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE5041B57F for ; Mon, 27 Feb 2023 11:43:47 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=grimler.se; s=key1; t=1677527025; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7f3/V6rulwdsJB4cadc//1WfYWmlU+C6b8gbWiFieEM=; b=YqDlno+Sfly3+AuQitBsaI71vvdeAZJTr8nHtIdHr7xrywYPJg+uEKnae5pPFajR5Qx6Qo mRrbDZWNHg0tOEl7vUhFB361CmHhzQ8kWOFtXwyKLTSEZMgMRwyt2OC6d+JHMEHSCroG13 DGqq8ukw3bSb4LKsyV2I/fQLgH+2DGk= From: Henrik Grimler To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, alim.akhtar@samsung.com, m.szyprowski@samsung.com, jenneron@protonmail.com, markuss.broks@gmail.com, martin.juecker@gmail.com, virag.david003@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Cc: Henrik Grimler Subject: [PATCH v3 0/2] ARM: dts: add mmc aliases for Exynos devices Date: Mon, 27 Feb 2023 20:38:17 +0100 Message-Id: <20230227193819.30133-1-henrik@grimler.se> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT 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 autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759014690813921347?= X-GMAIL-MSGID: =?utf-8?q?1759014690813921347?= It is convenient to have fixed mmcblk numbering of the eMMC and sdcard so that assigned numbers will not change from boot-to-boot or depending on if storage devices are actually attached or not. Anton Bambura has done the work for the chromebooks while I have looked at the other devices. On the chromebooks, mmc0 is used for eMMC and mmc1 for sdcard, while mmc0 is used for eMMC and mmc2 for sdcard on the other boards, simply because Anton and I had different preferences. Also drop mshc aliases while we are at it and instead add mmc capabilities to the individual device trees (right now they are added depending on alias index). I have tested the changes on exynos4412-odroid-u2 and exynos5422-odroid-xu4: the MMC_CAP_1_8V_DDR and MMC_CAP_8_BIT_DATA caps are set correctly (meaning they are set for mshc_0/mmc_0 but not mshc_2/mmc_2) both before and after this patchset. --- Changes since v2: * Set mmc-ddr-1_8v in device trees so that MMC_CAP_1_8V_DDR is set also after removal of mshc0 alias. Issue was pointed out by Krzysztof and David. * Fix whitespace issue in patch 2 which was pointed out by Krzysztof * Reword commit message of patch 2 after Rob's comment Changes since v1: * Move mshc alias cleanup to a separate commit * Use mmc0 and mmc1 (instead of mmc0 and mmc2) for eMMC and sdcard on chromebooks * Address Krzysztof's review comments: - Make changes per device rather than in soc dtsi Henrik Grimler (2): ARM: dts: exynos: replace mshc0 alias with mmc-ddr-1_8v property ARM: dts: exynos: add mmc aliases arch/arm/boot/dts/exynos3250-artik5-eval.dts | 5 ++++ arch/arm/boot/dts/exynos3250-artik5.dtsi | 20 ++++++++++------ arch/arm/boot/dts/exynos3250-monk.dts | 20 ++++++++-------- arch/arm/boot/dts/exynos3250-rinato.dts | 23 +++++++++---------- arch/arm/boot/dts/exynos3250.dtsi | 3 --- arch/arm/boot/dts/exynos4210-i9100.dts | 11 ++++++--- arch/arm/boot/dts/exynos4210-origen.dts | 8 ++++++- arch/arm/boot/dts/exynos4210-smdkv310.dts | 4 ++++ arch/arm/boot/dts/exynos4210-trats.dts | 9 +++++++- .../boot/dts/exynos4210-universal_c210.dts | 9 +++++++- arch/arm/boot/dts/exynos4412-itop-elite.dts | 4 ++++ .../boot/dts/exynos4412-itop-scp-core.dtsi | 17 +++++++++----- arch/arm/boot/dts/exynos4412-midas.dtsi | 20 +++++++++------- .../boot/dts/exynos4412-odroid-common.dtsi | 21 ++++++++++------- arch/arm/boot/dts/exynos4412-origen.dts | 17 +++++++++----- arch/arm/boot/dts/exynos4412-p4note.dtsi | 23 ++++++++++++------- arch/arm/boot/dts/exynos4412-smdk4412.dts | 4 ++++ arch/arm/boot/dts/exynos4412-tiny4412.dts | 4 ++++ arch/arm/boot/dts/exynos4412.dtsi | 1 - arch/arm/boot/dts/exynos5250-arndale.dts | 6 +++++ arch/arm/boot/dts/exynos5250-smdk5250.dts | 3 +++ arch/arm/boot/dts/exynos5250-snow-common.dtsi | 4 ++++ arch/arm/boot/dts/exynos5250-spring.dts | 6 +++++ arch/arm/boot/dts/exynos5250.dtsi | 4 ---- arch/arm/boot/dts/exynos5260-xyref5260.dts | 16 +++++++++---- arch/arm/boot/dts/exynos5410-odroidxu.dts | 3 +++ arch/arm/boot/dts/exynos5410-smdk5410.dts | 6 +++++ arch/arm/boot/dts/exynos5420-arndale-octa.dts | 6 +++++ .../dts/exynos5420-galaxy-tab-common.dtsi | 6 +++++ arch/arm/boot/dts/exynos5420-peach-pit.dts | 4 ++++ arch/arm/boot/dts/exynos5420-smdk5420.dts | 6 +++++ arch/arm/boot/dts/exynos5420.dtsi | 3 --- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 4 ++++ .../boot/dts/exynos5422-odroidxu3-common.dtsi | 5 ++++ arch/arm/boot/dts/exynos5422-samsung-k3g.dts | 1 + arch/arm/boot/dts/exynos5800-peach-pi.dts | 4 ++++ 36 files changed, 223 insertions(+), 87 deletions(-) base-commit: 301d3dd05525e3a046f6cfa6ee4dea6a3b7111ee