From patchwork Tue Jan 3 01:31:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Feng X-Patchwork-Id: 38234 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4387421wrt; Mon, 2 Jan 2023 17:33:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXv1VTQ7pMOZqEn2cTTbB9nlPGgIf4it5GEmQZepXocJ30c66tgdNp2sFmkZ5a5PjxIaKSOA X-Received: by 2002:a17:907:d311:b0:7c4:e7b0:8491 with SMTP id vg17-20020a170907d31100b007c4e7b08491mr37737480ejc.61.1672709607332; Mon, 02 Jan 2023 17:33:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672709607; cv=none; d=google.com; s=arc-20160816; b=DQo3Az/FmGlaWA88ObKNR9hfF0VBPt9ZN/U6Z7iWyDLhitYg3CEupWjgCcu0hsrkM7 OKw9yil8o/vJKr78DbVyBScR23/H+bCHpHc+9IeMkOmuAzAiU3PqdC5ywhy+LT50USD7 +4q28G2MD69EEtlpZ8JRY3fEY1PLm20sjC8miidDiQv/WrMxLLWBmgclL6MLw14XkT1C 5uUB8b/OT6v4bHft33hi2sdkSlkZTpZpr+aljLWdKyMCi62fORmnDxSOmxnDthwAeR/O Ymed5N6olqEBMDPm+UILa+dcjPSZ5Im45uGMWiKRSHAsYe/iCEqJG+oQUIIp2HxKgBe2 yIiw== 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 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.33.04; Mon, 02 Jan 2023 17:33:27 -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 + 99 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 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753963149254950747?= X-GMAIL-MSGID: =?utf-8?q?1753963149254950747?= 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"; + };