From: neil.armstrong@linaro.org
To: muhammed.efecetin.67@gmail.com, linux-rockchip@lists.infradead.org
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, heiko@sntech.de,
lee@kernel.org, rafael@kernel.org, efectn@protonmail.com,
daniel.lezcano@linaro.org
Subject: Re: [PATCH 1/5] dt-bindings: mfd: khadas-mcu: add cooling-levels property
Date: Thu, 26 Jun 2025 16:12:50 +0200 [thread overview]
Message-ID: <60f437b3-2780-4bd3-95a4-d0453dcb83e7@linaro.org> (raw)
In-Reply-To: <f4d27c690b562cc72997c9ae00c6145b3722561a.1746518265.git.efectn@protonmail.com>
On 26/06/2025 16:04, muhammed.efecetin.67@gmail.com wrote:
> From: Muhammed Efe Cetin <efectn@protonmail.com>
>
> Add fan controlling step property which is used by Khadas Edge 2.
>
> Signed-off-by: Muhammed Efe Cetin <efectn@protonmail.com>
> ---
> Documentation/devicetree/bindings/mfd/khadas,mcu.yaml | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/mfd/khadas,mcu.yaml b/Documentation/devicetree/bindings/mfd/khadas,mcu.yaml
> index 084960fd5..f69643aae 100644
> --- a/Documentation/devicetree/bindings/mfd/khadas,mcu.yaml
> +++ b/Documentation/devicetree/bindings/mfd/khadas,mcu.yaml
> @@ -11,7 +11,7 @@ maintainers:
>
> description: |
> Khadas embeds a microcontroller on their VIM and Edge boards adding some
> - system feature as PWM Fan control (for VIM2 rev14 or VIM3), User memory
> + system feature as PWM Fan control (for VIM2 rev14, VIM3, Edge2), User memory
> storage, IR/Key resume control, system power LED control and more.
>
> properties:
> @@ -22,6 +22,13 @@ properties:
> "#cooling-cells": # Only needed for boards having FAN control feature
> const: 2
>
> + cooling-levels:
> + description:
> + Max speed of PWM fan, from 0 to 100. This property is necessary for Khadas Edge 2.
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + items:
> + maximum: 100
The cooling level can be detected dynamically by reading the MCU register, so
just set the max_level to 100 when edge2 is detected, and drop this property.
Neil
> +
> reg:
> maxItems: 1
>
next prev parent reply other threads:[~2025-06-26 14:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-26 14:04 [PATCH 0/5] Add Khadas MCU and fan control support for Khadas Edge 2 muhammed.efecetin.67
2025-06-26 14:04 ` [PATCH 1/5] dt-bindings: mfd: khadas-mcu: add cooling-levels property muhammed.efecetin.67
2025-06-26 14:12 ` neil.armstrong [this message]
2025-06-26 14:04 ` [PATCH 2/5] mfd: khadas-mcu: drop unused nvmem code muhammed.efecetin.67
2025-06-26 14:07 ` neil.armstrong
2025-06-26 14:04 ` [PATCH 3/5] mfd: khadas-mcu: add Khadas Edge 2 registers muhammed.efecetin.67
2025-06-26 14:13 ` neil.armstrong
2025-06-26 14:04 ` [PATCH 4/5] thermal: khadas_mcu_fan: add support for Khadas Edge 2 muhammed.efecetin.67
2025-06-26 14:11 ` neil.armstrong
2025-06-26 14:36 ` muhammed.efecetin.67
2025-06-26 14:46 ` neil.armstrong
2025-06-26 15:16 ` Muhammed Efe Cetin
2025-06-26 15:29 ` neil.armstrong
2025-06-26 14:04 ` [PATCH 5/5] arm64: dts: rockchip: add Khadas MCU and fan control nodes muhammed.efecetin.67
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=60f437b3-2780-4bd3-95a4-d0453dcb83e7@linaro.org \
--to=neil.armstrong@linaro.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=efectn@protonmail.com \
--cc=heiko@sntech.de \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=muhammed.efecetin.67@gmail.com \
--cc=rafael@kernel.org \
--cc=robh+dt@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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).