From patchwork Mon Sep 20 18:21:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12506181 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 292B4C433FE for ; Mon, 20 Sep 2021 18:25:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 119676140D for ; Mon, 20 Sep 2021 18:25:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378864AbhITS0v (ORCPT ); Mon, 20 Sep 2021 14:26:51 -0400 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:51190 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378511AbhITSYu (ORCPT ); Mon, 20 Sep 2021 14:24:50 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (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-0.canonical.com (Postfix) with ESMTPS id A9483402D7 for ; Mon, 20 Sep 2021 18:21:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1632162087; bh=Sbg5nOyZq9yC8Xn5SZzHESn4Mfz8fqz9QB4d6lh3mX0=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=e3aiq+ixAM2Ie0HdmtLyaOOqt14OFO/nLYAAWUiEM1hTyLoFEC0P37zsaXRCeTplV /ySVcDj8Gdx92WtheWkoNj3FhQTbtHAr0rvF2KH+ZNslS/DCfGZmd4ZYyhbiIs1Pti pqmrLPcvWPulG1ib4qbFquIDnQzsBf3dK3gnr6VBB1wVSwdbXSvvvNPLO+HXcpqxjH EaCgEKo5jdZ8Tna0nwXUT39Xro+Ff8ejiyM4HS/u/DUUhM+IZZN6u0cRoM0vgZLFvN Cz7hiRFIzj4XscmDA5eZnBr/Q8oqNaJj61BoggD6KaOKnUAZmtCetCgq2lKsKxLIQM 0EKY7BC5sSz5g== Received: by mail-wr1-f71.google.com with SMTP id l9-20020adfc789000000b00160111fd4e8so1560183wrg.17 for ; Mon, 20 Sep 2021 11:21:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Sbg5nOyZq9yC8Xn5SZzHESn4Mfz8fqz9QB4d6lh3mX0=; b=ZZB3pfijWopG/MUjQN8NhcJPKgN6cpHWXCm7z1PXNdn4sIXRAmMHtjUq8moeymwH2j rgUq98JT7p3KBhY/LvkA2yJhkGtWGW0TETAKAK9Pv+oJR4L8QmSjEZQVwAhEO5eEdKb6 90/+y9GN1QLOtcJmFBeaRh6UHfX8M6wdpncAbGa4vIT38qqWqY7C91lU0+Lo6PqUe7Zr aCwWJ1OJWpqE522m1EqMqOc/h1MDvu3aSldNTmMpvARwhMVhj3CcTZtiO3E+z3IpccGL xkGZR5hrUOk6G/qbh1ahHHoyNXy4bhayMDCAsGgDzuCNbtB0NHRm8x1D1GdAa9Cz3fzl /ptA== X-Gm-Message-State: AOAM530rAkrwweqkgV9s0b91WzzPFXB0a/fu1qNkHzC8Vqdqjj/dAstR NqMtE2iOHr84VakorLBIFJOGb3Dpykz8UtVNtyttPNC9QF23CerlKvFDo/FhxZBuhcS0LPodJty yqTNECophTC48hIp4YfEPtVEZdKDb5zzLGcBQgUML X-Received: by 2002:adf:f486:: with SMTP id l6mr29595568wro.375.1632162087329; Mon, 20 Sep 2021 11:21:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCPZmp493nU2KexX4DlFrxsQs3hL2yp6zsXResDTNt3qLAbLsP0MEP/RGzViC4mVOpx1uqbw== X-Received: by 2002:adf:f486:: with SMTP id l6mr29595549wro.375.1632162087156; Mon, 20 Sep 2021 11:21:27 -0700 (PDT) Received: from kozik-lap.lan (lk.84.20.244.219.dc.cable.static.lj-kabel.net. [84.20.244.219]) by smtp.gmail.com with ESMTPSA id e5sm10515285wrd.1.2021.09.20.11.21.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 11:21:26 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Rob Herring , Jiri Kosina , Jonathan Cameron , Krzysztof Kozlowski , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] dt-bindings: hwmon: jedec,jc42: convert to dtschema Date: Mon, 20 Sep 2021 20:21:13 +0200 Message-Id: <20210920182114.339419-5-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210920182114.339419-1-krzysztof.kozlowski@canonical.com> References: <20210920182114.339419-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Convert the Jedec JC-42.4 temperature sensor bindings to DT schema format. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../devicetree/bindings/hwmon/jc42.txt | 46 ------------- .../devicetree/bindings/hwmon/jedec,jc42.yaml | 69 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 70 insertions(+), 46 deletions(-) delete mode 100644 Documentation/devicetree/bindings/hwmon/jc42.txt create mode 100644 Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml diff --git a/Documentation/devicetree/bindings/hwmon/jc42.txt b/Documentation/devicetree/bindings/hwmon/jc42.txt deleted file mode 100644 index f569db58f64a..000000000000 --- a/Documentation/devicetree/bindings/hwmon/jc42.txt +++ /dev/null @@ -1,46 +0,0 @@ -Properties for Jedec JC-42.4 compatible temperature sensors - -Required properties: -- compatible: May include a device-specific string consisting of the - manufacturer and the name of the chip. A list of supported - chip names follows. - Must include "jedec,jc-42.4-temp" for any Jedec JC-42.4 - compatible temperature sensor. - - Supported chip names: - adi,adt7408 - atmel,at30ts00 - atmel,at30tse004 - onnn,cat6095 - onnn,cat34ts02 - maxim,max6604 - microchip,mcp9804 - microchip,mcp9805 - microchip,mcp9808 - microchip,mcp98243 - microchip,mcp98244 - microchip,mcp9843 - nxp,se97 - nxp,se98 - st,stts2002 - st,stts2004 - st,stts3000 - st,stts424 - st,stts424e - idt,tse2002 - idt,tse2004 - idt,ts3000 - idt,ts3001 - -- reg: I2C address - -Optional properties: -- smbus-timeout-disable: When set, the smbus timeout function will be disabled. - This is not supported on all chips. - -Example: - -temp-sensor@1a { - compatible = "jedec,jc-42.4-temp"; - reg = <0x1a>; -}; diff --git a/Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml b/Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml new file mode 100644 index 000000000000..a7bb4e3a1c46 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/jedec,jc42.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Jedec JC-42.4 compatible temperature sensors + +maintainers: + - Jean Delvare + - Guenter Roeck + +properties: + compatible: + oneOf: + - const: jedec,jc-42.4-temp + - items: + - enum: + - adi,adt7408 + - atmel,at30ts00 + - atmel,at30tse004 + - idt,tse2002 + - idt,tse2004 + - idt,ts3000 + - idt,ts3001 + - maxim,max6604 + - microchip,mcp9804 + - microchip,mcp9805 + - microchip,mcp9808 + - microchip,mcp98243 + - microchip,mcp98244 + - microchip,mcp9843 + - nxp,se97 + - nxp,se98 + - onnn,cat6095 + - onnn,cat34ts02 + - st,stts2002 + - st,stts2004 + - st,stts3000 + - st,stts424 + - st,stts424e + - const: jedec,jc-42.4-temp + + reg: + maxItems: 1 + + smbus-timeout-disable: + description: | + When set, the smbus timeout function will be disabled. This is not + supported on all chips. + type: boolean + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + temp-sensor@1a { + compatible = "jedec,jc-42.4-temp"; + reg = <0x1a>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index b07679009af2..15c4d3c809e8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10033,6 +10033,7 @@ JC42.4 TEMPERATURE SENSOR DRIVER M: Guenter Roeck L: linux-hwmon@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/hwmon/jedec,jc42.yaml F: Documentation/hwmon/jc42.rst F: drivers/hwmon/jc42.c