From patchwork Fri Nov 18 06:39:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 22131 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp30389wrr; Thu, 17 Nov 2022 22:43:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf56Putpw5lpbu5U4XFdOJfbmKDT9JACqOU8GfI3lbtRVYHlWkx+xalT7Xy18UlVQgRpNuef X-Received: by 2002:a17:907:a705:b0:78d:3e6b:d402 with SMTP id vw5-20020a170907a70500b0078d3e6bd402mr4693471ejc.563.1668753781465; Thu, 17 Nov 2022 22:43:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668753781; cv=none; d=google.com; s=arc-20160816; b=IEFWo7DcE3Sjlc1jt8FcSWUh9BkdhgfIIH6U6HBUfnUCQg1cc5W+9o9K1D7RsTl06Y 6FXkSFzv7AzLIaIf5HuQPagspLk80lsxO1l8o01cHbnK5WkEUJEOxcSO5aqreFp4gGXU VUP4tWk8b+0A0fGSAunkpZAPY86d/8yFM8F9skEmCZSYroCG7wQDsMXDx0hcgDV5y7oH oEKWEfoA132br3qjJAtUrLuJhTQLu9QTvXaES34pNvkCMi7mxPfGHvkYm4vHton5XSry ZiFoC7O4i7ryNh45LKG+6BbA9WnTJMGcVllcRYwgzvGkmFMkwFh/pEutT4CaRPyT2aIP YyZg== 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=X6tFEMtBh3ilrlAcOEMTxiLXV0PbJ6qC9TxuM/fjwWE=; b=D1F8dEZzCja7oW3f4NVw1NEo2feHQA117fRTjGq6ZEKMAN1HL/DQoyGZMBro7xIMDC NVWoiOltOVFoRqSVQpWqmnn/+tGGeM+LLUPWm0eDLkfAzsZGmqcXvBi9fV5Bt/q+/sf4 8oz14kfs9Qq480FT7ID1OGJCBmzKhwrezoJPeCZRWq/lzs5+J/9VV5GxyEw0wEl7EYB/ +7B5vXW9K2EGFWW/fUxIgzi4yxCMytt4ZFfNVFJGlfTNUioIQoXNAP18gUGBXh7ZkZ0K 0gIuZLqUCu0WUcYWBpA3Js+V8rNtPEZoK+jB96xrQ6aLJ6w15BirLM5/d3BiEfmrdp/4 zDgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j7FRe43l; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji22-20020a170907981600b007adf16570c3si2682363ejc.17.2022.11.17.22.42.34; Thu, 17 Nov 2022 22:43:01 -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=@linaro.org header.s=google header.b=j7FRe43l; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241181AbiKRGk7 (ORCPT + 99 others); Fri, 18 Nov 2022 01:40:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241202AbiKRGkT (ORCPT ); Fri, 18 Nov 2022 01:40:19 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70B5082BDA for ; Thu, 17 Nov 2022 22:40:06 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id a11-20020a05600c2d4b00b003cf6f5fd9f1so3355213wmg.2 for ; Thu, 17 Nov 2022 22:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=X6tFEMtBh3ilrlAcOEMTxiLXV0PbJ6qC9TxuM/fjwWE=; b=j7FRe43l2XVbwLA5mr0jmObCXYe6kgQQq8whf0nv3xIVGWzGIs6wzaEoNWxguRGgFi 7kKJfotlEsXHLgQLQtrAtJ4FFtv4fK18J+v98jNwDiK1uGnC4XHheUIgJ37aosI9i8IN MUhmd4W8qhGP+bkByCj31BKj97YkX9HaFfbs1n6iyWtLWmZOFQ/sx7NhXhJS6ieA2M3f bXibX8RWZIq7to9fZ8jBtuS2xsMkmHvN4SU1xXDjjmpGTWpNrlTPur9+m5mGgkZWKwsU UCqthP7nxcFzBE+TrlWhS6QhQz9ftsKuS2SH7k17vOlH5noXmRuJFbNFDSCpk9d+hA7z GLgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=X6tFEMtBh3ilrlAcOEMTxiLXV0PbJ6qC9TxuM/fjwWE=; b=vQeZ5waH8HosAGK0IS4h9jQOcCgTFTnczOUl6gPryCw/vicbvm3/wDkVVvMD8xFM7a RwIOvJ0jp3VSmEJYZKETtST5ZYqF9iIP6yKUQbDrGtdmTUVXQbDbarBCb9W06jZlRWoy hG01pB+iy3DooEdMfbqEe8udtkUxuSLMDPGhdqRGwqJr/pcy/VfqrFKUOUHWpBPqTQVy JKze2Ocea+ufdmzHDw6KOCTnsjvLaQXTUF74DPBslwMPhwDP6wyuBJ/kpwZzMU+eiK/v Fp4lTL5FsOWJc29cDG6ewY6hBMUBlJW7b7tO02HpWRg47l4X7QJGGiJkFJvIkulroJhD ZGUQ== X-Gm-Message-State: ANoB5pk8/ffDipNy/gMMsFZMwvKLVbZTS39j41q8yBDclWDVOCGwh76s WpenbwgMR+GZVq+ORsXkVXsGjI2gXTB7hQ== X-Received: by 2002:a1c:2b81:0:b0:3b4:88ba:a74c with SMTP id r123-20020a1c2b81000000b003b488baa74cmr7536110wmr.77.1668753604974; Thu, 17 Nov 2022 22:40:04 -0800 (PST) Received: from localhost.localdomain ([167.98.215.174]) by smtp.gmail.com with ESMTPSA id j13-20020adff54d000000b0023655e51c33sm2785902wrp.4.2022.11.17.22.40.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 22:40:04 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Miquel Raynal , Rob Herring , Srinivas Kandagatla Subject: [PATCH 10/13] dt-bindings: eeprom: Inherit from nvmem.yaml Date: Fri, 18 Nov 2022 06:39:29 +0000 Message-Id: <20221118063932.6418-11-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118063932.6418-1-srinivas.kandagatla@linaro.org> References: <20221118063932.6418-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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?1749815165053808701?= X-GMAIL-MSGID: =?utf-8?q?1749815165053808701?= From: Miquel Raynal 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 Reviewed-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- 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