From patchwork Fri Nov 4 16:47:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 15698 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp519124wru; Fri, 4 Nov 2022 09:50:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6o+GCuSptoJeo55mf2hn3HJRu9x7V/U98jlvgW28GAH7BMCGqOUEid84hKTOXIHU1Y6HHU X-Received: by 2002:a17:907:160c:b0:78d:b6f5:9f56 with SMTP id hb12-20020a170907160c00b0078db6f59f56mr35810381ejc.325.1667580614152; Fri, 04 Nov 2022 09:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667580614; cv=none; d=google.com; s=arc-20160816; b=G9wxt1yoGhPVM5ra4/3QmpHVteCrAFMA3tIJNNGYgsDBcNv9WT450i1h78W9S0AalO apLDe5ZWIXKFfXOM7hne1U7HyCNkzPGiQmjgvxnra/G2fjnKR8RFXYEz+vdMssiRMDIv 1cRPdIKTyYbGr1K0B78tUWZQ/Gdsqc6RD5lBcnoIXab0IAquR70ECodJpTlYJI8Rrsoh sYsIT9HS+SsgbtwJmQ1vN6JAYEz5WC8tbo7BCadiOf7XWq46r2f9HVhkVqLdGhQ30Ulp xNSfZftyOc0PWnmC3mYPmXtg06GpGvwS3OPbvsPTMIflTMXZHtDs3+GDzQHUL7lxi98S g0aQ== 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=QRDFGN+zRO7AC+X4pkKNuDHyPBAeUFzjW6kshWON1O0=; b=aS5VLTOcgivQjYdB+dEtDA0VDofe7bg5A0pFEcCrodZ+wl64ZQIE+x/FVR5oy6M7b+ 2L/vWmsyiqZhO8m9oefaqgzBheftAjNvBe9xm9cFrV/fAW+yKsBvlyHsgBDlibD+c9bA RGKvEbIzp2DD4RiXJilAEmTAFZC7tqeQTuFCQJbuPG0yQn+QO1YlQHH7yETX18ZHAbJB D1lsZypX0IncHgM7RqVCfpjV4NbhxdrUpPzBcuF8A3W20SJ/YEqOsk4xDi6HbU1sHLDL dhDfOWfWmhWgywDlfBXsWKiZdYYWovgOZoODm11JLSepbDXDpT2FrOO/noSgafB05qvA pEcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=j60Y7aIs; 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 o22-20020a170906975600b00782161b3422si5627139ejy.914.2022.11.04.09.49.48; Fri, 04 Nov 2022 09:50:14 -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=j60Y7aIs; 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 S232117AbiKDQso (ORCPT + 99 others); Fri, 4 Nov 2022 12:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231719AbiKDQrf (ORCPT ); Fri, 4 Nov 2022 12:47:35 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16D3E40447; Fri, 4 Nov 2022 09:47:29 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id E073440015; Fri, 4 Nov 2022 16:47:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667580448; 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=QRDFGN+zRO7AC+X4pkKNuDHyPBAeUFzjW6kshWON1O0=; b=j60Y7aIsofHslJoIacsEQGtjo0nM1/27uO6nXcszwdWCIxxEJqr6vUscDjY6J5i63BFMbp 3TYA5sCjL1oTMDdBzsfPAUtD2+p9NT7B3NI1oIt5d3OAb4lkshrm9GkXERRJ6zZ/Zb0aVd 1v5PRs78PMysm+O8OacpszphDDASGuBDj4QdkZK8SCVFest8Chw1r7tkFTJfz3/0kTf3Tp D9bpQJ7bddiYBX7GnOyyOSn2eGaDGbW/0izcnJfmgFsQAPVYqaf1bWJ49yO75cfCY9Udrr H585MAQI250G7MPzZaQfut3GwVsMIYOYQcWENUtZyqRWJGRetiExdP/8PBEMwg== 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 08/17] dt-bindings: mtd: sunxi-nand: Add an example to validate the bindings Date: Fri, 4 Nov 2022 17:47:09 +0100 Message-Id: <20221104164718.1290859-9-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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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?1748585009666916539?= X-GMAIL-MSGID: =?utf-8?q?1748585009666916539?= Copy-paste an existing DT node to ensure the dt_binding_check target would catch any unforeseen difference. Signed-off-by: Miquel Raynal --- .../mtd/allwinner,sun4i-a10-nand.yaml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml index 465aa69f0f10..e7ec0c59bca6 100644 --- a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml +++ b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml @@ -86,4 +86,27 @@ required: unevaluatedProperties: false +examples: + - | + #include + #include + #include + #include + + nand-controller@1c03000 { + compatible = "allwinner,sun8i-a23-nand-controller"; + reg = <0x01c03000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_NAND>, <&ccu CLK_NAND>; + clock-names = "ahb", "mod"; + resets = <&ccu RST_BUS_NAND>; + reset-names = "ahb"; + dmas = <&dma 5>; + dma-names = "rxtx"; + pinctrl-names = "default"; + pinctrl-0 = <&nand_pins &nand_cs0_pin &nand_rb0_pin>; + #address-cells = <1>; + #size-cells = <0>; + }; + ...