From patchwork Tue Nov 8 09:31:02 2022 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: 622647 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2809867pvb; Tue, 8 Nov 2022 01:32:37 -0800 (PST) X-Google-Smtp-Source: AMsMyM5VmP7xj/ZmKBtc93iEE3sEJuD9zCnfr5hFN+w7BPJoR7VCg6fQJYnJOjL3pbAs77dPshfZ X-Received: by 2002:a05:6a00:1da6:b0:56c:318a:f8ab with SMTP id z38-20020a056a001da600b0056c318af8abmr55664922pfw.82.1667899957794; Tue, 08 Nov 2022 01:32:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667899957; cv=none; d=google.com; s=arc-20160816; b=V9ZQOOvSd3rADYgXDmj6bwZwd96+qaZt4if4hySq2zelIlULcofmi90hFzyhrJALIg d5bxGagl8b4iR3sAB4j8iQqDDzGqn5DgwyqltwqS3zU9jYK2nS8l8r36YibyOibiYVr+ Na3oxy7uqekzDlgQEOD5XOXDfk5YpXvMMPG/vBlNrVumTx1jJwTVNSBmthOuHbjk8Cme zayomaOVOOnaTwfAzc8lp7p7nRNyELchEKTUYBXXTekCga5/LYgxp87PWd6jBFMxw0mh srLkAi8Hz0Sj5qb4TJhGJBWIx679cV71hPkAlc2joSRH0alj/wslRz7Iy4zSLT9oRR+1 7viA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dkim-signature; bh=+HCCA4k1+Ldd2SHkCTPTMWJc9PpV7SbgNlAFF9xw9Vo=; b=G3Up77TM/jjfiCxD8qN6BCfZTf1p9s9s+wsjUobFUhcM0rOncouW1pMpOpmxN5BMpz DJKXz1SnXfPGCV0tpixOFwz8ksYG0AZJnFZ9/hygL2f7rinz4xUqzoV7RiMjaPT2vlNM RDN1witwPR/npYqOyAy6N+cGkjDrLoLLXsgJfMznBYEJXBB1d2ySaSjJ9Gv7jgXuwYmS BX3nLlGOd5qxFrVeLWaVSvQFJIhsJeokcsPsuxmQi7jtGLRRfiR+SI6jXaSXnGEhxZS1 050hTResk90KYaGJoEPswxnZBj3YRhX7pn8mn/wGOlG4y/pAenz05YeDEufJHikBZbH5 d3FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=kK4mffN+; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=K0ReUNEt; spf=none (google.com: lists.infradead.org does not designate permitted sender hosts) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:3::133]) by mx.google.com with ESMTPS id d76-20020a621d4f000000b0056bb101f472si11913182pfd.223.2022.11.08.01.32.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 01:32:37 -0800 (PST) Received-SPF: none (google.com: lists.infradead.org does not designate permitted sender hosts) client-ip=2607:7c80:54:3::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=kK4mffN+; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=K0ReUNEt; spf=none (google.com: lists.infradead.org does not designate permitted sender hosts) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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=+HCCA4k1+Ldd2SHkCTPTMWJc9PpV7SbgNlAFF9xw9Vo=; b=kK4mffN+030vkU RNbdkyNsmu9qwRE3hbRU+AafEzzfXKg2a9XHftvoz/YqH/CsEV+9ywvAwcLiIlUxhQf2W3feKf5fr oPBwWCzQAz6kPf0UWQevARZqWOnTpZXRGKL9JVki7RR/pP/cQxO4t6TnV7mR66maxKW1tO8rElBZf EK5YVsUhK+Hi37wa3/ec9R63uv0AQUGByJItzUUAm+GZx8VVJkYMT8YLFzniRiiedi1Kzrt+V6+bk jos0b9idEySFvSmJQWW8DXIkHd/XyZVWzMxOT38xFd9bjMb9R+qYfRzbkX5o6pDMBeoyqE0t14By6 YAyPGCZqa9JzYaXs81sg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1osKwr-0045JL-W7; Tue, 08 Nov 2022 09:31:14 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1osKwp-0045HL-Oq for linux-mtd@lists.infradead.org; Tue, 08 Nov 2022 09:31:12 +0000 Received: by mail-lj1-x233.google.com with SMTP id d20so20172102ljc.12 for ; Tue, 08 Nov 2022 01:31:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ftbevrgtih63VaCsliryG3KSGXdgekb5SUTzoftgRy8=; b=K0ReUNEtSMEujlwjW/cq6kOWPxMWv88ZPD/lememy7+WkqQ5PYSv37AtqLYtiI32Pe j6MNxHKLdLz3YK1n6Dwl4xXgNs4KMPzJNbZkvIu0r7r9wmeTPky+VPXJEqxyYQcWkPbH 61s79UMBCtgxuMb2DjRKr3eUI6CDBJIMB6w+ELcNjUJliJaxtxfsY9xcLftsTff4d9Bg OvcphL9UTobvRIynSq0zyQ/b3folaM2kF/Vyo2Lh/ywu/HiXcrgGde2Y/J7yB4ViL4UM UMcCSEglkn//0tIN35NUFrbP89xPHuuXJKjmQtiSQaxnqav3Hzv0YrOoDZNFpjGft82u hUpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Ftbevrgtih63VaCsliryG3KSGXdgekb5SUTzoftgRy8=; b=lv7e0IhJClVMezeFO7ABLmNaOvSRnlxG7dxA2sLCBlaySiiQHXUJKOxC3tdTAhoFi9 gyDdgAMRg+dHpD6Kd/fuaZEGjvF6ngS03kFmSFbmSIBngkoy9hnSbQ10daJtXXRw93hu jasvfkKzV1uEbshDKy0nZ1DXR70TLNOwStsGhKffUHfkF/5OUULeKa3z1XaFCYXH86vX okxXsn9M03QX7OpuX1dvoMkm/v5yz+Ig7MeIMKl+GRcLvd2ada1w6w63ka5GXAVaIU+k YtAduf3sBQuNbXU/b6kzMXfdvu2Vefmv0qZ+WtNHQjnRKmemWcAUU79RXIHKXBjsPI3Q JnZw== X-Gm-Message-State: ACrzQf3bqkv2RM0KMaW2suilNwJn+G1jU13zEjYVeTJrwYuu925kKtZz xRHTzLKANafIAnU4LHywIcc= X-Received: by 2002:a2e:8884:0:b0:277:693c:83b with SMTP id k4-20020a2e8884000000b00277693c083bmr12074951lji.68.1667899867880; Tue, 08 Nov 2022 01:31:07 -0800 (PST) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id bf20-20020a2eaa14000000b0027708921b43sm1617772ljb.68.2022.11.08.01.31.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 01:31:07 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Rob Herring , Krzysztof Kozlowski , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH mtd/next] dt-bindings: mtd: partitions: allow SafeLoader dynamic subpartitions Date: Tue, 8 Nov 2022 10:31:02 +0100 Message-Id: <20221108093102.8360-1-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221108_013111_825204_E11AED5B X-CRM114-Status: GOOD ( 11.02 ) X-Spam-Score: 0.1 (/) X-Spam-Report: =?utf-8?q?Spam_detection_software=2C_running_on_the_system_?= =?utf-8?q?=22bombadil=2Einfradead=2Eorg=22=2C?= =?utf-8?q?_has_NOT_identified_this_incoming_email_as_spam=2E__The_original?= =?utf-8?q?_message_has_been_attached_to_this_so_you_can_view_it_or_label?= =?utf-8?q?_similar_future_email=2E__If_you_have_any_questions=2C_see?= =?utf-8?q?_the_administrator_of_that_system_for_details=2E?= =?utf-8?q?_?= =?utf-8?q?_Content_preview=3A__From=3A_Rafa=C3=85=C2=82_Mi=C3=85=C2=82ecki_T?= =?utf-8?q?P-Link_SafeLoader_partitioning_means?= =?utf-8?q?_flash_contains_multiple_partitions_defined_in_the_on-flash_table?= =?utf-8?q?=2E_Some_of?= =?utf-8?q?_those_partitions_may_have_a_special_meaning_and_may_require_descr?= =?utf-8?q?ibing_additionally=2E?= =?utf-8?b?IEFsbCBbLi4uXSA=?= =?utf-8?q?_?= =?utf-8?q?_Content_analysis_details=3A___=280=2E1_points=2C_5=2E0_required?= =?utf-8?q?=29?= =?utf-8?q?_?= =?utf-8?q?_pts_rule_name______________description?= =?utf-8?q?_----_----------------------_-------------------------------------?= =?utf-8?q?-------------?= =?utf-8?q?_-0=2E0_RCVD=5FIN=5FDNSWL=5FNONE_____RBL=3A_Sender_listed_at_https?= =?utf-8?q?=3A//www=2Ednswl=2Eorg/=2C?= =?utf-8?q?_no_trust?= =?utf-8?b?IFsyYTAwOjE0NTA6NDg2NDoyMDowOjA6MDoyMzMgbGlzdGVkIGluXQ==?= =?utf-8?b?IFtsaXN0LmRuc3dsLm9yZ10=?= =?utf-8?q?_-0=2E0_SPF=5FPASS_______________SPF=3A_sender_matches_SPF_record?= =?utf-8?q?_0=2E0_SPF=5FHELO=5FNONE__________SPF=3A_HELO_does_not_publish_an_?= =?utf-8?q?SPF_Record?= =?utf-8?q?_0=2E0_FREEMAIL=5FFROM__________Sender_email_is_commonly_abused_en?= =?utf-8?q?duser_mail?= =?utf-8?q?_provider?= =?utf-8?q?_=5Bzajec5=5Bat=5Dgmail=2Ecom=5D?= =?utf-8?q?_0=2E2_FREEMAIL=5FENVFROM=5FEND=5FDIGIT_Envelope-from_freemail_use?= =?utf-8?q?rname_ends?= =?utf-8?q?_in_digit?= =?utf-8?q?_=5Bzajec5=5Bat=5Dgmail=2Ecom=5D?= =?utf-8?q?_-0=2E1_DKIM=5FVALID=5FAU__________Message_has_a_valid_DKIM_or_DK_?= =?utf-8?q?signature_from?= =?utf-8?q?_author=27s_domain?= =?utf-8?q?_-0=2E1_DKIM=5FVALID_____________Message_has_at_least_one_valid_DK?= =?utf-8?q?IM_or_DK_signature?= =?utf-8?q?_0=2E1_DKIM=5FSIGNED____________Message_has_a_DKIM_or_DK_signature?= =?utf-8?q?=2C_not_necessarily?= =?utf-8?q?_valid?= =?utf-8?q?_-0=2E1_DKIM=5FVALID=5FEF__________Message_has_a_valid_DKIM_or_DK_?= =?utf-8?q?signature_from?= =?utf-8?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+patch=linaro.org@lists.infradead.org From: Rafał Miłecki TP-Link SafeLoader partitioning means flash contains multiple partitions defined in the on-flash table. Some of those partitions may have a special meaning and may require describing additionally. Allow that. Signed-off-by: Rafał Miłecki Reviewed-by: Rob Herring --- .../mtd/partitions/tplink,safeloader-partitions.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/partitions/tplink,safeloader-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/tplink,safeloader-partitions.yaml index 63e596aa0ca3..a24bbaac3a90 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/tplink,safeloader-partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/tplink,safeloader-partitions.yaml @@ -36,6 +36,10 @@ properties: description: Flash offset of partitions table $ref: /schemas/types.yaml#/definitions/uint32 +patternProperties: + "^partition-.*$": + $ref: partition.yaml# + required: - partitions-table-offset @@ -46,4 +50,8 @@ examples: partitions { compatible = "tplink,safeloader-partitions"; partitions-table-offset = <0x100000>; + + partition-file-system { + linux,rootfs; + }; };