Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp377853pxk; Sun, 30 Aug 2020 07:01:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwdN6yeQHghpSSwXIfQ5a9+mNvmXV+VoOQm987g/zG2oBRplxDfXNSNiOvNqcVe2k2RBiX X-Received: by 2002:aa7:d417:: with SMTP id z23mr6442197edq.62.1598796104124; Sun, 30 Aug 2020 07:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598796104; cv=none; d=google.com; s=arc-20160816; b=A3ux90+I/Xxq9R7bmu5yV5byUUZkC1J1fJ6TmyRlnPR1ReCou4u9dT/klqASgwwGec e2AbtJWaRBwMoPcVw4nI5eNgueJj1MDO8N4C0D3Pnfd/ohgxysLBLTV45DNOXmq1N2vb Se7KmQcyLRj3Ci1lIDKwfFhUYuYvZiZu6NWvM7coffs0MKHdzWDF9U7ikYD+egOnzJgg j0fYnk5pVcsxXIWuXPQWHY4fyiOaceheI4RYN+G9xc9OAcvCUVLDFcIUcKvgXULIBX2y C1rMKI11a33qWoxQijyElX4b8Po5xB65XLk3cDDsWov1TAZdfxR2KUBFHNyXE8AFUCfp FNOA== 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=/7FiIpZTLJfRMcimurL/NKg1D/LfarxjDVT4rcmE5k0=; b=bhSRWgXt89TA1E7A7yBhjoF6O+fahP+En5gOZNcocYmu748W4085nsLOc1H0hZ39Yt 4DSM/qCY+OSzPi2yoA0dXMj/gSQb3f3YCAEyB2qcO/w/djgTliMGbWTQ6TRgmQDkED1U wxbebw4LnlgWJgh8aaCoWt8lf6pBasg8wQn/rPwBIXZ6c10qOT7VtPWgehBQ9UbVlcqf 9kVv2OqaU4GU6K/YeDGz8lc+TcZdLS6PcMTZ5N3bSSjUdhdvcJnGnExyToL2+NOibMf4 WC8qaPZfKLrl7QjItj3fGkvuREGopKMv9o4H71KGTO6BGH087GqbUbMhZvst/4nVikKG wcLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HE1fjI0+; 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 k10si3897174ejr.323.2020.08.30.07.01.21; Sun, 30 Aug 2020 07:01:44 -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=HE1fjI0+; 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 S1726439AbgH3N7z (ORCPT + 99 others); Sun, 30 Aug 2020 09:59:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:55896 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728941AbgH3Nyu (ORCPT ); Sun, 30 Aug 2020 09:54:50 -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 D8D042137B; Sun, 30 Aug 2020 13:54:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598795689; bh=TTjHKAyk9At+IUU5vNSawItxwFQVyBHFrL+xnjQf8yc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HE1fjI0+fT5mhm0IWRVSB7I06QSINTSR0V5aBMsNguT9M5iJZKkYsoSJvROOzdgk8 XSScjZst+pwzZQ+JktPxpCVIY1QNE3dNvYCzQ97dmOMjvkO2GSdGid5ONn7k5xHZ3J UhWZEYTRw23KCqvC29pTvhHyvW85FwqI0SsVWTEI= 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 18/33] ARM: dts: exynos: Override thermal by label in Trats Date: Sun, 30 Aug 2020 15:51:45 +0200 Message-Id: <20200830135200.24304-18-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-trats.dts | 29 ++++++++++++-------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/arch/arm/boot/dts/exynos4210-trats.dts b/arch/arm/boot/dts/exynos4210-trats.dts index 33b40f619dea..75483e08b4b4 100644 --- a/arch/arm/boot/dts/exynos4210-trats.dts +++ b/arch/arm/boot/dts/exynos4210-trats.dts @@ -140,22 +140,6 @@ clock-frequency = <32768>; }; }; - - thermal-zones { - cpu_thermal: cpu-thermal { - cooling-maps { - map0 { - /* Corresponds to 800MHz at freq_table */ - cooling-device = <&cpu0 2 2>, <&cpu1 2 2>; - }; - map1 { - /* Corresponds to 200MHz at freq_table */ - cooling-device = <&cpu0 4 4>, <&cpu1 4 4>; - }; - }; - }; - }; - }; &camera { @@ -166,6 +150,19 @@ cpu0-supply = <&varm_breg>; }; +&cpu_thermal { + cooling-maps { + map0 { + /* Corresponds to 800MHz at freq_table */ + cooling-device = <&cpu0 2 2>, <&cpu1 2 2>; + }; + map1 { + /* Corresponds to 200MHz at freq_table */ + cooling-device = <&cpu0 4 4>, <&cpu1 4 4>; + }; + }; +}; + &dsi_0 { vddcore-supply = <&vusb_reg>; vddio-supply = <&vmipi_reg>; -- 2.17.1