Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3381249pxj; Mon, 7 Jun 2021 09:14:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxgBX+ogvBGJqxfEKpS0FvBVZOIwRQaA5XyGuf+U1ynX9Qi7wn7ZuFvMVmkqQw4eHyBG3l X-Received: by 2002:a17:906:c241:: with SMTP id bl1mr18385880ejb.536.1623082457367; Mon, 07 Jun 2021 09:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623082457; cv=none; d=google.com; s=arc-20160816; b=zAE8a3D+x5FIQQgRhkm0uYvOG4fi1KShArJ+AZwSYea/mQUQz9YKKRLl19XqsSTQ9e un+GxYBrPHPcu5fOIYhC6smKLIWIBkQPmj5m6/DqvaXLyAF3fWfTU1XolBgyH+a+yd3e /fohXNapEMxKLBv75Sq9k3I6d++xDUCCD1CK4DrjhKcQqnWXJuDi3RppU5NCd9IR6iU/ NrZA1xS+WHItTin9VT9m5/5Y2sWitZ5i5ht4t/pxl96ZbKIsZquuFTzm3HtD9yUzd0UD nW34qxNJZYwtn1KEWCSmafABVIW7yekxCDJFEFUhTTZAc7x8GUViFOcvdj6KIjwtanUt BPaQ== 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; bh=d6Z9WS6Und/GDlS9TB2gJCAcRRyd/UgFQMXg9jITwG8=; b=0JCCP6qirYISFuX0yMsF5a3n0UoSw01dwboPj7CCjWxG+Qv5DK7Q13ZQ4LfTBqQ05N kTMXAbcBgwRXAMhCFuy+J8bWhCrTg3+ZF81AED/6KBxIUqfqEj2TAjrXngDRcB/KGoUc emAQ5Ck20VtwKW1UiOjr31A8QrSs0gEptePipx6oZHgtzVygkC3BpQmL/B5G2llI6VLk kqYSMvrWe1raAF/ovF3Ksqr042wLWvk5OsYpAigFz1W421VVkgoqJJkQtLg1tl34Cxce 8GH51+LqY8iApu/L+OC8rJXaHPaxizwWXvkNXJwcecbV0HzmvPZqQxKlqksluPVH0S84 3p9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s7si13028904ejc.675.2021.06.07.09.13.54; Mon, 07 Jun 2021 09:14:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231270AbhFGQOJ (ORCPT + 99 others); Mon, 7 Jun 2021 12:14:09 -0400 Received: from router.aksignal.cz ([62.44.4.214]:50668 "EHLO router.aksignal.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230344AbhFGQOC (ORCPT ); Mon, 7 Jun 2021 12:14:02 -0400 Received: from localhost (localhost [127.0.0.1]) by router.aksignal.cz (Postfix) with ESMTP id D238344411; Mon, 7 Jun 2021 18:12:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at router.aksignal.cz Received: from router.aksignal.cz ([127.0.0.1]) by localhost (router.aksignal.cz [127.0.0.1]) (amavisd-new, port 10026) with LMTP id H0H9a3Z84_bB; Mon, 7 Jun 2021 18:12:05 +0200 (CEST) Received: from pc-gameroom.prchals.tk (unknown [83.240.30.185]) (Authenticated sender: jiri.prchal@aksignal.cz) by router.aksignal.cz (Postfix) with ESMTPSA id 495B744415; Mon, 7 Jun 2021 18:12:05 +0200 (CEST) From: Jiri Prchal To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Christian Eggers , Arnd Bergmann , Greg Kroah-Hartman , Jiri Prchal , Rob Herring Subject: [PATCH v8 3/5] dt-bindings: nvmem: at25: add for FRAM support Date: Mon, 7 Jun 2021 18:11:59 +0200 Message-Id: <20210607161201.223697-4-jiri.prchal@aksignal.cz> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210607161201.223697-1-jiri.prchal@aksignal.cz> References: <20210607161201.223697-1-jiri.prchal@aksignal.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Added dt binding documentation. Signed-off-by: Jiri Prchal Reviewed-by: Rob Herring --- v2: fixed dt_binding_check warnings thanks to Rob Herring v3: resend and added more recipients v4: resend v5: no change here v6: no change here v7: no change here v8: changed subject --- .../devicetree/bindings/eeprom/at25.yaml | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/eeprom/at25.yaml b/Documentation/devicetree/bindings/eeprom/at25.yaml index 121a601db22e..840ee7a83a14 100644 --- a/Documentation/devicetree/bindings/eeprom/at25.yaml +++ b/Documentation/devicetree/bindings/eeprom/at25.yaml @@ -4,14 +4,16 @@ $id: "http://devicetree.org/schemas/eeprom/at25.yaml#" $schema: "http://devicetree.org/meta-schemas/core.yaml#" -title: SPI EEPROMs compatible with Atmel's AT25 +title: SPI EEPROMs or FRAMs compatible with Atmel's AT25 maintainers: - Christian Eggers properties: $nodename: - pattern: "^eeprom@[0-9a-f]{1,2}$" + anyOf: + - pattern: "^eeprom@[0-9a-f]{1,2}$" + - pattern: "^fram@[0-9a-f]{1,2}$" # There are multiple known vendors who manufacture EEPROM chips compatible # with Atmel's AT25. The compatible string requires two items where the @@ -31,6 +33,7 @@ properties: - microchip,25lc040 - st,m95m02 - st,m95256 + - cypress,fm25 - const: atmel,at25 @@ -48,7 +51,7 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32 enum: [1, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072] description: - Size of the eeprom page. + Size of the eeprom page. FRAMs don't have pages. size: $ref: /schemas/types.yaml#/definitions/uint32 @@ -101,9 +104,19 @@ required: - compatible - reg - spi-max-frequency - - pagesize - - size - - address-width + +allOf: + - if: + properties: + compatible: + not: + contains: + const: cypress,fm25 + then: + required: + - pagesize + - size + - address-width additionalProperties: false @@ -126,4 +139,10 @@ examples: size = <32768>; address-width = <16>; }; + + fram@1 { + compatible = "cypress,fm25", "atmel,at25"; + reg = <1>; + spi-max-frequency = <40000000>; + }; }; -- 2.25.1