public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [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
  2026-05-05 16:34 ` [PATCH 1/2] dt-bindings: pinctrl: mediatek: mt8188: allow gpio hogs Conor Dooley
  0 siblings, 2 replies; 4+ 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] 4+ 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
  1 sibling, 1 reply; 4+ 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] 4+ 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
  0 siblings, 0 replies; 4+ 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] 4+ 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
  1 sibling, 0 replies; 4+ 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] 4+ messages in thread

end of thread, other threads:[~2026-05-05 16:34 UTC | newest]

Thread overview: 4+ 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-05 16:34 ` [PATCH 1/2] dt-bindings: pinctrl: mediatek: mt8188: allow gpio hogs Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox