Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4914303pxb; Wed, 20 Apr 2022 12:56:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye2seEpp36NxeKb/41yE9M75QNk3Pnt7WwIA6+ZAYPU/6CtK0Y4Cjkz1VcHKeIuvNNE2Qw X-Received: by 2002:a17:90a:e692:b0:1cb:a04d:eb8c with SMTP id s18-20020a17090ae69200b001cba04deb8cmr6294043pjy.27.1650484591788; Wed, 20 Apr 2022 12:56:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650484591; cv=none; d=google.com; s=arc-20160816; b=Lcb/HppKQ4xAD/n64SHRB6jTMyN9vRSRv0a07yYDCFYK1gHN6wkuyOXwTnb7yhiZ8R CiZx6F/wJANugMgMsev7auxUfvak4olhNjf0mXjjqM9zEw4onOOy2aW2ZKyDKEuLjajG mE1hmFXIMp0+mRoqs4ozB7xTetm5hlJcm5kAE5p964D307geth7Tg6VtajBX0Z6xTt01 Kg/n5sNzgTBzy4DfJ//GF5RtNj7/qIWY71tAZA3z/PzmCqyBXnjKpl+qAFZMOmDdY93Q EHuuZUWzqe8qRENi8EL69ztAtuoFA6a01X0byqPbM/aQQrdj+TMhsuIcIpLtFyIHdIBS 7L3A== 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=qWxsAooeOc34/LMjwACnw797HalYT5MfBhQMEWMvsvs=; b=hSaLArBTn7tb0/RNP9rNW+YcqvMUSJmFT6fwQyj5pYwNzbmqyHnb0ahZQUqXR/oMXK HPvqcGnqPFZ3yBegO2mouW8j6H/7xnx1f7y+OM16j91zPsd6lTdjeX2InOcGBF+G0ZJz QQtKD0HF9sM+C1mjb0WhceIr91ZvpVKnhRC/jq6uzppUuNAg2jDpJpdyIWIBVvaDWmhk WRzS94p3uXD153pxiqmRB3DDY9SYTwi10ZThLgVqUb5fb4ChHqScTVn/tfAHbeQ4LfhI GbyjuB+NEaKc3h8oBMxV1VOrfVLCvJFA2unhQ58mWBXHIiev5c/MpTBNqfG7fOS6YUaK mpvg== 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 i5-20020a63b305000000b003a9f944b0c1si3399434pgf.300.2022.04.20.12.56.14; Wed, 20 Apr 2022 12:56:31 -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; 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 S1348602AbiDSEwi (ORCPT + 99 others); Tue, 19 Apr 2022 00:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348366AbiDSEvc (ORCPT ); Tue, 19 Apr 2022 00:51:32 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D7EA2ED76 for ; Mon, 18 Apr 2022 21:48:50 -0700 (PDT) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngfmx-0002ug-SN; Tue, 19 Apr 2022 06:48:31 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1ngfms-0047SH-4f; Tue, 19 Apr 2022 06:48:26 +0200 From: Oleksij Rempel To: Rob Herring , Shawn Guo Cc: Oleksij Rempel , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , David Jander , Robin van der Gracht Subject: [PATCH v2 17/17] ARM: dts: imx6qdl-vicut1.dtsi: add thermal zone and attach tmp103 to it. Date: Tue, 19 Apr 2022 06:48:24 +0200 Message-Id: <20220419044824.981747-18-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220419044824.981747-1-o.rempel@pengutronix.de> References: <20220419044824.981747-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Latest version of ti,tmp103 driver supports thermal zone. So make use of it. Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/imx6qdl-vicut1.dtsi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-vicut1.dtsi b/arch/arm/boot/dts/imx6qdl-vicut1.dtsi index c928bd854e92..a1676b5d2980 100644 --- a/arch/arm/boot/dts/imx6qdl-vicut1.dtsi +++ b/arch/arm/boot/dts/imx6qdl-vicut1.dtsi @@ -153,6 +153,14 @@ simple-audio-card,codec { frame-master; }; }; + + thermal-zones { + chassis-thermal { + polling-delay = <20000>; + polling-delay-passive = <0>; + thermal-sensors = <&tsens0>; + }; + }; }; &audmux { @@ -323,9 +331,10 @@ rtc@51 { reg = <0x51>; }; - temperature-sensor@70 { + tsens0: temperature-sensor@70 { compatible = "ti,tmp103"; reg = <0x70>; + #thermal-sensor-cells = <0>; }; }; -- 2.30.2