Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1531798ybd; Sun, 23 Jun 2019 09:43:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaPhkBN7rhBAApVGmWuZQ7hzFRQI3TsCUQBY1cDE75a34qQa/kDz3WZslxbHoG0Qd28y3T X-Received: by 2002:a17:902:2d01:: with SMTP id o1mr26409883plb.105.1561308213619; Sun, 23 Jun 2019 09:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561308213; cv=none; d=google.com; s=arc-20160816; b=eFMfOgWajWL5Qu+7BFrPB+SyI1s4xrsiEXiTHCPpZi6oqySzEbodH+F5tIeJnF0rf5 T+oPCbFE6RwKtfSH+C6tdCoScI1Ymj6eGJzBvvbD05D0x9rnFwiMHKOJhsO4U04AmNMN dwux484R8/5nGVspqv0LeStlDwW+05isW/RoyocZh+Jiop8D9HPGZn5LWZ6rGw+xL4ho tl0eOWJLflccHMxc9nxFQ30S0esa77Z6IyT8/PSWK4ywwxwL3gn8Kgs+MPAzaqBfrFON wBv2ijFcRihrxp+oGB5gf266iRknx4OWIrshR91H3mk8yxGNozlWtxLcewtxYJVpdz6b 9/Iw== 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=Vc2TrqpD10fc/Gfq4unesnc+WEyy7mH5ktLy+6dZnog=; b=dD7WAUid6gDAKbs9h0tbXhZv/8Cy5N1fhfudXLkJFitOKGH6BBnsVhv6zXQUxUAc68 DEy8Fqh2Le97DxtH5RrAsvOLECwiTa3G/1q8nJhipW/sxKW5kk5eR5IAsaNPlpOCx1Pv 2tH+RyZtYuGWRmiSYl5ztUjkFZEGXIbSZL/B4tCJFPZubNx7mtWuxVdomjukIiqV0lnD SCYgIGUiF7/QdJPMVmN9FkMXH03KuDtGvtke48PwBQJlkw+fkMAJgdpF3+lyPvLhC4vk +f/xgUHAz2cS8SzysjFchba7gNPLs/m/+EJx84hxWbnBFRVbPzPAq46XKtRbJJKAkyYN HAIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=na5YZxEq; 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 h125si8526655pfb.176.2019.06.23.09.43.18; Sun, 23 Jun 2019 09:43:33 -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=na5YZxEq; 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 S1727087AbfFWQmn (ORCPT + 99 others); Sun, 23 Jun 2019 12:42:43 -0400 Received: from mail-pf1-f178.google.com ([209.85.210.178]:38028 "EHLO mail-pf1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727036AbfFWQme (ORCPT ); Sun, 23 Jun 2019 12:42:34 -0400 Received: by mail-pf1-f178.google.com with SMTP id y15so1470748pfn.5; Sun, 23 Jun 2019 09:42:33 -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=Vc2TrqpD10fc/Gfq4unesnc+WEyy7mH5ktLy+6dZnog=; b=na5YZxEqKvs5q15uC5P1TVCCMSkxBW5asCpG+6XNTePIxjvDEvT+nm/nJ7Mhtz5n20 IOL8H362bj7nNRmdZxlMJuiG43M5be4/MzEz/4tbEjzcZIhVOpUlTVZQD3SkHTx+r9gD vhAV2xRiKaGcRlZ0j5RsCsvmR4GdP+CxJnSyGdkB3YcG2lDyALrhAZKPreixUBDpkOPe KbhdYO+xaP7XWzoUy9L27kkSPZymBFpNFsOzgZypoZfhhSN/vKyRxfU630VyVWxq8iV8 Fn+epGdLDRGIJdu/0IBsiiuui42sm5NKERE9jBgfZZyF+QvXmeFWmLs5x5oGd5IgyUFO k15w== 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=Vc2TrqpD10fc/Gfq4unesnc+WEyy7mH5ktLy+6dZnog=; b=Rx/x0chVGBgJrtPb68zM5Kac/lTQd/VKYFyt0PsgTnCy4jFHbxZ7B8ZzU6w2/Qb9Qk Av9FdKwMJ0Ps9mYprj5Rj4I90EJo3tbKOR986RKlIYY5u02BczW+MyGp0t3PqcR93laQ NAXTY5O3T2/NUfZCV6VmhSZIWsn9gU/3uqsllPDf8HTIP6DGBIFtdXavnckXsgW/jk5f W4Eep9zUiM9PJG6r4t54X7+5UZuwzqJmIA1pfrxmDvKklMJJLcv3iKVCUbww0i5gvurf Y4DXFg2piFzvnvhI4Hw1pRJuscU8fkFdohBT80ZVHp18Dg9Zro5EYRJSrLZNlwBR8sXe oTDQ== X-Gm-Message-State: APjAAAW8AJ/Smf0roleEH5sLc2+EYNd4jUGrg3p9WLyt8/hmUikRL+hH eLG0HdjssZvFg0+3PAiPYO4= X-Received: by 2002:a17:90a:ac11:: with SMTP id o17mr19898276pjq.134.1561308153126; Sun, 23 Jun 2019 09:42:33 -0700 (PDT) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id j2sm10687361pfn.135.2019.06.23.09.42.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 23 Jun 2019 09:42:32 -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, davem@davemloft.net, gregkh@linuxfoundation.org, mchehab+samsung@kernel.org, linus.walleij@linaro.org, nicolas.ferre@microchip.com, paulmck@linux.ibm.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 v4 10/11] dt-bindings: thermal: add binding document for h3 thermal controller Date: Sun, 23 Jun 2019 12:42:05 -0400 Message-Id: <20190623164206.7467-11-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190623164206.7467-1-tiny.windzz@gmail.com> References: <20190623164206.7467-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 | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml b/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml index 2c5acc61ed03..1eaf68b5dd5a 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: @@ -29,13 +30,22 @@ properties: clocks: minItems: 1 - maxItems: 1 + maxItems: 2 clock-names: - const: bus + items: + - const: bus + - const: ahb '#thermal-sensor-cells': - const: 1 + enum: [ 0, 1 ] + description: | + Definition depends on soc version: + + For "allwinner,sun8i-h3-ths", + value must be 0. + For "allwinner,sun50i-h6-ths", + value must be 1. nvmem-cells: items: @@ -55,6 +65,19 @@ required: - '#thermal-sensor-cells' examples: + - | + ths: ths@1c25000 { + compatible = "allwinner,sun8i-h3-ths"; + reg = <0x01c25000 0x400>; + clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; + clock-names = "bus", "ahb"; + resets = <&ccu RST_BUS_THS>; + interrupts = ; + nvmem-cells = <&tsen_calib>; + nvmem-cell-names = "calib"; + #thermal-sensor-cells = <0>; + }; + - | ths: ths@5070400 { compatible = "allwinner,sun50i-h6-ths"; -- 2.17.1