[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210130035939.GA3544@work>
Date: Sat, 30 Jan 2021 09:29:39 +0530
From: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
To: Bjorn Andersson <bjorn.andersson@...aro.org>
Cc: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
Andy Gross <agross@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Stanimir Varbanov <svarbanov@...sol.com>,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org
Subject: Re: [PATCH v2 2/5] arm64: qcom: dts: qrb5165-rb5: add qca6391 power
device
On Fri, Jan 29, 2021 at 09:47:37PM -0600, Bjorn Andersson wrote:
> On Thu 28 Jan 11:52 CST 2021, Dmitry Baryshkov wrote:
>
> > Add qca6391 to device tree as a way to provide power domain to WiFi and
> > BT parts of the chip.
> >
> > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
> > ---
> > arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 61 ++++++++++++++++++++++++
> > 1 file changed, 61 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
> > index 8aebc3660b11..2b0c1cc9333b 100644
> > --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
> > +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
> > @@ -151,6 +151,23 @@ vreg_s4a_1p8: vreg-s4a-1p8 {
> > regulator-max-microvolt = <1800000>;
> > regulator-always-on;
> > };
> > +
> > + qca6391: qca6391 {
> > + compatible = "qcom,qca6390";
> > + #power-domain-cells = <0>;
> > +
> > + vddaon-supply = <&vreg_s6a_0p95>;
> > + vddpmu-supply = <&vreg_s2f_0p95>;
> > + vddrfa1-supply = <&vreg_s2f_0p95>;
> > + vddrfa2-supply = <&vreg_s8c_1p3>;
> > + vddrfa3-supply = <&vreg_s5a_1p9>;
> > + vddpcie1-supply = <&vreg_s8c_1p3>;
> > + vddpcie2-supply = <&vreg_s5a_1p9>;
> > + vddio-supply = <&vreg_s4a_1p8>;
> > + pinctrl-names = "default", "active";
> > + pinctrl-0 = <&wlan_default_state &bt_default_state>;
> > + pinctrl-1 = <&wlan_active_state &bt_active_state>;
>
> I dislike the use of pinctrl states for toggling the level of the gpio
> and would prefer that you use the gpio binding and api for this instead.
>
> > + };
> > };
> >
> > &adsp {
> > @@ -1013,6 +1030,28 @@ &tlmm {
> > "HST_WLAN_UART_TX",
> > "HST_WLAN_UART_RX";
> >
> > + bt_default_state: bt-default-state {
>
> Are you sure you need to drive the BT_EN pin in order to have WiFi
> working? On QCA6174 I believe the "WL_EN" was actually RESET_N and BT_EN
> was actually "blueooth enable" - so we wired that in the bluetooth node
> instead.
>
IIRC, that's the case. We need both BT_EN and WL_EN for proper bringup of the
chip.
Thanks,
Mani
Powered by blists - more mailing lists