From patchwork Thu Jan 11 12:19:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 1885568 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=qK7gmiXv; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=TFbfptJn; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4T9kJt5Klbz1yPm for ; Thu, 11 Jan 2024 23:20:28 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Kj9621rxTs/yPatFmIOWV1Dy9yzZykpYFVoxE0W/GMI=; b=qK7gmiXvuMZBZU cQMM2pjBHXxqShOInZv6LkZr+LAofNnnuGkXyagNiAaA7hkcSt5nJfEqafcjHV4ktjGlE+SL30yx2 DbTzPXWAr5FcTetwQLdV7nnpyWz2Ld0zLXg7u9f6ElS8oTcXAj5NKnOJvPevmNs7ZcFZMTfT6MY5E gfxPmvgEoABk4AWADGxJ1qRZXi0tKz3y8qffVc4gFEWRXuPUXJwqHTluw87G/C3kYf74dYDEtjleH Z5ploui6AFwa1NdT2l2l88kSGrUjFYK1aEvCfqbJoRLzigpOnDMgvy0+8CDggSezQ7JYnj01n5SPB 3vX2VH8s1Ql686l8rCpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rNu2J-0000vJ-2Y; Thu, 11 Jan 2024 12:19:51 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rNu2H-0000tj-2p for linux-mtd@lists.infradead.org; Thu, 11 Jan 2024 12:19:51 +0000 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a28e31563ebso559876866b.2 for ; Thu, 11 Jan 2024 04:19:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704975588; x=1705580388; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=oZKjNuKFpBIgAPNQXHjE+zGWxeFXDpn+QzaU3wJuCUk=; b=TFbfptJnl6NMFy1tmKP7lePLDjgZckCRBq/UiK7/OUFi5bSPbZa0S56ldHtprQy/EA W9qFu/8at5/N1A2teMymDyxQ76sZkFcUfME2p4n6PVkIWjz6O8+4GRWb0TmtI3clAqq/ mHYXxPplsT1Z6I2Dz+a9q3gwJJQxdi0wycBQ8KW9/m2rbQTg5m2hl3c/id1YtHUSoUu6 A7J5XqkRn6LhRbZtSpnJ5YTpbgcfrlkEph4T/D7mynQmcYO+GobAj75lhm5svrnrlf23 OeIdVlWNukTwOuTKzRZhTSkwBF36iffsb1j7c8ZLoQoAt1ABR08fBywigyg8ZcrCfExH Sq4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704975588; x=1705580388; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oZKjNuKFpBIgAPNQXHjE+zGWxeFXDpn+QzaU3wJuCUk=; b=blKcNjiFfJQ8ALMdEEWPMk9eIj7bAnvzqIhw7/2OIzuGM3Z/pw8y7NeaEZWlxEOXoz DTLvyiJDANqKkwu/NZnmGRopqY1RVoTNyKiMsHfwA72Cp5918yZ6ckj71Fp1O39PEI0i S4WZyBYjzbO9LP1eLsobC8OeDlNpWv/HN7GYi/qFJ6DB6U/QELjdW0nYReDMB7f91E4v b0a3P4E36BGEjRXcP1X2s2L8ZNJHKa245g20uhlYfvRsS/s6rWk/4BC8K8vwFXXwmYfp mian7VHnJ309vH2PJmj+3Kef4CU/uaQEJPz1713cIx+OE2csLucHv+j2ci4aMGGFfBY8 vvrQ== X-Gm-Message-State: AOJu0Yxcfln5+ly+QgFnIlUpmSDZm4CZoPVtCrHadDcWGw/I17yGEMfv RuxFlRvEE357tHWFMkM1mdw= X-Google-Smtp-Source: AGHT+IE0vYW1NN1IddmhLKD400aKBqGOGGa9hyMtY0jMcoJXItKOxufMxs964noz+aSuTeIAVwliDA== X-Received: by 2002:a17:906:ae54:b0:a28:7dd0:adb4 with SMTP id lf20-20020a170906ae5400b00a287dd0adb4mr551156ejb.83.1704975587591; Thu, 11 Jan 2024 04:19:47 -0800 (PST) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id m17-20020a170906235100b00a26ade46618sm516628eja.99.2024.01.11.04.19.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 04:19:47 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Ansuel Smith , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?b?UmFm?= =?utf-8?b?YcWCIE1pxYJlY2tp?= Subject: [PATCH] dt-bindings: mtd: partitions: make partition an NVMEM provider Date: Thu, 11 Jan 2024 13:19:40 +0100 Message-Id: <20240111121940.15628-1-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240111_041949_914486_07EF4FBD X-CRM114-Status: GOOD ( 10.45 ) X-Spam-Score: 0.1 (/) X-Spam-Report: =?unknown-8bit?q?Spam_detection_software=2C_running_on_the_sy?= =?unknown-8bit?q?stem_=22bombadil=2Einfradead=2Eorg=22=2C?= =?unknown-8bit?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_ori?= =?unknown-8bit?q?ginal?= =?unknown-8bit?q?_message_has_been_attached_to_this_so_you_can_view_it_or_la?= =?unknown-8bit?q?bel?= =?unknown-8bit?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?unknown-8bit?q?_the_administrator_of_that_system_for_details=2E?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_preview=3A__From=3A_Rafa=C5=82_Mi=C5=82ecki_MTD_pa?= =?unknown-8bit?q?rtition_provides_flash_device?= =?unknown-8bit?q?_data_and_can_be_used_as_NVMEM_device=2E_Signed-off-by=3A_R?= =?unknown-8bit?q?afa=C5=82_Mi=C5=82ecki_---_=2E=2E=2E/bindings/mtd/partitio?= =?unknown-8bit?q?ns/partition=2Eyaml?= =?unknown-8bit?q?_=7C_16_+++++++++-------_1_file_changed=2C_9_insertions=28+?= =?unknown-8bit?q?=29=2C_7_deletions=28-=29_?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_Content_analysis_details=3A___=280=2E1_points=2C_5=2E0_req?= =?unknown-8bit?q?uired=29?= =?unknown-8bit?q?_?= =?unknown-8bit?q?_pts_rule_name______________description?= =?unknown-8bit?q?_----_----------------------_------------------------------?= =?unknown-8bit?q?--------------------?= =?unknown-8bit?q?_-0=2E0_RCVD=5FIN=5FDNSWL=5FNONE_____RBL=3A_Sender_listed_a?= =?unknown-8bit?q?t_https=3A//www=2Ednswl=2Eorg/=2C?= =?unknown-8bit?q?_no_trust?= =?unknown-8bit?b?IFsyYTAwOjE0NTA6NDg2NDoyMDowOjA6MDo2MmIgbGlzdGVkIGluXQ==?= =?unknown-8bit?b?IFtsaXN0LmRuc3dsLm9yZ10=?= =?unknown-8bit?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_?= =?unknown-8bit?q?record?= =?unknown-8bit?q?_0=2E0_SPF=5FHELO=5FNONE__________SPF=3A_HELO_does_not_publ?= =?unknown-8bit?q?ish_an_SPF_Record?= =?unknown-8bit?q?_0=2E0_FREEMAIL=5FFROM__________Sender_email_is_commonly_ab?= =?unknown-8bit?q?used_enduser_mail?= =?unknown-8bit?q?_provider?= =?unknown-8bit?q?_=5Bzajec5=5Bat=5Dgmail=2Ecom=5D?= =?unknown-8bit?q?_0=2E2_FREEMAIL=5FENVFROM=5FEND=5FDIGIT_Envelope-from_freem?= =?unknown-8bit?q?ail_username_ends?= =?unknown-8bit?q?_in_digit?= =?unknown-8bit?q?_=5Bzajec5=5Bat=5Dgmail=2Ecom=5D?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_author=27s_domain?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_v?= =?unknown-8bit?q?alid_DKIM_or_DK_signature?= =?unknown-8bit?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_si?= =?unknown-8bit?q?gnature=2C_not_necessarily?= =?unknown-8bit?q?_valid?= =?unknown-8bit?q?_-0=2E1_DKIM=5FVALID=5FEF__________Message_has_a_valid_DKIM?= =?unknown-8bit?q?_or_DK_signature_from?= =?unknown-8bit?q?_envelope-from_domain?= X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Rafał Miłecki MTD partition provides flash device data and can be used as NVMEM device. Signed-off-by: Rafał Miłecki --- .../bindings/mtd/partitions/partition.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml index 1ebe9e2347ea..7b1d84ce5ef5 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml @@ -57,13 +57,15 @@ properties: user space from type: boolean -if: - not: - required: [ reg ] -then: - properties: - $nodename: - pattern: '^partition-.*$' +allOf: + - $ref: /schemas/nvmem/nvmem.yaml + - if: + not: + required: [ reg ] + then: + properties: + $nodename: + pattern: '^partition-.*$' # This is a generic file other binding inherit from and extend additionalProperties: true