small Librem 5 phone dts updates
Subsystems (2)
v2 cover small Librem 5 phone dts updates
revision history
----------------
v2: (thanks Krzysztof)
add Fixes tags and improve commit messages
v1:
https://lore.kernel.org/linux-arm-kernel/[email protected]/
Martin Kepplinger (4):
arm64: dts: imx8mq-librem5: add vin-supply to VDD_1V8
arm64: dts: imx8mq-librem5: add pinctrl for the touchscreen
description
arm64: dts: imx8mq-librem5: Move usdhc clocks assignment to board DT
arm64: dts: imx8mq-librem5-r3: workaround i2c1 issue with 1GHz cpu
voltage
.../boot/dts/freescale/imx8mq-librem5-r3.dts | 6 ++++ .../boot/dts/freescale/imx8mq-librem5.dtsi | 28 ++++++++++++++----- 2 files changed, 27 insertions(+), 7 deletions(-)
Signature · 1 line
2.20.1
PATCH v2 1/4 arm64: dts: imx8mq-librem5: add vin-supply to VDD_1V8
buck7 is the supply here. Also, fix alphabetical ordering.
--- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +8 -7
@@ -99,6 +99,14 @@ regulator-max-microvolt = <3300000>; }; + reg_vdd_1v8: regulator-vdd-1v8 { + compatible = "regulator-fixed"; + regulator-name = "VDD_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&buck7_reg>; + }; + reg_vdd_3v3: regulator-vdd-3v3 { compatible = "regulator-fixed"; regulator-name = "VDD_3V3";
@@ -106,13 +114,6 @@ regulator-max-microvolt = <3300000>; }; - reg_vdd_1v8: regulator-vdd-1v8 { - compatible = "regulator-fixed"; - regulator-name = "VCC_1V8"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - reg_vsys_3v4: regulator-vsys-3v4 { compatible = "regulator-fixed"; regulator-name = "VSYS_3V4";
Signature · 1 line
2.20.1
PATCH v2 2/4 arm64: dts: imx8mq-librem5: add pinctrl for the touchscreen description
In reply to Martin KepplingerIn order for the touchscreen interrupt line to work, describe it properly. Otherwise it can work if defaults are ok, but we cannot be sure.
--- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +9 -0
@@ -459,6 +459,13 @@ >; }; + pinctrl_touch: touchgrp { + fsl,pins = < + /* TP_INT */ + MX8MQ_IOMUXC_ENET_RD1_GPIO1_IO27 0x80 + >; + }; + pinctrl_typec: typecgrp { fsl,pins = < /* TYPEC_MUX_EN */
@@ -880,6 +887,8 @@ touchscreen@38 { compatible = "edt,edt-ft5506"; reg = <0x38>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_touch>; interrupt-parent = <&gpio1>; interrupts = <27 IRQ_TYPE_EDGE_FALLING>; touchscreen-size-x = <720>;
Signature · 1 line
2.20.1
Re: [PATCH v2 2/4] arm64: dts: imx8mq-librem5: add pinctrl for the touchscreen description
Quoted 9 lines · Martin Kepplinger
In order for the touchscreen interrupt line to work, describe it properly. Otherwise it can work if defaults are ok, but we cannot be sure.
Fixes 8f0216b006e5 ("arm64: dts: Add a device tree for the Librem 5 phone")Signed-off-by Martin Kepplinger <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)
Best regards,
Krzysztof
Re: [PATCH v2 2/4] arm64: dts: imx8mq-librem5: add pinctrl for the touchscreen description
In reply to Martin KepplingerQuoted 14 lines · Martin Kepplinger
In order for the touchscreen interrupt line to work, describe it properly. Otherwise it can work if defaults are ok, but we cannot be sure.
Fixes 8f0216b006e5 ("arm64: dts: Add a device tree for the Librem 5 phone")Signed-off-by Martin Kepplinger <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +0
-0
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi line 465
Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +4
-0@@ -459,6 +459,13 @@ >; }; + pinctrl_touch: touchgrp { + fsl,pins = < + /* TP_INT */ + MX8MQ_IOMUXC_ENET_RD1_GPIO1_IO27 0x80
Miss indentation for these two lines.
I fixed it up and applied the series.
Shawn
Quoted 18 lines
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +5
-0+ >; + }; + pinctrl_typec: typecgrp { fsl,pins = < /* TYPEC_MUX_EN */@@ -880,6 +887,8 @@ touchscreen@38 { compatible = "edt,edt-ft5506"; reg = <0x38>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_touch>; interrupt-parent = <&gpio1>; interrupts = <27 IRQ_TYPE_EDGE_FALLING>; touchscreen-size-x = <720>;Signature · 1 line
2.20.1
Re: [PATCH v2 2/4] arm64: dts: imx8mq-librem5: add pinctrl for the touchscreen description
Quoted 25 lines · Shawn Guo
Quoted 14 lines · Martin Kepplinger
In order for the touchscreen interrupt line to work, describe it properly. Otherwise it can work if defaults are ok, but we cannot be sure.
Fixes 8f0216b006e5 ("arm64: dts: Add a device tree for the Librem 5 phone")Signed-off-by Martin Kepplinger <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +0
-0arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi line 465
Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +4
-0@@ -459,6 +459,13 @@ >; }; + pinctrl_touch: touchgrp { + fsl,pins = < + /* TP_INT */ + MX8MQ_IOMUXC_ENET_RD1_GPIO1_IO27 0x80Miss indentation for these two lines.
Quoted 4 lines
I fixed it up and applied the series.
Shawn
thanks for this!
martin
PATCH v2 3/4 arm64: dts: imx8mq-librem5: Move usdhc clocks assignment to board DT
In reply to Martin KepplingerAccording to commit e045f044e84e ("arm64: dts: imx8mq: Move usdhc clocks assignment to board DT") add the clocks assignment to imx8mq-librem5.dtsi too.
--- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +4 -0
@@ -1082,6 +1082,8 @@ }; &usdhc1 { + assigned-clocks = <&clk IMX8MQ_CLK_USDHC1>; + assigned-clock-rates = <400000000>; pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc1>; pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
@@ -1094,6 +1096,8 @@ }; &usdhc2 { + assigned-clocks = <&clk IMX8MQ_CLK_USDHC2>; + assigned-clock-rates = <200000000>; pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc2>; pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
Signature · 1 line
2.20.1
Re: [PATCH v2 3/4] arm64: dts: imx8mq-librem5: Move usdhc clocks assignment to board DT
Quoted 9 lines · Martin Kepplinger
According to commit
e045f044e84e("arm64: dts: imx8mq: Move usdhc clocks assignment to board DT") add the clocks assignment toimx8mq-librem5.dtsitoo.Fixes e045f044e84e ("arm64: dts: imx8mq: Move usdhc clocks assignment to board DT")Signed-off-by Martin Kepplinger <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
Best regards,
Krzysztof
PATCH v2 4/4 arm64: dts: imx8mq-librem5-r3: workaround i2c1 issue with 1GHz cpu voltage
In reply to Martin KepplingerThis is a workaround for a hardware bug in the r3 revision that basically would stop the system due to traffic on the i2c1 bus. A cpu voltage change would trigger such traffic and that's what is avoided in order to work around it.
--- arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dts | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dts +6 -0
@@ -10,6 +10,12 @@ compatible = "purism,librem5r3", "purism,librem5", "fsl,imx8mq"; }; +&a53_opp_table { + opp-1000000000 { + opp-microvolt = <1000000>; + }; +}; + &accel_gyro { mount-matrix = "1", "0", "0", "0", "1", "0",
Signature · 1 line
2.20.1