From: Francesco Dolcini <francesco.dolcini@toradex.com> To: Daniel Lezcano <daniel.lezcano@linaro.org>, Rob Herring <robh+dt@kernel.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Shawn Guo <shawnguo@kernel.org>, Marco Felsch <m.felsch@pengutronix.de>, Anson Huang <Anson.Huang@nxp.com> Cc: Francesco Dolcini <francesco.dolcini@toradex.com>, Amit Kucheria <amitk@kernel.org>, Zhang Rui <rui.zhang@intel.com>, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team <kernel@pengutronix.de>, Sascha Hauer <s.hauer@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 3/9] dt-bindings: thermal: imx: Add trips point Date: Wed, 15 Jun 2022 11:47:58 +0200 [thread overview] Message-ID: <20220615094804.388280-4-francesco.dolcini@toradex.com> (raw) In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> Add trips point to i.MX Thermal bindings for each temperature grade (automotive, commercial, extended-commercial and industrial) to enable specifying a different trip point than the hard-coded value. Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> --- .../bindings/thermal/imx-thermal.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml index 16b57f57d103..e6349e40d6c6 100644 --- a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml +++ b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml @@ -54,6 +54,18 @@ properties: clocks: maxItems: 1 +patternProperties: + "^(automotive|commercial|extended-commercial|industrial)-thermal$": + type: object + description: + Thermal characteristics for each available temperature grade, this allows + to override the passive and critical trip points. + properties: + trips: + $ref: "thermal-zones.yaml#/$defs/trips-base" + + additionalProperties: false + required: - compatible - interrupts @@ -98,5 +110,20 @@ examples: nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>; + + industrial-thermal { + trips { + temp_trip_passive_industrial: trip-point0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + temp_trip_crit_industrial: trip-point1 { + temperature = <100000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; }; }; -- 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: Francesco Dolcini <francesco.dolcini@toradex.com> To: Daniel Lezcano <daniel.lezcano@linaro.org>, Rob Herring <robh+dt@kernel.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Shawn Guo <shawnguo@kernel.org>, Marco Felsch <m.felsch@pengutronix.de>, Anson Huang <Anson.Huang@nxp.com> Cc: Francesco Dolcini <francesco.dolcini@toradex.com>, Amit Kucheria <amitk@kernel.org>, Zhang Rui <rui.zhang@intel.com>, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team <kernel@pengutronix.de>, Sascha Hauer <s.hauer@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 3/9] dt-bindings: thermal: imx: Add trips point Date: Wed, 15 Jun 2022 11:47:58 +0200 [thread overview] Message-ID: <20220615094804.388280-4-francesco.dolcini@toradex.com> (raw) In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> Add trips point to i.MX Thermal bindings for each temperature grade (automotive, commercial, extended-commercial and industrial) to enable specifying a different trip point than the hard-coded value. Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> --- .../bindings/thermal/imx-thermal.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml index 16b57f57d103..e6349e40d6c6 100644 --- a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml +++ b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml @@ -54,6 +54,18 @@ properties: clocks: maxItems: 1 +patternProperties: + "^(automotive|commercial|extended-commercial|industrial)-thermal$": + type: object + description: + Thermal characteristics for each available temperature grade, this allows + to override the passive and critical trip points. + properties: + trips: + $ref: "thermal-zones.yaml#/$defs/trips-base" + + additionalProperties: false + required: - compatible - interrupts @@ -98,5 +110,20 @@ examples: nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>; + + industrial-thermal { + trips { + temp_trip_passive_industrial: trip-point0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + temp_trip_crit_industrial: trip-point1 { + temperature = <100000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; }; }; -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-06-15 9:57 UTC|newest] Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-06-15 9:47 [PATCH v1 0/9] imx: thermal: Allow trip point configuration from DT Francesco Dolcini 2022-06-15 9:47 ` Francesco Dolcini 2022-06-15 9:47 ` [PATCH v1 1/9] dt-bindings: thermal: Define trips node in $defs Francesco Dolcini 2022-06-15 9:47 ` Francesco Dolcini 2022-06-15 9:47 ` [PATCH v1 2/9] thermal: thermal: Export OF trip helper function Francesco Dolcini 2022-06-15 9:47 ` Francesco Dolcini 2022-06-15 19:24 ` kernel test robot 2022-06-15 19:24 ` kernel test robot 2022-06-15 9:47 ` Francesco Dolcini [this message] 2022-06-15 9:47 ` [PATCH v1 3/9] dt-bindings: thermal: imx: Add trips point Francesco Dolcini 2022-06-15 13:16 ` Rob Herring 2022-06-15 13:16 ` Rob Herring 2022-06-15 9:47 ` [PATCH v1 4/9] imx: thermal: Configure trip point from DT Francesco Dolcini 2022-06-15 9:47 ` Francesco Dolcini 2022-06-15 10:39 ` Marco Felsch 2022-06-15 10:39 ` Marco Felsch 2022-06-15 13:04 ` Francesco Dolcini 2022-06-15 13:04 ` Francesco Dolcini 2022-06-15 9:48 ` [PATCH v1 5/9] ARM: dts: imx[67]: Add trips points Francesco Dolcini 2022-06-15 9:48 ` Francesco Dolcini 2022-06-15 9:48 ` [PATCH v1 6/9] ARM: dts: imx6qdl-apalis: Set CPU critical trip point Francesco Dolcini 2022-06-15 9:48 ` Francesco Dolcini 2022-06-15 9:48 ` [PATCH v1 7/9] ARM: dts: imx7-colibri: " Francesco Dolcini 2022-06-15 9:48 ` Francesco Dolcini 2022-06-15 9:48 ` [PATCH v1 8/9] ARM: dts: imx6ull-colibri: " Francesco Dolcini 2022-06-15 9:48 ` Francesco Dolcini 2022-06-15 9:48 ` [PATCH v1 9/9] ARM: dts: imx6qdl-colibri: " Francesco Dolcini 2022-06-15 9:48 ` Francesco Dolcini 2022-06-15 10:42 ` [PATCH v1 0/9] imx: thermal: Allow trip point configuration from DT Marco Felsch 2022-06-15 10:42 ` Marco Felsch
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220615094804.388280-4-francesco.dolcini@toradex.com \ --to=francesco.dolcini@toradex.com \ --cc=Anson.Huang@nxp.com \ --cc=amitk@kernel.org \ --cc=daniel.lezcano@linaro.org \ --cc=devicetree@vger.kernel.org \ --cc=festevam@gmail.com \ --cc=kernel@pengutronix.de \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-imx@nxp.com \ --cc=linux-pm@vger.kernel.org \ --cc=m.felsch@pengutronix.de \ --cc=rafael@kernel.org \ --cc=robh+dt@kernel.org \ --cc=rui.zhang@intel.com \ --cc=s.hauer@pengutronix.de \ --cc=shawnguo@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.