From patchwork Fri Nov 4 16:47:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 15691 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp518563wru; Fri, 4 Nov 2022 09:49:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6zumalwmRcOZoV868YoRe18F5beojwYo790JkXwXCEf5C4bdNSPOfOANriLRJrfykpm1Ki X-Received: by 2002:a05:6402:298e:b0:451:129e:1b35 with SMTP id eq14-20020a056402298e00b00451129e1b35mr36218049edb.79.1667580543628; Fri, 04 Nov 2022 09:49:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667580543; cv=none; d=google.com; s=arc-20160816; b=R0fQQeVlVbVkMVMLS4I04Pa/aMW2bGTauTZbyRuP677nT4XYfA7pJvzVjUN9bzDpWM 71HJzYAvJ6wqQH1mLcR+Y5GoCPpHmYhyGiP1wooIqRMEojL/JZxEZyX6t44R8WJ85wuv W0OO5xUmynVJNvhmH4pdxReSVNjnkDSl0yJRAOyqHP419wxqgQh2OLnzfvr7ARG3ha53 SCPe/USvI2RSANutvcN8RY4pbd97g/yDYTuELo7gTr+LFlt9RTY161IQj0Hd9XzZ2Hq3 YViJlRWHcAVswH/drfBydBiJiTnbdlwBZlr3JsPnNY1InnTnpwG5zE2aFh4WQ43bX/ct vy/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TiQPntzC2ir2r9t3qv3kzKf1NvJ5V3BTdHExODnectk=; b=QmMytOENubq2yWS6ttOMtIgfbZjgF+y+meA14DPhTJLQOPDSbbKnWvmDjYQG+SrAnQ MJ3eWxjM6TiNg/Q+mqxmyxxmlrujYWSQxo0CtDVEsTGGPkv7ARy0IG0w7bbfnOR10fH7 zSxsStbxsphN4nuIV6MONueVzOQVVSOne4Kcty+K1UQ3EKjXOcIncUtmG2Ml7enW+lNX tYVhy1epfNfullAUrSttAe6qI6lo9ril1RSdyNrMWagkMgv06GoLmzuqxt18S5L4X7Us VRdzJjJin0HA8fyJ0vhYXri/T1RIIG+uWfJQyD4zoKq0qhkXmxvOJA44D0Zafx9msaX5 YCpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="G/ygxGmx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020a170906394b00b007ada2efa6b7si4696777eje.567.2022.11.04.09.48.38; Fri, 04 Nov 2022 09:49:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="G/ygxGmx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231774AbiKDQrj (ORCPT + 99 others); Fri, 4 Nov 2022 12:47:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231476AbiKDQr2 (ORCPT ); Fri, 4 Nov 2022 12:47:28 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9E3131F8C; Fri, 4 Nov 2022 09:47:25 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 77FA74000D; Fri, 4 Nov 2022 16:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667580444; 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=TiQPntzC2ir2r9t3qv3kzKf1NvJ5V3BTdHExODnectk=; b=G/ygxGmxnKtQ3TngXx5aoy/hQTBclVESME1UOBdg1JJhAPSb+yPYEKraCOXI+VnAM7axic z4kfKTUpF0n3ccGXD2C7whJsL77DyarR0EPLUxybaj3HifBpxIZbbowO2zdcBnrpzhCoTc XeKvqV26JRME2feyaNzskFRVSiv/lul0FRmoYJrp9G5D+qMhkiUhgEY2NAgqlQ+P6HktNW KeieFzzvrYVHBCIzQZYHCveZvGoH12Qk3Vt1Hk2y/pUa/tFKHU1Q1QArMDz5XmdycgsOsW enjYhuSdElXEvh/nOAVP8Tw1gpaS7UBclrnVdfSNXA0/ZTOtpcJe20ThcXSjDQ== From: Miquel Raynal To: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Cc: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , , Thomas Petazzoni , Srinivas Kandagatla , , Miquel Raynal Subject: [PATCH v2 04/17] dt-bindings: mtd: nand: Drop common properties already defined in generic files Date: Fri, 4 Nov 2022 17:47:05 +0100 Message-Id: <20221104164718.1290859-5-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221104164718.1290859-1-miquel.raynal@bootlin.com> References: <20221104164718.1290859-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748584936392523124?= X-GMAIL-MSGID: =?utf-8?q?1748584936392523124?= generic files, so let's drop these properties from the individual NAND controller bindings when no additional information is provided rather than the possible presence of the property. Signed-off-by: Miquel Raynal --- .../bindings/mtd/allwinner,sun4i-a10-nand.yaml | 9 +-------- .../bindings/mtd/arasan,nand-controller.yaml | 5 +---- .../devicetree/bindings/mtd/intel,lgm-ebunand.yaml | 10 +--------- Documentation/devicetree/bindings/mtd/qcom,nandc.yaml | 3 --- 4 files changed, 3 insertions(+), 24 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..65521924ee1c 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 @@ -49,11 +46,7 @@ properties: dma-names: const: rxtx - pinctrl-names: true - patternProperties: - "^pinctrl-[0-9]+$": true - "^nand@[a-f0-9]+$": type: object properties: @@ -91,6 +84,6 @@ required: - clocks - clock-names -additionalProperties: false +unevaluatedProperties: false ... diff --git a/Documentation/devicetree/bindings/mtd/arasan,nand-controller.yaml b/Documentation/devicetree/bindings/mtd/arasan,nand-controller.yaml index f013fb976d95..d028269cdbaa 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 @@ -45,7 +42,7 @@ required: - clock-names - interrupts -additionalProperties: true +unevaluatedProperties: true examples: - | 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