Message ID | 20241101053154.497550-1-alexey.klimov@linaro.org |
---|---|
Headers | show |
Series | qrb4210-rb2: add wsa/wcd audio playback support | expand |
On Fri, Nov 01, 2024 at 05:31:47AM +0000, Alexey Klimov wrote: > &tlmm { > gpio-reserved-ranges = <43 2>, <49 1>, <54 1>, > <56 3>, <61 2>, <64 1>, > @@ -691,6 +731,21 @@ sdc2_card_det_n: sd-card-det-n-state { > drive-strength = <2>; > bias-pull-up; > }; > + > + wcd_reset_n: wcd-reset-n-state { > + pins = "gpio82"; > + function = "gpio"; > + drive-strength = <16>; > + output-high; > + }; > + > + wcd_reset_n_sleep: wcd-reset-n-sleep-state { Where is it used? Best regards, Krzysztof
On 1.11.2024 6:31 AM, Alexey Klimov wrote: > One WSA881X amplifier is connected on QRB4210 RB2 board > hence only mono speaker is supported. This amplifier is set > to work in analog mode only. Also add required powerdown > pins/gpios. > > Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> > Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> > --- > arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 45 ++++++++++++++++++++++++ > 1 file changed, 45 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts > index fc71f5930688..76b9ae1b0ebc 100644 > --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts > +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts > @@ -63,6 +63,16 @@ hdmi_con: endpoint { > }; > }; > > + i2c0_gpio: i2c0 { > + compatible = "i2c-gpio"; > + > + sda-gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>; > + scl-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; Does it not work with &i2c1? Konrad
On Fri Nov 1, 2024 at 7:59 AM GMT, Krzysztof Kozlowski wrote: > On Fri, Nov 01, 2024 at 05:31:47AM +0000, Alexey Klimov wrote: > > &tlmm { > > gpio-reserved-ranges = <43 2>, <49 1>, <54 1>, > > <56 3>, <61 2>, <64 1>, > > @@ -691,6 +731,21 @@ sdc2_card_det_n: sd-card-det-n-state { > > drive-strength = <2>; > > bias-pull-up; > > }; > > + > > + wcd_reset_n: wcd-reset-n-state { > > + pins = "gpio82"; > > + function = "gpio"; > > + drive-strength = <16>; > > + output-high; > > + }; > > + > > + wcd_reset_n_sleep: wcd-reset-n-sleep-state { > > Where is it used? Right. I'll remove it. Thanks, Alexey
On Sat Nov 2, 2024 at 9:30 AM GMT, Konrad Dybcio wrote: > On 1.11.2024 6:31 AM, Alexey Klimov wrote: > > One WSA881X amplifier is connected on QRB4210 RB2 board > > hence only mono speaker is supported. This amplifier is set > > to work in analog mode only. Also add required powerdown > > pins/gpios. > > > > Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> > > Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> > > --- > > arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 45 ++++++++++++++++++++++++ > > 1 file changed, 45 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts > > index fc71f5930688..76b9ae1b0ebc 100644 > > --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts > > +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts > > @@ -63,6 +63,16 @@ hdmi_con: endpoint { > > }; > > }; > > > > + i2c0_gpio: i2c0 { > > + compatible = "i2c-gpio"; > > + > > + sda-gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>; > > + scl-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + status = "disabled"; > > Does it not work with &i2c1? Actually it does work with i2c1 (non-gpio version). I am going to use that and will see how it behaves. Thanks! Best regards, Alexey