From patchwork Mon Nov 14 08:56:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 19598 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2041302wru; Mon, 14 Nov 2022 01:00:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf5nDRVyPTCtC3NguBjv7vkgq0l1Z8VD2CygzxANnKuzecNvY3sj9j1wGCIseqi/CLRK2j2B X-Received: by 2002:a17:906:dc1:b0:7ae:6d3e:a02e with SMTP id p1-20020a1709060dc100b007ae6d3ea02emr9252055eji.626.1668416458364; Mon, 14 Nov 2022 01:00:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668416458; cv=none; d=google.com; s=arc-20160816; b=XzwgzhESw/d0eDEd2zEzcEzxGQfZZdzbJ2TRAVvPeWb6c0ZWy+IAESBZJu0nCOUVyz AB3BerU+dimihaJmJQNf6x+wpSxISP3PggZzKnOYLaN04gkW7/RmyLZnXhN6zGY7I+6t ad8RK1xAg0RD0qt3xXeRnJU2/E1z5ttLHlYr2HPPVRJItDkU49BtT8QqVEYTeyrrKS9B ykXQiHSjqWcsGj2TwjmWCe1S+vMufgygEwUXd65ZWEzS0cy6QrYKZi70ukRBMPAHB1Jp bmsveh24D/APqmeAz+0b7GsUR/by/TbueT4v9CzLYbm/QvQtAug2SFRlZoi8LemoqfdD 8Jjw== 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=/RuwsiKOoT3RSiv0ATWGMePKlt2FePql8/L/NJA2t6w=; b=Qx47CRiLt7OsrXgKVlt5e51IcKDJQBcGO7slMe2k1HrAt1fJOL+RfDZ/dB2Gn6s3Nq vU2oK86xrn9OYvZsqB4/Qok1g9S7iFwF2eROiJ1eIYyydYgUsXpG3ccwNO/YpaafiZIT c6/Qvo4Uqz07SoCIcwacazUPPxC0CA+EYRyyqm8q8yXXOJr/jOmlIUdyLtyI9bOTI/3p D3wf0zLGdFVt4hgzO14D8MqvTMZZnVqbLxuBc8zK4tguzEcp1184g1E/nTzPy+0XL160 iU8TUQYJFRq16GovYOYYzd8BW+r9EgVBG157T4c0Dq/oKz/ntbgxBGAhio83GCCzN6Ww TO7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=drBSkcHi; 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 u5-20020aa7d0c5000000b0044eae9b2c48si8069270edo.273.2022.11.14.01.00.34; Mon, 14 Nov 2022 01:00:58 -0800 (PST) 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=drBSkcHi; 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 S235956AbiKNI5b (ORCPT + 99 others); Mon, 14 Nov 2022 03:57:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236081AbiKNI5M (ORCPT ); Mon, 14 Nov 2022 03:57:12 -0500 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [IPv6:2001:4b98:dc4:8::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDB801C401; Mon, 14 Nov 2022 00:57:09 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 8F3E410000B; Mon, 14 Nov 2022 08:57:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1668416228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/RuwsiKOoT3RSiv0ATWGMePKlt2FePql8/L/NJA2t6w=; b=drBSkcHiGiZIoU8VLro96xlsTfAl0dgPYa0+Cv2zh2EBC5K124WsKrQdPmfcQOFl0KPpH9 kk7VpvjLl56WgiMO2s+9X5RZXZ9UR/W6prHjQzSMtYwzA8KiCwQitzldAmX9ix4xGJpNBt RwOl9o359I8aEN0wYn/OOdNsIExx2lxZRGboJEEwZqtS/yq0B8H1IGvTAuZhWvIvKjtHfp roS++IRFlm58JFSDVQX/IXx8PyHpJJ0WbxrkQ/bHbR+lTUtOB4H7FgXtx7P1N64VgAL7k0 6JXj+bA3XwjwvPIlN6s5/0Wn571UgTE4KL00ISuTF9L2TmmoEto6bOzuZB4ZYQ== From: Miquel Raynal To: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Cc: Robert Marko , Luka Perkov , Thomas Petazzoni , Michael Walle , Bartosz Golaszewski , Srinivas Kandagatla , , Miquel Raynal Subject: [PATCH v4 2/5] dt-bindings: eeprom: Inherit from nvmem.yaml Date: Mon, 14 Nov 2022 09:56:56 +0100 Message-Id: <20221114085659.847611-3-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221114085659.847611-1-miquel.raynal@bootlin.com> References: <20221114085659.847611-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,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?1749461456268906984?= X-GMAIL-MSGID: =?utf-8?q?1749461456268906984?= EEPROMs can be nvmem providers. Let's make all EEPROM bindings reference nvmem.yaml as they should, so that nvmem cells and layout parsers can be safely described within the EEPROM nodes. Signed-off-by: Miquel Raynal Acked-by: Bartosz Golaszewski Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/eeprom/at24.yaml | 5 ++++- Documentation/devicetree/bindings/eeprom/at25.yaml | 1 + .../devicetree/bindings/eeprom/microchip,93lc46b.yaml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml index d14e0accbda8..84af0d5f52aa 100644 --- a/Documentation/devicetree/bindings/eeprom/at24.yaml +++ b/Documentation/devicetree/bindings/eeprom/at24.yaml @@ -10,6 +10,9 @@ title: I2C EEPROMs compatible with Atmel's AT24 maintainers: - Bartosz Golaszewski +allOf: + - $ref: /schemas/nvmem/nvmem.yaml + select: properties: compatible: @@ -183,7 +186,7 @@ required: - compatible - reg -additionalProperties: false +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/eeprom/at25.yaml b/Documentation/devicetree/bindings/eeprom/at25.yaml index 8b1c997caac1..0f5a8ef996d3 100644 --- a/Documentation/devicetree/bindings/eeprom/at25.yaml +++ b/Documentation/devicetree/bindings/eeprom/at25.yaml @@ -104,6 +104,7 @@ required: allOf: - $ref: /schemas/spi/spi-peripheral-props.yaml# + - $ref: /schemas/nvmem/nvmem.yaml - if: properties: compatible: diff --git a/Documentation/devicetree/bindings/eeprom/microchip,93lc46b.yaml b/Documentation/devicetree/bindings/eeprom/microchip,93lc46b.yaml index 0c2f5ddb79c5..64cfd971c9c5 100644 --- a/Documentation/devicetree/bindings/eeprom/microchip,93lc46b.yaml +++ b/Documentation/devicetree/bindings/eeprom/microchip,93lc46b.yaml @@ -47,6 +47,7 @@ required: allOf: - $ref: /schemas/spi/spi-peripheral-props.yaml# + - $ref: /schemas/nvmem/nvmem.yaml unevaluatedProperties: false