Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5299950imm; Tue, 16 Oct 2018 08:12:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ks376buOPbDbCIJ8q9USixM9t55Q3yyw5TuWkDut90Tqhl0kSspnb1j99KhmqSP5C0I+2 X-Received: by 2002:a65:580d:: with SMTP id g13-v6mr19278331pgr.370.1539702748941; Tue, 16 Oct 2018 08:12:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539702748; cv=none; d=google.com; s=arc-20160816; b=Pil1cpQbTxIhCsWlXB+Jo2OLswlKfD/vthw06+6y6J9Tq584JW+8Sm9t3ndEl/tXLC dUXuOQrxH/nSzmK5WYQtzbCQ7OWfFHuu9LPNKdRjm0rZhoh/+2ObIL8UBOYWR8B3jfC3 RudG1yUIYXmL79kNTbvNqTMMlE9JwwYJNNh9KQD35wQWzgF6nFO/ROTr4uPusCn6J4d/ LAlG5RLTgzznar6p7cSlaxdrSG2E3gSU1B4Pvs/zUL/nr1HlAxIGAd5mdkPC6G8w7Yof J740pedzAD2mJDRKetEZ0xwERDDk9eaLQMjbhIfMEsRb+ES67xkfhbv7zM3wCRhuWVXI frIg== 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=RArOkgJ6iozCqW4Amczd+Jty4/unLLqgawp7H0t8Irg=; b=pvyILWvz582PlYnzbr7YbQd/EJbgRX+BXb2h+gVSZ4HgbgOuOgAUk378xaMv040iP0 oIEgKWpdrj6Yr+YbEHR5JznmtFbMDZYMH8x+gXja4ECjvoulSfiu65mW18sjPG90G5ob XNtlS7ViSYloqEhaOkBB67AitWU7jd6eivxA+31xHy6GtjbS6+WNAux91ukAOLykltv7 THY6DY/Z8GZl2O3UqMLEZzpgz2rmKzuIKSujzp5P2uklGFlotHi9/gFc1pZX8j8Xa4Kv qGycEzCP1wG6+Eo1Tf/uD9CaAdizvTRVYq0q2WcY+xKQB8qTS5gbP21F32qRH4E3+Muq LRAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=BgBMbIwm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4-v6si14632051pfg.90.2018.10.16.08.12.13; Tue, 16 Oct 2018 08:12:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@broadcom.com header.s=google header.b=BgBMbIwm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727569AbeJPXCd (ORCPT + 99 others); Tue, 16 Oct 2018 19:02:33 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:40783 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727159AbeJPXCd (ORCPT ); Tue, 16 Oct 2018 19:02:33 -0400 Received: by mail-pf1-f195.google.com with SMTP id g21-v6so4610068pfi.7 for ; Tue, 16 Oct 2018 08:11:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RArOkgJ6iozCqW4Amczd+Jty4/unLLqgawp7H0t8Irg=; b=BgBMbIwmFXedm08XKzLrV4Kb+sr6arL6sphjgf6KM0wPkBJZMdlgARpl30iOKAyC3r w5dQD3D0zCPVi3M9xRwD6+elU4PAgsKB7g49SU+bQBS6QziDKzkMu+2tQXe99vq6NeeA OGC01M+CaC50Nhiv33MYkwryQZMJ8d+aS87+4= 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; bh=RArOkgJ6iozCqW4Amczd+Jty4/unLLqgawp7H0t8Irg=; b=XgZcAJE2SU5eLckWpJbLPw6vmj7EZv9yTPdaX84EfcOwDp5bqsTyOFiB0CVvzyWgrs arbcm6hRHZ05DzKLA/NAULAkYcYSkDYZcy53EmHtfHYs2CvaZw70b9WMDyTPjgBmuZbn csETDTFmEw7tmbk+ELBCEhjhfbPyg1SR/daI00IpjaPOsOiviCtWVOMQ/5R6HQm0l8Id w8MlZR4xb4Kk/tmCaWBkoe7dl9MvmUwR73E5sJxWyOhMvGdlySYLBZ2S3dcntbF7eYvM t1dcRskmclum95a3rol7WZaBaX1V9TaZfidQ3L+paroZnr8mJFGKxSDuUKOi27RdZvhm A75A== X-Gm-Message-State: ABuFfojohd7Lv37KsfrbDv2c9ZXp7Tbd//Pm84FiA61Oq/tIdz5QE+Cw 4efocVFPXMJelvC61sc1b3E6a/XB+Zc= X-Received: by 2002:a62:85cb:: with SMTP id m72-v6mr22354378pfk.173.1539702698647; Tue, 16 Oct 2018 08:11:38 -0700 (PDT) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id i29-v6sm24227122pfj.82.2018.10.16.08.11.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Oct 2018 08:11:38 -0700 (PDT) From: Srinath Mannam To: daniel.lezcano@linaro.org, Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Pramod Kumar , Srinath Mannam Subject: [PATCH v5 1/3] dt-bindings: thermal: Add binding document for SR thermal Date: Tue, 16 Oct 2018 20:41:18 +0530 Message-Id: <1539702680-3746-2-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1539702680-3746-1-git-send-email-srinath.mannam@broadcom.com> References: <1539702680-3746-1-git-send-email-srinath.mannam@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pramod Kumar Add binding document for supported thermal implementation in Stingray. Signed-off-by: Pramod Kumar Signed-off-by: Srinath Mannam Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- .../bindings/thermal/brcm,sr-thermal.txt | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt diff --git a/Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt b/Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt new file mode 100644 index 0000000..3ab3302 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt @@ -0,0 +1,105 @@ +* Broadcom Stingray Thermal + +This binding describes thermal sensors that is part of Stingray SoCs. + +Required properties: +- compatible : Must be "brcm,sr-thermal" +- reg : Memory where tmon data will be available. +- brcm,tmon-mask: A one cell bit mask of valid TMON sources. + Each bit represents single TMON source. +- #thermal-sensor-cells : Thermal sensor phandler +- polling-delay: Max number of milliseconds to wait between polls. +- thermal-sensors: A list of thermal sensor phandles and specifier. + specifier value is tmon ID and it should be + in correspond with brcm,tmon-mask. +- temperature: trip temperature threshold in millicelsius. + +Example: + tmons { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x8f100000 0x100>; + + tmon: tmon@0 { + compatible = "brcm,sr-thermal"; + reg = <0x0 0x40>; + brcm,tmon-mask = <0x3f>; + #thermal-sensor-cells = <1>; + }; + }; + + thermal-zones { + ihost0_thermal: ihost0-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 0>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + ihost1_thermal: ihost1-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 1>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + ihost2_thermal: ihost2-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 2>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + ihost3_thermal: ihost3-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 3>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + crmu_thermal: crmu-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 4>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + nitro_thermal: nitro-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 5>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; -- 2.7.4