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>; - }; From patchwork Mon Feb 26 07:48:39 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: 13571389 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 7F134C48BF6 for ; Mon, 26 Feb 2024 07:49:13 +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=7HJz90R/4ufgqgMvTvfuFdtmH/45IWBGaMYlo+is0Aw=; b=M4XIFvjiNNyXpJ h7cKuOx78lGcR50w8UThgArR7g8CV8w9cCKsTp2/C4o9mbsi8x6qd7B0GE0AA2BQONBdESduIk1vg nr1mTj+AJH/6EL4Ic0dzVPx6/Zll/MUFxpHIA5R3FTYXDMbomYiojMVPfViQ7HAzxF/Sw/8cJ31dZ d6ZNZuvKRM7sBS2nGEgjE2f7atWvBAfOAWJ3C/N47SeXA00lo/H+ZUH5jPu4I/qI1XFcTzbwV5gdw jm+25BOaOqRJ+H51rG+V9nF8qkbe2DPf6CIxlg+qYdKUEQXT6qNc/pAcJh2zKI0T+UDDgV2D0Ua2I aYnEOTntSGN5XX9pYc+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1reVjU-0000000GrzO-1Mz6; Mon, 26 Feb 2024 07:49:04 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1reVjH-0000000GrsD-3n2e for linux-arm-kernel@lists.infradead.org; Mon, 26 Feb 2024 07:48:53 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40fb3b5893eso21639865e9.0 for ; Sun, 25 Feb 2024 23:48:51 -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=kBudS8pduB+JnQNCiuQyA0sgsK2wbQ0gKDhX+xdHCYQ=; b=HTp9V9dAwnOkVJ1cMpWaQt7ESKXmN3+tCL0fQ/i5VUzsGM9H5/rtlAB+4aI7tvrVzM P0fzEh0jBoiw9NwosEHB5XrKzGAG2bjqXl/P7Yu1izxMd/x46Q0ocOBBRtaFBcvUwPaM lmoFtYRbbubjlO3KI8vASwxAfeWBC4dGGLOEuIpsm8/UUgwR2FD4RU/UKzOoFZbsmMfw hPbHNqkhVk4sBf63NLczO/2MlwRuOWdjRb7OUXUDSowS3eNrJXn7sPdwBLGqnWNQbltr CoiCaX29nff71wHJ0zv/h0sXtVEId7+pm4hCeNhMUHbLjI/HdBK9WEAlR1yZhJq15Pgp 6kSA== 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=kBudS8pduB+JnQNCiuQyA0sgsK2wbQ0gKDhX+xdHCYQ=; b=wSOKDrOOpO8hGGVeUdbTti4bW7Q0WPbAAtZFqZpgFfRK2QL0qKE5qBfTIYTk5bYGF6 KlX1ZRFQrV8FZAEtL4lu2D2WyGyCLMXQoeFqHoOPSTRcBP5WdZwFkuOzHL6Zxf8sit0q QtMUY0C9UhufVGkd+OYFGJs0UFBeq/1zS32AnpHp+Qz43PBkKYmydM8HnbW6ja5HoHwk xJlYScBKN3F6kJqLjB47tVkQR4qj58adeIOt5zWmJdTMm2HplZiW5j9PJJPkXhtAQOaN m4IqgFw4OXC+zpF+HrcGAzLKsU5KuUGIUIwK7qNitoDk+VirpmshPObtuWpcISWuCphO GpCA== X-Forwarded-Encrypted: i=1; AJvYcCUZzhq+CJrJgrjVmi4vsk4rQe75qR1h+LwhRoFwaTbQXVtaAmM2+uDntBqWdxbrA5lcnbs88N87yugRrP6zWxI3EDdu2ni0vu3rVmSgmpquX+Rzs5Y= X-Gm-Message-State: AOJu0YzIaKhXJD7mBL7hpUvfYBT0XzkcyTLNQeDSqpphnKSHXsgp6F5Q 9FipnlY4BPglUQlf+WDRO263Sd8EpfpO/QjcCRgiNJOzm/sHr5I0 X-Google-Smtp-Source: AGHT+IEXcDk7P9a8aCttVoCtQxLZ0Uzp44RGGS8NQoqbv9ZdSzUiG/XAntntAmTmivSIdul1erLtDg== X-Received: by 2002:a05:600c:1989:b0:412:9c29:e6b3 with SMTP id t9-20020a05600c198900b004129c29e6b3mr4401757wmq.12.1708933730141; Sun, 25 Feb 2024 23:48:50 -0800 (PST) Received: from localhost ([2001:861:3385:e20:6384:4cf:52c5:3194]) by smtp.gmail.com with ESMTPSA id l6-20020a1c7906000000b0040fddaf9ff4sm10995788wme.40.2024.02.25.23.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:48:50 -0800 (PST) From: Raphael Gallais-Pou Date: Mon, 26 Feb 2024 08:48:39 +0100 Subject: [PATCH 2/2] ARM: dts: st: add thermal property on stih410.dtsi and stih418.dtsi MIME-Version: 1.0 Message-Id: <20240226-thermal-v1-2-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_995187_C299B3AC X-CRM114-Status: GOOD ( 11.52 ) 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 "#thermal-sensor-cells" is required and missing in thermal nodes. Add it. Signed-off-by: Raphael Gallais-Pou --- arch/arm/boot/dts/st/stih410.dtsi | 1 + arch/arm/boot/dts/st/stih418.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/st/stih410.dtsi b/arch/arm/boot/dts/st/stih410.dtsi index 29e95e9d3229..a69231854f78 100644 --- a/arch/arm/boot/dts/st/stih410.dtsi +++ b/arch/arm/boot/dts/st/stih410.dtsi @@ -270,6 +270,7 @@ thermal@91a0000 { clock-names = "thermal"; clocks = <&clk_sysin>; interrupts = ; + #thermal-sensor-cells = <0>; }; cec@94a087c { diff --git a/arch/arm/boot/dts/st/stih418.dtsi b/arch/arm/boot/dts/st/stih418.dtsi index b35b9b7a7ccc..0f0db988a907 100644 --- a/arch/arm/boot/dts/st/stih418.dtsi +++ b/arch/arm/boot/dts/st/stih418.dtsi @@ -113,6 +113,7 @@ thermal@91a0000 { clock-names = "thermal"; clocks = <&clk_sysin>; interrupts = ; + #thermal-sensor-cells = <0>; }; }; };