From patchwork Tue Feb 7 07:23:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Feng X-Patchwork-Id: 53758 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2700948wrn; Mon, 6 Feb 2023 23:29:30 -0800 (PST) X-Google-Smtp-Source: AK7set/fJTTAqXy8MkULtvaI/2m+tzvxenrPs+iag0Dct/co41gx6j4xx14DQW/hgWtfaaLxZLls X-Received: by 2002:a05:6a20:3d03:b0:bc:d677:6a7b with SMTP id y3-20020a056a203d0300b000bcd6776a7bmr3051347pzi.47.1675754969922; Mon, 06 Feb 2023 23:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675754969; cv=none; d=google.com; s=arc-20160816; b=nmSdDfhKBFt4CmxUOQyX7de0Cv2PWJqEOjJn5y2SG00o+xvJndPyLSXbS+3Ka+Vs5M MzDi/WN9fEd59rQF+W7xnhTOu52gqABCM/EZhkah3DbvDStl48kNZl1elv+xAGMi+cVG dTIxUdqnqdgDtJc6iqWWAsRLeUewmj7p1BBCzlstYDU31oa2RSEsXss1z7YmxhAdgpwO t/LGRoR9PenxLay77Cd//+zSpM+kipCkRDjCK6NPD2yK9wSOY+AWPAhLagugAgc+KQKW AImCfpXWTNyLExEqQHGgeNZZbMEppMVWXsOZ2Ev4YVGJtcP/KnE/ULZTVOi4TD3eXpET DzSQ== 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; bh=PXdGTKpt9mfTCjxirouaUXFxbtyR1qaOhbCK24jBTOs=; b=z9C4vAVfgAlr3MrJsxK51rKVNDvUCX1lOkSgu4B6B6dhe7z/PxXG32sm48c9WfkxXZ XRCrTXZnoUBuZkw7zL6kWA1jqZ4LovDEizr96x2Yf2yYqSiiRfySm7rtxgnS27Emp9FY LyNFTAzfrRu3WFt0Nef+sZ3CkM8kE1ifyL42snxVD3PQ/n0hnQEqxsMMKO90pH+hlsdH dK4mZIxst8i9/6kT/IlHLRjC7dLIp0YddonT1RNGvqcxq3IRXjuP05IC4f4jnAdJIed6 x5c3iO0EkC7ZV1Vpju/l0DAXUJi0rS2cTV+/xktOn2JEhrmrlhGsgypdBMcOtlhF9r/X 2iAQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x62-20020a623141000000b0059069de3461si14402747pfx.72.2023.02.06.23.29.17; Mon, 06 Feb 2023 23:29:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230526AbjBGHXc convert rfc822-to-8bit (ORCPT + 99 others); Tue, 7 Feb 2023 02:23:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbjBGHX0 (ORCPT ); Tue, 7 Feb 2023 02:23:26 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80D9B2F7A1; Mon, 6 Feb 2023 23:23:25 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 8266224E344; Tue, 7 Feb 2023 15:23:18 +0800 (CST) Received: from EXMBX172.cuchost.com (172.16.6.92) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 7 Feb 2023 15:23:18 +0800 Received: from ubuntu.localdomain (183.27.96.33) by EXMBX172.cuchost.com (172.16.6.92) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 7 Feb 2023 15:23:17 +0800 From: Hal Feng To: , , , CC: Jean Delvare , Guenter Roeck , Jonathan Corbet , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Emil Renner Berthing , Samin Guo , Hal Feng , Subject: [PATCH v4 1/2] dt-bindings: hwmon: Add starfive,jh71x0-temp Date: Tue, 7 Feb 2023 15:23:13 +0800 Message-ID: <20230207072314.62040-2-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230207072314.62040-1-hal.feng@starfivetech.com> References: <20230207072314.62040-1-hal.feng@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [183.27.96.33] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX172.cuchost.com (172.16.6.92) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,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?1757156443355188753?= X-GMAIL-MSGID: =?utf-8?q?1757156443355188753?= From: Emil Renner Berthing Add bindings for the temperature sensor on the StarFive JH7100 and JH7110 SoCs. Signed-off-by: Emil Renner Berthing Signed-off-by: Hal Feng Reviewed-by: Rob Herring --- .../bindings/hwmon/starfive,jh71x0-temp.yaml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml diff --git a/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml b/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml new file mode 100644 index 000000000000..262c59648a1a --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/starfive,jh71x0-temp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH71x0 Temperature Sensor + +maintainers: + - Emil Renner Berthing + +description: | + StarFive Technology Co. JH71x0 embedded temperature sensor + +properties: + compatible: + enum: + - starfive,jh7100-temp + - starfive,jh7110-temp + + reg: + maxItems: 1 + + clocks: + minItems: 2 + maxItems: 2 + + clock-names: + items: + - const: "sense" + - const: "bus" + + '#thermal-sensor-cells': + const: 0 + + interrupts: + maxItems: 1 + + resets: + minItems: 2 + maxItems: 2 + + reset-names: + items: + - const: "sense" + - const: "bus" + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - resets + - reset-names + +additionalProperties: false + +examples: + - | + #include + #include + + temperature-sensor@124a0000 { + compatible = "starfive,jh7100-temp"; + reg = <0x124a0000 0x10000>; + clocks = <&clkgen JH7100_CLK_TEMP_SENSE>, + <&clkgen JH7100_CLK_TEMP_APB>; + clock-names = "sense", "bus"; + #thermal-sensor-cells = <0>; + interrupts = <122>; + resets = <&rstgen JH7100_RSTN_TEMP_SENSE>, + <&rstgen JH7100_RSTN_TEMP_APB>; + reset-names = "sense", "bus"; + };