Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1190487ybl; Fri, 9 Aug 2019 22:31:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxy6z3WDzKZNGLFNt++En3pNihr4l6WScWzuFqLBGM5hySWvtDcl4BgZIAXVIDDO1Xnjbgk X-Received: by 2002:aa7:8559:: with SMTP id y25mr6063863pfn.260.1565415071846; Fri, 09 Aug 2019 22:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565415071; cv=none; d=google.com; s=arc-20160816; b=Agzg+vWakQES+x9qZdj/bKYj5VbIawn5N9rcWjMVzQ2W9xWFndKI2qsT0WReKC4a8o hvkmslxGPJNoLL3xBsGIOzO7a4AhH5JQBS6miyAVuoSPR5NLRQwb+fC382dhQSlTtSHN r7IbHfxlRtZyOGdixqc4oGjzNm91dMkILUPKdtOWeQIqaQixD9HW2FDWjfrVj857WwQ1 nyr9K7L0Y4Q8em86BE3LPtf/MxdHS6ac3iXeCpTluFdmJSFR0Fxww0J07qCVh4+6z92m +JPWMuCENozepehK8rAx3C+whE+mm697oBed+3F1QJENif3qnzKPsDxIxe2CmDdP7krI qQ6A== 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=wjQ5RBMUscwhPovbCKs/X+MccsfEX8ouNnM/eU9tQdY=; b=OBFxCP2CC9F67s9WsShxEu3lqjLfOuAwpFpQacRjpTnwfJdp/NG0fTqqe2P8n3Yg/8 9R0ABX2pDlZpBoe4+z6tONTfq1u9mG1elrypnVBjzUKwSkc5JDMmM6tyA8M7JQydhQun lhcm/hnsX6AvoZ7z6DFpvQwE194clFspPNn4PHfKNwwC7qIWHZiDvXpOyHxdmYegaXgb v6ORCvHvOJMGg3DL26nffKo0OCTqkEBPYFyecZAUbaH+F7EvrxnJHvWQQ+9lYNYvP+WF qVJQ8wBZ0iZB0gl9Cajc1N/N9qXvtgFwqk28gTotctZ6aiat7JAtLZJhB5wcCbnVmuqY +jQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=owjCa9lX; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b20si2660757pgl.533.2019.08.09.22.30.56; Fri, 09 Aug 2019 22:31:11 -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=@gmail.com header.s=20161025 header.b=owjCa9lX; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726457AbfHJF35 (ORCPT + 99 others); Sat, 10 Aug 2019 01:29:57 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:42223 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbfHJF3z (ORCPT ); Sat, 10 Aug 2019 01:29:55 -0400 Received: by mail-pf1-f193.google.com with SMTP id q10so47103397pff.9; Fri, 09 Aug 2019 22:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wjQ5RBMUscwhPovbCKs/X+MccsfEX8ouNnM/eU9tQdY=; b=owjCa9lXzv2/DwkfhVrhXGPfLgD8hjoGMaHzNtHK8q9nZFQLhg0aAuY2svLpXwtORD NcaMD7Xoi1eTrqSTeWXAdJTm6w7xsh3+ekzHVnQlUd6evrD1UaF0V5jA0xR0susVtGqK 0E9Dqep2V9kZz9TJplT0xU6lPOE608vmJZCkcy4tFplb4Pr+b7RWp8661wdtUQBuYhmT cSlJV9R/IpJ8+PGtAooQJrVzgnoV9ux306PKcqD/2x4HLWnw4Om/JHW2XKA+lY2y+sYZ WNIQvi0mzQCMkjOUGMYYLFBoz6oocY6mck/do2zFdCcA3JJcNwATwqlbhtQ8u6d2A155 hUQQ== 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=wjQ5RBMUscwhPovbCKs/X+MccsfEX8ouNnM/eU9tQdY=; b=TpSQmjJ6ggjppnvP7QaQ2/oD2Mgcowh5lS2qbFWJcjXldpKM7DR16aaXv9EC2sQ1+E OvxcZ7hhTtZbPCeMXvv5mLfawF6MwvrtzVSfNsma4NUI2YWBNCdgJOTGLWCkMbPwEXGt /BFMdCytbe1OXX1Xoo/uFpxgKa3BhGf6vZnqi83U2t8LmZ53dc86dzdGKPHuq533r1KG kKTDCpzHaqI43jTJRbVbLgUKd2Hfa7ISuNMNbHE1F9fr/rrs3P4dKXHQkupBRJ4SqSAF 0oMNb6xoGgwViBoEJxWwzCf0rxO7ra5tUqWtkqqFefqTIXBnT5QjfiWeZjBN3mzHmLtm P1rA== X-Gm-Message-State: APjAAAUiAsKL828edJSCtDJ1/JErOPzyES+vBh6Xj5qKcPBURB1XqHVi 21vschDtzJpdOJFEmW/qYWY= X-Received: by 2002:a62:7a0f:: with SMTP id v15mr6362442pfc.35.1565414994464; Fri, 09 Aug 2019 22:29:54 -0700 (PDT) Received: from localhost ([202.182.106.211]) by smtp.gmail.com with ESMTPSA id s24sm62023523pgm.3.2019.08.09.22.29.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Aug 2019 22:29:53 -0700 (PDT) From: Yangtao Li To: rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org, mchehab+samsung@kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org, Jonathan.Cameron@huawei.com, nicolas.ferre@microchip.com Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yangtao Li Subject: [PATCH v5 10/18] dt-bindings: thermal: add binding document for h3 thermal controller Date: Sat, 10 Aug 2019 05:28:21 +0000 Message-Id: <20190810052829.6032-11-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190810052829.6032-1-tiny.windzz@gmail.com> References: <20190810052829.6032-1-tiny.windzz@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds binding document for allwinner h3 thermal controller. Signed-off-by: Yangtao Li --- .../bindings/thermal/sun8i-thermal.yaml | 81 ++++++++++++++++++- 1 file changed, 78 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml b/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml index e0973199ba3c..6624cf6b1ce8 100644 --- a/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml +++ b/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml @@ -16,6 +16,7 @@ description: |- properties: compatible: enum: + - allwinner,sun8i-h3-ths - allwinner,sun50i-h6-ths reg: @@ -28,13 +29,21 @@ properties: maxItems: 1 clocks: - maxItems: 1 + minItems: 1 + maxItems: 2 + items: + - description: ths bus clock + - description: ths mod clock clock-names: - const: bus + minItems: 1 + maxItems: 2 + items: + - const: bus + - const: mod "#thermal-sensor-cells": - const: 1 + enum: [ 0, 1 ] nvmem-cells: description: ths calibrate data @@ -51,9 +60,75 @@ required: - interrupts - "#thermal-sensor-cells" +allOf: + - if: + properties: + compatible: + contains: + const: allwinner,sun50i-h6-ths + + then: + properties: + clocks: + minItems: 1 + maxItems: 1 + + clock-names: + minItems: 1 + maxItems: 1 + + else: + properties: + clocks: + minItems: 2 + maxItems: 2 + + clock-names: + minItems: 2 + maxItems: 2 + + - if: + properties: + compatible: + contains: + const: allwinner,sun8i-h3-ths + + then: + properties: + "#thermal-sensor-cells": + const: 0 + + else: + properties: + "#thermal-sensor-cells": + const: 1 + additionalProperties: false examples: + - | + ths: ths@1c25000 { + compatible = "allwinner,sun8i-h3-ths"; + reg = <0x01c25000 0x400>; + clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; + clock-names = "bus", "mod"; + resets = <&ccu RST_BUS_THS>; + interrupts = ; + nvmem-cells = <&tsen_calib>; + nvmem-cell-names = "calib"; + #thermal-sensor-cells = <0>; + }; + + sid: sid@1c14000 { + compatible = "allwinner,sun8i-h3-sid"; + reg = <0x1c14000 0x400>; + #address-cells = <1>; + #size-cells = <1>; + tsen_calib: calib@34 { + reg = <0x34 2>; + }; + }; + - | ths: ths@5070400 { compatible = "allwinner,sun50i-h6-ths"; -- 2.17.1