Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1237430ybb; Wed, 8 Apr 2020 20:27:10 -0700 (PDT) X-Google-Smtp-Source: APiQypLjUm+Gg1HwF7UUEHrA4cTfNQqv3T1+zuWKWRxQ81rT4PzjzsYhb3lxkTx0u20sbJJAzxpJ X-Received: by 2002:a05:6808:8ce:: with SMTP id k14mr5059158oij.60.1586402830032; Wed, 08 Apr 2020 20:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586402830; cv=none; d=google.com; s=arc-20160816; b=mtLUHINPUV/9Kr0IzSxApA1YZ+H8ATWG5xVMDgmOLqiiIXfDPsjxxkSQahZDG3rDPa 96BKLaS/1yY/9beGJ5GvYVqZavO5n98q2CCskyPEifTqBJMcfIPzVkUBo5FCPDnljvGZ qQ8jtCKo98hpS2VaZQGPY7tfEFVeVHvBKwTlL1BpUoKvR+2gniEkCCgOnELaJSWK6Hkx STkcCfFpp0opYjSiQ/1/nSkv5gApy3SHYyOgTmVkXziLw6XlIDNLOLlqLOVDWKfrR1Mu SSlxzuJSryary1x5CV7d6/Rf6KNUmDXRK8JUiRrALY1UbDx4qQuNBINRB+bELDYnQl4g P/6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=qSo6SujWaXZtkC8s23HsmQwC/xI5t5YKSXLAQZlvFuo=; b=W0qmkvpzTYGD1rgbUklcob1wMln4n5RM9ZLHBbqSrmYOsjM0GpUkpKP3xF3bTy4Vj2 QQzo65hJdnylatEczkYGQm09SK44dU4cpIj9FEGQFL8k1sDP0V8kcH4gx5F48eounZWG w6xSMOpGJEk3dPkWIhck2Y6B3VSnsdBJUZIbrIloei05RTOtVCUOCuUcAIKCri/qxXTH dE4J4a+tGngT+9YC2aiIEVG7UklVCY+RzSGkUA1cYmjNZRa7wXxZUubxj8HWeoN8dgSJ XR6DycuEKRv+3KsDY2g7iqyUU9yoyW8xpLigBdEZr3MDWwy+D4B5/ZLSfaVkumiwdCkL Lk0Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8si3756922otk.246.2020.04.08.20.26.54; Wed, 08 Apr 2020 20:27:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726594AbgDID0M (ORCPT + 99 others); Wed, 8 Apr 2020 23:26:12 -0400 Received: from inva020.nxp.com ([92.121.34.13]:34704 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbgDID0L (ORCPT ); Wed, 8 Apr 2020 23:26:11 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E56C21A02A7; Thu, 9 Apr 2020 05:26:09 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 4F94A1A02B7; Thu, 9 Apr 2020 05:26:03 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 1BD4C40294; Thu, 9 Apr 2020 11:25:55 +0800 (SGT) From: Anson Huang To: rui.zhang@intel.com, daniel.lezcano@linaro.org, amit.kucheria@verdurent.com, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH] dt-bindings: thermal: Convert i.MX8MM to json-schema Date: Thu, 9 Apr 2020 11:18:13 +0800 Message-Id: <1586402293-30579-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the i.MX8MM thermal binding to DT schema format using json-schema Signed-off-by: Anson Huang --- .../devicetree/bindings/thermal/imx8mm-thermal.txt | 15 ------ .../bindings/thermal/imx8mm-thermal.yaml | 53 ++++++++++++++++++++++ 2 files changed, 53 insertions(+), 15 deletions(-) delete mode 100644 Documentation/devicetree/bindings/thermal/imx8mm-thermal.txt create mode 100644 Documentation/devicetree/bindings/thermal/imx8mm-thermal.yaml diff --git a/Documentation/devicetree/bindings/thermal/imx8mm-thermal.txt b/Documentation/devicetree/bindings/thermal/imx8mm-thermal.txt deleted file mode 100644 index 3629d3c..0000000 --- a/Documentation/devicetree/bindings/thermal/imx8mm-thermal.txt +++ /dev/null @@ -1,15 +0,0 @@ -* Thermal Monitoring Unit (TMU) on Freescale i.MX8MM SoC - -Required properties: -- compatible : Must be "fsl,imx8mm-tmu" or "fsl,imx8mp-tmu". -- reg : Address range of TMU registers. -- clocks : TMU's clock source. -- #thermal-sensor-cells : Should be 0 or 1. See ./thermal.txt for a description. - -Example: -tmu: tmu@30260000 { - compatible = "fsl,imx8mm-tmu"; - reg = <0x30260000 0x10000>; - clocks = <&clk IMX8MM_CLK_TMU_ROOT>; - #thermal-sensor-cells = <0>; -}; diff --git a/Documentation/devicetree/bindings/thermal/imx8mm-thermal.yaml b/Documentation/devicetree/bindings/thermal/imx8mm-thermal.yaml new file mode 100644 index 0000000..53a42b3 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/imx8mm-thermal.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/imx8mm-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX8M Mini Thermal Binding + +maintainers: + - Anson Huang + +properties: + compatible: + oneOf: + - items: + - enum: + - fsl,imx8mm-tmu + - fsl,imx8mp-tmu + reg: + description: | + Address range of TMU registers. + maxItems: 1 + clocks: + description: | + TMU's clock source. + maxItems: 1 + + # See ./thermal.txt for details + "#thermal-sensor-cells": + enum: + - 0 + - 1 + +required: + - compatible + - reg + - clocks + - '#thermal-sensor-cells' + +additionalProperties: false + +examples: + - | + #include + + tmu: tmu@30260000 { + compatible = "fsl,imx8mm-tmu"; + reg = <0x30260000 0x10000>; + clocks = <&clk IMX8MM_CLK_TMU_ROOT>; + #thermal-sensor-cells = <0>; + }; + +... -- 2.7.4