From patchwork Wed May 25 21:01:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 576006 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:c603:0:0:0:0 with SMTP id jv3csp27678mab; Wed, 25 May 2022 14:02:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz223SHEuvw8nDIIUzA+m9PKsImM+l3Rh0Jf/FyfUPHYWm8Hh84bo39zA7duSrc1TATTsdB X-Received: by 2002:a17:902:ecca:b0:161:cad8:6ff4 with SMTP id a10-20020a170902ecca00b00161cad86ff4mr34074218plh.111.1653512556386; Wed, 25 May 2022 14:02:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653512556; cv=none; d=google.com; s=arc-20160816; b=IDWRvK8eeue7b1oPWw5ANn/t6pVo9ylJe1y70HXut6dP0YSaOBcfatKrB06Pq9MSFF zy33WQInaD8oTZzRM5skr9VU7luu1Mmh+Vte6Hw9uiWRSExcFHFCOYcXu42i64GXN3FL EsW+x0K4a4S2ghhaNh1W//w2fv/MpLfEuiHetK5NnSyFTGEHyRxwY8h/szOgdkGZAHXZ fj4MX8H7mQ7xpnmwEZHfNFx0Cpm9VaK7MjArbefRJd+Gn2d+BQ8s3IhTS0rVRL3g9egz ciRyYCOue0a0yees+/uhePpAJkrxYK6SKnrbRD+bFFjW0unHJn7lPRAm4rbN3d2H2mhd jY5Q== 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; bh=JP+ghPqzt9TX97jbLJL8jRhoyoEjnSOwXIQ9x4CZOtc=; b=q0HFiF+UW6y9e2UP00Qg5U2uk8E7zGHrM/ZcHAij1ulShxr9jxrbhXvUNJySr0ywb3 NMfWHEsNt7XsoV5ySaHNPWl8Tqrt3btLqeBNjphTbVjrLagretNS5XhQAWG2E27uz2pI nw8VEDUeCzk/VdpzDmtdVwEtf1ldD7kBtOCw6/cOHykoz1i0Q1rcNW0DV61+m1aMEXsD hW/lnzswzYc+BTaB+ZH40z2oyJo6lzDgfITdTEgeoSflxvAgiSiUW2QVemigHplXIX5O PdK3IsANpWdvBtnkrqMt1z8S3IAGnPotecQgNpVfgrwIt1jAbE3PgxDfdcnV2pat5F3m kJjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=pH+6L8dw; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:3::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:3::133]) by mx.google.com with ESMTPS id e12-20020a63db0c000000b003f5d8756675si18372785pgg.371.2022.05.25.14.02.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 14:02:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:3::133 as permitted sender) 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=pH+6L8dw; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:3::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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=JP+ghPqzt9TX97jbLJL8jRhoyoEjnSOwXIQ9x4CZOtc=; b=pH+6L8dwZeWZ0g CT5uU+hB3W5tfSlzCTXOWKSNfTSR54jzSAwswUtdFYHaVzWCFTWU5VAHPswAwEDoyQ+HwBkPnNL4j ATb45jYeHa00TlmndL0vWztIKxPZIVweNh1O5aO3+riN5a4BdTkvMKRG1Sjx8PiciUk1FuBGuOfb4 OTOw/P+6i3HHULs8w0tRC8xlBqlhEp4w6plJrbWCs2AAUAyH/O+qS/nVy+cMTsv2TVFQHXjRHTBLK o6zJAzEJnsOPMn2FefraEqJJlWDrzv/gxAmYnaUzdYvGQgUPbmXXe0V+EgPbI4DRmrdwDEuT1lxHE 0jd/QruewEBR86wl7cag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nty8m-00CiVE-1q; Wed, 25 May 2022 21:02:00 +0000 Received: from mail-oi1-f173.google.com ([209.85.167.173]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nty8i-00CiU1-KQ for linux-mtd@lists.infradead.org; Wed, 25 May 2022 21:01:58 +0000 Received: by mail-oi1-f173.google.com with SMTP id m125so3427706oia.6 for ; Wed, 25 May 2022 14:01:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eV5yBS00qx48PlZZxn5CpCblfq4K2A5juZQWoz0DTyQ=; b=gmXYz4Nv58NseSMEQBkPclFvkoOOv2eNoiqK1hJ5rYcNotAQhNw3NNLAsRfLVrCMX1 RtD+6Pmmz6OvuuJq5qSHrMXqBe2sMZAtCIdhVKBBgahRE+5SCd6F8ohOc6beW6DbEHGP +F2bDrE0CtOLWBzAtV0+zkNbRdgkZp1Uiz1d6L2uvTuYRYlQGpIFTwFjwvn65nSmJnxG /HxqGn76M/4o0rFm1w4qrOBaLtgiB6H6w9b87Tr9+O/eBatLNOHA/BK3nKOJr+TI2LEy OsbiNzxk8UXptIwYLr4aPpVKucksFoj4DOVgPlb00d5WIWrTQETpW9uCxIyYT4p/Fa2Y 6v2w== X-Gm-Message-State: AOAM533LBTrY0NuPR11cCSZRphnJ/HMJuc9CHH/2Xya/yU+yrjHFIORR EuXZjbVCd2CI9jZqwj8XHA== X-Received: by 2002:a05:6808:16a1:b0:2f9:bfea:e5f3 with SMTP id bb33-20020a05680816a100b002f9bfeae5f3mr6603644oib.28.1653512515113; Wed, 25 May 2022 14:01:55 -0700 (PDT) Received: from xps15.. (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.googlemail.com with ESMTPSA id w19-20020a056870431300b000f26a4e2cdfsm3723564oah.18.2022.05.25.14.01.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 14:01:54 -0700 (PDT) From: Rob Herring To: Krzysztof Kozlowski , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Paul Cercueil Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mtd@lists.infradead.org Subject: [PATCH] dt-bindings: memory-controllers: ingenic: Split out child node properties Date: Wed, 25 May 2022 16:01:40 -0500 Message-Id: <20220525210140.2489866-1-robh@kernel.org> 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-20220525_140156_710162_67569D9B X-CRM114-Status: GOOD ( 12.84 ) X-Spam-Score: 0.7 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Binding schemas which define child node properties such as memory controllers with timing properties need a separate schema which can be referenced from child device schemas. This is necessary for une [...] Content analysis details: (0.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.167.173 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [robherring2[at]gmail.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [robherring2[at]gmail.com] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.167.173 listed in wl.mailspike.net] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 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 Binding schemas which define child node properties such as memory controllers with timing properties need a separate schema which can be referenced from child device schemas. This is necessary for unevaluatedProperties checks to work properly. Move the ingenic,nemc child properties to its own file and reference from ingenic,nand.yaml which describes a child NAND controller. Signed-off-by: Rob Herring Acked-by: Paul Cercueil --- .../ingenic,nemc-peripherals.yaml | 46 +++++++++++++++++++ .../memory-controllers/ingenic,nemc.yaml | 32 ------------- .../devicetree/bindings/mtd/ingenic,nand.yaml | 1 + 3 files changed, 47 insertions(+), 32 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/ingenic,nemc-peripherals.yaml diff --git a/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc-peripherals.yaml b/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc-peripherals.yaml new file mode 100644 index 000000000000..b8ed52a44d57 --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc-peripherals.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/ingenic,nemc-peripherals.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ingenic SoCs NAND / External Memory Controller (NEMC) devicetree bindings + +maintainers: + - Paul Cercueil + +properties: + reg: + minItems: 1 + maxItems: 255 + + ingenic,nemc-bus-width: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [8, 16] + description: Specifies the bus width in bits. + + ingenic,nemc-tAS: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Address setup time in nanoseconds. + + ingenic,nemc-tAH: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Address hold time in nanoseconds. + + ingenic,nemc-tBP: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Burst pitch time in nanoseconds. + + ingenic,nemc-tAW: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Address wait time in nanoseconds. + + ingenic,nemc-tSTRV: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Static memory recovery time in nanoseconds. + +required: + - reg + +additionalProperties: true +... diff --git a/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml b/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml index 24f9e1982028..dd13a5106d6c 100644 --- a/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml @@ -39,38 +39,6 @@ properties: patternProperties: ".*@[0-9]+$": type: object - properties: - reg: - minItems: 1 - maxItems: 255 - - ingenic,nemc-bus-width: - $ref: /schemas/types.yaml#/definitions/uint32 - enum: [8, 16] - description: Specifies the bus width in bits. - - ingenic,nemc-tAS: - $ref: /schemas/types.yaml#/definitions/uint32 - description: Address setup time in nanoseconds. - - ingenic,nemc-tAH: - $ref: /schemas/types.yaml#/definitions/uint32 - description: Address hold time in nanoseconds. - - ingenic,nemc-tBP: - $ref: /schemas/types.yaml#/definitions/uint32 - description: Burst pitch time in nanoseconds. - - ingenic,nemc-tAW: - $ref: /schemas/types.yaml#/definitions/uint32 - description: Address wait time in nanoseconds. - - ingenic,nemc-tSTRV: - $ref: /schemas/types.yaml#/definitions/uint32 - description: Static memory recovery time in nanoseconds. - - required: - - reg required: - compatible diff --git a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml b/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml index 9de8ef6e59ca..8c272c842bfd 100644 --- a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml +++ b/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml @@ -11,6 +11,7 @@ maintainers: allOf: - $ref: nand-controller.yaml# + - $ref: /schemas/memory-controllers/ingenic,nemc-peripherals.yaml# properties: compatible: