Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2117460pxb; Mon, 18 Jan 2021 08:39:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7h7OY3BXktYDu6BNIS9VQ+oqr6SAylNCt1i3Opmy5C4B//TTILFhHKkwXIhJO9uLIyCah X-Received: by 2002:a17:906:3a55:: with SMTP id a21mr366443ejf.516.1610987943602; Mon, 18 Jan 2021 08:39:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610987943; cv=none; d=google.com; s=arc-20160816; b=nxJYHOfwt/NWFI+pMXLOU1OYDSOi5qeqM64Q/irPVHcsyuZExIKh9AS+UXByLYbcQP h8bjdks45N8747W0MTSmgSxv29j1usnYyh9ByWR4Si0W2YTTJ1k083G+p41GfYQi/83E vnhzbuIZ5572kBPWVEPjwGi8p9niGkSOBfGW/vP77GYFstoB02iQg9NSYblgnGDqDqqc 7j5P5/pRPUqcPpCMzOAEdadov5l43st1QO9x7CKRJ/O+v5OVFekIw0VYdNMlXKhnGNcp bkM56u+5IldFXWFCYonjy5M5Q20M23WuPRuVLusLj3ZHAszcc103ge5LZ5wDCSsxUYWD 5Ojg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=hF6QZO2ui8M4e5iVZafQO9TdqdKvztuXf/OtqBjaiiE=; b=D+AH672WQ6sYR0WlQnFS8No64wIFTnXyCEkQt2k5oG1TiZ8luEDFrdzvOcJUvWonXF XhYkFM3b8QSm+JySttYaJKVsgPJAi+ktEAbRGf7BW9e9gvsgyNURgR0+L3gOI1Ad/5lW qmaNU5LHjHbH0WHlCEWIr+i+pUYftewpRM7leCexpqjEyrwhkYexvzd8HR3KDsVq4AgZ afRf8M+W1hc0poTspWJKqoPfuCH1EhmCKUXCEZaSjNupFclz1j2cZacObVJ1l1ob3etw qkmIwvXGGUcz22zErpFFBCg/KHWWo2WbD+oJjxb9QqD9BNOJFvD6C/OzVGsGx40L1UJE 6AHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Kmu32BZc; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y36si7212004ede.158.2021.01.18.08.38.40; Mon, 18 Jan 2021 08:39:03 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=Kmu32BZc; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393384AbhARQfu (ORCPT + 99 others); Mon, 18 Jan 2021 11:35:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406822AbhARQdz (ORCPT ); Mon, 18 Jan 2021 11:33:55 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6469EC061573; Mon, 18 Jan 2021 08:33:15 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id l9so18815893ejx.3; Mon, 18 Jan 2021 08:33:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=hF6QZO2ui8M4e5iVZafQO9TdqdKvztuXf/OtqBjaiiE=; b=Kmu32BZcMB80NvCufU/jOaCBV3VpUM6Zx0IEKYT3A4jOWYijJN7+QKkIAc+bl4PaOh NHnCfEa9YU5c/e8BakRtLoMDO+5NqNzohMb3js0HAjh+7yfKF3aZOwjuiXjKpINdiNIu F8MdM7UMLixqWZJyx/nY2EFhaafkMHv0xEE2P4r8l8LUdJXS64OeUwGTGDaUk8JyrKls 3/wSW7WE/pjDaQMKvdHrHz+46HSjQMwsZXYzvIzgGUd1LwYpNQocn9Kjvf9ddLmrk9FB L9lCfup+hSui9a/wtS9UzMfDhLrIrPPXwqflyY8mBAPuqI2FkgdjNiQV+x+IDARPlGcl 3mEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hF6QZO2ui8M4e5iVZafQO9TdqdKvztuXf/OtqBjaiiE=; b=t76JzIMHDWvaEYlWeKjvajnCjYPOPgpuQjBU81g6cmetoHRgvW1N4KcvDAgMYhP7cJ 73XQ8cowGlxk1c+U7OrZnxrBMuqxCOOmU7E+HodOpOhbqR8tfSgptAfb3jDV3hvi0DGr 0XyjQqn8ycDy+hlL3KoVtcaRvm989G0Twh7zOF+7MOFJM6fxoKEiGFq/E2wowpsMlJoG ENQghmudQh5plB6bG0wK/hcarsAKDiNBZdsbfIMp9msbvS4yxwEFfuGekIE9KCvEhp2S LDjU0FFkJiHi+sQ5SWP8+ffUq3Y0Ow+xXhYy3y0CSXk/8bV3gU/Q2THqWQGmep7EZfAD hbbg== X-Gm-Message-State: AOAM530p/rZL59Dgwj+UkQ0YhYolHCwxZYgP+XKD43YBphdw5YcUJlPM 1h6VyLgBlHyvDsG73GSL4lI= X-Received: by 2002:a17:906:65a:: with SMTP id t26mr336681ejb.394.1610987594201; Mon, 18 Jan 2021 08:33:14 -0800 (PST) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id r13sm8409806ejy.36.2021.01.18.08.33.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jan 2021 08:33:13 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: rockchip: cleanup cpu_thermal node of rk3399-rock960.dts Date: Mon, 18 Jan 2021 17:33:06 +0100 Message-Id: <20210118163306.8693-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The cpu_thermal node in the rk3399-rock960.dts file does not reference &cpu_thermal directly to add the board-specific parts, but also repeats all the SoC default properties. Clean the whole thing up and fix alignment. Place node in the correct alphabetical order. Suggested-by: Robin Murphy Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk3399-rock960.dts | 75 ++++++++++++------------- 1 file changed, 36 insertions(+), 39 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts index b20774081..bff8a73d9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts @@ -63,6 +63,42 @@ }; +&cpu_thermal { + polling-delay-passive = <100>; + polling-delay = <1000>; + thermal-sensors = <&tsadc 0>; + sustainable-power = <1550>; + + trips { + cpu_alert0: cpu_alert0 { + temperature = <65000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_alert1: cpu_alert1 { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + + cpu_crit: cpu_crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&cpu_alert1>; + cooling-device = + <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; +}; + &pcie0 { ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>; }; @@ -125,45 +161,6 @@ status = "okay"; }; -&thermal_zones { - cpu_thermal: cpu-thermal { - polling-delay-passive = <100>; - polling-delay = <1000>; - thermal-sensors = <&tsadc 0>; - sustainable-power = <1550>; - - trips { - cpu_alert0: cpu_alert0 { - temperature = <65000>; - hysteresis = <2000>; - type = "passive"; - }; - - cpu_alert1: cpu_alert1 { - temperature = <75000>; - hysteresis = <2000>; - type = "passive"; - }; - - cpu_crit: cpu_crit { - temperature = <95000>; - hysteresis = <2000>; - type = "critical"; - }; - }; - - cooling-maps { - map0 { - - trip = <&cpu_alert1>; - cooling-device = - <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, - <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; - }; - }; - }; -}; - &usbdrd_dwc3_0 { dr_mode = "otg"; }; -- 2.11.0