public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Icenowy Zheng <zhengxingda@iscas.ac.cn>
To: Chen-Yu Tsai <wenst@chromium.org>
Cc: Linus Walleij <linusw@kernel.org>, Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski	 <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Matthias Brugger	 <matthias.bgg@gmail.com>,
	AngeloGioacchino Del Regno	
	<angelogioacchino.delregno@collabora.com>,
	Hui Liu <hui.liu@mediatek.com>,
		linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
		linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
		linux-mediatek@lists.infradead.org
Subject: Re: [PATCH 2/2] arm64: dts: mediatek: mt8188-geralt: enable Wi-Fi card
Date: Wed, 06 May 2026 22:14:41 +0800	[thread overview]
Message-ID: <4a43edb8c7ae3f96f77272db89ec6450ffa28876.camel@iscas.ac.cn> (raw)
In-Reply-To: <CAGXv+5F6BSmqq5HEybuCSwt75LVzh5gvs2wQpqy3vgfLi60Dcg@mail.gmail.com>

在 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
> > 
> > 


  reply	other threads:[~2026-05-06 14:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2026-05-05 16:34 ` [PATCH 1/2] dt-bindings: pinctrl: mediatek: mt8188: allow gpio hogs Conor Dooley

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=4a43edb8c7ae3f96f77272db89ec6450ffa28876.camel@iscas.ac.cn \
    --to=zhengxingda@iscas.ac.cn \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hui.liu@mediatek.com \
    --cc=krzk+dt@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=robh@kernel.org \
    --cc=wenst@chromium.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