Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp365322ybx; Mon, 4 Nov 2019 21:52:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxakvaDNBYPZ3y8hmWWOopsKctB2m2vgyd4xXambn3N8bRNcb2SbKLtsAK1awRfrS5gdLiv X-Received: by 2002:aa7:d147:: with SMTP id r7mr30645025edo.198.1572933129680; Mon, 04 Nov 2019 21:52:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572933129; cv=none; d=google.com; s=arc-20160816; b=oBxnHHkXkTpXbIy4jYfUDipjFm6QL9FGZXj8rI5XG06GxPHXL9+LKD/E5b9LU0Hexz P909nOZWz1rK+eTXEtVTXyPpjFEv/U8apa13MEhElS/lhapJOK/O97b9LHpzp/sOaBAk gMNJpuLg+ZzH0OAs9azAzaNUB9NbWqMqCo6V4bDSZnKrZWSIY2GtZ4AB3NY2sSiA/ojD Lfo3qWZOgYa/jtwxztpytb91jOUG0Mz7Pf3hhYaMhKZSa/hqNzoAYju0QFxiexfNgvuH 7hQXSpCCa2WoGpx9+rmQjlbdO04r4vgPxrqRWfxcZYkuh89f9RamC7NCEmUpbl717zvn UNMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=FH8EG1I82ePgnTqf1JaO9XedwX1m9nqBRjT9Uc6PaEA=; b=0WktFkS4JEHl7UnhyUt37R/64vIRtp0PZJYmkjCasGCKx37qrPXAuIrb+l/xC6I1cn kq+D2lqrFWabADZJ8RDFd3zqw+o06ooIgfwNabgst17xbklh+wiOmQ5Exmji8ezv8TTc hNcNgF+7/u1DkTk2HVyKTdqShx216A8n3kVx7hriqQFNg0pMizJy08SGSuFIJbZG0XUo ZkY+A+7ZjR//qKMQAxtz6wj3KBqOwkB1wEYe8zu9FNDzMtPr8rQQ/LyPqIi2PrRXHEKj s8IeC/GBaw8tTAS0XwsG1vmr9bZf9eR2ioC9u/JtMzdU39lPOvjR9+QvATO5LnK6IVml nd3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15si3358443ejm.31.2019.11.04.21.51.44; Mon, 04 Nov 2019 21:52:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729048AbfKEFvB (ORCPT + 99 others); Tue, 5 Nov 2019 00:51:01 -0500 Received: from smtp1.de.adit-jv.com ([93.241.18.167]:50743 "EHLO smtp1.de.adit-jv.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726820AbfKEFvB (ORCPT ); Tue, 5 Nov 2019 00:51:01 -0500 Received: from localhost (smtp1.de.adit-jv.com [127.0.0.1]) by smtp1.de.adit-jv.com (Postfix) with ESMTP id CFDB93C0588; Tue, 5 Nov 2019 06:50:56 +0100 (CET) Received: from smtp1.de.adit-jv.com ([127.0.0.1]) by localhost (smtp1.de.adit-jv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SGKHH59H7g6m; Tue, 5 Nov 2019 06:50:51 +0100 (CET) Received: from HI2EXCH01.adit-jv.com (hi2exch01.adit-jv.com [10.72.92.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp1.de.adit-jv.com (Postfix) with ESMTPS id 2F7D23C0585; Tue, 5 Nov 2019 06:50:51 +0100 (CET) Received: from vmlxhi-102.adit-jv.com (10.72.93.184) by HI2EXCH01.adit-jv.com (10.72.92.24) with Microsoft SMTP Server (TLS) id 14.3.468.0; Tue, 5 Nov 2019 06:50:50 +0100 From: Eugeniu Rosca To: Ulf Hansson , Adrian Hunter , Wolfram Sang , CC: Linus Walleij , Mathieu Malaterre , Pavel Machek , , , Eugeniu Rosca , Eugeniu Rosca Subject: [PATCH 1/3] dt-bindings: mmc: Add 'fixed-emmc-driver-type-hs{200,400}' Date: Tue, 5 Nov 2019 06:50:13 +0100 Message-ID: <20191105055015.23656-1-erosca@de.adit-jv.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.72.93.184] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A certain eMMC manufacturer provided below requirement: ---snip--- Use "drive strength" value of 4 or 1 for HS400 or 0 for HS200. ---snip--- The existing "fixed-emmc-driver-type" property [1] is the closest one to implement the above, but it falls short due to being unable to define two values to differentiate between HS200 and HS400 (both modes may be supported by the same non-removable MMC device). To allow users to set a preferred HS200/HS400 "drive strength", provide two more bindings inspired from [1]: - fixed-emmc-driver-type-hs200 - fixed-emmc-driver-type-hs400 For more details about eMMC I/O driver strength types, see Jedec spec. Keep "fixed-emmc-driver-type" in place for backward compatibility. [1] commit 6186d06c519e21 ("mmc: parse new binding for eMMC fixed driver type") Cc: Wolfram Sang Signed-off-by: Eugeniu Rosca --- .../bindings/mmc/mmc-controller.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc-controller.yaml b/Documentation/devicetree/bindings/mmc/mmc-controller.yaml index 080754e0ef35..1c64b14f91a3 100644 --- a/Documentation/devicetree/bindings/mmc/mmc-controller.yaml +++ b/Documentation/devicetree/bindings/mmc/mmc-controller.yaml @@ -248,6 +248,24 @@ properties: the driver type as specified in the eMMC specification (table 206 in spec version 5.1) + fixed-emmc-driver-type-hs200: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - minimum: 0 + - maximum: 4 + description: + Same as "fixed-emmc-driver-type", but specific to HS200 mode. + If defined, overrides "fixed-emmc-driver-type" in HS200 mode. + + fixed-emmc-driver-type-hs400: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - minimum: 0 + - maximum: 4 + description: + Same as "fixed-emmc-driver-type", but specific to HS400 mode. + If defined, overrides "fixed-emmc-driver-type" in HS400 mode. + post-power-on-delay-ms: allOf: - $ref: /schemas/types.yaml#/definitions/uint32 @@ -336,6 +354,8 @@ patternProperties: dependencies: cd-debounce-delay-ms: [ cd-gpios ] fixed-emmc-driver-type: [ non-removable ] + fixed-emmc-driver-type-hs200: [ non-removable ] + fixed-emmc-driver-type-hs400: [ non-removable ] examples: - | -- 2.23.0