From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7BCEC47087 for ; Fri, 28 May 2021 07:24:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B5965611CD for ; Fri, 28 May 2021 07:24:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235819AbhE1HZz (ORCPT ); Fri, 28 May 2021 03:25:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234447AbhE1HZw (ORCPT ); Fri, 28 May 2021 03:25:52 -0400 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F650C061574 for ; Fri, 28 May 2021 00:24:18 -0700 (PDT) Received: from mail-internal.denx.de (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: noc@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id C141E82AB2 for ; Fri, 28 May 2021 09:24:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1622186656; bh=FxlnUYuVBD/ayVoM48CgGS8f69ngxanfNpwZzowWZ3E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RQgYOzDOjvRk2rrNwR9o/KoADN9BF0S9zHOj69eFK9ztmLi/PlAmGXXSSft8vJAg4 qDt5Kk9oElWKIaG2lpkqBdBHZRwxyWRaDofPh9DMPlJNQua5xZPJLOdpSoIy+pwoSd 6pXLMs5ScJIuoU+W9e4kNDoTmbvbSxJMLs+femjy29mTkncLvhCcAofSML1Mklzm2T BkzfZRXDy2A1/Jm/yDTSkdjnmlS9tqvsnZszAT/eswC38g5fDI2gkH1iGx8p0zGCTf skz+NXmTF9HSc01v4zk3iIfWNHuboAu52cP+jY5ro1C7/iKyijImyrbuvaLWteOIK2 8f8i8eIOBOycw== Received: from pollux.denx.de (pollux [192.168.1.1]) by mail-internal.denx.de (Postfix) with ESMTP id 9572C182BA1; Fri, 28 May 2021 09:23:53 +0200 (CEST) Received: by pollux.denx.de (Postfix, from userid 515) id 8356F1A8BC6; Fri, 28 May 2021 09:23:53 +0200 (CEST) From: Heiko Schocher To: linux-mtd@lists.infradead.org Cc: Heiko Schocher , Miquel Raynal , Richard Weinberger , Rob Herring , Vignesh Raghavendra , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] mtd: devices: add devicetree documentation for microchip 48l640 Date: Fri, 28 May 2021 09:23:50 +0200 Message-Id: <20210528072351.1639575-2-hs@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210528072351.1639575-1-hs@denx.de> References: <20210528072351.1639575-1-hs@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Microchip 48l640 is a 8KByte EERAM connected via SPI. Add devicetree bindings documentation. Signed-off-by: Heiko Schocher --- I must admit that I created the file Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml by hand, looking into other yaml files... Is there a way to check such a file to its correctness? .../bindings/mtd/microchip,mchp48l640.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml diff --git a/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml b/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml new file mode 100644 index 0000000000000..f0290d09d4b25 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +title: MTD SPI driver for Microchip 48l640 (and similar) serial EERAM + +maintainers: + - Heiko Schocher + +description: | + The Microchip 48l640 is a 8KByte EERAM connected via SPI. + + datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/20006055B.pdf + +properties: + compatible: + items: + - const: microchip,48l640 + + reg: + maxItems: 1 + + spi-max-frequency: true + +required: + - compatible + - reg + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + spi-eeram@0 { + compatible = "microchip,48l640"; + reg = <0>; + spi-max-frequency = <20000000>; + }; + }; +... -- 2.30.2