From: Conor Dooley <conor@kernel.org>
To: Jack Hsu <jh.hsu@mediatek.com>
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com,
andy@kernel.org, matthias.bgg@gmail.com,
angelogioacchino.delregno@collabora.com, srini@kernel.org,
ukleinek@kernel.org, gregkh@linuxfoundation.org,
jirislaby@kernel.org, daniel.lezcano@linaro.org,
tglx@linutronix.de, chunfeng.yun@mediatek.com,
wim@linux-watchdog.org, linux@roeck-us.net,
sean.wang@mediatek.com, zhiyong.tao@mediatek.com,
andrew-ct.chen@mediatek.com, lala.lin@mediatek.com,
jitao.shi@mediatek.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-pwm@vger.kernel.org,
linux-serial@vger.kernel.org, linux-usb@vger.kernel.org,
linux-watchdog@vger.kernel.org,
Project_Global_Chrome_Upstream_Group@mediatek.com
Subject: Re: [PATCH v6 10/11] arm64: dts: mediatek: add properties for MT6359
Date: Thu, 30 Oct 2025 19:46:15 +0000 [thread overview]
Message-ID: <20251030-boaster-chewing-61d458aa6c9e@spud> (raw)
In-Reply-To: <20251030134541.784011-11-jh.hsu@mediatek.com>
[-- Attachment #1: Type: text/plain, Size: 3932 bytes --]
On Thu, Oct 30, 2025 at 09:44:42PM +0800, Jack Hsu wrote:
> Add properties of rtc fg (Fuel Gauge), external crystal
> and auxadc definition for mt6359 pmic.
>
> Signed-off-by: Jack Hsu <jh.hsu@mediatek.com>
> ---
> arch/arm64/boot/dts/mediatek/mt6359.dtsi | 20 ++++++++++
> include/dt-bindings/iio/mt635x-auxadc.h | 50 ++++++++++++++++++++++++
> 2 files changed, 70 insertions(+)
> create mode 100644 include/dt-bindings/iio/mt635x-auxadc.h
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt6359.dtsi b/arch/arm64/boot/dts/mediatek/mt6359.dtsi
> index 467d8a4c2aa7..cc7053bdd292 100644
> --- a/arch/arm64/boot/dts/mediatek/mt6359.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt6359.dtsi
> @@ -3,6 +3,8 @@
> * Copyright (C) 2022 MediaTek Inc.
> */
>
> +#include <dt-bindings/iio/mt635x-auxadc.h>
> +
> &pwrap {
> pmic: pmic {
> compatible = "mediatek,mt6359";
> @@ -302,6 +304,24 @@ mt6359_vsram_others_sshub_ldo: ldo_vsram_others_sshub {
>
> mt6359rtc: rtc {
> compatible = "mediatek,mt6358-rtc";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + status = "disabled";
> +
> + fginit: fginit {
> + reg = <0 0x1>;
> + bits = <0 8>;
> + };
Uhhhh, what on earth is going on here? This is an RTC, what does
fuelgauge stuff have to do with it? Did you test this at all? What does
it even do? Very confused.
> +
> + fgsoc: fgsoc {
> + reg = <1 0x1>;
> + bits = <0 8>;
> + };
> +
> + ext32k: ext32k {
> + reg = <2 0x1>;
> + bits = <6 1>;
> + };
> };
> };
> };
> diff --git a/include/dt-bindings/iio/mt635x-auxadc.h b/include/dt-bindings/iio/mt635x-auxadc.h
> new file mode 100644
> index 000000000000..69ba13a7b9ec
> --- /dev/null
> +++ b/include/dt-bindings/iio/mt635x-auxadc.h
> @@ -0,0 +1,50 @@
> +/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
> +/*
> + * Copyright (c) 2020 MediaTek Inc.
> + */
> +
> +#ifndef _DT_BINDINGS_MT635X_AUXADC_H
> +#define _DT_BINDINGS_MT635X_AUXADC_H
> +
> +/* PMIC MT635x AUXADC channels */
> +#define AUXADC_BATADC 0x00
> +#define AUXADC_ISENSE 0x01
> +#define AUXADC_VCDT 0x02
> +#define AUXADC_BAT_TEMP 0x03
> +#define AUXADC_BATID 0x04
> +#define AUXADC_CHIP_TEMP 0x05
> +#define AUXADC_VCORE_TEMP 0x06
> +#define AUXADC_VPROC_TEMP 0x07
> +#define AUXADC_VGPU_TEMP 0x08
> +#define AUXADC_ACCDET 0x09
> +#define AUXADC_VDCXO 0x0a
> +#define AUXADC_TSX_TEMP 0x0b
> +#define AUXADC_HPOFS_CAL 0x0c
> +#define AUXADC_DCXO_TEMP 0x0d
> +#define AUXADC_VBIF 0x0e
> +#define AUXADC_IMP 0x0f
> +#define AUXADC_IMIX_R 0x10
> +#define AUXADC_VTREF 0x11
> +#define AUXADC_VSYSSNS 0x12
> +#define AUXADC_VIN1 0x13
> +#define AUXADC_VIN2 0x14
> +#define AUXADC_VIN3 0x15
> +#define AUXADC_VIN4 0x16
> +#define AUXADC_VIN5 0x17
> +#define AUXADC_VIN6 0x18
> +#define AUXADC_VIN7 0x19
What has this fine got to do with the node you're adding above? I don't
understand why this is in this patch.
There's random whitespace problems in it, and half the defines look
bizarre. This seems like it should be in the same patch as some binding
changes for an iio device? The mt635x auxadc binding doesn't even permit
anything that would use any of the properties beyond this point.
NAK.
> +
> +#define AUXADC_CHAN_MIN AUXADC_BATADC
> +#define AUXADC_CHAN_MAX AUXADC_VIN7
> +
> +#define ADC_PURES_100K (0)
> +#define ADC_PURES_30K (1)
> +#define ADC_PURES_400K (2)
> +#define ADC_PURES_OPEN (3)
> +
> +#define ADC_PURES_100K_MASK (ADC_PURES_100K << 8)
> +#define ADC_PURES_30K_MASK (ADC_PURES_30K << 8)
> +#define ADC_PURES_400K_MASK (ADC_PURES_400K << 8)
> +#define ADC_PURES_OPEN_MASK (ADC_PURES_OPEN << 8)
> +
> +#endif /* _DT_BINDINGS_MT635X_AUXADC_H */
> --
> 2.45.2
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2025-10-30 19:46 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-30 13:44 [PATCH v6 00/11] Add mt8189 dts evaluation board and Makefile Jack Hsu
2025-10-30 13:44 ` [PATCH v6 01/11] dt-bindings: arm: Add compatible for MediaTek MT8189 Jack Hsu
2025-10-30 19:30 ` Conor Dooley
2025-10-30 13:44 ` [PATCH v6 02/11] dt-bindings: iio: adc: Support MediaTek MT8189 evb board auxadc Jack Hsu
2025-10-30 19:30 ` Conor Dooley
2025-11-01 16:28 ` Jonathan Cameron
2025-10-30 13:44 ` [PATCH v6 03/11] dt-bindings: nvmem: Support MediaTek MT8189 evb board efuse Jack Hsu
2025-10-30 19:31 ` Conor Dooley
2025-10-30 13:44 ` [PATCH v6 04/11] dt-bindings: pwm: Support MediaTek MT8189 evb board disp-pwm Jack Hsu
2025-10-30 17:20 ` Uwe Kleine-König
2025-10-30 19:36 ` Conor Dooley
2025-10-30 13:44 ` [PATCH v6 05/11] dt-bindings: serial: Support MediaTek MT8189 evb board uart Jack Hsu
2025-10-30 13:44 ` [PATCH v6 06/11] dt-bindings: timer: Support MediaTek MT8189 evb board timer Jack Hsu
2025-10-30 19:30 ` Conor Dooley
2025-10-30 13:44 ` [PATCH v6 07/11] dt-bindings: usb: Support MediaTek MT8189 evb board xhci Jack Hsu
2025-10-30 19:32 ` Conor Dooley
2025-10-31 8:19 ` Krzysztof Kozlowski
2025-10-31 10:38 ` Conor Dooley
2025-10-31 8:18 ` Krzysztof Kozlowski
2025-10-30 13:44 ` [PATCH v6 08/11] dt-bindings: watchdog: Support MediaTek MT8189 evb board wdt Jack Hsu
2025-10-30 19:32 ` Conor Dooley
2025-10-30 20:55 ` Guenter Roeck
2025-10-30 13:44 ` [PATCH v6 09/11] arm64: dts: mediatek: Add MT6319 PMIC Support Jack Hsu
2025-10-30 19:34 ` Conor Dooley
2025-10-30 13:44 ` [PATCH v6 10/11] arm64: dts: mediatek: add properties for MT6359 Jack Hsu
2025-10-30 19:46 ` Conor Dooley [this message]
2025-10-30 13:44 ` [PATCH v6 11/11] arm64: dts: mediatek: Add mt8189 evaluation board dts Jack Hsu
2025-10-30 19:49 ` [PATCH v6 00/11] Add mt8189 dts evaluation board and Makefile Conor Dooley
2025-11-05 7:06 ` Jh Hsu (許希孜)
2025-11-05 18:48 ` Conor Dooley
2025-11-06 5:33 ` Jh Hsu (許希孜)
2025-11-05 16:58 ` (subset) " Srinivas Kandagatla
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=20251030-boaster-chewing-61d458aa6c9e@spud \
--to=conor@kernel.org \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=andrew-ct.chen@mediatek.com \
--cc=andy@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunfeng.yun@mediatek.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=gregkh@linuxfoundation.org \
--cc=jh.hsu@mediatek.com \
--cc=jic23@kernel.org \
--cc=jirislaby@kernel.org \
--cc=jitao.shi@mediatek.com \
--cc=krzk+dt@kernel.org \
--cc=lala.lin@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=matthias.bgg@gmail.com \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
--cc=sean.wang@mediatek.com \
--cc=srini@kernel.org \
--cc=tglx@linutronix.de \
--cc=ukleinek@kernel.org \
--cc=wim@linux-watchdog.org \
--cc=zhiyong.tao@mediatek.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