Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp694634lqp; Thu, 21 Mar 2024 12:36:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdJh0mYVScXXXsEOGlqjXTDhojVi8GYT0FRLUpVNj/UXsde2zq0+Bz99s+bn2egX6m3ReJPiQmNRMmLjuY/gi72+4s6YVuUdFIh0orJQ== X-Google-Smtp-Source: AGHT+IGNIWG445HXqEs3iLU9tQKpheNvQu8ugaVeWUJ0oaJKnf9KE9jfqei3DjEAsfiBGMQ+0bGm X-Received: by 2002:a05:6808:3199:b0:3c3:66e6:ecae with SMTP id cd25-20020a056808319900b003c366e6ecaemr278123oib.34.1711049779373; Thu, 21 Mar 2024 12:36:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711049779; cv=pass; d=google.com; s=arc-20160816; b=s7baB6Xl8aH8shgANixbFVJylLLorKTPG6IV5LGwi9HIwa0CjVf/sRSf1W+9Nw7HNh Qj29KkiZbzW4MYqELc0NNNS7xLE7EDBIin4HzkQKWSCk8Y77EGroxVLIZFcFpRRO/wKd Mczm6MFjBrwCo6OEOJr2ukGGTwWAWOHFQeq27oub0vOfsV0/5IokCT5+EXiCzKOGYVTR WB+9A9znjszIqdSvSFWvcFU9OLneqEQ+5h1RF5TUluMjEjEIgZMWc4699mnCAKkQBXF1 Fpu3jF01EnwNrm8q4tCjzGO2vYAvCeJSwDCPvraQy+tQk8Gl+bmfQM+/Sv8Rfcs8YF5k rsuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:to :from:date; bh=M0vq2ykF0le0XiQg0l2ORMB6ux5pLuW1g7vReO02LGQ=; fh=3Ay0fG3swzXuvpLryN6GcJlSn7kOqPZ2vxPz4z4ZjiM=; b=G56l1qRCp5QfOlqJFBylITT1gWkO5A+JQTg2QVMkXarymTTRFTNLPeSZcBoX6E1SWm b28rPMqgCiDBjYXks7iyWzEpfzN64Yjizav/5vubxXxMUBVXuKRZkgeK9GT1BK7cmRLF ydmGxVDDlVcHPIHchontoLEw6kASnQ7Gdz20Xu7c+GxLBlNsncu9cuW6HZf3ea3V2Am9 4LshSVNmUc58r/ehg6+VpY8ULdVQ6fIzCVF/QwhOyx52nQjsS2itBpYw7qmr9d2y+PpN kTUOnR519Fy0lvtzJ8TpJY782zyb4imh4HoFfQOthbm+8SAC3AC0jTQ1muymOBUQjFTT KNyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-110601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110601-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n10-20020a05622a11ca00b004312051ac14si424219qtk.90.2024.03.21.12.36.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 12:36:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-110601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110601-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1DC871C22240 for ; Thu, 21 Mar 2024 19:36:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEC0013473D; Thu, 21 Mar 2024 19:34:36 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1BBC13442F; Thu, 21 Mar 2024 19:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711049676; cv=none; b=RwoT3qAEvNIb3QwNFag/1V7ldnD3ExeiyNfhZf90OWF7dBsA8jVwoNGuoO7jLcjmIX7TJ90Z3Nv8lEwX+qHaBoY36hJ3sdDBZisn2qaZSe4KXjSS3wo1k89spNfBALAyYao0P94eERbVUI6DcqKxqn6qPt0ByB/d9mBKg3v+c6E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711049676; c=relaxed/simple; bh=VQOLGE5b1WT05ny2MJKIquB+OOdiTR6lMQ9qYMzFM0I=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ksk7hU5+OvOHWxYpvmhJB050C/rZ0cQ7uXIclYqJuOcKv20rSHSF9NL8VlZYJBqs0WguzDpzMgGSW7TgQgPlYEF2xlqJ9vPqhbVysqeq1LDZyn2+16+7nF4Lo47YpufwxvGZlCC3XHZM3OC+uIa1nNDmtW8T8RV0oumFwjCsLvI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from ) id 1rnOB5-0000GQ-0D; Thu, 21 Mar 2024 19:34:15 +0000 Date: Thu, 21 Mar 2024 19:34:11 +0000 From: Daniel Golle To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Jens Axboe , Daniel Golle , Dave Chinner , Jan Kara , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Damien Le Moal , Li Lingfeng , Christian Brauner , Christian Heusel , Min Li , Adrian Hunter , Avri Altman , Hannes Reinecke , Christian Loehle , Bean Huo , Yeqi Fu , Victor Shih , Christophe JAILLET , Dominique Martinet , "Ricardo B. Marliere" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-block@vger.kernel.org Subject: [PATCH 5/8] dt-bindings: mmc: mmc-card: add block device nodes Message-ID: <8d837b883de9f9d745819c5304cfb8aed9a6085c.1711048433.git.daniel@makrotopia.org> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Add nodes representing the block devices exposed by an MMC device including an example involving nvmem-cells. Signed-off-by: Daniel Golle --- .../devicetree/bindings/mmc/mmc-card.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc-card.yaml b/Documentation/devicetree/bindings/mmc/mmc-card.yaml index fd347126449ac..95ccbda871d24 100644 --- a/Documentation/devicetree/bindings/mmc/mmc-card.yaml +++ b/Documentation/devicetree/bindings/mmc/mmc-card.yaml @@ -26,6 +26,18 @@ properties: Use this to indicate that the mmc-card has a broken hpi implementation, and that hpi should not be used. + block: + $ref: /schemas/block/block-device.yaml# + description: + Represents the block storage provided by an SD card or the + main hardware partition of an eMMC. + +patternProperties: + '^boot[0-9]+': + $ref: /schemas/block/block-device.yaml# + description: + Represents a boot hardware partition on an eMMC. + required: - compatible - reg @@ -42,6 +54,39 @@ examples: compatible = "mmc-card"; reg = <0>; broken-hpi; + + block { + partitions { + cal_data: block-partition-rf { + partnum = <3>; + partname = "rf"; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom@0 { + reg = <0x0 0x1000>; + }; + }; + }; + }; + }; + + boot1 { + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr: macaddr@a { + compatible = "mac-base"; + reg = <0xa 0x6>; + #nvmem-cell-cells = <1>; + }; + }; + }; }; }; -- 2.44.0