* [PATCH 1/2] dt-bindings: pinctrl: mediatek: mt8188: allow gpio hogs
@ 2026-05-04 7:27 Icenowy Zheng
2026-05-04 7:27 ` [PATCH 2/2] arm64: dts: mediatek: mt8188-geralt: enable Wi-Fi card Icenowy Zheng
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Icenowy Zheng @ 2026-05-04 7:27 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Hui Liu
Cc: linux-gpio, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, Icenowy Zheng
Add gpio hogs subnode rules to the MT8188 pinctrl binding.
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
---
.../devicetree/bindings/pinctrl/mediatek,mt8188-pinctrl.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8188-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8188-pinctrl.yaml
index e994b0c70dbfd..1cf06e46f7bb0 100644
--- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8188-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8188-pinctrl.yaml
@@ -67,6 +67,11 @@ properties:
# PIN CONFIGURATION NODES
patternProperties:
+ "-hog(-[0-9]+)?$":
+ type: object
+ required:
+ - gpio-hog
+
'-pins$':
type: object
additionalProperties: false
--
2.52.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] arm64: dts: mediatek: mt8188-geralt: enable Wi-Fi card
2026-05-04 7:27 [PATCH 1/2] dt-bindings: pinctrl: mediatek: mt8188: allow gpio hogs Icenowy Zheng
@ 2026-05-04 7:27 ` Icenowy Zheng
2026-05-04 7:34 ` Chen-Yu Tsai
2026-05-05 16:34 ` [PATCH 1/2] dt-bindings: pinctrl: mediatek: mt8188: allow gpio hogs Conor Dooley
2026-05-11 20:10 ` Linus Walleij
2 siblings, 1 reply; 7+ messages in thread
From: Icenowy Zheng @ 2026-05-04 7:27 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Hui Liu
Cc: linux-gpio, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, Icenowy Zheng
The mainline pcie-mediatek-gen3 driver does not have code managing
downstream device power / reset.
As the Wi-Fi card on ciri is a fixed device, set the related regulator
to always-on and use GPIO hog to set the status of its reset pin.
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
---
arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi b/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
index 8e423504ec052..c25780098103b 100644
--- a/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
@@ -544,6 +544,11 @@ &mt6359codec {
mediatek,mic-type-2 = <2>; /* DMIC */
};
+&mt6359_vcn18_ldo_reg {
+ /* Used by WLAN */
+ regulator-always-on;
+};
+
&mt6359_vcore_buck_reg {
regulator-always-on;
};
@@ -1145,6 +1150,12 @@ pins-en-pp3300-wlan {
output-low;
};
};
+
+ wlan-reset-hog {
+ gpio-hog;
+ gpios = <145 GPIO_ACTIVE_HIGH>;
+ output-high;
+ };
};
&pmic {
--
2.52.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] arm64: dts: mediatek: mt8188-geralt: enable Wi-Fi card
2026-05-04 7:27 ` [PATCH 2/2] arm64: dts: mediatek: mt8188-geralt: enable Wi-Fi card Icenowy Zheng
@ 2026-05-04 7:34 ` Chen-Yu Tsai
2026-05-06 14:14 ` Icenowy Zheng
0 siblings, 1 reply; 7+ messages in thread
From: Chen-Yu Tsai @ 2026-05-04 7:34 UTC (permalink / raw)
To: Icenowy Zheng
Cc: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Hui Liu, linux-gpio,
devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
Hi,
On Mon, May 4, 2026 at 3:28 PM Icenowy Zheng <zhengxingda@iscas.ac.cn> wrote:
>
> The mainline pcie-mediatek-gen3 driver does not have code managing
> downstream device power / reset.
>
> As the Wi-Fi card on ciri is a fixed device, set the related regulator
> to always-on and use GPIO hog to set the status of its reset pin.
The plan now is to model it as an M.2 E-key slot (even though the chip
is actually soldered on the main board).
I have some of the patches ready, but I'm still working out the USB
side of it.
ChenYu
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> ---
> arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi b/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> index 8e423504ec052..c25780098103b 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> @@ -544,6 +544,11 @@ &mt6359codec {
> mediatek,mic-type-2 = <2>; /* DMIC */
> };
>
> +&mt6359_vcn18_ldo_reg {
> + /* Used by WLAN */
> + regulator-always-on;
> +};
> +
> &mt6359_vcore_buck_reg {
> regulator-always-on;
> };
> @@ -1145,6 +1150,12 @@ pins-en-pp3300-wlan {
> output-low;
> };
> };
> +
> + wlan-reset-hog {
> + gpio-hog;
> + gpios = <145 GPIO_ACTIVE_HIGH>;
> + output-high;
> + };
> };
>
> &pmic {
> --
> 2.52.0
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: pinctrl: mediatek: mt8188: allow gpio hogs
2026-05-04 7:27 [PATCH 1/2] dt-bindings: pinctrl: mediatek: mt8188: allow gpio hogs Icenowy Zheng
2026-05-04 7:27 ` [PATCH 2/2] arm64: dts: mediatek: mt8188-geralt: enable Wi-Fi card Icenowy Zheng
@ 2026-05-05 16:34 ` Conor Dooley
2026-05-11 20:10 ` Linus Walleij
2 siblings, 0 replies; 7+ messages in thread
From: Conor Dooley @ 2026-05-05 16:34 UTC (permalink / raw)
To: Icenowy Zheng
Cc: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Hui Liu, linux-gpio,
devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
On Mon, May 04, 2026 at 03:27:47PM +0800, Icenowy Zheng wrote:
> Add gpio hogs subnode rules to the MT8188 pinctrl binding.
>
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] arm64: dts: mediatek: mt8188-geralt: enable Wi-Fi card
2026-05-04 7:34 ` Chen-Yu Tsai
@ 2026-05-06 14:14 ` Icenowy Zheng
2026-05-12 9:10 ` Chen-Yu Tsai
0 siblings, 1 reply; 7+ messages in thread
From: Icenowy Zheng @ 2026-05-06 14:14 UTC (permalink / raw)
To: Chen-Yu Tsai
Cc: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Hui Liu, linux-gpio,
devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
在 2026-05-04一的 15:34 +0800,Chen-Yu Tsai写道:
> Hi,
>
> On Mon, May 4, 2026 at 3:28 PM Icenowy Zheng
> <zhengxingda@iscas.ac.cn> wrote:
> >
> > The mainline pcie-mediatek-gen3 driver does not have code managing
> > downstream device power / reset.
> >
> > As the Wi-Fi card on ciri is a fixed device, set the related
> > regulator
> > to always-on and use GPIO hog to set the status of its reset pin.
>
> The plan now is to model it as an M.2 E-key slot (even though the
> chip
> is actually soldered on the main board).
Interestingly I saw a "PCI_PWRCTRL_GENERIC" driver in 7.1, although it
does not support toggling #PERST now -- maybe this should be done and
used instead? (Well it looks like the driver had existed for some time,
but it was for "slots" previously)
Thanks,
Icenowy
>
> I have some of the patches ready, but I'm still working out the USB
> side of it.
>
>
> ChenYu
>
> > Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> > ---
> > arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi | 11 +++++++++++
> > 1 file changed, 11 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> > b/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> > index 8e423504ec052..c25780098103b 100644
> > --- a/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> > +++ b/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> > @@ -544,6 +544,11 @@ &mt6359codec {
> > mediatek,mic-type-2 = <2>; /* DMIC */
> > };
> >
> > +&mt6359_vcn18_ldo_reg {
> > + /* Used by WLAN */
> > + regulator-always-on;
> > +};
> > +
> > &mt6359_vcore_buck_reg {
> > regulator-always-on;
> > };
> > @@ -1145,6 +1150,12 @@ pins-en-pp3300-wlan {
> > output-low;
> > };
> > };
> > +
> > + wlan-reset-hog {
> > + gpio-hog;
> > + gpios = <145 GPIO_ACTIVE_HIGH>;
> > + output-high;
> > + };
> > };
> >
> > &pmic {
> > --
> > 2.52.0
> >
> >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: pinctrl: mediatek: mt8188: allow gpio hogs
2026-05-04 7:27 [PATCH 1/2] dt-bindings: pinctrl: mediatek: mt8188: allow gpio hogs Icenowy Zheng
2026-05-04 7:27 ` [PATCH 2/2] arm64: dts: mediatek: mt8188-geralt: enable Wi-Fi card Icenowy Zheng
2026-05-05 16:34 ` [PATCH 1/2] dt-bindings: pinctrl: mediatek: mt8188: allow gpio hogs Conor Dooley
@ 2026-05-11 20:10 ` Linus Walleij
2 siblings, 0 replies; 7+ messages in thread
From: Linus Walleij @ 2026-05-11 20:10 UTC (permalink / raw)
To: Icenowy Zheng
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Hui Liu, linux-gpio, devicetree,
linux-kernel, linux-arm-kernel, linux-mediatek
On Mon, May 4, 2026 at 9:28 AM Icenowy Zheng <zhengxingda@iscas.ac.cn> wrote:
> Add gpio hogs subnode rules to the MT8188 pinctrl binding.
>
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
This patch 1/2 applied to the pinctrl tree.
Please funnel patch 2/2 through the SoC tree.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] arm64: dts: mediatek: mt8188-geralt: enable Wi-Fi card
2026-05-06 14:14 ` Icenowy Zheng
@ 2026-05-12 9:10 ` Chen-Yu Tsai
0 siblings, 0 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2026-05-12 9:10 UTC (permalink / raw)
To: Icenowy Zheng
Cc: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Matthias Brugger, AngeloGioacchino Del Regno, Hui Liu, linux-gpio,
devicetree, linux-kernel, linux-arm-kernel, linux-mediatek
On Wed, May 6, 2026 at 10:14 PM Icenowy Zheng <zhengxingda@iscas.ac.cn> wrote:
>
> 在 2026-05-04一的 15:34 +0800,Chen-Yu Tsai写道:
> > Hi,
> >
> > On Mon, May 4, 2026 at 3:28 PM Icenowy Zheng
> > <zhengxingda@iscas.ac.cn> wrote:
> > >
> > > The mainline pcie-mediatek-gen3 driver does not have code managing
> > > downstream device power / reset.
> > >
> > > As the Wi-Fi card on ciri is a fixed device, set the related
> > > regulator
> > > to always-on and use GPIO hog to set the status of its reset pin.
> >
> > The plan now is to model it as an M.2 E-key slot (even though the
> > chip
> > is actually soldered on the main board).
>
> Interestingly I saw a "PCI_PWRCTRL_GENERIC" driver in 7.1, although it
> does not support toggling #PERST now -- maybe this should be done and
> used instead? (Well it looks like the driver had existed for some time,
> but it was for "slots" previously)
#PERST currently is still left to the PCI controller drivers, since some
of them have dedicated functions for it, while others use the GPIO API.
If you check the history of the "PCI pwrctrl framework" [1], you will
see the design choice.
[1] https://lore.kernel.org/all/20260115-pci-pwrctrl-rework-v5-0-9d26da3ce903@oss.qualcomm.com/
> Thanks,
> Icenowy
>
> >
> > I have some of the patches ready, but I'm still working out the USB
> > side of it.
> >
> >
> > ChenYu
> >
> > > Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> > > ---
> > > arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi | 11 +++++++++++
> > > 1 file changed, 11 insertions(+)
> > >
> > > diff --git a/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> > > b/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> > > index 8e423504ec052..c25780098103b 100644
> > > --- a/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> > > +++ b/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> > > @@ -544,6 +544,11 @@ &mt6359codec {
> > > mediatek,mic-type-2 = <2>; /* DMIC */
> > > };
> > >
> > > +&mt6359_vcn18_ldo_reg {
> > > + /* Used by WLAN */
> > > + regulator-always-on;
> > > +};
> > > +
> > > &mt6359_vcore_buck_reg {
> > > regulator-always-on;
> > > };
> > > @@ -1145,6 +1150,12 @@ pins-en-pp3300-wlan {
> > > output-low;
> > > };
> > > };
> > > +
> > > + wlan-reset-hog {
> > > + gpio-hog;
> > > + gpios = <145 GPIO_ACTIVE_HIGH>;
> > > + output-high;
> > > + };
> > > };
> > >
> > > &pmic {
> > > --
> > > 2.52.0
> > >
> > >
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-05-12 9:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-04 7:27 [PATCH 1/2] dt-bindings: pinctrl: mediatek: mt8188: allow gpio hogs Icenowy Zheng
2026-05-04 7:27 ` [PATCH 2/2] arm64: dts: mediatek: mt8188-geralt: enable Wi-Fi card Icenowy Zheng
2026-05-04 7:34 ` Chen-Yu Tsai
2026-05-06 14:14 ` Icenowy Zheng
2026-05-12 9:10 ` Chen-Yu Tsai
2026-05-05 16:34 ` [PATCH 1/2] dt-bindings: pinctrl: mediatek: mt8188: allow gpio hogs Conor Dooley
2026-05-11 20:10 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox