Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp385001pxk; Sun, 30 Aug 2020 07:14:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/nVYYQWgfBGVOxyfpQYW9CmGHph3HwdL2ciyGzBCfjKr3T6I2ElLGiKjn34OmZfmjv4cs X-Received: by 2002:a17:906:9ad3:: with SMTP id ah19mr7621853ejc.372.1598796883833; Sun, 30 Aug 2020 07:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598796883; cv=none; d=google.com; s=arc-20160816; b=Ie7ZUIFv8EURe0hIdlPd3obcTBLSIIuNkeg/Wlxv5+Bzy2lGNJrN0i0A6Nj9jQE0WG b0Ub+E2qRlCuaEmFg1kPIL+2iMSTnyUwCDwl6sU63QPzU9EACxMzEdADrNpCM89k+H86 h78NnfVPOT6oDHCznah8OPPeo9gdjXp5WJp7q2PHghJjUJhg+kMPk8vlEO6ceTiZ9L9O gsPSPGfmhHyVY8klAhchvXoa94pd1PZ0Fz+lezlNBF7UiKRaG5hogBHJBQsjTvv7XwXk XquaXC78PWZYEyTn1YrYeq98NMwpAVKhgL56ynm8sk5TSq0dpuuy8FbnOB1RTzpc8bMM pndQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=yRRdcqiEWAxJ/ayMa0F92v8IZ4eWttIm44w9fVNBq6U=; b=a9MURko40hHX3uCiWqEfvuyqeedqs2PDEluRjamiCuraLMiZWMupfEJkR0ybZNIMnr 8FgQxou3S8pqIPP8d1ROJkPSvGDd5F3gW937XkZqbDGnQlPaeZEV4fLFWS3mHpfST6XW USIgflZZ6Fm3Ou1OVjTB0EA+dN3uL7NKKnPY4D5TW0yZv7b+tFv2cqm53e3M438yCg6D Bi15VmYQ2gTqskAfcPAzBzB3bgcS4bcGvd8oVsNxKGv6BsmaOL7MLaev0LOQVLc3fPBr TSAMUWTfIVkRIsaBwzLHm37QlIExzcdtIR3LCF5/KSqHfXiSDxAAPuPRnMa4fguhWFm6 nqFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NbrFTJu+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si2901108edz.288.2020.08.30.07.14.21; Sun, 30 Aug 2020 07:14:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NbrFTJu+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727017AbgH3OKk (ORCPT + 99 others); Sun, 30 Aug 2020 10:10:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:55720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728932AbgH3Nyo (ORCPT ); Sun, 30 Aug 2020 09:54:44 -0400 Received: from localhost.localdomain (unknown [194.230.155.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D3CB0208DB; Sun, 30 Aug 2020 13:54:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598795683; bh=TJtlygoY/w0YlAC0Y0RpJRO7BKHHMoo0CEZk3p9WflY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NbrFTJu+Plki7WU9nsnZnOp0gTSCYfuO/EDNkowUAG74VGP0BbeR6r+abmkGlDzqo qnplg66HY9FikwXcmkcpRWqCLEdLzq1yKw6Gvntxq+0MbX232caNAF7xRSNReJRYQ6 vGf2bd7PsUQW1yf46bIhOtrEgCa22649XJpd2fbI= From: Krzysztof Kozlowski To: Rob Herring , Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, "Denis GNUtoo Carikli" , Simon Shields Cc: Marek Szyprowski , Bartlomiej Zolnierkiewicz , Sylwester Nawrocki Subject: [PATCH 16/33] ARM: dts: exynos: Override thermal by label in Exynos4210 Date: Sun, 30 Aug 2020 15:51:43 +0200 Message-Id: <20200830135200.24304-16-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200830135200.24304-1-krzk@kernel.org> References: <20200830135200.24304-1-krzk@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using full paths to extend or override a device tree node is error prone since if there was a typo error, a new node will be created instead of extending the node as it was desired. This will lead to run-time errors that could be hard to detect. A mistyped label on the other hand, will cause a dtc compile error (during build time). Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4210.dtsi | 36 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi index 73360f29d53e..fddc661ded28 100644 --- a/arch/arm/boot/dts/exynos4210.dtsi +++ b/arch/arm/boot/dts/exynos4210.dtsi @@ -365,26 +365,24 @@ }; }; }; +}; - thermal-zones { - cpu_thermal: cpu-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tmu 0>; - - trips { - cpu_alert0: cpu-alert-0 { - temperature = <85000>; /* millicelsius */ - }; - cpu_alert1: cpu-alert-1 { - temperature = <100000>; /* millicelsius */ - }; - cpu_alert2: cpu-alert-2 { - temperature = <110000>; /* millicelsius */ - }; - }; - }; - }; +&cpu_alert0 { + temperature = <85000>; /* millicelsius */ +}; + +&cpu_alert1 { + temperature = <100000>; /* millicelsius */ +}; + +&cpu_alert2 { + temperature = <110000>; /* millicelsius */ +}; + +&cpu_thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tmu 0>; }; &gic { -- 2.17.1