Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11253678rwl; Mon, 2 Jan 2023 17:34:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXsq1QxM7AKGljMmOSwsdO8OZddKeq7smEzUigKlixsoeWrmR/k4vXRozoNhpmvTP+uCdB+R X-Received: by 2002:a17:906:7046:b0:7ae:8194:7e06 with SMTP id r6-20020a170906704600b007ae81947e06mr38610103ejj.56.1672709668722; Mon, 02 Jan 2023 17:34:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672709668; cv=none; d=google.com; s=arc-20160816; b=hwm3q+mmGN0lwEoEIa3q9sOddiUHIQhF46Z5ZZRz8obkW1er89DJgi6iKmC62Si2a3 K9PI4kpr8udH4FbZ3K6fbPCJEYxBnXIfkMFgNhsg7QRV+A0b0679Ja7BYE4tz/IA/Hn5 gw4YMD/xq2OxY7nRiC1ed5xnrpeaMTbNZDKyy+eqL8TabrZakZ9wY7S0vIBXJv3CvJry D4FKEmxlzTtgNz1MedXj7W54XMnp3oH+YmN9yrxqfHedwc8cyWcZw8ijxxCoBBdiTa8z l9Defnn5jgIr8rLtdLAR8aF+D7dCQ3Yirt/SSj1Aw4sGAe7mvLXav4BvI37Dr9v5PXTA fJBg== 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=Vh+IAVpscYnfHMFnGLQJ6oXAn3grycw66MXgxt/5MRc=; b=wAQsfRPP+o/RGYPTFB9osFhlht80ATZHTM+mNTQxv1cRrTNyPOq0f/kN/vwNQJM+xM JWRwx6VoxZCtxM5ElykHjvy0dw0g0id51gClNdvbF8wXKXV7245goJ/zp/jm/H9qIJMM JLIZmucf2X5C6SjFhLuE2U2bF1Pfr1RftByuouBcU9dnBLZtIO8L0v6xctxsFwCndFuw T06jtxxsQoEBsdrQK2ge0Qdui58xisJidzPM6MVdqOMHpHpVXy0uWV35WJE8PV9ZuLMH QcX4ekX2KgrGofKObl0lgH8a2UXvHJGNwnTvA10SWUXfTPdRfIbrnGNz9Dsu7h5uNZ9e S2uA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv16-20020a17090760d000b0083b6e04f379si27959571ejc.492.2023.01.02.17.34.14; Mon, 02 Jan 2023 17:34:28 -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 S236558AbjACBcK convert rfc822-to-8bit (ORCPT + 62 others); Mon, 2 Jan 2023 20:32:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230182AbjACBb5 (ORCPT ); Mon, 2 Jan 2023 20:31:57 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32DB1199; Mon, 2 Jan 2023 17:31:56 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 1239324E0FC; Tue, 3 Jan 2023 09:31:50 +0800 (CST) Received: from EXMBX172.cuchost.com (172.16.6.92) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 3 Jan 2023 09:31:50 +0800 Received: from ubuntu.localdomain (113.72.146.202) by EXMBX172.cuchost.com (172.16.6.92) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 3 Jan 2023 09:31:49 +0800 From: Hal Feng To: , , , CC: Jean Delvare , Guenter Roeck , Jonathan Corbet , Conor Dooley , "Paul Walmsley" , Palmer Dabbelt , Albert Ou , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Hal Feng , Subject: [PATCH v1 1/4] dt-bindings: hwmon: Add starfive,jh71x0-temp Date: Tue, 3 Jan 2023 09:31:42 +0800 Message-ID: <20230103013145.9570-2-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230103013145.9570-1-hal.feng@starfivetech.com> References: <20230103013145.9570-1-hal.feng@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.146.202] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX172.cuchost.com (172.16.6.92) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 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 --- .../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..2600881e2cdc --- /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 + + tmon@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"; + }; -- 2.38.1