Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp222831iob; Thu, 28 Apr 2022 00:29:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzPMOh3zDTWyDQbZdNSItDz038LKf0dS/PIYnN7g8ixxiXwWPkUS5wq75idt3k7NiN0knL X-Received: by 2002:a17:907:d8d:b0:6df:b214:392a with SMTP id go13-20020a1709070d8d00b006dfb214392amr30629432ejc.669.1651130960545; Thu, 28 Apr 2022 00:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651130960; cv=none; d=google.com; s=arc-20160816; b=HKw2d5jDbdDc8frQNiIeUDo7jbCH28+9rAl8ZrJxxWS2LstNk/Wy3usPIDZt1lR8JX rBjwKWPhn86FJn4YVVCNYD6oHDV3Gq8Joa8bfYxaN3hGM4FfJ4AFTaIPD81Tc1IM7k64 044X1xMRaI0ldTzjnVGv+ypS6baT1uKO5cqgR/pDXXXSrCd1KH/UwtXZJ8MAoqzS7FMo gr23rlcY2Tw5pSQvssYskHPCJxtUAbT03I1xXWBdzmXdYXIuYRQOPTXjkcrEgyMclaPX a3N1JsH2/C1xk2kKU+txEgU7SptI+jMHrqOUVSFejpiU8MvX8WbAN7GM5CGR6OhHQV0o MjMg== 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=JaNZyZ33VkrGjyfJq+sNEy33LoIDr90dC4eiqTLC1iI=; b=fNLDn+fKd9liSXbBI8nt8P5X8ytJqYLq3UBIxOCb55vvIh1GGmTY5b4y4jz3fdtEtQ BpSm5k6LaLjWlRxndWw0YOgc5tdeavpr+i7RVvrwVDT7BtLM1J007wsreZohhes64xFK r5+EAQzPN98xDnCy35BVJFxdCByKBMKl+v5qNhMZr8rJuuKR7XopjQo5YS9LpDIUd/Bu RjPaKP5wg6wmUxjTZqCDGQSiX10UFULh+MjSABZpHkzDkpCF6SUgnMSD4HyGasRJGXPE ZrzMTnUR6mMCi9Ia4HIuMppEcMpajgnTF7AHANKs+j2iQVODqw8fO73Vabx91Ne7wgED 5v7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=XKJCjrtX; 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=bewilderbeest.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t9-20020a50ab49000000b00418f11819a9si3657264edc.120.2022.04.28.00.28.56; Thu, 28 Apr 2022 00:29: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=@bewilderbeest.net header.s=thorn header.b=XKJCjrtX; 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=bewilderbeest.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240574AbiD1Bau (ORCPT + 99 others); Wed, 27 Apr 2022 21:30:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238725AbiD1Bao (ORCPT ); Wed, 27 Apr 2022 21:30:44 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [71.19.156.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA7FF6E4DB; Wed, 27 Apr 2022 18:27:30 -0700 (PDT) Received: from hatter.bewilderbeest.net (174-21-163-222.tukw.qwest.net [174.21.163.222]) (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) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 4F548586; Wed, 27 Apr 2022 18:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1651109250; bh=JaNZyZ33VkrGjyfJq+sNEy33LoIDr90dC4eiqTLC1iI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XKJCjrtXYb26ndEp79AovS4PVlSuvQKw+uBFt0Ci97JN/S8toeGHAWj+C99Wwlc9N oMwfCPL8OLL6ukpGHsAV2Dj/8F+Shs5ta8zW6xCncWqWH7rMwaUw2d0Sr4D7q/Tnli pTJ9ghhgYnZz89YmU8np7C0nYTYlRydPZ+JjAK8E= From: Zev Weiss To: Guenter Roeck , Jean Delvare , linux-hwmon@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Zev Weiss , Renze Nicolai , Oleksandr Natalenko , openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v5 1/2] dt-bindings: hwmon: Add nuvoton,nct6775 Date: Wed, 27 Apr 2022 18:27:06 -0700 Message-Id: <20220428012707.24921-2-zev@bewilderbeest.net> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220428012707.24921-1-zev@bewilderbeest.net> References: <20220428012707.24921-1-zev@bewilderbeest.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 These Super I/O chips have an i2c interface that some systems expose to a BMC; the BMC's device tree can now describe that via this binding. Signed-off-by: Zev Weiss --- .../bindings/hwmon/nuvoton,nct6775.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml diff --git a/Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml b/Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml new file mode 100644 index 000000000000..358b262431fc --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- + +$id: http://devicetree.org/schemas/hwmon/nuvoton,nct6775.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton NCT6775 and compatible Super I/O chips + +maintainers: + - Zev Weiss + +properties: + compatible: + enum: + - nuvoton,nct6106 + - nuvoton,nct6116 + - nuvoton,nct6775 + - nuvoton,nct6776 + - nuvoton,nct6779 + - nuvoton,nct6791 + - nuvoton,nct6792 + - nuvoton,nct6793 + - nuvoton,nct6795 + - nuvoton,nct6796 + - nuvoton,nct6797 + - nuvoton,nct6798 + + reg: + maxItems: 1 + + nuvoton,tsi-channel-mask: + description: + Bitmask indicating which TSI temperature sensor channels are + active. LSB is TSI0, bit 1 is TSI1, etc. + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 0xff + default: 0 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + superio@4d { + compatible = "nuvoton,nct6779"; + reg = <0x4d>; + nuvoton,tsi-channel-mask = <0x03>; + }; + }; -- 2.36.0