Add support for the Purism Librem5 devkit
Subsystems (2)
v14 cover Add support for the Purism Librem5 devkit
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 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 | 794 ++++++++++++++++++ 4 files changed, 804 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
Signature · 1 line
2.17.1
PATCH v14 1/3 arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit
From: "Angus Ainslie (Purism)" <[email protected]>
This is for the development kit board for the Librem 5. The current level of support yields a working console and is able to boot userspace from the network or eMMC.
Additional subsystems that are active :
- Both USB ports
- SD card socket
- WiFi usdhc
- WWAN modem
- GNSS
- GPIO keys
- LEDs
- gyro
- magnetometer
- touchscreen
- pwm
- backlight
- haptic motor
--- arch/arm64/boot/dts/freescale/Makefile | 1 + .../dts/freescale/imx8mq-librem5-devkit.dts | 794 ++++++++++++++++++ 2 files changed, 795 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
arch/arm64/boot/dts/freescale/Makefile +1 -0
@@ -22,6 +22,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-rdb.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mq-librem5-devkit.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-zii-ultra-rmb3.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-zii-ultra-zest.dtb dtb-$(CONFIG_ARCH_MXC) += imx8qxp-mek.dtb
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts new file +794 -0
794 lines not on this page · raw message
Signature · 1 line
2.17.1
Re: [PATCH v14 1/3] arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit
Hi!
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts line 70
Quoted 11 lines
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts new file +11
-0+ leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_leds>; + + led1 { + label = "LED 1"; + gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + };
I had comments about these...
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts line 157
Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts new file +7
-0+ vibrator { + compatible = "gpio-vibrator"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_haptic>; + enable-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>; + vcc-supply = <®_3v3_p>; + };
Thanks!
Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts new file +5
-0+ charger@6b { /* bq25896 */ + compatible = "ti,bq25890"; + reg = <0x6b>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_charger>;
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts line 401
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts new file +10
-0+ interrupt-parent = <&gpio3>; + interrupts = <25 IRQ_TYPE_EDGE_FALLING>; + ti,battery-regulation-voltage = <4192000>; /* 4.192V */ + ti,charge-current = <1600000>; /* 1.6 A */ + ti,termination-current = <66000>; /* 66mA */ + ti,precharge-current = <1300000>; /* 1.3A */ + ti,minimum-sys-voltage = <2750000>; /* 2.75V */ + ti,boost-voltage = <5000000>; /* 5V */ + ti,boost-max-current = <50000>; /* 50mA */ + };
And this. Did they get lost somewhere?
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Re: [PATCH v14 1/3] arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit
In reply to Angus Ainsliearch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts line 70
Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts new file +11
-0+ leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_leds>; + + led1 { + label = "LED 1"; + gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + };
Found it, so my mail made it to lkml:
https://lkml.org/lkml/2019/5/23/1356
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
PATCH v14 2/3 dt-bindings: Add an entry for Purism SPC
In reply to Angus AinslieFrom: "Angus Ainslie (Purism)" <[email protected]>
Add an entry for Purism, SPC
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -687,6 +687,8 @@ patternProperties: description: PROBOX2 (by W2COMP Co., Ltd.) "^pulsedlight,.*": description: PulsedLight, Inc + "^purism,.*": + description: Purism, SPC "^qca,.*": description: Qualcomm Atheros, Inc. "^qcom,.*":
Signature · 1 line
2.17.1
PATCH v14 3/3 dt-bindings: arm: fsl: Add the imx8mq boards
In reply to Angus AinslieFrom: "Angus Ainslie (Purism)" <[email protected]>
Add an entry for imx8mq based boards
--- Documentation/devicetree/bindings/arm/fsl.yaml | 7 +++++++ 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/fsl.yaml +7 -0
@@ -177,6 +177,13 @@ properties: - fsl,imx8mm-evk # i.MX8MM EVK Board - const: fsl,imx8mm + - description: i.MX8MQ based Boards + items: + - enum: + - fsl,imx8mq-evk # i.MX8MQ EVK Board + - purism,librem5-devkit # Purism Librem5 devkit + - const: fsl,imx8mq + - description: i.MX8QXP based Boards items: - enum:
Signature · 1 line
2.17.1