Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11253163rwl; Mon, 2 Jan 2023 17:33:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXudg9KasM7piy5CeuSNafC+t+3zYk+tMhGZKxvncgQ/VOS5PQF7waYoQAy5WgdXfyGiiZyU X-Received: by 2002:a05:6402:754:b0:485:9d0f:6193 with SMTP id p20-20020a056402075400b004859d0f6193mr23039117edy.38.1672709629781; Mon, 02 Jan 2023 17:33:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672709629; cv=none; d=google.com; s=arc-20160816; b=rKd4RcEXi96gVczK8V2acl1llbWBkJObplr3zMrkrKYk9jV57P4w/y5b4NxXZKWN8m M5C/C8EDYwQjaPBwzdkbvPPVdVtbOa520KPLdj7VRmNCet5vJYU2fof0+TKQTOSJnYEI IhlQZ4AgKDFI3oaPUMYOrjG+kKN2B2Z/yQUPpnUx1OEeNCmBYQNErlLoQQBMFBjLseQF d24TswYH1shNWCxeUDC0nijU5kig/59CXYtiTTSr36epYZRlS63bXRehPZMwg4LG+Aq5 Mg10WvyVFCHid7FvGmcpB5SZPh5OpzSSjWap6SMbtdpwCufLD0E70OUlmDjuTuxIemRL 8VgQ== 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=lT1anIGa/t7uUAxNlX8/I3FJLoUW1pwQJns04AUdGiU=; b=fYSqjovGDt4InK56Ouv1P465l9k7FGEh7ApeXFDi2+ygc1Sg2tVCX83D7QJLMJlVdP Otmo1/xz6xPjJlf5C1ObuvY8gnDEG/mW/ppLkbxVxPobFOoyBVvS58cQ3bOXuW8up186 +Dzo5AvVdZg3SI5kgLUCWgtibhEdexRz/8grPrJr7Zyg9iLwoiHO6WkMDdU7Fs8yo+Qt ApV6HwAkSyp6UdXsHFeX/JSoj/FhHJ9VgTUhoBD6PjDLr4AItU6717NB/dCgAFgJjUAG x4i8kSUOTH0KHl9rRU2SWK13d9RNzpY5clCz2NCBCleTHzY3QS1kx0vg5+IFH7l1x3c+ Q/0w== 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 w23-20020a056402071700b00489df3c748csi10349078edx.154.2023.01.02.17.33.35; Mon, 02 Jan 2023 17:33:49 -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 S236509AbjACBcE convert rfc822-to-8bit (ORCPT + 62 others); Mon, 2 Jan 2023 20:32:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232706AbjACBbz (ORCPT ); Mon, 2 Jan 2023 20:31:55 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 554DDD44; Mon, 2 Jan 2023 17:31:53 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id DDBE324E035; Tue, 3 Jan 2023 09:31:51 +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:51 +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:51 +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 3/4] riscv: dts: starfive: jh7110: Add temperature sensor node Date: Tue, 3 Jan 2023 09:31:44 +0800 Message-ID: <20230103013145.9570-4-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,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 From: Emil Renner Berthing Add temperature sensor support for StarFive JH7110 SoC. Signed-off-by: Emil Renner Berthing Signed-off-by: Hal Feng --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index 64d260ea1f29..793ae26bf72d 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -353,6 +353,19 @@ uart5: serial@12020000 { status = "disabled"; }; + sfctemp: tmon@120e0000 { + compatible = "starfive,jh7110-temp"; + reg = <0x0 0x120e0000 0x0 0x10000>; + clocks = <&syscrg JH7110_SYSCLK_TEMP_CORE>, + <&syscrg JH7110_SYSCLK_TEMP_APB>; + clock-names = "sense", "bus"; + resets = <&syscrg JH7110_SYSRST_TEMP_CORE>, + <&syscrg JH7110_SYSRST_TEMP_APB>; + reset-names = "sense", "bus"; + interrupts = <81>; + #thermal-sensor-cells = <0>; + }; + syscrg: clock-controller@13020000 { compatible = "starfive,jh7110-syscrg"; reg = <0x0 0x13020000 0x0 0x10000>; -- 2.38.1