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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39B32C433EF for ; Fri, 8 Oct 2021 08:01:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1B44761037 for ; Fri, 8 Oct 2021 08:01:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233168AbhJHIDA (ORCPT ); Fri, 8 Oct 2021 04:03:00 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:39360 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233142AbhJHICx (ORCPT ); Fri, 8 Oct 2021 04:02:53 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 7E8FC3F324 for ; Fri, 8 Oct 2021 08:00:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1633680053; bh=UhvRFg6J81eubpJZYTlrZiRc4zy2yqJEO477Q5ePwLM=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=aELi5/dHKzQpal12kN7+8Nmy/8IJ8/tNJh/d/Bc0GzjzKavodUrwgyunAhleu652p OSGSe3cGTk3BJFf7uCEYdVqkWBSOyMpgDL0q7uxkwD0ia9rW/r16+yimcnrgIceF9P uRSB1zDQGGiDcwJbASg97PLYllbDAe3dfTToR6PeWGW+7tgClVuD/aB9hXErqYHvsm 7sgm2cSP76z4si/EKQd/LQfVk3iDLOqR4GHKcc8r1GtVk9dOpThSznF87v7pRzvvp4 XSlqPLB6+59tLl+23C+ZhXmNgiq2lLUbnZgE3TjUh+UNWicBtB6hW2WtNYvw4mw/3D OYxPSczZFzcbg== Received: by mail-wr1-f70.google.com with SMTP id e12-20020a056000178c00b001606927de88so6634096wrg.10 for ; Fri, 08 Oct 2021 01:00:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UhvRFg6J81eubpJZYTlrZiRc4zy2yqJEO477Q5ePwLM=; b=XPig3GEK8XMNJnt1GJmLMOHNHqimm2uY5dEI8c4TMOfSQtZsX8DPTUUNWmX9lO3Hga 2Hqyi3tv3DXF7XqWAHI3D2++oueuaZ7h4JIXuydBqqAAckS8Dnr3Qr37qTD9Ur91+uhV HA49JVCHfsTYuathbT83IlCx8lInZQ2DHR2hQIZxeQTA2ompoqXA/BU1gDfj57AijqZZ 7CBHR83gymJPRl2sXb4Aqwz/hS5uyBLptLgIZpe1Hj59jPj2ESR4e1YXc07EIvbBdaT7 WtHbFyvzcOpSc8HYLvQrV4T4u7zTuZv2OayrNo6v+kMsVZBwL20Re4E64nUyO3jKYZdP cLLQ== X-Gm-Message-State: AOAM530VPUl355vqJYgZkD3FdoVt41xXypt90TCTN0v06/Dccz+5RawJ rrQDxhLkfee4lyYpUvHv+gZKKIWXlDOmTTGSD21wWNcOjT2wGWmITRACa6BBfc3edLnZV3JwxUA RsCgF1qvcCi5vrSDVh0u098CsSjXpTJYq3PSCVmqk X-Received: by 2002:a1c:e90a:: with SMTP id q10mr1848279wmc.108.1633680053005; Fri, 08 Oct 2021 01:00:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEDTGsh/gLhVeCZutYpGk/6baUHgeM4bfvl6fc9nzb//eqtmfQ4kjKeNy7B9SCIW5ZaGEsJg== X-Received: by 2002:a1c:e90a:: with SMTP id q10mr1848251wmc.108.1633680052698; Fri, 08 Oct 2021 01:00:52 -0700 (PDT) Received: from [192.168.1.24] (xdsl-188-155-186-13.adslplus.ch. [188.155.186.13]) by smtp.gmail.com with ESMTPSA id 73sm1844525wmb.40.2021.10.08.01.00.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Oct 2021 01:00:52 -0700 (PDT) Subject: Re: [PATCH 6/6] dt-bindings: hwmon: jedec,jc42: add nxp,se97b To: Guenter Roeck Cc: Rob Herring , Jean Delvare , Jiri Kosina , Jonathan Cameron , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210920182114.339419-1-krzysztof.kozlowski@canonical.com> <20210920182114.339419-6-krzysztof.kozlowski@canonical.com> <8871dd77-f9f1-bf25-78ad-48f97efcf7d9@canonical.com> <20210924115152.GC2694238@roeck-us.net> From: Krzysztof Kozlowski Message-ID: <2c19f216-6347-e253-7f09-54f2a69f1481@canonical.com> Date: Fri, 8 Oct 2021 10:00:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210924115152.GC2694238@roeck-us.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org On 24/09/2021 13:51, Guenter Roeck wrote: > On Fri, Sep 24, 2021 at 08:57:44AM +0200, Krzysztof Kozlowski wrote: >> On 23/09/2021 23:16, Rob Herring wrote: >>> On Mon, Sep 20, 2021 at 08:21:14PM +0200, Krzysztof Kozlowski wrote: >>>> Document bindings for NXP SE97B, a DDR memory module temperature sensor >>>> with integrated SPD and EEPROM via Atmel's AT24 interface. >>>> >>>> Signed-off-by: Krzysztof Kozlowski >>>> --- >>>> Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml | 9 +++++++++ >>>> 1 file changed, 9 insertions(+) >>>> >>>> diff --git a/Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml b/Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml >>>> index a7bb4e3a1c46..0e49b3901161 100644 >>>> --- a/Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml >>>> +++ b/Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml >>>> @@ -10,6 +10,14 @@ maintainers: >>>> - Jean Delvare >>>> - Guenter Roeck >>>> >>>> +select: >>>> + properties: >>>> + compatible: >>>> + const: jedec,jc-42.4-temp >>>> + >>>> + required: >>>> + - compatible >>>> + >>> >>> Is this supposed to be in the last patch? And why is it needed? >> >> Yes, this is here on purpose because of nxp,se97b which is sensor with >> at24-compatible EEPROM. >> >> arch/arm/boot/dts/at91-nattis-2-natte-2.dts: >> 169 temp@18 { >> 170 compatible = "nxp,se97b", "jedec,jc-42.4-temp"; >> >> 171 reg = <0x18>; >> 172 smbus-timeout-disable; >> 173 }; >> 174 >> 175 eeprom@50 { >> 176 compatible = "nxp,se97b", "atmel,24c02"; > > How would that be handled anyway ? Yes, the chip includes both a temperature > sensor and an eeprom, but this node should most definitely not instantiate as > temperature sensor. > I am not sure if I understand the problem you are mentioning. You have two nods in DT, two different compatible sets and two difference devices. One eeprom and other one a temperature sensor. Best regards, Krzysztof