From patchwork Tue Dec 13 23:01:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 32974 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp409681wrn; Tue, 13 Dec 2022 15:03:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf5XCyh5JEhI9HOUYuiB2M63ysq12H/wcasDpO/bIVWctGpt6Nfo4na5c13yjCTv4f/fTI6W X-Received: by 2002:a17:906:a41:b0:78d:f455:b5dd with SMTP id x1-20020a1709060a4100b0078df455b5ddmr18601315ejf.29.1670972618761; Tue, 13 Dec 2022 15:03:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670972618; cv=none; d=google.com; s=arc-20160816; b=HqU1H9OLSHGNIJc9gUoXUBUNdhzh6i34GqrAYDzRHRgZ2Pyef1aqSro1wYktq4Og6M pvUdbPSB7HqPJI+spT7F6b44WkyXkf7XPLCPz7Y+C1xjvIz4tJXMa6/u9z5fJhRtnQtW BqmgU6se8JE/ogR0+jRhw5L+3041OGX8j33nry+lKsCL+I6X3WHpbR9zuCpsiuJu27n+ 8md1lDwLwsziC760PBpCbRxwr625odKbEfF+/prYrocqoV8vVnPxIZ4EP8tIAy2h+K/q M5WebQ+tFGsX2aBos6iXVpBvoGV4nMx0ahFCsRUGizLcVRCMi8x5OPCshA5uy93zdY65 Chfw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=+nu+g2LJg5lwO/BdbHra2dw9BJQC9ZPuosJX/odCBv8=; b=W3xHhKKcJ2N9ge4z4Fj2XdBnVxXmdztnhc7Fyg11mSMZTpanpJF/slKcd7S+MG5wLZ BjTKui3T1Jkt715+KTqQ94pKPvjQiLVjanC9AmHSv7qEZkYKxgCTmkurQDk1GbF6Ngbj qKCnLj/yLop57nUc2a/i+Ik1ZL59DqCVn3CSCPlcvfOVl8Lzpd4+23DMs4TjEO4zm8kC uAFH2pNdbvEGylZTTIr3RPBcLLS8ndbXoudZiqRDKQgRJydgtMdG0MObULBNVJz9akVE KWi+Wiztnqh501xNoFJNX1jS9I+gIAo940AwTns6PxVHBWRzMmLeAr+9PvPay7E4xHHj yrwg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp18-20020a170906c15200b007c18a102d75si2878950ejc.556.2022.12.13.15.03.14; Tue, 13 Dec 2022 15:03:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236980AbiLMXCN (ORCPT + 99 others); Tue, 13 Dec 2022 18:02:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236956AbiLMXCA (ORCPT ); Tue, 13 Dec 2022 18:02:00 -0500 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 01FEC10050; Tue, 13 Dec 2022 15:01:56 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.96,242,1665414000"; d="scan'208";a="143231137" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 14 Dec 2022 08:01:56 +0900 Received: from mulinux.home (unknown [10.226.93.1]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 2A2F2400D4DC; Wed, 14 Dec 2022 08:01:50 +0900 (JST) From: Fabrizio Castro To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Michael Turquette , Stephen Boyd , Geert Uytterhoeven Cc: Fabrizio Castro , Magnus Damm , Wolfram Sang , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, Chris Paterson , Biju Das , Laurent Pinchart , Jacopo Mondi Subject: [PATCH 3/4] mmc: renesas_sdhi: Add RZ/V2M compatible string Date: Tue, 13 Dec 2022 23:01:28 +0000 Message-Id: <20221213230129.549968-4-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221213230129.549968-1-fabrizio.castro.jz@renesas.com> References: <20221213230129.549968-1-fabrizio.castro.jz@renesas.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752141784515802107?= X-GMAIL-MSGID: =?utf-8?q?1752141784515802107?= The SDHI/eMMC IPs found with the RZ/V2M (a.k.a. r9a09g011), are very similar to the ones found in R-Car Gen3, but they are not exactly the same, and as a result need an SoC specific compatible string for fine tuning driver support. Signed-off-by: Fabrizio Castro Reviewed-by: Wolfram Sang --- drivers/mmc/host/renesas_sdhi_internal_dmac.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc/host/renesas_sdhi_internal_dmac.c b/drivers/mmc/host/renesas_sdhi_internal_dmac.c index 29f562115c66..f38003f6b1ca 100644 --- a/drivers/mmc/host/renesas_sdhi_internal_dmac.c +++ b/drivers/mmc/host/renesas_sdhi_internal_dmac.c @@ -210,6 +210,11 @@ static const struct renesas_sdhi_quirks sdhi_quirks_r8a77990 = { .manual_tap_correction = true, }; +static const struct renesas_sdhi_quirks sdhi_quirks_r9a09g011 = { + .fixed_addr_mode = true, + .hs400_disabled = true, +}; + /* * Note for r8a7796 / r8a774a1: we can't distinguish ES1.1 and 1.2 as of now. * So, we want to treat them equally and only have a match for ES1.2 to enforce @@ -251,6 +256,11 @@ static const struct renesas_sdhi_of_data_with_quirks of_r8a77990_compatible = { .quirks = &sdhi_quirks_r8a77990, }; +static const struct renesas_sdhi_of_data_with_quirks of_r9a09g011_compatible = { + .of_data = &of_data_rcar_gen3, + .quirks = &sdhi_quirks_r9a09g011, +}; + static const struct renesas_sdhi_of_data_with_quirks of_rcar_gen3_compatible = { .of_data = &of_data_rcar_gen3, }; @@ -274,6 +284,7 @@ static const struct of_device_id renesas_sdhi_internal_dmac_of_match[] = { { .compatible = "renesas,sdhi-r8a77970", .data = &of_r8a77970_compatible, }, { .compatible = "renesas,sdhi-r8a77990", .data = &of_r8a77990_compatible, }, { .compatible = "renesas,sdhi-r8a77995", .data = &of_rcar_gen3_nohs400_compatible, }, + { .compatible = "renesas,sdhi-r9a09g011", .data = &of_r9a09g011_compatible, }, { .compatible = "renesas,rcar-gen3-sdhi", .data = &of_rcar_gen3_compatible, }, { .compatible = "renesas,rcar-gen4-sdhi", .data = &of_rcar_gen3_compatible, }, {},