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: 13571392 X-Patchwork-Delegate: daniel.lezcano@linaro.org Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 511E71BDED; Mon, 26 Feb 2024 07:48:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708933733; cv=none; b=pZCP6sK+v999kvVzsnV9pxBu47itxBSjA7YrnWnwExQJmgzr9E1cYgUeRkWcIMdVt33sem8y7e9Ww/Syc6QGFs954MtJgGz2HU1aVbGND0XxiBip0n6DLpSZGAWh7E4UJZDC3lndgaayuw6bzQC1NUumhDUHs49CSl0tuX6jyJw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708933733; c=relaxed/simple; bh=cpcdxP5G8Qs15hi9mldGQ1Vw0V6oqD1neWB+82Jqh7w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BgjOMZcPxHWRv7CZzvQS83iEpDQKT86w0NSQosz/e9f6Lq827dfEvTh2YyyEXKfE4prOUa2ARIOSXBNHErzPo4wnwHqAd1PdDMNGQofczAb5ErydoqwASagG97cyHGaSfSo1KFmKcpc2t5sgkjHHiNMJ2e6nxwbaRLZWTL9gG+I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=huUcqWa7; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="huUcqWa7" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-412a87d5afcso541385e9.3; 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=vger.kernel.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=huUcqWa7ORFAwt7Jn30hZCp0peOgogdsSpqMeYw5NZZksobMLl5aFeI1s8Y7tvgY9D R/Nrabn983wYsp7UJKAjqWj/uZdTOyMVZQS8bHRAs8MhvR91E1LcqouXYF8ZwmwFChoT 1053pvweBdrNFBzGm3rlRReiswJ69x3+XEyPv+3snVuzmI/w0yCQV3WXSSmO5ygibCWI aLu8VsWHgvPh5u501p0y1cecGMArjOUc5DiMsKCHKgbhTqycBcs30QtkbSsU4NrjEiY5 tQmDZui0yCZT2V3riK66vw6fPwAm0kDnpOkFj3eDtfF7kSGQxAeygFMSljPVuK+H40Ri 1AOg== 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=C4+yFbI6tFqtqfPEwTg9cQJE1sB6MJa0RQGvaAgtJg0W2wNOlXbvMBWTa3DmkWGhBC ywbCYPEVjcFaYnu0W0H3n2mXgohlCdEx1G6loc67ErSHi5H/M6AJi0sUisD4aU2K5LWK 1j398DJgu/ST2RIQ0AKTDL6pn1Dkv0q9z0m6JSGEtpbhoBtD8oGjsm1z52CG8HwRqmoN EMUXXYLR9EaLk2o0NDDOaC3XBa3mZlhkQbrWkmunpx2EJ5295so6HB4nrPFGPRHkMtQn Ub+31/InA/DhbCp8Ero1HGOibtjIhejPZUPSa6BcMYtkH8AsUwD1Dc9KBhsV0V/+RZjc DjLA== X-Forwarded-Encrypted: i=1; AJvYcCVTRzkWyI1PBSxRfO3DDExVRF7SV0SwV2bVDyeDqFvw5FCPLlpQiFVGyKvRkt0fUZZUP/Rrs2cIxih50wSED791xufQvvdc9bOmelXufKnCM0r7Zsf50+2QlbtqL9OofBQqa6epk9o2KQ== X-Gm-Message-State: AOJu0Yxtkx1TM+taA4u+owTj42KhWeTyNXY42t2eAdoDi/5DJnE5Kv+V hXuAlda/o00e1z/w3HMy1KA6bWhVizOlpaIHwm9cznO8JG8vPQ3t 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 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 13571393 X-Patchwork-Delegate: daniel.lezcano@linaro.org Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A95FD1BF33; Mon, 26 Feb 2024 07:48:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708933733; cv=none; b=u6S5eXRK2nIP1P2hOapyCDTn78vG1eyR0OzG3s8dcvNw0wG8ljxuljONPgincusZ9GEtMeybkax8T3neVfK3mToV0AJI386Bxv/gdS0kCxL//NnfCzajoW7hUD0ZtRegyRIepICFlfonVtmwEVjtw+m58EWTnEsLJG3eEH9BMsg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708933733; c=relaxed/simple; bh=uP0MS5a00nAzP+9tQ+LCTr4sG1JbDOljmNcqcWIv+C0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IzOeDN4JYGVlxU1kK1TEY4nkH7mxhk7RvyzOSbIQScDKJZ41IqeclZeJh5GbrjMJn/yEZZX216w4lfVSo6ZzZLVKOsTMDjwYFYt8cPSE5BdZL+XqW0ZIMkzmhz/FzCQH8m7YHl1CbN0hzTfXWZ4DbJQJsC4DCvkBz5l4taAOYrM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DZzhwEdk; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DZzhwEdk" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-412a390347dso6039785e9.3; 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=vger.kernel.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=DZzhwEdkCdvQ0fzOFBI664mgVC4aRvNxflJJUePWOZMXIfZkp0Q0zs88MAzSzStR8S FSf92xEuvBB6vKQH3xaKDRugHbXvzvgtrxaZJdcQNbiyuK+V6NuVOu8f9gfsvy7XdC0n 9mrZpYmj+7Ug/Wc+qfkxfGrOlVh6JHF3AvseI7yD1IyeFxjVLGTe2gJfPxDYh4Bq/OFs Jj6G83tyzLlVdHTx4004cyKe+RxfK6LlNaXJw5SnyUSFSjBf3Vy8La3N38MiW55UsWej NknmN+v1hxS2EDApBdX1kAZ1nVdRnXLKvFaTiJyCvDMRAJwz8IAM3WKDaHxzoKa8usQo Qzwg== 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=RTRlGyMux7uPkDtBsIFcr05PvCUkkOtRu2TTFDXGHwWytLE67tB/+5CJHcIZ3aG8jP xAIbmv66THLTHitXS3SdPvMCw0aAXd0ch30BY5i6Q164AIebCBTUvbMZTVqR/WnkKUSQ qPRdbWFdLp6r56fUEl4hvJW5Y5ileLsspBuB74avMXDe6oQduXkZfKeeXrsXdBG+PyaO I0eZG40nVJFcjJFAbxTqQKUZbsDzLN+Os7O3hn+bKMo1oiu20AVkwDmRjHtojZS9NSP+ WAJsuxvqdCCFPo7A6dW89BxMbWzdlQYJdiz0imMzVxEkjE/gDhuqZbHFmttS1g+Yr7Cw 8X9g== X-Forwarded-Encrypted: i=1; AJvYcCU24UB31OAQGHrA68qAasqEhFOTAnHQlmY+LY1d6EWspVZJ/of9GgLEuyjQtAkB4A/DaT9EMkH7tdNlrJVb0S0CWXIG1WDmTnnKuPYLyrbc2ju6/H+pGDXlqdSE08O9as5rgFdZN4kWHQ== X-Gm-Message-State: AOJu0YzOXiTBsRxIjz+t2scwh+wlY8AF/U+WXekcIfEWkIIxN0q8fW9k 9vmCI8l6vJ0zlEj2wTNGFcJ68LiIZv+5oEyeyv0Pat0OOWsLeNQxQ6/cJm/F 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 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 "#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>; }; }; };