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.8 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,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 1DEE0C4708E for ; Sat, 29 May 2021 10:28:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA5A261355 for ; Sat, 29 May 2021 10:28:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229681AbhE2K3g (ORCPT ); Sat, 29 May 2021 06:29:36 -0400 Received: from phobos.denx.de ([85.214.62.61]:60610 "EHLO phobos.denx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbhE2K3g (ORCPT ); Sat, 29 May 2021 06:29:36 -0400 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 5A49882B62; Sat, 29 May 2021 12:27:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1622284079; bh=B5KI7ifeeOuKGZWeMhm6fI1KYhbpiukyN7ZgTTDJmkk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QYvaaIk59xz3+nA+8UcE2WFgrfdQZubFWGYYD5C4QqT4170wUwxUtt7cNO06euCG/ jQF6AbVwBwZ0+YcbbSZwLBsYLuHOJTbNfKNVN7AzcN/l0Kq2kgoDi2686a1lz0J09q AGWtWVsDka4w7PTDlHJk9Bh3ZDjXTAwcRDzrl9h1fvCrdW92jAljr55gyCDiAqQVh6 4G1jtQVZ8fFG/6eIO/1o72r3M5BTTlDWix42uG7Rp5sgEgkiUHA7FkqpdDLOxMX06t dvSU4uOARAT6E3uOxvkDObLtAL6af2B4QKJ+5JZ1bCNbeuCY6eHnY21Un8nlNbND9m U4Mftxdzdv95g== Received: from pollux.denx.de (pollux [192.168.1.1]) by mail-internal.denx.de (Postfix) with ESMTP id 9A0CD182BA4; Sat, 29 May 2021 12:27:46 +0200 (CEST) Received: by pollux.denx.de (Postfix, from userid 515) id 8EC501A8BC5; Sat, 29 May 2021 12:27:46 +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 v2 1/2] mtd: devices: add devicetree documentation for microchip 48l640 Date: Sat, 29 May 2021 12:27:43 +0200 Message-Id: <20210529102744.1251220-2-hs@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210529102744.1251220-1-hs@denx.de> References: <20210529102744.1251220-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: devicetree@vger.kernel.org The Microchip 48l640 is a 8KByte EERAM connected via SPI. Add devicetree bindings documentation. Signed-off-by: Heiko Schocher --- Changes in v2: as Rob helped, fix warnings from running command 'make DT_CHECKER_FLAGS=-m dt_binding_check' .../bindings/mtd/microchip,mchp48l640.yaml | 45 +++++++++++++++++++ 1 file changed, 45 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..08089f2db0761 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/microchip,mchp48l640.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/mtd/microchip,mchp48l640.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +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 + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + spi-eeram@0 { + compatible = "microchip,48l640"; + reg = <0>; + spi-max-frequency = <20000000>; + }; + }; +... -- 2.30.2