mbox series

[v15,0/3] Add support for the Purism Librem5 devkit

Message ID 20190528125747.1047-1-angus@akkea.ca
Headers show
Series Add support for the Purism Librem5 devkit | expand

Message

Angus Ainslie May 28, 2019, 12:57 p.m. UTC
The Librem5 devkit is based on the imx8mq from NXP. This is a default
devicetree to boot the board to a command prompt.

Changes since v14:

Add regulator-always-on for the SNVS regulators.
Added pgc nodes.
Fixed charger pre-current.

Changes since v13:

Moved haptic motor from pwm-led to gpio-vibrator.
Cleaned up regulator node naming.
Whitescpace cleanup.
Re-indent pinmux stanzas.
Drop pwm2 node.
Drop MAINTAINERS patch.

Changes since v12:

Updated patch to vendor-prefixes.yaml.
Dropped always on from regulators.

Changes since v11:

Added reviewed-by tags.
Fixed subject typo.

Changes since v10:

Moved MAINTAINERS entry to "ARM/FREESCALE IMX" section

Changes since v9:

Added a MAINTAINERS entry for arm64 imx devicetree files.

Changes since v8:

Fixed license comment.
Changed regulators to all lower case.
Changed clock frequency for NXP errata e7805.
Dropped blank line.

Changes since v7:

More regulators always on for USB.
Add vbus regulator.
Drop vbat regulator.
Replace legacy "gpio-key,wakeup" with "wakeup-source".
Add vbus-supply to get rid of warning
imx8mq-usb-phy 382f0040.usb-phy: 382f0040.usb-phy supply vbus not found,
using dummy regulator

Changes since v6:

Dropped unused regulators.
Fix regulator phandles case.
Dropped extra whitespace.

Changes since v5:

Added reviewed-by tags.
Moved USB port links to USB controller node.

Changes since v4:

Compiled against linux-next next-20190415.
Added imx8mq to the arm yaml file.
Re-arrange regulator nodes to drop undefined supplies.
Additional ordering for aesthetics.
Split some long lines.
Added lots of blank lines.
Moved pinctl muxes to where they are used.
Cleaned out reg defintions from regulator nodes.

Changes since v3:

Freshly sorted and pressed nodes.
Change the backlight to an interpolated scale.
Dropped i2c2.
Dropped devkit version number to match debian MR.

Changes since v2:

Fixed incorrect phy-supply for the fsl-fec.
Dropped unused regulator property.
Fixup Makefile for linux-next.

Changes since v1:

Dropped config file.
Updated the board compatible label.
Changed node names to follow naming conventions.
Added a more complete regulator hierachy.
Removed unused nodes.
Removed unknown devices.
Fixed comment style.
Dropped undocumented properties.

Angus Ainslie (Purism) (3):
  arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit
  dt-bindings: Add an entry for Purism SPC
  dt-bindings: arm: fsl: Add the imx8mq boards

 .../devicetree/bindings/arm/fsl.yaml          |   7 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 arch/arm64/boot/dts/freescale/Makefile        |   1 +
 .../dts/freescale/imx8mq-librem5-devkit.dts   | 806 ++++++++++++++++++
 4 files changed, 816 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts

Comments

Shawn Guo June 5, 2019, 9:03 a.m. UTC | #1
On Tue, May 28, 2019 at 05:57:44AM -0700, Angus Ainslie (Purism) wrote:
> The Librem5 devkit is based on the imx8mq from NXP. This is a default
> devicetree to boot the board to a command prompt.
> 
> Changes since v14:
> 
> Add regulator-always-on for the SNVS regulators.
> Added pgc nodes.
> Fixed charger pre-current.

Since Pavel was reviewing your patches, you should copy him on the new
version.  Has this version addressed all his review comments?

Shawn

> 
> Changes since v13:
> 
> Moved haptic motor from pwm-led to gpio-vibrator.
> Cleaned up regulator node naming.
> Whitescpace cleanup.
> Re-indent pinmux stanzas.
> Drop pwm2 node.
> Drop MAINTAINERS patch.
> 
> Changes since v12:
> 
> Updated patch to vendor-prefixes.yaml.
> Dropped always on from regulators.
> 
> Changes since v11:
> 
> Added reviewed-by tags.
> Fixed subject typo.
> 
> Changes since v10:
> 
> Moved MAINTAINERS entry to "ARM/FREESCALE IMX" section
> 
> Changes since v9:
> 
> Added a MAINTAINERS entry for arm64 imx devicetree files.
> 
> Changes since v8:
> 
> Fixed license comment.
> Changed regulators to all lower case.
> Changed clock frequency for NXP errata e7805.
> Dropped blank line.
> 
> Changes since v7:
> 
> More regulators always on for USB.
> Add vbus regulator.
> Drop vbat regulator.
> Replace legacy "gpio-key,wakeup" with "wakeup-source".
> Add vbus-supply to get rid of warning
> imx8mq-usb-phy 382f0040.usb-phy: 382f0040.usb-phy supply vbus not found,
> using dummy regulator
> 
> Changes since v6:
> 
> Dropped unused regulators.
> Fix regulator phandles case.
> Dropped extra whitespace.
> 
> Changes since v5:
> 
> Added reviewed-by tags.
> Moved USB port links to USB controller node.
> 
> Changes since v4:
> 
> Compiled against linux-next next-20190415.
> Added imx8mq to the arm yaml file.
> Re-arrange regulator nodes to drop undefined supplies.
> Additional ordering for aesthetics.
> Split some long lines.
> Added lots of blank lines.
> Moved pinctl muxes to where they are used.
> Cleaned out reg defintions from regulator nodes.
> 
> Changes since v3:
> 
> Freshly sorted and pressed nodes.
> Change the backlight to an interpolated scale.
> Dropped i2c2.
> Dropped devkit version number to match debian MR.
> 
> Changes since v2:
> 
> Fixed incorrect phy-supply for the fsl-fec.
> Dropped unused regulator property.
> Fixup Makefile for linux-next.
> 
> Changes since v1:
> 
> Dropped config file.
> Updated the board compatible label.
> Changed node names to follow naming conventions.
> Added a more complete regulator hierachy.
> Removed unused nodes.
> Removed unknown devices.
> Fixed comment style.
> Dropped undocumented properties.
> 
> Angus Ainslie (Purism) (3):
>   arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit
>   dt-bindings: Add an entry for Purism SPC
>   dt-bindings: arm: fsl: Add the imx8mq boards
> 
>  .../devicetree/bindings/arm/fsl.yaml          |   7 +
>  .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
>  arch/arm64/boot/dts/freescale/Makefile        |   1 +
>  .../dts/freescale/imx8mq-librem5-devkit.dts   | 806 ++++++++++++++++++
>  4 files changed, 816 insertions(+)
>  create mode 100644 arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
> 
> -- 
> 2.17.1
>
Angus Ainslie June 5, 2019, 12:48 p.m. UTC | #2
On 2019-06-05 03:03, Shawn Guo wrote:
> On Tue, May 28, 2019 at 05:57:44AM -0700, Angus Ainslie (Purism) wrote:
>> The Librem5 devkit is based on the imx8mq from NXP. This is a default
>> devicetree to boot the board to a command prompt.
>> 
>> Changes since v14:
>> 
>> Add regulator-always-on for the SNVS regulators.
>> Added pgc nodes.
>> Fixed charger pre-current.
> 
> Since Pavel was reviewing your patches, you should copy him on the new
> version.  Has this version addressed all his review comments?
> 

Sorry I had meant to include him in the CC.

I believe so but don't want to speak for him so we should see if he has 
anymore.

Angus

> Shawn
> 
>> 
>> Changes since v13:
>> 
>> Moved haptic motor from pwm-led to gpio-vibrator.
>> Cleaned up regulator node naming.
>> Whitescpace cleanup.
>> Re-indent pinmux stanzas.
>> Drop pwm2 node.
>> Drop MAINTAINERS patch.
>> 
>> Changes since v12:
>> 
>> Updated patch to vendor-prefixes.yaml.
>> Dropped always on from regulators.
>> 
>> Changes since v11:
>> 
>> Added reviewed-by tags.
>> Fixed subject typo.
>> 
>> Changes since v10:
>> 
>> Moved MAINTAINERS entry to "ARM/FREESCALE IMX" section
>> 
>> Changes since v9:
>> 
>> Added a MAINTAINERS entry for arm64 imx devicetree files.
>> 
>> Changes since v8:
>> 
>> Fixed license comment.
>> Changed regulators to all lower case.
>> Changed clock frequency for NXP errata e7805.
>> Dropped blank line.
>> 
>> Changes since v7:
>> 
>> More regulators always on for USB.
>> Add vbus regulator.
>> Drop vbat regulator.
>> Replace legacy "gpio-key,wakeup" with "wakeup-source".
>> Add vbus-supply to get rid of warning
>> imx8mq-usb-phy 382f0040.usb-phy: 382f0040.usb-phy supply vbus not 
>> found,
>> using dummy regulator
>> 
>> Changes since v6:
>> 
>> Dropped unused regulators.
>> Fix regulator phandles case.
>> Dropped extra whitespace.
>> 
>> Changes since v5:
>> 
>> Added reviewed-by tags.
>> Moved USB port links to USB controller node.
>> 
>> Changes since v4:
>> 
>> Compiled against linux-next next-20190415.
>> Added imx8mq to the arm yaml file.
>> Re-arrange regulator nodes to drop undefined supplies.
>> Additional ordering for aesthetics.
>> Split some long lines.
>> Added lots of blank lines.
>> Moved pinctl muxes to where they are used.
>> Cleaned out reg defintions from regulator nodes.
>> 
>> Changes since v3:
>> 
>> Freshly sorted and pressed nodes.
>> Change the backlight to an interpolated scale.
>> Dropped i2c2.
>> Dropped devkit version number to match debian MR.
>> 
>> Changes since v2:
>> 
>> Fixed incorrect phy-supply for the fsl-fec.
>> Dropped unused regulator property.
>> Fixup Makefile for linux-next.
>> 
>> Changes since v1:
>> 
>> Dropped config file.
>> Updated the board compatible label.
>> Changed node names to follow naming conventions.
>> Added a more complete regulator hierachy.
>> Removed unused nodes.
>> Removed unknown devices.
>> Fixed comment style.
>> Dropped undocumented properties.
>> 
>> Angus Ainslie (Purism) (3):
>>   arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit
>>   dt-bindings: Add an entry for Purism SPC
>>   dt-bindings: arm: fsl: Add the imx8mq boards
>> 
>>  .../devicetree/bindings/arm/fsl.yaml          |   7 +
>>  .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
>>  arch/arm64/boot/dts/freescale/Makefile        |   1 +
>>  .../dts/freescale/imx8mq-librem5-devkit.dts   | 806 
>> ++++++++++++++++++
>>  4 files changed, 816 insertions(+)
>>  create mode 100644 
>> arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
>> 
>> --
>> 2.17.1
>>
Pavel Machek June 10, 2019, 1:52 p.m. UTC | #3
On Wed 2019-06-05 06:48:05, Angus Ainslie wrote:
> On 2019-06-05 03:03, Shawn Guo wrote:
> >On Tue, May 28, 2019 at 05:57:44AM -0700, Angus Ainslie (Purism) wrote:
> >>The Librem5 devkit is based on the imx8mq from NXP. This is a default
> >>devicetree to boot the board to a command prompt.
> >>
> >>Changes since v14:
> >>
> >>Add regulator-always-on for the SNVS regulators.
> >>Added pgc nodes.
> >>Fixed charger pre-current.
> >
> >Since Pavel was reviewing your patches, you should copy him on the new
> >version.  Has this version addressed all his review comments?
> >
> 
> Sorry I had meant to include him in the CC.
> 
> I believe so but don't want to speak for him so we should see if he
> has anymore.

I did not check the code, sorry.

I still believe your shutdown voltage is too low; try that. Battery will go down from 3V
to 2.8V in seconds, so you don't really gain anything by using lower threshold, and you
may not even have enough time to shutdown the system if you set it too low.

Normally something like 3.0V, 3.2V is reasonable shutdown voltage.

Best regards,
										Pavel
Angus Ainslie June 12, 2019, 3:02 p.m. UTC | #4
Hi Pavel,

On 2019-06-10 07:52, Pavel Machek wrote:
> On Wed 2019-06-05 06:48:05, Angus Ainslie wrote:
>> On 2019-06-05 03:03, Shawn Guo wrote:
>> >On Tue, May 28, 2019 at 05:57:44AM -0700, Angus Ainslie (Purism) wrote:
>> >>The Librem5 devkit is based on the imx8mq from NXP. This is a default
>> >>devicetree to boot the board to a command prompt.
>> >>
>> >>Changes since v14:
>> >>
>> >>Add regulator-always-on for the SNVS regulators.
>> >>Added pgc nodes.
>> >>Fixed charger pre-current.
>> >
>> >Since Pavel was reviewing your patches, you should copy him on the new
>> >version.  Has this version addressed all his review comments?
>> >
>> 
>> Sorry I had meant to include him in the CC.
>> 
>> I believe so but don't want to speak for him so we should see if he
>> has anymore.
> 
> I did not check the code, sorry.
> 
> I still believe your shutdown voltage is too low; try that. Battery
> will go down from 3V
> to 2.8V in seconds, so you don't really gain anything by using lower
> threshold, and you
> may not even have enough time to shutdown the system if you set it too 
> low.
> 
> Normally something like 3.0V, 3.2V is reasonable shutdown voltage.
> 

I took another look at the BQ25896 datasheet and the minimum-sys-voltage 
register is limited to 3.0-3.7 V.

I'll submit a new version.

Angus

> Best regards,
> 										Pavel