Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1019221lqb; Wed, 29 May 2024 19:16:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXnvjh++q5+0pyOELGldFKnE+3LoqMgkD27raQCPoT4HbhR4Xz5kjKMwYW7b+Iph9/vtXRJ7yZlk29pDtwGfZ3rgUu23toFZWH58uP45A== X-Google-Smtp-Source: AGHT+IGhnBeevdhnaUr6NsD8BnQs4WyTe2+JvGZ8r+kcdw3cbq3X6h5Oxy6/0nWmmZiID5KZBX/a X-Received: by 2002:a05:6000:174c:b0:34e:4105:b3f6 with SMTP id ffacd0b85a97d-35dc009aa3cmr431892f8f.39.1717035361852; Wed, 29 May 2024 19:16:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717035361; cv=pass; d=google.com; s=arc-20160816; b=pt7pnL82lnE/jqmh32164rTw8JdUDhJpuvWCK4P6TV8UB/NU8nLYGn/wYQk2ul/BUz O9Gi6eh3NXjHD1kmUe8JYuvS5qRKihIwQe3OUAZZc/gHuq0BTuJfPdbEPcjrhM6UrRhT +DxJF26124VaiG0EJQd+Qgq0RGzOq7DBRPe54NYJ5u5ESdSN5cioNUe6Ox27Xp9mBTf+ kYyaY+/tY38VY5AHlQ1/ZgaUJA7eldGVrNTMeuEnv1I4t/yA+KvelI6Z6TxqHrdeAISI 6zVOvHraErRYHsWaSohUM3nSBdrJxAVacr8IAZLmmEkZad0yYXtwSyrv4/Cfq18odwuS LsVg== 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=ugh0QDKzdoaU0MPKUfwT4/5WcC0OtrzOs3xgFGAKhIs=; fh=PTscWTIHcoR2vyQtw5VESTy9e97dUqI8eGwoqj4vbiM=; b=oeogQ8+380rFlBZRYUbYlyWnRluJP/yXhHFaUA6MYbKqnWELIKZK/Fu++poW9z1aMe AhgsCDe/h98GDnIttxvhIjhnjiqLquIxkCW76k00rfroegSXyNigeYr/8Lso6UERCt71 +kRmlPNlx7HYyuXfxi0d5QhVMpBkYmzheEEr9uaO31rfh9fSSZfgyKEC9ZqTBF7NimuY pEFelugVJIXEoS1X+WfNm7ztuxPLWXNaqDubLM51gxPNT2V9fl6VZPHoZh2X/2RWo7p/ FlcuFy94nt2JmHTSQDPCeGTjJk76SMKgReqDmp2QbVe40c0HyQfO54658PngPsYsjFp+ SVAQ==; 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-194882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194882-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a62f50e5c19si406767666b.1046.2024.05.29.19.16.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 19:16:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-194882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194882-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 66ACD1F245C4 for ; Thu, 30 May 2024 02:16:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A570825634; Thu, 30 May 2024 02:15:27 +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 B81F328DD0; Thu, 30 May 2024 02:15:25 +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=1717035327; cv=none; b=CXb4IGnfRyG3aR6mwhXcB8IFEQHapG3j2F5gUA7l7wvEboUS2IwcwYL8+E9dOFMaAtTFvK2bO7QIKmyA6q8gaOtMMb52wOvTlGuKlVrlc946c1X58VyYDQGgOLQr0+zHvJux9QVGu91X6lUVuot2A464ykIuJzets2Bcoaxm4JA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717035327; c=relaxed/simple; bh=ZND/IraLGpqQA+zSSLk7Bz2Qe5V3dwxk3TRcMUKSLPk=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QpZEqwVtNavCpDQ2TaYkDaT48W8/Oh29JSLuxkBaOGMmBAYW8rosjGJ0dfXCycT7PT6hNildFTmho4YcW4AK+lzhhhG3GSFtdV4vDaySWi4Qb1noP9i5qQPKnm6LCol/fz4LlR/28GYUPqpZLxQYddxAiUKubHxo6nEPJH+6ayA= 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.97.1) (envelope-from ) id 1sCVJz-000000004hP-0r0o; Thu, 30 May 2024 02:15:15 +0000 Date: Thu, 30 May 2024 03:15:11 +0100 From: Daniel Golle To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Jens Axboe , Srinivas Kandagatla , Daniel Golle , Dave Chinner , Jan Kara , Christian Brauner , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Al Viro , Li Lingfeng , Christian Heusel , Min Li , Avri Altman , Adrian Hunter , Hannes Reinecke , Mikko Rapeli , Yeqi Fu , Victor Shih , Christophe JAILLET , Li Zhijian , "Ricardo B. Marliere" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-block@vger.kernel.org Subject: [PATCH v2 6/9] 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 fd347126449a..95ccbda871d2 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.45.1