Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4446981rwb; Tue, 8 Aug 2023 08:38:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHjj5Z92xDb0cPxMpJLlOCCBx4LVSbWovVHHIqfV2D4tfzgwXls5K3Wy8ileqBYzpQ6r0k5 X-Received: by 2002:a05:6a00:1354:b0:686:290b:91f7 with SMTP id k20-20020a056a00135400b00686290b91f7mr12668398pfu.22.1691509100942; Tue, 08 Aug 2023 08:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691509100; cv=none; d=google.com; s=arc-20160816; b=lrVvpnnhym/nQpJ9YAa83Nfv/+si3ofQKIYZVQADjd9QsBvsQJCnCH/z/HX189NwSP S0VtWMaqhPJwU5TsfbmtFBGMJbwwn/sZM+W0kwQUNkC9QJlra0oMv3FX4imK/VHKFEFk CBjz0zpjEzJn3+ErUmQAAuIKsuDLh9muh3DvpFX2Ba16enbldouoaLplesipaSPZTFnU iAtODRpg/Fm+M+hfutDaO50kWrm3jBm8ut6aQzFs4kIFvoWFSbdaZSxPj3HZBj5tfMnx ebLbyeE/ePGWJXdWRyacMh0VxTvgDGWT/Oc6y7ApfMhcI0IQ/lkmijS3PmvM4hDzv7Yl Tnmw== 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=mceb6e8GZD8N2t1BnOJ3Ku2TSMK9s9DDBNQyN/+XfTA=; fh=pIHu6BRTcAqjrhzUbuH5kK5h5RiW++aoaH29ZW1Jfx0=; b=BJ/upnk2tptogROIzoP7fA/pDjQOqHv+Wb8ixQvKWiFPOhU2lDNByFg9kquQQVq3HJ 1WQmpSgLoX/83LidLuTFiN4CDD/vJqi0Fb6p8+ZSaAq5EDglEBNSkuj8hCGbuRMy1+wv d4+e5g/wbZRHiXdc7nIOCmoZhK9eTvDuQv5aXk5koX8ugwE/oiMdLZTOi5KhI2+kjdLk 3vKhf7erUQiloWEUhKMgRsXS20A5nw/dUHSSTWCGDn9eJ2zXe8MCCdS64pH4rdXyjQ6X Eb+ArnWpeJ/T79ANpdY9gQa3/oq+ZuPrNTtgJzv2lna09h0Guk1u2OF62yeMuuj71m/q zsvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b="AW/LRgiE"; 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=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a63d809000000b0055b640a6b3csi7009630pgh.884.2023.08.08.08.38.08; Tue, 08 Aug 2023 08:38:20 -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=@alliedtelesis.co.nz header.s=mail181024 header.b="AW/LRgiE"; 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=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229831AbjHHBc4 (ORCPT + 99 others); Mon, 7 Aug 2023 21:32:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjHHBcv (ORCPT ); Mon, 7 Aug 2023 21:32:51 -0400 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 947D81FC6 for ; Mon, 7 Aug 2023 18:32:27 -0700 (PDT) Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 74A7D2C02A5; Tue, 8 Aug 2023 13:32:23 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1691458343; bh=mceb6e8GZD8N2t1BnOJ3Ku2TSMK9s9DDBNQyN/+XfTA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AW/LRgiEoavGhC6ZAIx9S6rjuo9EQeWjgvJvpYTc/LyYHNUwt6qo5yZI6+uGONiaS 5G8T1JXEM2yqAnzBT5FHIKkGhw4gnM+u2TvWTwvE6++wJQNQN2XPkIWnb5AGTw3FJR vXPXT++qOJ5QQwI/+7cVVLVU/ZTVfr1qWI4/7MuA99afXGORJmqZhEnAsBOKXRM7AB hDQ8a7O55UB1hAkqKloKCZpz33+h8lOnESLyPwcl+Bol+uGO0Zk4tTw2Iadpvyyeiq 99y91QNK0xDmZwZ2xKpz4IdIeQqkwxWWE9QkEcGlqTjttAQadkFUH6qUK25OkeTFAF MOLQww4mfGlig== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Tue, 08 Aug 2023 13:32:23 +1200 Received: from markto-dl.ws.atlnz.lc (markto-dl.ws.atlnz.lc [10.33.23.10]) by pat.atlnz.lc (Postfix) with ESMTP id 44D6D13EE40; Tue, 8 Aug 2023 13:32:23 +1200 (NZST) Received: by markto-dl.ws.atlnz.lc (Postfix, from userid 1155) id 48CA144494; Tue, 8 Aug 2023 13:32:23 +1200 (NZST) From: Mark Tomlinson To: Jean Delvare , Guenter Roeck Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Mathew McBride , Mark Tomlinson Subject: [PATCH 2/2] dt-bindings: hwmon: add EMC181x Date: Tue, 8 Aug 2023 13:31:57 +1200 Message-ID: <20230808013157.80913-2-mark.tomlinson@alliedtelesis.co.nz> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230808013157.80913-1-mark.tomlinson@alliedtelesis.co.nz> References: <20230808013157.80913-1-mark.tomlinson@alliedtelesis.co.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.3 cv=boIy+3Si c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=IkcTkHD0fZMA:10 a=UttIx32zK-AA:10 a=gEfo2CItAAAA:8 a=d0t0iNI6APqrSpnZPF8A:9 a=QEXdDO2ut3YA:10 a=sptkURWiP4Gy88Gu7hUp:22 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat 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_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 The EMC181x range are I2C temperature sensors with a varying number of sensors in each device. Each has one internal sensor, and one to four external sensor diodes. The default range is from 0=C2=B0C to +127=C2=B0C, but can be extended to= -64=C2=B0C to +191=C2=B0C. Signed-off-by: Mark Tomlinson --- .../bindings/hwmon/microchip,emc181x.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/microchip,emc= 181x.yaml diff --git a/Documentation/devicetree/bindings/hwmon/microchip,emc181x.ya= ml b/Documentation/devicetree/bindings/hwmon/microchip,emc181x.yaml new file mode 100644 index 000000000000..5967f98ad7ba --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/microchip,emc181x.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- + +$id: http://devicetree.org/schemas/hwmon/microchip,emc181x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip EMC1812/EMC1813/EMC1814/EMC1815/EMC1833 temperature sen= sors + +maintainers: + - Mark Tomlinson + +properties: + compatible: + enum: + - microchip,emc1812 + - microchip,emc1813 + - microchip,emc1814 + - microchip,emc1815 + - microchip,emc1833 + + reg: + maxItems: 1 + + emc181x,extended-range: + description: Allow for reading of extended temperature range (-64-19= 2C) + + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + temperature-sensor@7c { + compatible =3D "microchip,emc1812"; + reg =3D <0x7c>; + }; + }; --=20 2.41.0