From patchwork Mon Feb 26 07:48:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Rapha=C3=ABl_Gallais-Pou?= X-Patchwork-Id: 13571390 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 6778AC48BF6 for ; Mon, 26 Feb 2024 07:49:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/uzE6PK0EydMAOVSq7L44XTygpozJpgElRUNkFhPmoc=; b=ERiV/pSFEI/4q3 LEsT65YqswC6MTmz4jPcOUcxLlGhEJD/cMAuttN753NF0NvBmxLMRo2N9PRbMsuaTCvF2HDLs4ijQ jYqDBKz4NZrSp/qmbpO2xweRZG3A3cgfUJwEmJkndTIauUl6YhDFmR14G5cNZjFyK+IXeiEpS2dIn B9wXgOaOBlurXCR/xanUuLPJE9X84Wu3EgOYsjucACQAD3WpkVIKRE96+VRcYIrPwLlt7UOOCW9mL 2ejnE8xpbtYFJjV2jKhqH7fUOHTD5VXEu4sg2YvqPYJQMPZ+Ib1Uv25uZFwL0FJjv5Wp+FSU8ofFs GEh+mA2XC4HnxTiF7t2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1reVjV-0000000Grzk-1NDy; Mon, 26 Feb 2024 07:49:05 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1reVjH-0000000Grs8-1iw0 for linux-arm-kernel@lists.infradead.org; Mon, 26 Feb 2024 07:48:54 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-412a3371133so5862585e9.2 for ; Sun, 25 Feb 2024 23:48:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708933730; x=1709538530; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ljEZV321MYaoCKwfbRB+OHvsPB1vjG2tNQbJsxizkqg=; b=FijghGzw17Ti0WjSoeT4U4RSLHfxQywqU3aJHfUZfHxNgHBlGDVsgJ8NRChCtIP4OI IeQiDAy9xwnH0EBptDNN7YOxaiPfQD/9EwQEK6LbPolshZrStvtLCchiJ8ZPawe/4Gda JuoKoR3dhWBtznyDhU/taHir5wgbSl4175sWmLc6Fpc3d8PeX5Kftk4/XGrLu4CqA6Ef lr3R8iT51PCSmXjA1yHChxT0v2X7c4Or/XDgHaMaWlcUntVZ4di7qSayGNMJUZF7EN4M bxH0UhyrOclLsMi8TB+WHVFUf+vtEiJRpTXRB/Jr8DKdEi3a1MTL7q1qmEqVy6KWUNbu IyWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708933730; x=1709538530; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ljEZV321MYaoCKwfbRB+OHvsPB1vjG2tNQbJsxizkqg=; b=S4srCmYmRNrpwEhfLnYUU42U7S1jw9i/hGMUc1rriJfSOQw7yiRwbv5GQCr7vmDJRe Hb6AqkX3RuE8hDou5EePkm0U2kgAXXur33mKuT3GQifXVvvggLdnq31YMJEYhCVAFGoK HINzgW5XDEoi+xsWoEwZEOJFP9pCSTwH4z0reDbPnWtkRd2/fLYa14H4Y3gkh7RH7kVg ktdVTLAFqcWS5iNkAf2RwdttzXUdlkPLELRqZBkEGCVfnqKcDfucrSwSExVjlAa0V+O9 yS7Sos6LYPAADIZfAZH4Xg9KOxmeCQ6wjQrjHKbVbDMjB0Rr/tizeuVqvyI+I4g7QLoa LBvQ== X-Forwarded-Encrypted: i=1; AJvYcCWFVBsSiJNjOuUivConiNiiZ5geN0WcVi3VeJluYiAXwqmWoGa2kGLphY+JSwYS/vjixqjnjYXDGzxxn/HBzQzuFRG6qNfSBjV+LuufK6q+QYnEWrA= X-Gm-Message-State: AOJu0YyuhpwMRZUgG8gdA9CyW1DZ+AT2INVZ6uxhawjdaugl/n1VsFSc ZbwA8C2bphAE19WbRXvhQ0F8ykJMSAtqGqSxxApiPpcHBrMsnFhK X-Google-Smtp-Source: AGHT+IG5L8to5/LOVjALIkMmVCop+S/Qb4PeZTshFkd+5CR6iZVCh5z/fvGLEJPHPkbgCiWfTfTM+w== X-Received: by 2002:a05:600c:138f:b0:411:a5f9:26f5 with SMTP id u15-20020a05600c138f00b00411a5f926f5mr5199772wmf.38.1708933729368; Sun, 25 Feb 2024 23:48:49 -0800 (PST) Received: from localhost ([2001:861:3385:e20:6384:4cf:52c5:3194]) by smtp.gmail.com with ESMTPSA id d16-20020a05600c34d000b004129e8af6absm6732333wmq.33.2024.02.25.23.48.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:48:49 -0800 (PST) From: Raphael Gallais-Pou Date: Mon, 26 Feb 2024 08:48:38 +0100 Subject: [PATCH 1/2] dt-bindings: thermal: convert st,stih407-thermal to DT schema MIME-Version: 1.0 Message-Id: <20240226-thermal-v1-1-8b03589ece73@gmail.com> References: <20240226-thermal-v1-0-8b03589ece73@gmail.com> In-Reply-To: <20240226-thermal-v1-0-8b03589ece73@gmail.com> To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Patrice Chotard , Lee Jones Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240225_234851_495583_B79D4AB4 X-CRM114-Status: GOOD ( 16.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Converts st,stih407-thermal binding to DT schema format and cleans unused property "st,passive_cooling_temp" which does not appear in the device-tree. Signed-off-by: Raphael Gallais-Pou --- .../bindings/thermal/st,stih407-thermal.yaml | 61 ++++++++++++++++++++++ .../devicetree/bindings/thermal/st-thermal.txt | 32 ------------ 2 files changed, 61 insertions(+), 32 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/st,stih407-thermal.yaml b/Documentation/devicetree/bindings/thermal/st,stih407-thermal.yaml new file mode 100644 index 000000000000..807f8d77edf5 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/st,stih407-thermal.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/st,stih407-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics STi digital thermal sensor (DTS) + +maintainers: + - Patrice Chotard + - Lee Jones + +description: + Binding for Thermal Sensor device for STMicroelectronics STi SoCs series. + +allOf: + - $ref: thermal-sensor.yaml + +properties: + compatible: + const: st,stih407-thermal + + clocks: + maxItems: 1 + description: Phandle of the clock used by the thermal sensor. + + clock-names: + items: + - const: thermal + + reg: + description: + For non-sysconf based sensors, this should be the physical base + address and length of the sensor's registers. + + interrupts: + description: | + Standard way to define interrupt number. + For thermal sensor's for which no interrupt has been + defined, a polling delay of 1000ms will be used to read the + temperature from device. + +required: + - compatible + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + temp0@91a0000 { + compatible = "st,stih407-thermal"; + reg = <0x91a0000 0x28>; + clock-names = "thermal"; + clocks = <&CLK_SYSIN>; + interrupts = ; + #thermal-sensor-cells = <0>; + }; +... diff --git a/Documentation/devicetree/bindings/thermal/st-thermal.txt b/Documentation/devicetree/bindings/thermal/st-thermal.txt deleted file mode 100644 index a2f939137e35..000000000000 --- a/Documentation/devicetree/bindings/thermal/st-thermal.txt +++ /dev/null @@ -1,32 +0,0 @@ -Binding for Thermal Sensor driver for STMicroelectronics STi series of SoCs. - -Required parameters: -------------------- - -compatible : Should be "st,stih407-thermal" - -clock-names : Should be "thermal". - See: Documentation/devicetree/bindings/resource-names.txt -clocks : Phandle of the clock used by the thermal sensor. - See: Documentation/devicetree/bindings/clock/clock-bindings.txt - -Optional parameters: -------------------- - -reg : For non-sysconf based sensors, this should be the physical base - address and length of the sensor's registers. -interrupts : Standard way to define interrupt number. - NB: For thermal sensor's for which no interrupt has been - defined, a polling delay of 1000ms will be used to read the - temperature from device. - -Example: - - temp0@91a0000 { - compatible = "st,stih407-thermal"; - reg = <0x91a0000 0x28>; - clock-names = "thermal"; - clocks = <&CLK_SYSIN>; - interrupts = ; - st,passive_cooling_temp = <110>; - };