mbox series

[0/3] Add initial support for BQ Aquaris X5

Message ID 20210124135409.5473-1-jonathan.albrieux@gmail.com (mailing list archive)
Headers show
Series Add initial support for BQ Aquaris X5 | expand

Message

Jonathan Albrieux Jan. 24, 2021, 1:54 p.m. UTC
Aquaris X5 (Longcheer L8910) is a smartphone released by BQ in 2015.

As part of msm8916-mainline project, this series aims to bring initial
mainline support for it.

Features added:
 - SDHCI (internal and external storage)
 - USB Device Mode
 - UART
 - Regulators
 - WiFi/BT
 - Volume buttons
 - Vibrator
 - Touchkeys backlight
 - Accelerometer and gyroscope sensor
 - Magnetometer sensor

Jonathan Albrieux (3):
  arm64: dts: qcom: Add device tree for BQ Aquaris X5 (Longcheer L8910)
  arm64: dts: qcom: msm8916: Add blsp_i2c3
  arm64: dts: qcom: msm8916-longcheer-l8910: Add imu/magnetometer

 arch/arm64/boot/dts/qcom/Makefile             |   1 +
 .../boot/dts/qcom/msm8916-longcheer-l8910.dts | 267 ++++++++++++++++++
 arch/arm64/boot/dts/qcom/msm8916-pins.dtsi    |  16 ++
 arch/arm64/boot/dts/qcom/msm8916.dtsi         |  15 +
 4 files changed, 299 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts

Comments

Pavel Machek Jan. 24, 2021, 9:01 p.m. UTC | #1
Hi!

> Aquaris X5 (Longcheer L8910) is a smartphone released by BQ in 2015.
> 
> As part of msm8916-mainline project, this series aims to bring initial
> mainline support for it.

Good to see another phone being supported. Can I ask you to cc:
phone-devel@vger.kernel.org with phone stuff?

> Features added:
>  - SDHCI (internal and external storage)
>  - USB Device Mode
>  - UART
>  - Regulators
>  - WiFi/BT
>  - Volume buttons
>  - Vibrator
>  - Touchkeys backlight
>  - Accelerometer and gyroscope sensor
>  - Magnetometer sensor

How close are you to having useful phone calls?

Best regards,
								Pavel
Stephan Gerhold Jan. 24, 2021, 9:49 p.m. UTC | #2
Hi Pavel,

On Sun, Jan 24, 2021 at 10:01:19PM +0100, Pavel Machek wrote:
> Hi!
> 
> > Aquaris X5 (Longcheer L8910) is a smartphone released by BQ in 2015.
> > 
> > As part of msm8916-mainline project, this series aims to bring initial
> > mainline support for it.
> 
> Good to see another phone being supported. Can I ask you to cc:
> phone-devel@vger.kernel.org with phone stuff?
> 
> > Features added:
> >  - SDHCI (internal and external storage)
> >  - USB Device Mode
> >  - UART
> >  - Regulators
> >  - WiFi/BT
> >  - Volume buttons
> >  - Vibrator
> >  - Touchkeys backlight
> >  - Accelerometer and gyroscope sensor
> >  - Magnetometer sensor
> 
> How close are you to having useful phone calls?
> 

You can do phone calls (with audio) and you can use mobile data, if you
have the patches for that. :) I'm trying to find time to finish up the
drivers needed for that, but I've been a bit short on time lately.

Actually we have come pretty far with MSM8916-based smartphones.
Most functionality is (somewhat) working at this point, the primary
open task is optimizing suspend/power consumption. Battery/charging
and camera is also tricky but works somewhat on some of the devices.

Most of the functionality is packaged in postmarketOS [1] and you can
find a list of the devices in the postmarketOS wiki [2]. Especially
the ones in the "community" category are quite similar in terms of
working functionality.

Stephan

[1]: https://postmarketos.org
[2]: https://wiki.postmarketos.org/wiki/Qualcomm_Snapdragon_410/412_(MSM8916)
Pavel Machek Jan. 27, 2021, 10:24 p.m. UTC | #3
Hi!

> > > Aquaris X5 (Longcheer L8910) is a smartphone released by BQ in 2015.
> > > 
> > > As part of msm8916-mainline project, this series aims to bring initial
> > > mainline support for it.
> > 
> > Good to see another phone being supported. Can I ask you to cc:
> > phone-devel@vger.kernel.org with phone stuff?
> > 
> > > Features added:
> > >  - SDHCI (internal and external storage)
> > >  - USB Device Mode
> > >  - UART
> > >  - Regulators
> > >  - WiFi/BT
> > >  - Volume buttons
> > >  - Vibrator
> > >  - Touchkeys backlight
> > >  - Accelerometer and gyroscope sensor
> > >  - Magnetometer sensor
> > 
> > How close are you to having useful phone calls?
> 
> You can do phone calls (with audio) and you can use mobile data, if you
> have the patches for that. :) I'm trying to find time to finish up the
> drivers needed for that, but I've been a bit short on time lately.

:-). 

> Actually we have come pretty far with MSM8916-based smartphones.
> Most functionality is (somewhat) working at this point, the primary
> open task is optimizing suspend/power consumption. Battery/charging
> and camera is also tricky but works somewhat on some of the devices.

Yes, power consumption is a lot of fun :-(.

> Most of the functionality is packaged in postmarketOS [1] and you can
> find a list of the devices in the postmarketOS wiki [2]. Especially
> the ones in the "community" category are quite similar in terms of
> working functionality.

I know about postmarketOS (I even contributed a bit some time ago),
and watch it from time to time. Currently I'm using old Nokia 6151 for
phone calls, but would not mind switching. Work is ongoing in Droid 4
land -- phone calls are also "almost there". But the almost seems to
be a lot of work :-(.

Best regards,
								Pavel
Stephan Gerhold Jan. 28, 2021, 9:27 a.m. UTC | #4
On Wed, Jan 27, 2021 at 11:24:07PM +0100, Pavel Machek wrote:
> > > How close are you to having useful phone calls?
> > 
> > You can do phone calls (with audio) and you can use mobile data, if you
> > have the patches for that. :) I'm trying to find time to finish up the
> > drivers needed for that, but I've been a bit short on time lately.
> 
> > Most of the functionality is packaged in postmarketOS [1] and you can
> > find a list of the devices in the postmarketOS wiki [2]. Especially
> > the ones in the "community" category are quite similar in terms of
> > working functionality.
> 
> I know about postmarketOS (I even contributed a bit some time ago),
> and watch it from time to time. Currently I'm using old Nokia 6151 for
> phone calls, but would not mind switching. Work is ongoing in Droid 4
> land -- phone calls are also "almost there". But the almost seems to
> be a lot of work :-(.
> 

It's fairly simple on Qualcomm SoCs once audio DSP and modem are working
(which is not that simple). I basically just tell the audio DSP to
stream voice call audio to the audio ports and then it does that without
involving the kernel.

It seems to work quite well, so far no one complained about quality or
something like that. Not sure if anyone is actively using it already
though :)

The work left is mainly making the driver more generic so it can work on
other Qualcomm SoCs as well (right now I have some things hardcoded).
Also, I still haven't fully figured out what is the best way to
integrate it into ASoC/UCM/..., so that it can be easily activated when
starting a voice call.

Stephan
Pavel Machek Feb. 2, 2021, 1:13 p.m. UTC | #5
Hi!

> > > > How close are you to having useful phone calls?
> > > 
> > > You can do phone calls (with audio) and you can use mobile data, if you
> > > have the patches for that. :) I'm trying to find time to finish up the
> > > drivers needed for that, but I've been a bit short on time lately.
> > 
> > > Most of the functionality is packaged in postmarketOS [1] and you can
> > > find a list of the devices in the postmarketOS wiki [2]. Especially
> > > the ones in the "community" category are quite similar in terms of
> > > working functionality.
> > 
> > I know about postmarketOS (I even contributed a bit some time ago),
> > and watch it from time to time. Currently I'm using old Nokia 6151 for
> > phone calls, but would not mind switching. Work is ongoing in Droid 4
> > land -- phone calls are also "almost there". But the almost seems to
> > be a lot of work :-(.
> > 
> 
> It's fairly simple on Qualcomm SoCs once audio DSP and modem are working
> (which is not that simple). I basically just tell the audio DSP to
> stream voice call audio to the audio ports and then it does that without
> involving the kernel.
> 
> It seems to work quite well, so far no one complained about quality or
> something like that. Not sure if anyone is actively using it already
> though :)

Ok, thanks for info :-). 

> The work left is mainly making the driver more generic so it can work on
> other Qualcomm SoCs as well (right now I have some things hardcoded).
> Also, I still haven't fully figured out what is the best way to
> integrate it into ASoC/UCM/..., so that it can be easily activated when
> starting a voice call.

On droid 4, we use mixer settings to configure audio system for a
call. Maemo Leste has some kind of component to automatically adjust
mixers when call is started. We use ofonod.

Best regards,
								Pavel