From: Yixun Lan <dlan@gentoo.org>
To: Inochi Amaoto <inochiama@gmail.com>
Cc: Jean Delvare <jdelvare@suse.com>,
Guenter Roeck <linux@roeck-us.net>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Chen Wang <unicorn_wang@outlook.com>,
Andi Shyti <andi.shyti@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Paul Walmsley <paul.walmsley@sifive.com>,
Samuel Holland <samuel.holland@sifive.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Bonnefille <thomas.bonnefille@bootlin.com>,
ghost <2990955050@qq.com>,
Jarkko Nikula <jarkko.nikula@linux.intel.com>,
Jisheng Zhang <jszhang@kernel.org>,
Chao Wei <chao.wei@sophgo.com>,
linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org,
sophgo@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-i2c@vger.kernel.org, linux-riscv@lists.infradead.org,
linux-mmc@vger.kernel.org, Longbin Li <looong.bin@gmail.com>
Subject: Re: [PATCH 5/9] dt-bindings: hwmon: Add Sophgo SG2044 external hardware monitor support
Date: Mon, 7 Apr 2025 02:05:17 +0000 [thread overview]
Message-ID: <20250407020517-GYA13159@gentoo> (raw)
In-Reply-To: <20250407010616.749833-6-inochiama@gmail.com>
Hi Inochi:
On 09:06 Mon 07 Apr , Inochi Amaoto wrote:
> The MCU device on SG2044 exposes the same interface as SG2042, which is
> already supported by the kernel.
>
> Add compatible string for monitor device of SG2044.
>
> Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
> ---
> .../devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml b/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml
> index f0667ac41d75..b76805d39427 100644
> --- a/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml
> @@ -11,7 +11,11 @@ maintainers:
>
> properties:
> compatible:
> - const: sophgo,sg2042-hwmon-mcu
> + oneOf:
> + - items:
> + - const: sophgo,sg2044-hwmon-mcu
> + - const: sophgo,sg2042-hwmon-mcu
> + - const: sophgo,sg2042-hwmon-mcu
the compatible added here but not used in dts (or driver), e.g 9/9 patch
I'd personally prefer to add it when actually being used
(so it can be validated in the real use cases..)
another concern is whether better to just use 'enum'? (maybe not)
but I got your idea to fallback to compatible of sophgo,sg2042-hwmon-mcu..
same with mmc, i2c..
>
> reg:
> maxItems: 1
> --
> 2.49.0
>
--
Yixun Lan (dlan)
Gentoo Linux Developer
GPG Key ID AABEFD55
next prev parent reply other threads:[~2025-04-07 2:05 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-07 1:06 [PATCH 0/9] riscv: sophgo: Introduce SG2044 SRD3-10 board support Inochi Amaoto
2025-04-07 1:06 ` [PATCH 1/9] dt-bindings: timer: Add Sophgo SG2044 ACLINT timer Inochi Amaoto
2025-04-07 13:38 ` Rob Herring (Arm)
2025-05-14 14:18 ` Daniel Lezcano
2025-05-15 0:03 ` Chen Wang
2025-05-15 9:11 ` Daniel Lezcano
2025-04-07 1:06 ` [PATCH 2/9] dt-bindings: interrupt-controller: Add Sophgo SG2044 CLINT mswi Inochi Amaoto
2025-04-07 13:38 ` Rob Herring (Arm)
2025-04-08 1:11 ` Chen Wang
2025-04-07 1:06 ` [PATCH 3/9] dt-bindings: interrupt-controller: Add Sophgo SG2044 PLIC Inochi Amaoto
2025-04-07 13:38 ` Rob Herring (Arm)
2025-04-07 1:06 ` [PATCH 4/9] dt-bindings: reset: sophgo: Add SG2044 bindings Inochi Amaoto
2025-04-07 13:40 ` Rob Herring
2025-04-08 1:16 ` Chen Wang
2025-04-07 1:06 ` [PATCH 5/9] dt-bindings: hwmon: Add Sophgo SG2044 external hardware monitor support Inochi Amaoto
2025-04-07 2:05 ` Yixun Lan [this message]
2025-04-07 4:03 ` Inochi Amaoto
2025-04-07 13:59 ` Rob Herring (Arm)
2025-04-07 1:06 ` [PATCH 6/9] dt-bindings: mmc: sdhci-of-dwcmhsc: Add Sophgo SG2044 support Inochi Amaoto
2025-04-07 14:00 ` Rob Herring
2025-04-07 23:32 ` Inochi Amaoto
2025-04-07 1:06 ` [PATCH 7/9] dt-bindings: i2c: dw: Add Sophgo SG2044 SoC I2C controller Inochi Amaoto
2025-04-07 14:02 ` Rob Herring
2025-04-07 23:31 ` Inochi Amaoto
2025-04-07 1:06 ` [PATCH 8/9] dt-bindings: riscv: sophgo: Add SG2044 compatible string Inochi Amaoto
2025-04-07 14:04 ` Rob Herring (Arm)
2025-04-08 1:37 ` Chen Wang
2025-04-07 1:06 ` [PATCH 9/9] riscv: dts: sophgo: Add initial device tree of Sophgo SRD3-10 Inochi Amaoto
2025-04-07 2:09 ` Yixun Lan
2025-04-07 3:57 ` Inochi Amaoto
2025-04-08 1:40 ` Chen Wang
2025-04-08 1:49 ` Inochi Amaoto
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=20250407020517-GYA13159@gentoo \
--to=dlan@gentoo.org \
--cc=2990955050@qq.com \
--cc=alex@ghiti.fr \
--cc=andi.shyti@kernel.org \
--cc=aou@eecs.berkeley.edu \
--cc=chao.wei@sophgo.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=inochiama@gmail.com \
--cc=jarkko.nikula@linux.intel.com \
--cc=jdelvare@suse.com \
--cc=jszhang@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux@roeck-us.net \
--cc=looong.bin@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=robh@kernel.org \
--cc=samuel.holland@sifive.com \
--cc=sophgo@lists.linux.dev \
--cc=tglx@linutronix.de \
--cc=thomas.bonnefille@bootlin.com \
--cc=ulf.hansson@linaro.org \
--cc=unicorn_wang@outlook.com \
/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