Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2800567rwd; Wed, 14 Jun 2023 07:30:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4eaWI28OJx82p2CGk4+oPxiKGnTtuSbQAG2faKsAIItC4Ug7gZWXHfTUMpUzi6EXjhVvxL X-Received: by 2002:a17:906:da85:b0:966:2123:e0ca with SMTP id xh5-20020a170906da8500b009662123e0camr16977393ejb.34.1686753046373; Wed, 14 Jun 2023 07:30:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686753046; cv=none; d=google.com; s=arc-20160816; b=rJ0tKIrTyfLLtTJAU7wu7pZVXpVz7WFSzKe+yfjoRCG1kgOE1Z0NsTWnBHjpVLcz1y +sJdq0ObWaWdh6EPlmx+vytqlQ1ceH5deEPkuZ5svjVwDjbkW6+9V4zVTR0rx/ucKHV6 XaKz6qhVGkSQzDTc9coNBo/IlwJiaHRlg+IwolBiI97CUvmMj3nolzfofHaJRV9+hrc/ QJEbXv+XqWT5b8JGPI0Lkm9gqobqzGp+LAJ58iWIcfswT3sspzxefr7SWZ1S1pRguKQ/ i4LoZH2+EtF41VWdWRDbtgKEWXqPAUu2CBpQbzIRXs/9VF5TSRYBW9CfRoWxsrprncyv KVmA== 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=a1eo8xae+BqZ3lpEIIaUchjB8XrAbrJIJKlx1wdExKg=; b=TTDQssE0P5AHnZvJPvzQQwCmhWp8fBcBC2tNOrf5DbzKHCl8qa28qjangZBwMHnNPz bnaqCyXB/kAZPK6QtAj/AvfBn/5OujGFdCVZm/W6LWaI0Kdyjcu9s6e1rrePUeQ5ubiB lWjDWQWVg0UegMsMv3g5BzFpx97HMdO30JTfOdD++MQbmuArPoXOj21VGILEUIxyG6R2 OHW1zps0bmj+OhMfjFC73YdZXkKM9IUQgTB9yHxZmi0QP3hYryK/xquIFTB3Mb4AALAa ZuuO7UEy9NfIgAmBFyYC3LxNlTUGMyagitVvaf3k2pjuOU1cc5h2X/UShIKxmVoiZ6MB JQhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UvakJ7HB; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a7-20020a170906274700b009827536547bsi648342ejd.460.2023.06.14.07.30.07; Wed, 14 Jun 2023 07:30:46 -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=@gmail.com header.s=20221208 header.b=UvakJ7HB; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244785AbjFNM4V (ORCPT + 99 others); Wed, 14 Jun 2023 08:56:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234655AbjFNM4S (ORCPT ); Wed, 14 Jun 2023 08:56:18 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B926B1FFF; Wed, 14 Jun 2023 05:56:16 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f649db9b25so8438822e87.0; Wed, 14 Jun 2023 05:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686747374; x=1689339374; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=a1eo8xae+BqZ3lpEIIaUchjB8XrAbrJIJKlx1wdExKg=; b=UvakJ7HBiMflkT+GTjEx7eUO+ZF5M/UQXd9WYOPFbdf797iEVzkTvlUo5fVxcciifz frJ0ouFGcgjFa9YWRSIe+67tC6STTVHFInpiU6DWx7JycvqyFpcoN4zcnyxZ/GFmo89X /Y2GtqN8ou+4m+ruSsoEkhCqka+7FAvCPT952KSysXaUeJwBgXBUdFmUmMB8ycVGJKib x8AwMqtsLgjkSWGoqP5wXyMY4mlSH21j6BDJAweuFb7CYfOLbnUeujuox2T28XQw/Gwx /u2kc4UMqPnUnSzPUUJ5GIcG2yoUgSfruMBIymmtuI0krA+jr/ftSfQLdD9q8VQyZ0kf rPFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686747374; x=1689339374; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=a1eo8xae+BqZ3lpEIIaUchjB8XrAbrJIJKlx1wdExKg=; b=eDXWOV6HuvymLs4oyoCmahteCnPAbc6RP53DlDJT9iuh3+dYpZpkNhOGAP4g/wcZrB +xTYi23KiiVjemsrgizl/R03eXvh/oyH2YpeJs+52Em2O1Pk7ypQuaiSYWQ8kj1KS8Ey Hc2f7Ys9sis5E78RLu6pre5vy2oX7VlMfB0Uw1svUwJc1WnhbnAvxl58ZzpqmeH0b+ok JM6QYyWzS5J+pTbRT1sPWz/0pQS69tTuNhpotllEvIsRhMR7RhWrM+zTIC0zFznDKYu8 KAqu52/sQlxAxdbtCEsn/Ghh9XxXcjubPtSZecDRLgQzcPgaDK88c15pnLR1KMQ/FEuP 9itg== X-Gm-Message-State: AC+VfDxtODcZoJqFtd6sizbeFTF9h2nncefvHcEibdr/VwW50vT6mwRg Gxh94accvxYCJzw2kX0JyX+SjeClMvC34Kt3 X-Received: by 2002:a19:f20e:0:b0:4f6:54f1:ea36 with SMTP id q14-20020a19f20e000000b004f654f1ea36mr7594684lfh.43.1686747374315; Wed, 14 Jun 2023 05:56:14 -0700 (PDT) Received: from user-PC.. ([92.51.95.194]) by smtp.gmail.com with ESMTPSA id c21-20020a05600c0ad500b003f7310a3ffasm17402522wmr.2.2023.06.14.05.56.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 05:56:14 -0700 (PDT) From: Maksim Kiselev To: linux-kernel@vger.kernel.org Cc: Maxim Kiselev , Vasily Khoruzhick , Yangtao Li , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Cristian Ciocaltea , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org Subject: [PATCH v5 3/3] riscv: dts: allwinner: d1: Add thermal sensor Date: Wed, 14 Jun 2023 15:55:21 +0300 Message-Id: <20230614125530.660597-4-bigunclemax@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230614125530.660597-1-bigunclemax@gmail.com> References: <20230614125530.660597-1-bigunclemax@gmail.com> 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: Maxim Kiselev This patch adds a thermal sensor controller node for the D1/T113s. Also it adds a THS calibration data cell to efuse node. Signed-off-by: Maxim Kiselev --- .../boot/dts/allwinner/sunxi-d1s-t113.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi index 922e8e0e2c09..9da1e4ddb662 100644 --- a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi +++ b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi @@ -138,6 +138,19 @@ ccu: clock-controller@2001000 { #reset-cells = <1>; }; + ths: thermal-sensor@2009400 { + compatible = "allwinner,sun20i-d1-ths"; + reg = <0x02009400 0x400>; + interrupts = ; + clocks = <&ccu CLK_BUS_THS>; + clock-names = "bus"; + resets = <&ccu RST_BUS_THS>; + nvmem-cells = <&ths_calibration>; + nvmem-cell-names = "calibration"; + status = "disabled"; + #thermal-sensor-cells = <0>; + }; + dmic: dmic@2031000 { compatible = "allwinner,sun20i-d1-dmic", "allwinner,sun50i-h6-dmic"; @@ -365,6 +378,10 @@ sid: efuse@3006000 { reg = <0x3006000 0x1000>; #address-cells = <1>; #size-cells = <1>; + + ths_calibration: thermal-sensor-calibration@14 { + reg = <0x14 0x4>; + }; }; crypto: crypto@3040000 { -- 2.39.2