Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp978592iol; Thu, 9 Jun 2022 19:33:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiCxcTtezBK5q95UQz5/NTLe0/iu8TrawXTjDc/zW+kMa7J8KQ9evAAXLXG8mJYhftRWJ/ X-Received: by 2002:a17:902:cec2:b0:163:e44a:c678 with SMTP id d2-20020a170902cec200b00163e44ac678mr42135216plg.137.1654828436674; Thu, 09 Jun 2022 19:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654828436; cv=none; d=google.com; s=arc-20160816; b=B7Ny+J4EDoNBuK9/atxIT0Dz43Mk7B0Cq14iBPSx35xrN9StK81cCxcetuMkkdL42l GjAIQQEsiS/aDuzHlIqQoMdVr1NtzGqOMaoFEPF4gx9K21oSyEVy19mlr5aRqNDzy/9P sZoyj/3x7EYuxER0coLjcHdLwyxoOWrWlXL99sQYEkAMGBKkhwLqwbs2iIdG8P8CAoid 55kRI7cXYuiSqYhTIplTmNJiESSIY+oNCM6yKunW+CtVcvEterYs9Zl/ITeqcYcFPk1+ SX1MFY6ljgz0bz2WHPRBi3dSeM6qCcYpRVWUkUi8cv3yvzm5/dFvsuKAIeXuI2PWEpZ6 zqow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=ElqxuDCNQXRCZG67xnOLz5NHyRlQc3DQ9LW5Dv5Hebk=; b=ODphXNKLRopbvXsDFPydawZl5RWx7yUCAMqtR/9QXcEkGkondvK3wdnAUxJUfIQtlx IVHx16qS0HYX0zd23Dj7rq6d08lQqAzUipItvHOdHmHevG4XPlHs99EYBg3Fq6EvqrBv Jj29rfpBwj8cIhEOko0j/+yBCf1YtcgT9FB2SlwR4kgFw0zbGGpIPn82JIIGM2e3yybE Z0iIKwiYUQA+jV6JfVCitdk/RD2MqQEj2cy205PX3iKHP7aD7ery2IZYaezDCzQ3Nsh1 DtnJ09/TPgFakwVO4E7wAzet4OpaboWI9TDQXwpurtumHkQAlt+xK5ta+WpMMkb+1F4Y HmDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iMzRXrgS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q131-20020a632a89000000b003fcd2455908si9509713pgq.309.2022.06.09.19.33.44; Thu, 09 Jun 2022 19:33:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iMzRXrgS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S245093AbiFJBbY (ORCPT + 99 others); Thu, 9 Jun 2022 21:31:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242631AbiFJBbW (ORCPT ); Thu, 9 Jun 2022 21:31:22 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E21B32DE7DF; Thu, 9 Jun 2022 18:31:21 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id y188so15176682ybe.11; Thu, 09 Jun 2022 18:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=ElqxuDCNQXRCZG67xnOLz5NHyRlQc3DQ9LW5Dv5Hebk=; b=iMzRXrgSodgWp0762d490bUYJpIWUGUsCVl7vfzAvJkeRMYZCSgOjD6G85NoIpoQw0 qaTCFblqm2xa7C24UfXJRwWkfyECUVOApGiSiYftPhL+7EEZUYPDlssZGWto84lKHnGy W9l64RI0Z801FRJ2bnoeEZYg6YbjKUABly23dsTQTVFGJaljqYhPlytpr9QoVQQESvgd I9tSLKZC4h3MKu0T3TnTd0bFZvkdFhzwFYGf6x1DlUSks9FNR3rRfM+14a8Z2VWmNBHU wqGzUpq9/HmcS9Lu3cLHISEEAr9+ZGcBX/M/xrCfrNIeGmDSpJn/ig+B9kK0QZVSaBmR Ubyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=ElqxuDCNQXRCZG67xnOLz5NHyRlQc3DQ9LW5Dv5Hebk=; b=EuP0hXbTTN5JFaSiqRwsO9WSN0lCw0se0DS4eE3h+BeCgL9HznI6IchAOjmn544Gdj tGHjNPRbVuM2vNXr8i/Juf07rkdN0fnjOXzTPZ5rKGAQodfjIMmw9haKtRgDr3jloDlc xbLE0ObX7NfR3UU5kU4ycDffF+KRUbxSkc62ywylgItt6QI1T4x/rhMRXPy48RMo47Ir DO8OthKHYQTAfxKhfsUuINl8rdRuVXbG03Vz+RmNznfo3fyVVGP4s7tFfe2HG+EvWNpy qdSgT8zEb2m3ih+6lFHcjz74Mk0JbYWvgaL6DgFtj7n2Fbj/bJKtNDR313nrbtiGeZiH rOhQ== X-Gm-Message-State: AOAM532GbGqodbr5fc+fnWjXtZVO8SOQ/9QNmh87CLe7kQpLSYOkNyz1 j5/dyIdyoROB0htH9xTXBoVJYQUByRGo/L+xtV4= X-Received: by 2002:a05:6902:114b:b0:663:95f6:93d0 with SMTP id p11-20020a056902114b00b0066395f693d0mr24845804ybu.537.1654824681051; Thu, 09 Jun 2022 18:31:21 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?6YOt5Yqb6LGq?= Date: Fri, 10 Jun 2022 09:32:17 +0800 Message-ID: Subject: [PATCH v9 2/2] dt-bindings:thermal: Add Sunplus schema To: krzk@kernel.org, rafael@kernel.org, Daniel Lezcano , amitk@kernel.org, rui.zhang@intel.com, robh+dt@kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "lh.kuo" , =?UTF-8?B?5ZGC6Iqz6aiwTHVXZWxscw==?= Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bindings for Sunplus thermal driver Signed-off-by: Li-hao Kuo --- Changes in v9: - Change the setting of compatible - Mosdify the setting of remove funciton. .../bindings/thermal/sunplus,thermal.yaml | 43 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/sunplus,thermal.yaml diff --git a/Documentation/devicetree/bindings/thermal/sunplus,thermal.yaml b/Documentation/devicetree/bindings/thermal/sunplus,thermal.yaml new file mode 100644 index 0000000..52094da --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/sunplus,thermal.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (C) Sunplus Co., Ltd. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/sunplus,thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sunplus Thermal controller + +maintainers: + - Li-hao Kuo + +properties: + compatible: + enum: + - sunplus,sp7021-thermal + + reg: + maxItems: 1 + + nvmem-cells: + maxItems: 1 + + nvmem-cell-names: + const: calib + +required: + - compatible + - reg + - nvmem-cells + - nvmem-cell-names + +additionalProperties: false + +examples: + - | + thermal@9c000280 { + compatible = "sunplus,sp7021-thermal"; + reg = <0x9c000280 0xc>; + nvmem-cells = <&calib>; + nvmem-cell-names = "calib"; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 23bde07..a8c44eb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19107,6 +19107,7 @@ SUNPLUS THERMAL DRIVER M: Li-hao Kuo L: linux-pm@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/thermal/sunplus_thermal.yaml F: drivers/thermal/sunplus_thermal.c SUNPLUS UART DRIVER -- 2.7.4