From patchwork Fri Oct 28 23:59:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 619696 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B733DFA3745 for ; Fri, 28 Oct 2022 23:59:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229457AbiJ1X7p (ORCPT ); Fri, 28 Oct 2022 19:59:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbiJ1X7n (ORCPT ); Fri, 28 Oct 2022 19:59:43 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16F5D25C4D; Fri, 28 Oct 2022 16:59:41 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 14946FF805; Fri, 28 Oct 2022 23:59:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667001580; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Butx8i3x6waX06tzNbc8/G+V5LmsGgkNbbLeRWrHG9o=; b=JxxlOPJyZc3Om+Fqj3548BrMCrYLgXNN+D35HC4VbVUm93L7D99yTEe6Aby6MHnU3XLoYx 1KXubrZcGe6uTecE/BzxZNTUioN3LGAMOmPZkmFZ/blqVNtso/Z9PJPdVWll4LnzNFGduq A6aBJmNkCe6lP+/LY5Sot6ubuJRAdRQ00HfoNRnrVC8Gt63C5gKo/HeSHrDgiAKErL1Jim WnSUqjxdQOa7hPpnIlHXkrIQfWIS6KesfRrwtgy7PELGC4ZHZnMR+gVfRO29cP6QK/RGsk eZlnbtLuzIBW+rHSDxytqYX8cqaCdUFK5ssQlXsI5dEOyagZuARlMD3gwREvpg== From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Cc: Chen-Yu Tsai , Naga Sureshkumar Relli , Linus Walleij , Manivannan Sadhasivam , Maxime Ripard , Sureshkumar Relli , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-arm-msm@vger.kernel.org, Thomas Petazzoni , Miquel Raynal Subject: [PATCH 02/12] dt-bindings: mtd: Mention basic properties Date: Sat, 29 Oct 2022 01:59:23 +0200 Message-Id: <20221028235933.934850-3-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221028235933.934850-1-miquel.raynal@bootlin.com> References: <20221028235933.934850-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org there to avoid the need to do it in each and every file. Signed-off-by: Miquel Raynal --- Documentation/devicetree/bindings/mtd/mtd.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/mtd.yaml b/Documentation/devicetree/bindings/mtd/mtd.yaml index 9fcaa61b046c..10684b233ae3 100644 --- a/Documentation/devicetree/bindings/mtd/mtd.yaml +++ b/Documentation/devicetree/bindings/mtd/mtd.yaml @@ -21,6 +21,9 @@ properties: based name) in order to ease flash device identification and/or describe what they are used for. + '#address-cells': true + '#size-cells': true + partitions: type: object properties: From patchwork Fri Oct 28 23:59:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 619695 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32295FA3743 for ; Sat, 29 Oct 2022 00:00:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229542AbiJ2AAB (ORCPT ); Fri, 28 Oct 2022 20:00:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiJ2AAA (ORCPT ); Fri, 28 Oct 2022 20:00:00 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1888831EDE; Fri, 28 Oct 2022 16:59:45 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id AB506FF806; Fri, 28 Oct 2022 23:59:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667001584; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JnETgG5ahkxv0BMu7R1ArSayvHSpy+z/aCTR3oTK0R0=; b=B5FNgu6wuxBypJWg2jf/DyROdDwZBgPbVO4319iHfWvFM31N2kwtD+k7V4UQzy4Ggkthgd v5XjVodOJnQ8JpkGt3ufe7FlTdcB3EFjsxjV/u+wJ404DnOuLAy0LkXcQ5KXhvjJHUFypn mPkQaetIW7lzxaF8rg0RMZ8OhTxdUTEB+3G7eQ4HObfqSkc6Kx1dVus84AiGL+vU3Irbnj yGH1vBqh/35RdWRRbjNm32Fg27wOBWROvHjIjO2YXzdyuwXqAt0W+BUW+ZOykeMvV3Oxw0 HfjMBmkeQElQmrGJYBhqIo128SZTJhawkFTMPcov4phO3vDeK3U8AjaKniRpfA== From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Cc: Chen-Yu Tsai , Naga Sureshkumar Relli , Linus Walleij , Manivannan Sadhasivam , Maxime Ripard , Sureshkumar Relli , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-arm-msm@vger.kernel.org, Thomas Petazzoni , Miquel Raynal Subject: [PATCH 04/12] dt-bindings: mtd: ingenic: Mark partitions in the controller node as deprecated Date: Sat, 29 Oct 2022 01:59:25 +0200 Message-Id: <20221028235933.934850-5-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221028235933.934850-1-miquel.raynal@bootlin.com> References: <20221028235933.934850-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Defining partitions as subnodes of the controller has been deprecated long time ago, but unlike having partitions within the controller node, having an enveloppe named "partitions" (which is not itself within a chip subnode) is not that common, so keep this deprecated definition in this file. Signed-off-by: Miquel Raynal --- Documentation/devicetree/bindings/mtd/ingenic,nand.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml b/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml index 8c272c842bfd..484280dd35ab 100644 --- a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml +++ b/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml @@ -32,6 +32,7 @@ properties: partitions: type: object + deprecated: true description: Node containing description of fixed partitions. See Documentation/devicetree/bindings/mtd/partition.txt From patchwork Fri Oct 28 23:59:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 619694 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26D78FA3745 for ; Sat, 29 Oct 2022 00:00:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229826AbiJ2AAE (ORCPT ); Fri, 28 Oct 2022 20:00:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbiJ2AAC (ORCPT ); Fri, 28 Oct 2022 20:00:02 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A80417E30; Fri, 28 Oct 2022 16:59:56 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 759B7FF809; Fri, 28 Oct 2022 23:59:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667001586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uhHL581pVZ78rpGpusp3WI56Gx3E7sF7B6MwrnAS96k=; b=P7CshkRfu9JXj7DVXrRpLQuYtnEsg4jjuZROMuqpFGC8T620GDVxkIQQghTkMigtcrABEu lE8whqVO5WkhRnNR/qQVvqfL7x+syrN0Bo9lm7XyUS/NMLzI85sGsKo9I/mGQmJNpGnI3O clIBYSuizO/CmVTvhAK7XZ4UiCPFbnOf0DXHFLRsjh9/0gdHDBbBHFBE6lm/nR8vH6ntQz apeFDIBAjWpdblZMRi1io3Dd184xPKS75fDBGRUV8Z6TmdyzsVB5DfcVhh8GYueLmTAWYz bZ73FqDiqsc1eQJTdtoyA8gySQ/W5ufEUxfbz5WgafUboKrd5c0d1UI+K96w8A== From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Cc: Chen-Yu Tsai , Naga Sureshkumar Relli , Linus Walleij , Manivannan Sadhasivam , Maxime Ripard , Sureshkumar Relli , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-arm-msm@vger.kernel.org, Thomas Petazzoni , Miquel Raynal Subject: [PATCH 05/12] dt-bindings: mtd: onenand: Mention the expected node name Date: Sat, 29 Oct 2022 01:59:26 +0200 Message-Id: <20221028235933.934850-6-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221028235933.934850-1-miquel.raynal@bootlin.com> References: <20221028235933.934850-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The chip node name in this driver is expected to be different and should be prefixed with onenand instead of the regular "flash" string, so mention it. Signed-off-by: Miquel Raynal --- Documentation/devicetree/bindings/mtd/ti,gpmc-onenand.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/ti,gpmc-onenand.yaml b/Documentation/devicetree/bindings/mtd/ti,gpmc-onenand.yaml index a953f7397c40..8a79ad300216 100644 --- a/Documentation/devicetree/bindings/mtd/ti,gpmc-onenand.yaml +++ b/Documentation/devicetree/bindings/mtd/ti,gpmc-onenand.yaml @@ -15,6 +15,9 @@ description: as child nodes of the GPMC controller. properties: + $nodename: + pattern: "^onenand@[0-9],[0,9]$" + compatible: const: ti,omap2-onenand From patchwork Fri Oct 28 23:59:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 619692 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76639FA3744 for ; Sat, 29 Oct 2022 00:00:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230015AbiJ2AAK (ORCPT ); Fri, 28 Oct 2022 20:00:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229991AbiJ2AAG (ORCPT ); Fri, 28 Oct 2022 20:00:06 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57CA017E0E; Fri, 28 Oct 2022 17:00:02 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 24CC6FF80B; Fri, 28 Oct 2022 23:59:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667001589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Bz4zDKYgqJdZhYLHEX7GncYrFGDFdsFKAB8BkHTpDKM=; b=T0r3/PgyzsG0lHiPcrvcuUZx3iWrRcCptXDsX8GClrEiM4LdppW0igoRTsbDkKSVULqpfZ +UeaY20/PazolRhLJwgrP3ie/IlhG4ue+Up7fiCXIc5OQVjytjiKnJScMlE3Tev9O30eul TKNVOepdK5QiXH6gANvPK9S19B+M7WHEk1CZJ93IUy8KQ8CNV2lUxsee/Lam4yewOmd2BO 7PXpK+jZWVZ5SLBn0cZAijB/CZx3voaaaTiAtQcNgcIlrSgLVZ0BZ14g2otuRf67fNxF9Q e6ShfuyCfotc63jhNult3DP1mnZQnsOui0Hl85nOO0G5PqedP+0fXJifryStCw== From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Cc: Chen-Yu Tsai , Naga Sureshkumar Relli , Linus Walleij , Manivannan Sadhasivam , Maxime Ripard , Sureshkumar Relli , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-arm-msm@vger.kernel.org, Thomas Petazzoni , Miquel Raynal Subject: [PATCH 07/12] dt-bindings: mtd: Drop common properties from NAND controllers Date: Sat, 29 Oct 2022 01:59:28 +0200 Message-Id: <20221028235933.934850-8-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221028235933.934850-1-miquel.raynal@bootlin.com> References: <20221028235933.934850-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org When redefining common properties does not bring any additional information, just drop them from the controller bindings because these properties already are definied in nand-controller.yaml. Signed-off-by: Miquel Raynal Reviewed-by: Rob Herring --- .../bindings/mtd/allwinner,sun4i-a10-nand.yaml | 3 --- .../bindings/mtd/arasan,nand-controller.yaml | 3 --- .../devicetree/bindings/mtd/ingenic,nand.yaml | 12 ------------ .../devicetree/bindings/mtd/intel,lgm-ebunand.yaml | 10 +--------- .../devicetree/bindings/mtd/qcom,nandc.yaml | 3 --- 5 files changed, 1 insertion(+), 30 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml index 4741864da48e..140594cc2215 100644 --- a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml +++ b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml @@ -14,9 +14,6 @@ maintainers: - Maxime Ripard properties: - "#address-cells": true - "#size-cells": true - compatible: enum: - allwinner,sun4i-a10-nand diff --git a/Documentation/devicetree/bindings/mtd/arasan,nand-controller.yaml b/Documentation/devicetree/bindings/mtd/arasan,nand-controller.yaml index f013fb976d95..ae0fc4546737 100644 --- a/Documentation/devicetree/bindings/mtd/arasan,nand-controller.yaml +++ b/Documentation/devicetree/bindings/mtd/arasan,nand-controller.yaml @@ -35,9 +35,6 @@ properties: interrupts: maxItems: 1 - "#address-cells": true - "#size-cells": true - required: - compatible - reg diff --git a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml b/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml index 484280dd35ab..28a08a6d1385 100644 --- a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml +++ b/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml @@ -37,18 +37,6 @@ properties: Node containing description of fixed partitions. See Documentation/devicetree/bindings/mtd/partition.txt -patternProperties: - "^nand@[a-f0-9]$": - type: object - properties: - rb-gpios: - description: GPIO specifier for the busy pin. - maxItems: 1 - - wp-gpios: - description: GPIO specifier for the write-protect pin. - maxItems: 1 - required: - compatible - reg diff --git a/Documentation/devicetree/bindings/mtd/intel,lgm-ebunand.yaml b/Documentation/devicetree/bindings/mtd/intel,lgm-ebunand.yaml index 741c66ee06c3..7c83a328845e 100644 --- a/Documentation/devicetree/bindings/mtd/intel,lgm-ebunand.yaml +++ b/Documentation/devicetree/bindings/mtd/intel,lgm-ebunand.yaml @@ -39,12 +39,6 @@ properties: - const: tx - const: rx - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - patternProperties: "^nand@[a-f0-9]+$": type: object @@ -67,10 +61,8 @@ required: - clocks - dmas - dma-names - - "#address-cells" - - "#size-cells" -additionalProperties: false +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml index 482a2c068740..3cc90c64e974 100644 --- a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml +++ b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml @@ -31,9 +31,6 @@ properties: - const: core - const: aon - "#address-cells": true - "#size-cells": true - patternProperties: "^nand@[a-f0-9]$": type: object From patchwork Fri Oct 28 23:59:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 619691 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FAFFFA3747 for ; Sat, 29 Oct 2022 00:00:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230026AbiJ2AAN (ORCPT ); Fri, 28 Oct 2022 20:00:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229996AbiJ2AAG (ORCPT ); Fri, 28 Oct 2022 20:00:06 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF59C178B4; Fri, 28 Oct 2022 17:00:03 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id AC694FF804; Fri, 28 Oct 2022 23:59:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667001593; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=M4+F1CALrv7FU7A/UkWEk+dZkJCvCU4ikok+xGxfGXU=; b=mWYd06eS6hYYWR3q5km2PeTVDl2xi2bP8l1qJ6e69wzV8A+iPO+qetaT+AkoUTqEPbDit9 FiHskBhNYknwLIloB81iV0yq/I9UhljIB3mS6/LrOXjz4O5dQ8jxUzvNuoAfH+fX5efvWg szbRj+EnbWfiqHIDxP5mzEJnNIbzuZTOlg+w9ih39jTNlpMjlhFfwkiRFVgFL5NYe1Pb32 jzkKVVUYzQnGoUspuCIJJxCqlllu2oQQP12o9ersovf/3FBrxC/45EUb2bWBnu/lyPD72W Eo5ZlswcfIk9mTA9x0plbdmGHdKx8Mfc/pXmkScXUKtvFCS1DcVN0L8QPolcJA== From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Cc: Chen-Yu Tsai , Naga Sureshkumar Relli , Linus Walleij , Manivannan Sadhasivam , Maxime Ripard , Sureshkumar Relli , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-arm-msm@vger.kernel.org, Thomas Petazzoni , Miquel Raynal Subject: [PATCH 09/12] dt-bindings: mtd: phymap: Reuse the generic definitions Date: Sat, 29 Oct 2022 01:59:30 +0200 Message-Id: <20221028235933.934850-10-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221028235933.934850-1-miquel.raynal@bootlin.com> References: <20221028235933.934850-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The memory mapped MTD devices also share a lot with all the other MTD devices, so let's share the properties by referencing mtd.yaml. We can then drop mentioning the properties, to the cost of mentioning the possible "sram" node name prefix. Signed-off-by: Miquel Raynal --- Documentation/devicetree/bindings/mtd/mtd-physmap.yaml | 7 +++---- Documentation/devicetree/bindings/mtd/mtd.yaml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/mtd-physmap.yaml b/Documentation/devicetree/bindings/mtd/mtd-physmap.yaml index 82eb4e0f453b..5df94953c34e 100644 --- a/Documentation/devicetree/bindings/mtd/mtd-physmap.yaml +++ b/Documentation/devicetree/bindings/mtd/mtd-physmap.yaml @@ -13,6 +13,9 @@ description: | Flash chips (Memory Technology Devices) are often used for solid state file systems on embedded devices. +allOf: + - $ref: "mtd.yaml#" + properties: compatible: oneOf: @@ -121,10 +124,6 @@ properties: big-endian: true little-endian: true -patternProperties: - '@[0-9a-f]+$': - $ref: partitions/partition.yaml - required: - compatible - reg diff --git a/Documentation/devicetree/bindings/mtd/mtd.yaml b/Documentation/devicetree/bindings/mtd/mtd.yaml index 10684b233ae3..4fdce7211b55 100644 --- a/Documentation/devicetree/bindings/mtd/mtd.yaml +++ b/Documentation/devicetree/bindings/mtd/mtd.yaml @@ -12,7 +12,7 @@ maintainers: properties: $nodename: - pattern: "^flash(@.*)?$" + pattern: "^(flash|sram)(@.*)?$" label: description: From patchwork Fri Oct 28 23:59:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 619693 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B45BEFA3744 for ; Sat, 29 Oct 2022 00:00:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229500AbiJ2AAG (ORCPT ); Fri, 28 Oct 2022 20:00:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbiJ2AAC (ORCPT ); Fri, 28 Oct 2022 20:00:02 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A1B617ABD; Fri, 28 Oct 2022 16:59:56 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 8DB9DFF805; Fri, 28 Oct 2022 23:59:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667001595; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KpStTXdcGcnaU4hB/viIKrO6+1KaRilXzfSuhGy+2cA=; b=VBjU+wVidPlrjqLZQdwiodK53fUS7K3whpmeKn/tfVtBUrkSbVsjCRdkzVwe/3DyWs0TCE mTW515S1DusSM7cKmsvAkDbIeEqS5YU2j0wllWyA/euVn+is+CwdT28RYoEAzWj93WkZCr Qcs+TckXRj6RIzqb0FltZ/nTwB9gQqZFMUi6k73vttmeKZoNt+9IfwgWCknA9uZec5ge3n IulfPqL/39odF/wR2gufdE/vkxESFf8CCd5c2rcpngeq/6QtNyh+h4hDFU6TWB3HdCDtUN RAhG10YoaSBVO5bOT7jZ43D3bjyjNiUTOecNlNsbEXK6DE4EFa/kIqSyfI7wtA== From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Cc: Chen-Yu Tsai , Naga Sureshkumar Relli , Linus Walleij , Manivannan Sadhasivam , Maxime Ripard , Sureshkumar Relli , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-arm-msm@vger.kernel.org, Thomas Petazzoni , Miquel Raynal Subject: [PATCH 10/12] dt-bindings: mtd: Drop object types when referencing other files Date: Sat, 29 Oct 2022 01:59:31 +0200 Message-Id: <20221028235933.934850-11-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221028235933.934850-1-miquel.raynal@bootlin.com> References: <20221028235933.934850-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Setting an object type is redundant when a reference is made, so drop these useless lines. Signed-off-by: Miquel Raynal Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/mtd/mtd.yaml | 1 - Documentation/devicetree/bindings/mtd/nand-controller.yaml | 1 - 2 files changed, 2 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/mtd.yaml b/Documentation/devicetree/bindings/mtd/mtd.yaml index 4fdce7211b55..64714fc8c852 100644 --- a/Documentation/devicetree/bindings/mtd/mtd.yaml +++ b/Documentation/devicetree/bindings/mtd/mtd.yaml @@ -44,7 +44,6 @@ patternProperties: deprecated: true "^otp(-[0-9]+)?$": - type: object $ref: ../nvmem/nvmem.yaml# description: | diff --git a/Documentation/devicetree/bindings/mtd/nand-controller.yaml b/Documentation/devicetree/bindings/mtd/nand-controller.yaml index 359a015d4e5a..3f2a1480e1eb 100644 --- a/Documentation/devicetree/bindings/mtd/nand-controller.yaml +++ b/Documentation/devicetree/bindings/mtd/nand-controller.yaml @@ -51,7 +51,6 @@ properties: patternProperties: "^nand@[a-f0-9]$": - type: object $ref: "nand-chip.yaml#" properties: