From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DBCCC43215 for ; Wed, 27 Nov 2019 05:30:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1065A207DD for ; Wed, 27 Nov 2019 05:30:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NAQ6Ywzj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727113AbfK0Fac (ORCPT ); Wed, 27 Nov 2019 00:30:32 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46306 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726462AbfK0FaG (ORCPT ); Wed, 27 Nov 2019 00:30:06 -0500 Received: by mail-pg1-f196.google.com with SMTP id k1so1837037pga.13; Tue, 26 Nov 2019 21:30:04 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=m+wA1RX04BSPnVjNbxGCBXt8jtUUgOJo5n6EFES/ZC0=; b=NAQ6Ywzj9ZjMbYy+Q3DneIn5TOVZ2ug1lpiHFijsVz2JtEvPUBvBkgj8JHiEkdBqyD Yo1ds6nVDXNM0cJaEO0kynwlTYTLnDEpcjYckZrlyVH0BIIVQvVKOk9lDDTLM9ygfUiy yrqwbgM/5YTex60dV7QIF11UcZndyIwbCpN1qtNBk3y/4b3vsnEZtfKnSlclLcxhcwC4 7nEwpotg17ZNtV0bX5M4ics/xwBQrih/YNycmZ17Djzt70nBHA2KiO0Cq5goqv+7zWaq 56Xz1OLjqebh7RxTS0qZzIKBqMDsbpZvvJDVLcdlyl5EtPjYFa4VWrgZ/E67wpN7xy7C Davg== 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:mime-version:content-transfer-encoding; bh=m+wA1RX04BSPnVjNbxGCBXt8jtUUgOJo5n6EFES/ZC0=; b=dbN2vhyftPSv0bcruoyRQ0mhjsd1Y10wxiPW3qOarvSJhCPngW4H8HjWljJrUxvld1 n0hDpFbJQBSs9lfMwbusi2QKrz8YiYAED1xeaM0DnGBkO9I9A52ezAebgyA0sKaoqp8P eRQ1wFruP0sofQgHg90vX/recnhMUjCiAAr6Oi/wJSD+Xt4rgu840UFpyb5D94bK2xS1 97a4RF2/B7B55wxogfWO7AVVA11Qk/NF+4whXODijK/DZCs3kOdCeG5Ihdud1hEEzkNS yg6GqhLjsp6EgY9rJ2ozeEn0A22ToFqbiOWD6zPPE18y8pGpth2eNHvYcz0mf6k00mdG QNcQ== X-Gm-Message-State: APjAAAUEQLVSW04vEcD/DNH9We03stSyU8LOwuAdg1RMOZdPQL20dPoD DzvhqmhKAVSQ5yn5HVD7D10= X-Google-Smtp-Source: APXvYqw4sNgUo0b8NWUQsBZEeo0fVFA8rx27nKaYJzlqYHZYbIXE3nnctVmDaAM+vNmh+i0i+VgsvQ== X-Received: by 2002:a63:354e:: with SMTP id c75mr2768495pga.325.1574832604122; Tue, 26 Nov 2019 21:30:04 -0800 (PST) Received: from anarsoul-thinkpad.lan (216-71-213-236.dyn.novuscom.net. [216.71.213.236]) by smtp.gmail.com with ESMTPSA id p38sm4360825pjp.27.2019.11.26.21.30.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 21:30:03 -0800 (PST) From: Vasily Khoruzhick To: Yangtao Li , Zhang Rui , Eduardo Valentin , Daniel Lezcano , Amit Kucheria , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Ond=C5=99ej=20Jirman?= , linux-kernel@vger.kernel.org Cc: Vasily Khoruzhick Subject: [PATCH v6 2/7] dt-bindings: thermal: add YAML schema for sun8i-thermal driver bindings Date: Tue, 26 Nov 2019 21:29:30 -0800 Message-Id: <20191127052935.1719897-3-anarsoul@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127052935.1719897-1-anarsoul@gmail.com> References: <20191127052935.1719897-1-anarsoul@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yangtao Li sun8i-thermal driver supports thermal sensor in wide range of Allwinner SoCs. Add YAML schema for its bindings. Signed-off-by: Yangtao Li Signed-off-by: Vasily Khoruzhick --- .../thermal/allwinner,sun8i-a83t-ths.yaml | 103 ++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml diff --git a/Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml b/Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml new file mode 100644 index 000000000000..e622f0a4be90 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml @@ -0,0 +1,103 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/allwinner,sun8i-a83t-ths.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner SUN8I Thermal Controller Device Tree Bindings + +maintainers: + - Yangtao Li + +properties: + compatible: + oneOf: + - const: allwinner,sun8i-a83t-ths + - const: allwinner,sun8i-h3-ths + - const: allwinner,sun8i-r40-ths + - const: allwinner,sun50i-a64-ths + - const: allwinner,sun50i-h5-ths + - const: allwinner,sun50i-h6-ths + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + resets: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + anyOf: + - items: + - const: bus + - const: mod + - items: + - const: bus + + '#thermal-sensor-cells': + enum: [ 0, 1 ] + description: | + Definition depends on soc version: + + For "allwinner,sun8i-h3-ths", + value must be 0. + For all other compatibles + value must be 1. + + nvmem-cells: + maxItems: 1 + items: + - description: Calibration data for thermal sensors + + nvmem-cell-names: + items: + - const: calibration + +required: + - compatible + - reg + - interrupts + - '#thermal-sensor-cells' + +examples: + - | + ths_a83t: ths@1f04000 { + compatible = "allwinner,sun8i-a83t-ths"; + reg = <0x01f04000 0x100>; + interrupts = <0 31 0>; + nvmem-cells = <&ths_calibration>; + nvmem-cell-names = "calibration"; + #thermal-sensor-cells = <1>; + }; + - | + ths_h3: ths@1c25000 { + compatible = "allwinner,sun8i-h3-ths"; + reg = <0x01c25000 0x400>; + clocks = <&ccu 0>, <&ccu 1>; + clock-names = "bus", "mod"; + resets = <&ccu 2>; + interrupts = <0 31 0>; + nvmem-cells = <&ths_calibration>; + nvmem-cell-names = "calibration"; + #thermal-sensor-cells = <0>; + }; + - | + ths_h6: ths@5070400 { + compatible = "allwinner,sun50i-h6-ths"; + reg = <0x05070400 0x100>; + clocks = <&ccu 0>; + clock-names = "bus"; + resets = <&ccu 2>; + interrupts = <0 15 0>; + nvmem-cells = <&ths_calibration>; + nvmem-cell-names = "calibration"; + #thermal-sensor-cells = <1>; + }; + +... -- 2.24.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12113C33C9E for ; Wed, 27 Nov 2019 05:30:23 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5ABA52073F for ; Wed, 27 Nov 2019 05:30:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dVyk1xj9"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NAQ6Ywzj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5ABA52073F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=S47TEqXErpXU4f3AwclTQAjCFa00RGSp65CmczXYGyg=; b=dVyk1xj9QyF1YA ChgkvyHcvIbqyT00AtQhFj/EW51/ft+39dBW9OZLvMArVyavQ/MR6vzV5epzTBAkwyPlcPjAEbFwz izZVVaRXkL8X8M0sLsT6MKrxx2A7CeC7jlT5Nne2JoT15/pGg5Fgo6pHe+fE1XhPPbTsxNaiGTWdI BzRiTdvjkFr/YkeHkhgeBt3mmW4jdqMyErLyFtC2qwCg2YzqFbsET+0BXYJzhg9IbFHx1QX/SYsXY X7786cRpGSLaPdou319hOw4tDzXN8CxCFpO7HI9KbkFtn6ATOOLABQoVm9nsaZikDw492DtX7kslE hcWwtT1396FyL0uQsNtw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iZpu8-0001s7-1w; Wed, 27 Nov 2019 05:30:20 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iZpts-0000xL-Ja for linux-arm-kernel@lists.infradead.org; Wed, 27 Nov 2019 05:30:06 +0000 Received: by mail-pg1-x544.google.com with SMTP id b1so10191393pgq.10 for ; Tue, 26 Nov 2019 21:30:04 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=m+wA1RX04BSPnVjNbxGCBXt8jtUUgOJo5n6EFES/ZC0=; b=NAQ6Ywzj9ZjMbYy+Q3DneIn5TOVZ2ug1lpiHFijsVz2JtEvPUBvBkgj8JHiEkdBqyD Yo1ds6nVDXNM0cJaEO0kynwlTYTLnDEpcjYckZrlyVH0BIIVQvVKOk9lDDTLM9ygfUiy yrqwbgM/5YTex60dV7QIF11UcZndyIwbCpN1qtNBk3y/4b3vsnEZtfKnSlclLcxhcwC4 7nEwpotg17ZNtV0bX5M4ics/xwBQrih/YNycmZ17Djzt70nBHA2KiO0Cq5goqv+7zWaq 56Xz1OLjqebh7RxTS0qZzIKBqMDsbpZvvJDVLcdlyl5EtPjYFa4VWrgZ/E67wpN7xy7C Davg== 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:mime-version:content-transfer-encoding; bh=m+wA1RX04BSPnVjNbxGCBXt8jtUUgOJo5n6EFES/ZC0=; b=qCUZbyC9VHRlUpZsUfgYOsZ8rWsfWnLoTqy04/zWP9crykJxbt8hg/h/BARMYkDwgh NDPNlx1YU1lBOi5sIj+XPyjo+vMaBZMQoicbZ6neLKdxZnRbYs6P0h274rBkedD4M3Vj l4BIWabVlOt9nDLa3UNWyN8R71Gk4K02f0rH5ISULD4QBGxt1KuL2yLkA9sIhL3Qg25Z xwX1+D4aCOTN3YzIl/luz1fV1LHPGpv2HRIavMFOvn/AD3OAnfEpd1wSMbhXsBmo1/cA o5GO9SySeTtRCblQ0yn7nDwB1umMoGsOtlItADJLGQd2pQZ2+btwCCdnDMl0Yo9PivJb YY1w== X-Gm-Message-State: APjAAAWBg03ajCEJz4cFzOWdMuozf8bl8y8ngL/S/4/IvLt87x+t5HSb PuC9mUz5LR1B0Xx7FuxeqJA= X-Google-Smtp-Source: APXvYqw4sNgUo0b8NWUQsBZEeo0fVFA8rx27nKaYJzlqYHZYbIXE3nnctVmDaAM+vNmh+i0i+VgsvQ== X-Received: by 2002:a63:354e:: with SMTP id c75mr2768495pga.325.1574832604122; Tue, 26 Nov 2019 21:30:04 -0800 (PST) Received: from anarsoul-thinkpad.lan (216-71-213-236.dyn.novuscom.net. [216.71.213.236]) by smtp.gmail.com with ESMTPSA id p38sm4360825pjp.27.2019.11.26.21.30.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 21:30:03 -0800 (PST) From: Vasily Khoruzhick To: Yangtao Li , Zhang Rui , Eduardo Valentin , Daniel Lezcano , Amit Kucheria , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Ond=C5=99ej=20Jirman?= , linux-kernel@vger.kernel.org Subject: [PATCH v6 2/7] dt-bindings: thermal: add YAML schema for sun8i-thermal driver bindings Date: Tue, 26 Nov 2019 21:29:30 -0800 Message-Id: <20191127052935.1719897-3-anarsoul@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127052935.1719897-1-anarsoul@gmail.com> References: <20191127052935.1719897-1-anarsoul@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191126_213004_652457_032F860A X-CRM114-Status: GOOD ( 12.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Yangtao Li sun8i-thermal driver supports thermal sensor in wide range of Allwinner SoCs. Add YAML schema for its bindings. Signed-off-by: Yangtao Li Signed-off-by: Vasily Khoruzhick --- .../thermal/allwinner,sun8i-a83t-ths.yaml | 103 ++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml diff --git a/Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml b/Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml new file mode 100644 index 000000000000..e622f0a4be90 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml @@ -0,0 +1,103 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/allwinner,sun8i-a83t-ths.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner SUN8I Thermal Controller Device Tree Bindings + +maintainers: + - Yangtao Li + +properties: + compatible: + oneOf: + - const: allwinner,sun8i-a83t-ths + - const: allwinner,sun8i-h3-ths + - const: allwinner,sun8i-r40-ths + - const: allwinner,sun50i-a64-ths + - const: allwinner,sun50i-h5-ths + - const: allwinner,sun50i-h6-ths + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + resets: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + anyOf: + - items: + - const: bus + - const: mod + - items: + - const: bus + + '#thermal-sensor-cells': + enum: [ 0, 1 ] + description: | + Definition depends on soc version: + + For "allwinner,sun8i-h3-ths", + value must be 0. + For all other compatibles + value must be 1. + + nvmem-cells: + maxItems: 1 + items: + - description: Calibration data for thermal sensors + + nvmem-cell-names: + items: + - const: calibration + +required: + - compatible + - reg + - interrupts + - '#thermal-sensor-cells' + +examples: + - | + ths_a83t: ths@1f04000 { + compatible = "allwinner,sun8i-a83t-ths"; + reg = <0x01f04000 0x100>; + interrupts = <0 31 0>; + nvmem-cells = <&ths_calibration>; + nvmem-cell-names = "calibration"; + #thermal-sensor-cells = <1>; + }; + - | + ths_h3: ths@1c25000 { + compatible = "allwinner,sun8i-h3-ths"; + reg = <0x01c25000 0x400>; + clocks = <&ccu 0>, <&ccu 1>; + clock-names = "bus", "mod"; + resets = <&ccu 2>; + interrupts = <0 31 0>; + nvmem-cells = <&ths_calibration>; + nvmem-cell-names = "calibration"; + #thermal-sensor-cells = <0>; + }; + - | + ths_h6: ths@5070400 { + compatible = "allwinner,sun50i-h6-ths"; + reg = <0x05070400 0x100>; + clocks = <&ccu 0>; + clock-names = "bus"; + resets = <&ccu 2>; + interrupts = <0 15 0>; + nvmem-cells = <&ths_calibration>; + nvmem-cell-names = "calibration"; + #thermal-sensor-cells = <1>; + }; + +... -- 2.24.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel