Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp660164lqs; Tue, 5 Mar 2024 12:25:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWa4L+mVinbgalIZGYzZRfjqdXFJhBPNclDL9UhdKmzygYN83RoApH9MR1gHSXOeieuRv5/CsiF9ZXqUkL7nU9JXfo6oBmeiRROmKc5Ww== X-Google-Smtp-Source: AGHT+IF1e6SGWF5KxCAwseMRdcVWJsDqmX1Q6tM/MbTZXFkbNjE2uJ2YHggyFvTRnrv6tmvuQqlB X-Received: by 2002:a0c:c60e:0:b0:690:8d34:3cfc with SMTP id v14-20020a0cc60e000000b006908d343cfcmr2054352qvi.22.1709670331229; Tue, 05 Mar 2024 12:25:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709670331; cv=pass; d=google.com; s=arc-20160816; b=adjNOVcQsqs9e5FkqUJ4W1kpr2sf3TqXhHQ39ljGFkglzX0/XZvB920CopJN0aKU2/ kJBOVHrc3jtCRK5ggg8nbFWRdzftPczSvn5FFATG/DwaG9+85OA1afj1oEAsguEbco2f Xi5v3F1oYwB6qlA2E9dzY/+kG7/ATLI82WZGNhNsoiQeIpWWMuB8k3hzJwWzduZcjlhg Mdpvn5cfuuJ4KgOq7mQx8oVZYoN+Ejgqjt1VQbOsIKXjsVdWYVGbXXiPAem7VJjNitsj sT2GoOP+hJbSsYC9CLLwzNfgzghsNms7saLO/QmrwmMivbyy4rx5O9wSmY31XRNJ6ifE LHeA== 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:cc :to:from:date; bh=M0vq2ykF0le0XiQg0l2ORMB6ux5pLuW1g7vReO02LGQ=; fh=j7lw218M085b9rPtj+QACqlnmqhhsdWy5wQ1oNVKNQg=; b=H0c+2RCat25/CpRApInMZrVsUHiX4bvT0V5glBFs5805VuNlxhgz6xIDHXfMTHItYl Tb6eskKENDrQLaDzp+kzWnDWe5wRNS+ruY36BVqCgBqxKmXWyfEpnuFPZHqB7zw1zNLB VMLq369E9ywpMV9j1Nw1FwAfxQTDZeP+whr5LMqmexIuB8BUezpxaHUNRb5E1sNSDxm+ ZId49ljqVkWXVY2/WmrKGdIOtd3lTCzaBV1cWb8CQsqmVxIx6mJ0fFwkZY7bWYhyZ9kv HR7KevP9IWJI0i9T+Zqyafx4FfzQ3yldcxzFgS+IqaAUSEYMZEMVlb8FFCDljumex1Yw BV5w==; 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-92958-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92958-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id if11-20020a0562141c4b00b006903c84591asi12511213qvb.491.2024.03.05.12.25.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 12:25:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92958-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-92958-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92958-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 EF3921C2214A for ; Tue, 5 Mar 2024 20:25:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A6BC12B15A; Tue, 5 Mar 2024 20:24:35 +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 8505312AAD1; Tue, 5 Mar 2024 20:24:33 +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=1709670275; cv=none; b=TarUmwS1Zv4Qp5iBvdPUPxAqk8omJh5dyvNv2fTWPfheuSQbhk4bFQu1l7eiY4WtCdOJcH7rIwHTqOuqxnIsuJK53QkJMURVHw6G25d6OIbKqqOOCUKYS+p2JpriKhsYE91wmZeRA7Fd5V4uo+B/KskxrWv8LJfS5gMpmYCX7aI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709670275; c=relaxed/simple; bh=VQOLGE5b1WT05ny2MJKIquB+OOdiTR6lMQ9qYMzFM0I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iIyhLFCvFduvwysxcmwwT7Fi50OWeI2pFmST+fbsbDFkAUEC40EPYDCjR36C1BTwc37oaVcz4Ax8kbZbY+YuPHjn1KlqdZCYSjof494rtGdfVp4MkS9s+ZJSS+TPXQ1G88zjhqOT7JVVQWyVJPKKtTWDwoqm6whry64q/voJSmI= 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 1rhbKe-0001Ol-0z; Tue, 05 Mar 2024 20:24:12 +0000 Date: Tue, 5 Mar 2024 20:24:08 +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?= , Christian Brauner , Li Lingfeng , Damien Le Moal , Min Li , Adrian Hunter , Hannes Reinecke , Christian Loehle , Avri Altman , Bean Huo , Yeqi Fu , Victor Shih , Christophe JAILLET , "Ricardo B. Marliere" , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-block@vger.kernel.org Cc: Diping Zhang , Jianhui Zhao , Jieying Zeng , Chad Monroe , Adam Fox , John Crispin Subject: [RFC PATCH v2 5/8] dt-bindings: mmc: mmc-card: add block device nodes Message-ID: 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