From patchwork Fri Nov 4 16:38:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 15684 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp518066wru; Fri, 4 Nov 2022 09:47:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7CZ8GIgoULuW9boDu6hC50GTxKsPy9bX874yZQZkaseElQzDjNjVRK2ypkOq/NOXzK8pSN X-Received: by 2002:a05:6402:528a:b0:454:8613:6560 with SMTP id en10-20020a056402528a00b0045486136560mr37717387edb.252.1667580474159; Fri, 04 Nov 2022 09:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667580474; cv=none; d=google.com; s=arc-20160816; b=y1uCsCIZc64pqcCWwH/0bWXruEKyfN+52zOmc4NGvKmnhynhw2aXsGt+VQuUsVFFyY qI3KqFc56t1XYDoqrTNxUYxx/FAVXNuswJalRV+UnN1AChGB8Vlhha4zreQeVTyaKrFv FkyVWR/1MhddJMtQMMO5RVF0AhvIkIsRo0Oo5zZ59stqK3bitgGQDW0oJE6rnuNIYChg GrvCJtcnErHeN91mJco6+i5YtEcJVv0VwHt5lR1YYyrY/aLGcmVYc4DSPkf6DEH0SQHq Dsq3BhpccNAhdtnpfMoYQOEsJJk3OpJrmRHBj6lcUo5rq1motpSlBZ+zz4QvfQobUemp 8yiw== 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=f9MHr3ZVLhQFUhLnDqkm+PvlKsWoLZOqfNvu0/+0Z4TyPeivnAvIs6TxkgUMezdaz2 kx6zQCBcT1r2zDgBtXB8IcykTgwbpwKhQ6IWWQ7uSO32MbuiZmSX1VPJazyHg0p8g9/U SXm1xFrlIGrnLN/YmVyLhu5jLJCj24kVI286aARI0Rl9v7v1B1IFPDgaek6VlEAvzZ19 AE49R9uW/ot/SLe6IHMyEHiJR2SmvxazHDXJTV8t4TwVDgsU6TKOUWCDvurSu6fCiQct jmFHD3S54U0/Kn2Vda30gG4VU5H578ZW+f9qT8Th0C9AfwSmJJc/jgpHmzp2ZPuDrUWH nbHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=n9oVsDaT; 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 sa30-20020a1709076d1e00b007ad812915c9si5658111ejc.581.2022.11.04.09.47.30; Fri, 04 Nov 2022 09:47:54 -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=n9oVsDaT; 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 S231889AbiKDQjV (ORCPT + 99 others); Fri, 4 Nov 2022 12:39:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231752AbiKDQim (ORCPT ); Fri, 4 Nov 2022 12:38:42 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB17D25EA4; Fri, 4 Nov 2022 09:38:40 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 67D3BC0009; Fri, 4 Nov 2022 16:38:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667579919; 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=/RuwsiKOoT3RSiv0ATWGMePKlt2FePql8/L/NJA2t6w=; b=n9oVsDaT4roOwYop7LYboPhnBKi8zEtj89MtGR9NiyT9IZ3gJZonBS3xoZfgIq1AKHJtC9 d7akW49OR4Tvgaaw0haHKSbNuuI+9IAOtL1v6WPfOuTB9DBHmyJeS8M8smfTNvPM6XbndT q6Hg/Dv/EwedvTSZxrtw2XNdjFflR93YyfHMlG/GnaTuotK8hXgsp4LauHF03M3R6gXxB1 ac3EqjkusVMfBJQhafOz4M9h6XstfGt8ZMQc0SK9Ev2tXVoj96Kxj3L9BDF46yCDhAtA5V HWlAZ/3Yj4GkjaUwZkPn64bEj/ooohClq8Bbdy/bLVLqaAcwxrpsT+UPXFAJpg== From: Miquel Raynal To: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Cc: Srinivas Kandagatla , , Robert Marko , Luka Perkov , Thomas Petazzoni , Michael Walle , , Bartosz Golaszewski , Christian Eggers , Cory Tusar , Miquel Raynal Subject: [PATCH v3 3/6] dt-bindings: eeprom: Inherit from nvmem.yaml Date: Fri, 4 Nov 2022 17:38:30 +0100 Message-Id: <20221104163833.1289857-4-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221104163833.1289857-1-miquel.raynal@bootlin.com> References: <20221104163833.1289857-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_H2,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?1748584863267919384?= X-GMAIL-MSGID: =?utf-8?q?1748584863267919384?= 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 --- 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