From patchwork Mon Oct 21 10:35:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 177046 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3223989ill; Mon, 21 Oct 2019 03:36:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLeLFnCewJ1Zm0lUvxJ+xFs41Ww6560PTbok6j+NeS7oZO1OC0uFcr53Wo13JaK5g3xUT/ X-Received: by 2002:a17:906:2319:: with SMTP id l25mr21368525eja.309.1571654162086; Mon, 21 Oct 2019 03:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571654162; cv=none; d=google.com; s=arc-20160816; b=oWyzs4bg7hyVMqYGMMOdw1Tc0NKvPzlLAZ5JsDFicJoGot6Awxt1A9xlcDTiNLv6dg nyShJxLyi327uNr0MxU43Ql22RTwtur1iKsJUrSsDO2SSUDUOUDt1NFKhxyi7/I/zNoq 4JRFpA09tJKzj8FDRn1C2FrbavAFaim+xv3+VCuxfZaeXFuF1CkNsgClSDoF3qZ1MyTz 2PCQSgXXlRKeVQrmYzEjRi233lAA0mfg7c+Lq5ydgugg3lrl4Da17+R1qYEQdjb+yIdx LhtHcoYJMwwD1NOnO2SIKzqfe7ZIFgpKG45FJqbzMpu4IJL/kPiCYQ2aev8E/uRwJFST a1qw== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=cUh1ZeV5zyjcsg3Iod3jbARGXcyJz+PpaHp2DpcKIvo=; b=KSy0VP3YBBKT3Z+Oe181KSeVeIZP86xm8i1QV5RQ+DXeqsPcUQUuzICeDhK1bJi6n5 ij9HuboseyZS37L9LlV+FyPbSEO5Z7PG7NqVvX301osF7sECvOEB8rO65YIJmH2UbS7X ctFMwgZcYUPAu3R+GIzIBVNwP0uZPCsv5huDkaXN8zhVRjPd1Tui/BX6zOqrRjQMH3q/ 1mdW7BuoBXmtmryD/fSF4XrV+bt1l9Xi2xqR/0i1QNIV+gOmu9+l/Z+ZSaKcd9YOtEKq yZZ8GFXcXRf8bDPfDzIhw+GoGIDIfu924fsNvb9kula1GH7RHoEadyLAkYSK3VvigNrn RPCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GB/iNLsV"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17si8759892edv.76.2019.10.21.03.36.01; Mon, 21 Oct 2019 03:36:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GB/iNLsV"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728271AbfJUKgB (ORCPT + 8 others); Mon, 21 Oct 2019 06:36:01 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40246 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728212AbfJUKgA (ORCPT ); Mon, 21 Oct 2019 06:36:00 -0400 Received: by mail-pf1-f196.google.com with SMTP id x127so8169885pfb.7 for ; Mon, 21 Oct 2019 03:36:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=cUh1ZeV5zyjcsg3Iod3jbARGXcyJz+PpaHp2DpcKIvo=; b=GB/iNLsVk+ApucmOndcOCjbvj0CgYAqzijKY5FGCBUbaN+U/kVWyXWHbkpG7BSggYp f6IbuQNNH5x5j+409JsPqM3ZQJarU5yMHogMhB0PyoyaikyLZmvxEEFHMiSBDwnffIZO WpvIzsaXwYEBhjSwBfaeE2vmVUoU73KJFSPVsLn90WenyvhMqiwWhbDif/QJuCDnGWc5 QgXpc2EGiPmug9U5kBGw8Ffwt+Aim18NdbY+U0BbBw/UwfYMUdtjT2C1unkOxVNPrF1x db8UIVOYhkcOd4txq4pUd3AbSig2rXuqT4iyIRnPiEhWEDPRWyMaVBApa3utcJEO4DMQ BXUQ== 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:in-reply-to :references:in-reply-to:references; bh=cUh1ZeV5zyjcsg3Iod3jbARGXcyJz+PpaHp2DpcKIvo=; b=R9IsYOeoQW/DYJ/EiNaqepj4MDfCPWV4AOhwISxv1kQPiRV7d949elEzzbrXskIzqH Cfsxa9L6RSp136hfuMI0okuwWS3h6os8jgWtpx2qRuVlIhR9lrO/kSRKkMW60MoexuCM +M5MKYNFqbzRA4hJ/3nTlcZyjaovzr7s/FeJbiHL21Bpz75T1p2MDDhAM6ntzL714bGo AKXeMQfR35wTbgBbReiX3vVNYADmmliwH+uGUrRRvnK4wf+m88Xuegr3/cnIhHxVoOCX wyVrvT42TLAE+AifO5gunG8eCRxN6lL6MZWtvtl+bT70cFWniffjh2ZLNzZJF3RpPjn2 ksGw== X-Gm-Message-State: APjAAAUA50kXvIOX7MACRy0XfkH2g0KGYm+RpEBT64B1vKk6J+nnbSBY Oh6reBuGSxZOjw6l5yxPVZX3qw== X-Received: by 2002:a63:934d:: with SMTP id w13mr6975734pgm.185.1571654160053; Mon, 21 Oct 2019 03:36:00 -0700 (PDT) Received: from localhost ([49.248.62.222]) by smtp.gmail.com with ESMTPSA id e14sm15420515pgk.70.2019.10.21.03.35.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Oct 2019 03:35:59 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, agross@kernel.org, masneyb@onstation.org, swboyd@chromium.org, julia.lawall@lip6.fr, Amit Kucheria , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui Cc: devicetree@vger.kernel.org Subject: [PATCH v6 05/15] arm: dts: msm8974: thermal: Add thermal zones for each sensor Date: Mon, 21 Oct 2019 16:05:24 +0530 Message-Id: <72cc755c16888976edea555f1df60a299daa8a1e.1571652874.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org msm8974 has 11 sensors connected to a single TSENS IP. Define a thermal zone for each of those sensors to expose the temperature of each zone. Signed-off-by: Amit Kucheria Tested-by: Brian Masney Reviewed-by: Stephen Boyd --- arch/arm/boot/dts/qcom-msm8974.dtsi | 90 +++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 369e58f64145d..33c534370fd5c 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -217,6 +217,96 @@ }; }; }; + + q6-dsp-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 1>; + + trips { + q6_dsp_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + modemtx-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 2>; + + trips { + modemtx_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + video-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 3>; + + trips { + video_alert0: trip-point0 { + temperature = <95000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + wlan-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 4>; + + trips { + wlan_alert0: trip-point0 { + temperature = <105000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-top { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 9>; + + trips { + gpu1_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; + + gpu-thermal-bottom { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&tsens 10>; + + trips { + gpu2_alert0: trip-point0 { + temperature = <90000>; + hysteresis = <2000>; + type = "hot"; + }; + }; + }; }; cpu-pmu {