ARM: dts: imx6q-apalis: Misc improvements and newly added carrier
Subsystems (3)
cover ARM: dts: imx6q-apalis: Misc improvements and newly added carrier
From: Max Krummenacher <[email protected]>
Shawn, this patchset reworks a lot of the imx6qdl-apalis. Commit fa51e1dc4b91 ("ARM: dts: imx6qdl-apalis: Fix sgtl5000 detection issue") which is in imx/fixes also touches the file.
To keep the rebasing work minimal I based the series on top of imx/dt, but did additionally cherry-pick commit fa51e1dc4b91.
Is this the way to go in such circumstances?
This is a general update of the Apalis iMX6 device tree files.
The Toradex Apalis family is composed of a SoM that can be plugged on various carrier boards, with carrier boards allowing multiple optional accessories (e.g. display, camera, ...).
The device tree sources are structured into a SoM dtsi and a carrier dts which then includes the SoM dtsi. The SoM dtsi defines and enables the functionality self contained on the SoM and prepares for functionality provided by the carrier HW or accessories, so that the carrier dts then can enable or amend nodes provided. Accessories are enabled in overlays depending on HW configuration.
The series improves the existing Apalis carrier board device trees and adds a new device trees for the Ixora V1.2 carrier board.
Improvements:
- Specifies GPIO line names for use with libgpiod.
- Disables optional accessories. They would be enabled in overlays depending on HW configuration.
- Lower power consumption after poweroff.
- Move more functionality into the SoM dtsi file to reduce code duplication.
- General cleanup to adhere to dtbs bindings and missed alphabetically ordering.
- PWM backlight for backlights with inverted logic on its PWM input.
Fixes:
- STMPE ADC not functional due to wrong node name in dts.
Adds:
- imx6q-apalis-ixora-v1.2.dtb: used for a Apalis iMX6 mated in an Ixora V1.2 carrier board.
- Adds disable support for a OV5640 MIPI-CSI2 Camera and a ADV7280 Video ADC on a parallel video input.
Denys Drozdov (1):
ARM: dts: imx6q-apalis: Clean-up sd card support
Max Krummenacher (10):
dt-bindings: arm: fsl: Add carrier for toradex,apalis-imx6q Revert "ARM: dts: imx6qdl-apalis: Avoid underscore in node name"
ARM: dts: imx6q-apalis: Add gpio-line-names
ARM: dts: imx6q-apalis: Command pmic to standby for poweroff
ARM: dts: imx6q-apalis: Move Atmel MXT touch ctrl to SoM dtsi
ARM: dts: imx6q-apalis: Disable HDMI
ARM: dts: imx6q-apalis: Add support for Toradex Ixora V1.2 carrier
boards
ARM: dts: imx6q-apalis: backlight pwm: Simplify inverted backlight
ARM: dts: imx6q-apalis: backlight pwm: Adapt brightness steps
ARM: dts: imx6q-apalis: Cleanup
Oleksandr Suvorov (6):
ARM: dts: imx6q-apalis: Move parallel rgb interface to SoM dtsi
ARM: dts: imx6q-apalis: Move pinmux groups to SoM dtsi
ARM: dts: imx6q-apalis: Add LVDS panel support
ARM: dts: imx6q-apalis: Disable stmpe touchscreen
ARM: dts: imx6q-apalis: Add ov5640 mipi csi camera
ARM: dts: imx6q-apalis: Add adv7280 video input
.../devicetree/bindings/arm/fsl.yaml | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-apalis-eval.dts | 117 +--- arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 263 +------- arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts | 290 ++++++++ arch/arm/boot/dts/imx6q-apalis-ixora.dts | 103 +-- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 623 ++++++++++++++---- 7 files changed, 840 insertions(+), 558 deletions(-) create mode 100644 arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts
Signature · 1 line
2.20.1
PATCH 1/17 dt-bindings: arm: fsl: Add carrier for toradex,apalis-imx6q
From: Max Krummenacher <[email protected]>
Add binding for the Ixora V1.2 carrier board our Apalis iMX6D/Q may be mated with.
---
Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/fsl.yaml +1 -0
@@ -320,6 +320,7 @@ properties: - enum: - toradex,apalis_imx6q-ixora # Apalis iMX6Q/D Module on Ixora Carrier Board - toradex,apalis_imx6q-ixora-v1.1 # Apalis iMX6Q/D Module on Ixora V1.1 Carrier Board + - toradex,apalis_imx6q-ixora-v1.2 # Apalis iMX6Q/D Module on Ixora V1.2 Carrier Board - toradex,apalis_imx6q-eval # Apalis iMX6Q/D Module on Apalis Evaluation Board - const: toradex,apalis_imx6q - const: fsl,imx6q
Signature · 1 line
2.20.1
PATCH 2/17 Revert "ARM: dts: imx6qdl-apalis: Avoid underscore in node name"
In reply to Max KrummenacherFrom: Max Krummenacher <[email protected]>
The STMPE MFD device binding requires the child node to have a fixed name, i.e. with '_', not '-'. Otherwise the stmpe_adc, stmpe_touchscreen drivers will not be probed.
---
arch/arm/boot/dts/imx6qdl-apalis.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx6qdl-apalis.dtsi +2 -2
@@ -315,7 +315,7 @@ /* ADC conversion time: 80 clocks */ st,sample-time = <4>; - stmpe_touchscreen: stmpe-touchscreen { + stmpe_touchscreen: stmpe_touchscreen { compatible = "st,stmpe-ts"; /* 8 sample average control */ st,ave-ctrl = <3>;
@@ -332,7 +332,7 @@ st,touch-det-delay = <5>; }; - stmpe_adc: stmpe-adc { + stmpe_adc: stmpe_adc { compatible = "st,stmpe-adc"; /* forbid to use ADC channels 3-0 (touch) */ st,norequest-mask = <0x0F>;
Signature · 1 line
2.20.1
PATCH 3/17 ARM: dts: imx6q-apalis: Add gpio-line-names
In reply to Max KrummenacherFrom: Max Krummenacher <[email protected]>
Add GPIO line names on module level. Those are all GPIOs which a user might use on his custom carrier board. If more meaningful names are available on the carrier board, the user can overwrite the line names in the carrier board level device tree.
---
arch/arm/boot/dts/imx6qdl-apalis.dtsi | 193 ++++++++++++++++++++++++++ 1 file changed, 193 insertions(+)
arch/arm/boot/dts/imx6qdl-apalis.dtsi +193 -0
@@ -141,6 +141,199 @@ status = "disabled"; }; +&gpio1 { + gpio-line-names = "MXM3_84", + "MXM3_4", + "MXM3_15/GPIO7", + "MXM3_96", + "MXM3_37", + "", + "MXM3_17/GPIO8", + "MXM3_14", + "MXM3_12", + "MXM3_2", + "MXM3_184", + "MXM3_180", + "MXM3_178", + "MXM3_176", + "MXM3_188", + "MXM3_186", + "MXM3_160", + "MXM3_162", + "MXM3_150", + "MXM3_144", + "MXM3_154", + "MXM3_146", + "", + "", + "MXM3_72"; +}; + +&gpio2 { + gpio-line-names = "MXM3_148", + "MXM3_152", + "MXM3_156", + "MXM3_158", + "MXM3_1/GPIO1", + "MXM3_3/GPIO2", + "MXM3_5/GPIO3", + "MXM3_7/GPIO4", + "MXM3_95", + "MXM3_6", + "MXM3_8", + "MXM3_123", + "MXM3_126", + "MXM3_128", + "MXM3_130", + "MXM3_132", + "MXM3_253", + "MXM3_251", + "MXM3_283", + "MXM3_281", + "MXM3_279", + "MXM3_277", + "MXM3_243", + "MXM3_235", + "MXM3_231", + "MXM3_229", + "MXM3_233", + "MXM3_198", + "MXM3_275", + "MXM3_273", + "MXM3_207", + "MXM3_122"; +}; + +&gpio3 { + gpio-line-names = "MXM3_271", + "MXM3_269", + "MXM3_301", + "MXM3_299", + "MXM3_297", + "MXM3_295", + "MXM3_293", + "MXM3_291", + "MXM3_289", + "MXM3_287", + "MXM3_249", + "MXM3_247", + "MXM3_245", + "MXM3_286", + "MXM3_239", + "MXM3_35", + "MXM3_205", + "MXM3_203", + "MXM3_201", + "MXM3_116", + "MXM3_114", + "MXM3_262", + "MXM3_274", + "MXM3_124", + "MXM3_110", + "MXM3_120", + "MXM3_263", + "MXM3_265", + "", + "MXM3_135", + "MXM3_261", + "MXM3_259"; +}; + +&gpio4 { + gpio-line-names = "", + "", + "", + "", + "", + "MXM3_194", + "MXM3_136", + "MXM3_134", + "MXM3_140", + "MXM3_138", + "", + "MXM3_220", + "", + "", + "MXM3_18", + "MXM3_16", + "", + "", + "MXM3_214", + "MXM3_216", + "MXM3_164"; +}; + +&gpio5 { + gpio-line-names = "MXM3_159", + "", + "", + "", + "MXM3_257", + "", + "", + "", + "", + "", + "MXM3_200", + "MXM3_196", + "MXM3_204", + "MXM3_202", + "", + "", + "", + "", + "MXM3_191", + "MXM3_197", + "MXM3_77", + "MXM3_195", + "MXM3_221", + "MXM3_225", + "MXM3_223", + "MXM3_227", + "MXM3_209", + "MXM3_211", + "MXM3_118", + "MXM3_112", + "MXM3_187", + "MXM3_185"; +}; + +&gpio6 { + gpio-line-names = "MXM3_183", + "MXM3_181", + "MXM3_179", + "MXM3_177", + "MXM3_175", + "MXM3_173", + "MXM3_255", + "MXM3_83", + "MXM3_91", + "MXM3_13/GPIO6", + "MXM3_11/GPIO5", + "MXM3_79", + "", + "", + "MXM3_190", + "MXM3_193", + "MXM3_89"; +}; + +&gpio7 { + gpio-line-names = "", + "", + "", + "", + "", + "", + "", + "", + "", + "MXM3_99", + "MXM3_85", + "MXM3_217", + "MXM3_215"; +}; + &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>;
Signature · 1 line
2.20.1
PATCH 14/17 ARM: dts: imx6q-apalis: Add support for Toradex Ixora V1.2 carrier boards
In reply to Max KrummenacherFrom: Max Krummenacher <[email protected]>
The Ixora V1.2 carrier board adds SW relevant new features compared to the V1.1 version.
- An I2C EEPROM is added.
- The SD card slot got a switchable 3.3V supply.
- Pull ups on the SD card signals are not assembled to faciliate 1.8V speed modes.
- The CAN transceivers got a switchable 3.3V supply.
Add a new device tree and, as the differences are so small rework the device tree for V1.1 to include the V1.2 device tree and adjust as needed.
Drop adding the toradex,apalis_imx6q-ixora to the dtb compatible to adhere to the binding yaml document.
---
arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 178 +---------- arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts | 290 ++++++++++++++++++ 3 files changed, 303 insertions(+), 166 deletions(-) create mode 100644 arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -544,6 +544,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6q-apalis-eval.dtb \ imx6q-apalis-ixora.dtb \ imx6q-apalis-ixora-v1.1.dtb \ + imx6q-apalis-ixora-v1.2.dtb \ imx6q-apf6dev.dtb \ imx6q-arm2.dtb \ imx6q-b450v3.dtb \
arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts +12 -166
199 lines not on this page · raw message
arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts new file +290 -0
290 lines not on this page · raw message
Signature · 1 line
2.20.1
PATCH 5/17 ARM: dts: imx6q-apalis: Move parallel rgb interface to SoM dtsi
In reply to Max KrummenacherFrom: Oleksandr Suvorov <[email protected]>
Move all Parallel RGB-related nodes to the module level and disable it by default. This allows to enable it in an overlay per the current system configuration.
Update SPDX-License spelling to latest convention. Update Copyright year.
---
arch/arm/boot/dts/imx6q-apalis-eval.dts | 57 +------------------ arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 55 +----------------- arch/arm/boot/dts/imx6q-apalis-ixora.dts | 55 +----------------- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 52 ++++++++++++++++- 4 files changed, 55 insertions(+), 164 deletions(-)
arch/arm/boot/dts/imx6q-apalis-eval.dts +2 -55
@@ -1,6 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0+ OR MIT +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT /* - * Copyright 2014-2020 Toradex + * Copyright 2014-2022 Toradex * Copyright 2012 Freescale Semiconductor, Inc. * Copyright 2011 Linaro Ltd. */
@@ -44,48 +44,6 @@ }; }; - lcd_display: disp0 { - compatible = "fsl,imx-parallel-display"; - #address-cells = <1>; - #size-cells = <0>; - interface-pix-fmt = "rgb24"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ipu1_lcdif>; - status = "okay"; - - port@0 { - reg = <0>; - - lcd_display_in: endpoint { - remote-endpoint = <&ipu1_di1_disp1>; - }; - }; - - port@1 { - reg = <1>; - - lcd_display_out: endpoint { - remote-endpoint = <&lcd_panel_in>; - }; - }; - }; - - panel: panel { - /* - * edt,et057090dhu: EDT 5.7" LCD TFT - * edt,et070080dh6: EDT 7.0" LCD TFT - */ - compatible = "edt,et057090dhu"; - backlight = <&backlight>; - power-supply = <®_3v3_sw>; - - port { - lcd_panel_in: endpoint { - remote-endpoint = <&lcd_display_out>; - }; - }; - }; - reg_pcie_switch: regulator-pcie-switch { compatible = "regulator-fixed"; regulator-name = "pcie_switch";
@@ -106,13 +64,6 @@ }; }; -&backlight { - brightness-levels = <0 127 191 223 239 247 251 255>; - default-brightness-level = <1>; - power-supply = <®_3v3_sw>; - status = "okay"; -}; - &can1 { xceiver-supply = <®_3v3_sw>; status = "okay";
@@ -164,10 +115,6 @@ status = "okay"; }; -&ipu1_di1_disp1 { - remote-endpoint = <&lcd_display_in>; -}; - &ldb { status = "okay"; };
arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts +2 -53
77 lines not on this page · raw message
arch/arm/boot/dts/imx6q-apalis-ixora.dts +2 -53
77 lines not on this page · raw message
arch/arm/boot/dts/imx6qdl-apalis.dtsi +49 -3
72 lines not on this page · raw message
Signature · 1 line
2.20.1
PATCH 4/17 ARM: dts: imx6q-apalis: Command pmic to standby for poweroff
In reply to Max KrummenacherFrom: Max Krummenacher <[email protected]>
The Apalis iMX6 HW doesn't allow to use the PWR_ON_REQ signal for poweroff. Use the fsl,pmic-stby-poweroff property to command the PMIC into a low power mode in poweroff.
---
arch/arm/boot/dts/imx6qdl-apalis.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/imx6qdl-apalis.dtsi +5 -0
@@ -125,6 +125,10 @@ status = "disabled"; }; +&clks { + fsl,pmic-stby-poweroff; +}; + /* Apalis SPI1 */ &ecspi1 { cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>;
@@ -387,6 +391,7 @@ pmic: pfuze100@8 { compatible = "fsl,pfuze100"; + fsl,pmic-stby-poweroff; reg = <0x08>; regulators {
Signature · 1 line
2.20.1
PATCH 6/17 ARM: dts: imx6q-apalis: Move pinmux groups to SoM dtsi
In reply to Max KrummenacherFrom: Oleksandr Suvorov <[email protected]>
GPIO pinmux groups are declared on the module level. Move muxing them to the same level. It also reduces code duplication.
---
arch/arm/boot/dts/imx6q-apalis-eval.dts | 12 ------------ arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 10 ---------- arch/arm/boot/dts/imx6q-apalis-ixora.dts | 8 -------- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 8 ++++++++ 4 files changed, 8 insertions(+), 30 deletions(-)
arch/arm/boot/dts/imx6q-apalis-eval.dts +0 -12
@@ -206,15 +206,3 @@ cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; status = "okay"; }; - -&iomuxc { - /* - * Mux the Apalis GPIOs - */ - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_apalis_gpio1 &pinctrl_apalis_gpio2 - &pinctrl_apalis_gpio3 &pinctrl_apalis_gpio4 - &pinctrl_apalis_gpio5 &pinctrl_apalis_gpio6 - &pinctrl_apalis_gpio7 &pinctrl_apalis_gpio8 - >; -};
arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts +0 -10
@@ -202,16 +202,6 @@ }; &iomuxc { - /* - * Mux the Apalis GPIOs - */ - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_apalis_gpio1 &pinctrl_apalis_gpio2 - &pinctrl_apalis_gpio3 &pinctrl_apalis_gpio4 - &pinctrl_apalis_gpio5 &pinctrl_apalis_gpio6 - &pinctrl_apalis_gpio7 &pinctrl_apalis_gpio8 - >; - pinctrl_leds_ixora: ledsixoragrp { fsl,pins = < MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x1b0b0
arch/arm/boot/dts/imx6q-apalis-ixora.dts +0 -8
@@ -205,14 +205,6 @@ }; &iomuxc { - /* Mux the Apalis GPIOs */ - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_apalis_gpio1 &pinctrl_apalis_gpio2 - &pinctrl_apalis_gpio3 &pinctrl_apalis_gpio4 - &pinctrl_apalis_gpio5 &pinctrl_apalis_gpio6 - &pinctrl_apalis_gpio7 &pinctrl_apalis_gpio8 - >; - pinctrl_leds_ixora: ledsixoragrp { fsl,pins = < MX6QDL_PAD_SD1_DAT1__GPIO1_IO17 0x1b0b0
arch/arm/boot/dts/imx6qdl-apalis.dtsi +8 -0
@@ -709,6 +709,14 @@ }; &iomuxc { + /* Mux the Apalis GPIOs */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_apalis_gpio1 &pinctrl_apalis_gpio2 + &pinctrl_apalis_gpio3 &pinctrl_apalis_gpio4 + &pinctrl_apalis_gpio5 &pinctrl_apalis_gpio6 + &pinctrl_apalis_gpio7 &pinctrl_apalis_gpio8 + >; + pinctrl_apalis_gpio1: gpio2io04grp { fsl,pins = < MX6QDL_PAD_NANDF_D4__GPIO2_IO04 0x130b0
Signature · 1 line
2.20.1
PATCH 7/17 ARM: dts: imx6q-apalis: Move Atmel MXT touch ctrl to SoM dtsi
In reply to Max KrummenacherFrom: Max Krummenacher <[email protected]>
Reduces code duplication. While at it drop the comments which do not apply on Apalis iMX6 but add the correct SoM pin names.
---
arch/arm/boot/dts/imx6q-apalis-eval.dts | 13 ------------- arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 13 ------------- arch/arm/boot/dts/imx6q-apalis-ixora.dts | 13 ------------- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 11 +++++++++++ 4 files changed, 11 insertions(+), 39 deletions(-)
arch/arm/boot/dts/imx6q-apalis-eval.dts +0 -13
@@ -82,19 +82,6 @@ &i2c1 { status = "okay"; - /* - * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, - * aka pwm2, pwm3. so if you enable touchscreen, disable the pwms - */ - touchscreen@4a { - compatible = "atmel,maxtouch"; - reg = <0x4a>; - interrupt-parent = <&gpio6>; - interrupts = <10 IRQ_TYPE_EDGE_FALLING>; - reset-gpios = <&gpio6 9 GPIO_ACTIVE_LOW>; /* SODIMM 13 */ - status = "disabled"; - }; - pcie-switch@58 { compatible = "plx,pex8605"; reg = <0x58>;
arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts +0 -13
@@ -89,19 +89,6 @@ &i2c1 { status = "okay"; - /* - * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, - * aka pwm2, pwm3. so if you enable touchscreen, disable the pwms - */ - touchscreen@4a { - compatible = "atmel,maxtouch"; - reg = <0x4a>; - interrupt-parent = <&gpio6>; - interrupts = <10 IRQ_TYPE_EDGE_FALLING>; - reset-gpios = <&gpio6 9 GPIO_ACTIVE_LOW>; /* SODIMM 13 */ - status = "disabled"; - }; - /* M41T0M6 real time clock on carrier board */ rtc_i2c: rtc@68 { compatible = "st,m41t0";
arch/arm/boot/dts/imx6q-apalis-ixora.dts +0 -13
@@ -88,19 +88,6 @@ &i2c1 { status = "okay"; - /* - * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>, - * aka pwm2, pwm3. so if you enable touchscreen, disable the pwms - */ - touchscreen@4a { - compatible = "atmel,maxtouch"; - reg = <0x4a>; - interrupt-parent = <&gpio6>; - interrupts = <10 IRQ_TYPE_EDGE_FALLING>; - reset-gpios = <&gpio6 9 GPIO_ACTIVE_LOW>; /* SODIMM 13 */ - status = "disabled"; - }; - eeprom@50 { compatible = "atmel,24c02"; reg = <0x50>;
arch/arm/boot/dts/imx6qdl-apalis.dtsi +11 -0
@@ -416,6 +416,17 @@ scl-gpios = <&gpio5 27 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; sda-gpios = <&gpio5 26 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "disabled"; + + atmel_mxt_ts: touchscreen@4a { + compatible = "atmel,maxtouch"; + /* These GPIOs are muxed with the iomuxc node */ + interrupt-parent = <&gpio6>; + interrupts = <10 IRQ_TYPE_EDGE_FALLING>; /* MXM3_11 */ + reg = <0x4a>; + reset-gpios = <&gpio6 9 GPIO_ACTIVE_LOW>; /* MXM3_13 */ + status = "disabled"; + }; + }; /*
Signature · 1 line
2.20.1
PATCH 9/17 ARM: dts: imx6q-apalis: Disable HDMI
In reply to Max KrummenacherFrom: Max Krummenacher <[email protected]>
This allows to enable it in an overlay per the current system configuration.
---
arch/arm/boot/dts/imx6q-apalis-eval.dts | 4 ---- arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 4 ---- arch/arm/boot/dts/imx6q-apalis-ixora.dts | 4 ---- 3 files changed, 12 deletions(-)
arch/arm/boot/dts/imx6q-apalis-eval.dts +0 -4
@@ -74,10 +74,6 @@ status = "okay"; }; -&hdmi { - status = "okay"; -}; - /* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */ &i2c1 { status = "okay";
arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts +0 -4
@@ -81,10 +81,6 @@ status = "okay"; }; -&hdmi { - status = "okay"; -}; - /* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */ &i2c1 { status = "okay";
arch/arm/boot/dts/imx6q-apalis-ixora.dts +0 -4
@@ -80,10 +80,6 @@ status = "okay"; }; -&hdmi { - status = "okay"; -}; - /* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */ &i2c1 { status = "okay";
Signature · 1 line
2.20.1
PATCH 8/17 ARM: dts: imx6q-apalis: Add LVDS panel support
In reply to Max KrummenacherFrom: Oleksandr Suvorov <[email protected]>
Add LVDS panel and endpoint linkage support but keep the inherited disabled state. This allows to enable it in an overlay per the current system configuration.
---
arch/arm/boot/dts/imx6q-apalis-eval.dts | 4 --- arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 4 --- arch/arm/boot/dts/imx6q-apalis-ixora.dts | 4 --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 36 +++++++++++++++++++ 4 files changed, 36 insertions(+), 12 deletions(-)
arch/arm/boot/dts/imx6q-apalis-eval.dts +0 -4
@@ -102,10 +102,6 @@ status = "okay"; }; -&ldb { - status = "okay"; -}; - &pcie { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_reset_moci>;
arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts +0 -4
@@ -104,10 +104,6 @@ status = "okay"; }; -&ldb { - status = "okay"; -}; - &pcie { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_reset_moci>;
arch/arm/boot/dts/imx6q-apalis-ixora.dts +0 -4
@@ -108,10 +108,6 @@ status = "okay"; }; -&ldb { - status = "okay"; -}; - &pcie { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_reset_moci>;
arch/arm/boot/dts/imx6qdl-apalis.dtsi +36 -0
@@ -68,6 +68,18 @@ }; }; + panel_lvds: panel-lvds { + compatible = "panel-lvds"; + backlight = <&backlight>; + status = "disabled"; + + port { + lvds_panel_in: endpoint { + remote-endpoint = <&lvds0_out>; + }; + }; + }; + reg_module_3v3: regulator-module-3v3 { compatible = "regulator-fixed"; regulator-name = "+V3.3";
@@ -610,6 +622,30 @@ remote-endpoint = <&lcd_display_in>; }; +&ldb { + lvds-channel@0 { + port@4 { + reg = <4>; + + lvds0_out: endpoint { + remote-endpoint = <&lvds_panel_in>; + }; + }; + }; + + lvds-channel@1 { + fsl,data-mapping = "spwg"; + fsl,data-width = <18>; + + port@4 { + reg = <4>; + + lvds1_out: endpoint { + }; + }; + }; +}; + &pwm1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm1>;
Signature · 1 line
2.20.1
PATCH 10/17 ARM: dts: imx6q-apalis: Disable stmpe touchscreen
In reply to Max KrummenacherFrom: Oleksandr Suvorov <[email protected]>
Unify its label with other toradex SoM dtbs. This allows to enable it in an overlay per the current system configuration.
---
arch/arm/boot/dts/imx6qdl-apalis.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/imx6qdl-apalis.dtsi +2 -1
@@ -578,7 +578,7 @@ /* ADC conversion time: 80 clocks */ st,sample-time = <4>; - stmpe_touchscreen: stmpe_touchscreen { + stmpe_ts: stmpe_touchscreen { compatible = "st,stmpe-ts"; /* 8 sample average control */ st,ave-ctrl = <3>;
@@ -593,6 +593,7 @@ st,settling = <3>; /* 5 ms touch detect interrupt delay */ st,touch-det-delay = <5>; + status = "disabled"; }; stmpe_adc: stmpe_adc {
Signature · 1 line
2.20.1
PATCH 13/17 ARM: dts: imx6q-apalis: Clean-up sd card support
In reply to Max KrummenacherFrom: Denys Drozdov <[email protected]>
Configure SOM DTSI to 8-bit, card detect in the SoM dtsi as this is the Apalis family default functionality.
Limit the interface to 4-bit only on the Ixora V1.1 carrier boards.
---
arch/arm/boot/dts/imx6q-apalis-eval.dts | 3 --- arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 1 - arch/arm/boot/dts/imx6qdl-apalis.dtsi | 3 ++- 3 files changed, 2 insertions(+), 5 deletions(-)
arch/arm/boot/dts/imx6q-apalis-eval.dts +0 -3
@@ -172,9 +172,6 @@ /* MMC1 */ &usdhc1 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_usdhc1_8bit &pinctrl_mmc_cd>; - cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>; status = "okay"; };
arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts +0 -1
@@ -175,7 +175,6 @@ &usdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_mmc_cd>; - cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>; bus-width = <4>; status = "okay"; };
arch/arm/boot/dts/imx6qdl-apalis.dtsi +2 -1
@@ -817,7 +817,8 @@ /* MMC1 */ &usdhc1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_usdhc1_8bit>; + pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_usdhc1_8bit &pinctrl_mmc_cd>; + cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>; vqmmc-supply = <®_module_3v3>; bus-width = <8>; disable-wp;
Signature · 1 line
2.20.1
PATCH 12/17 ARM: dts: imx6q-apalis: Add adv7280 video input
In reply to Max KrummenacherFrom: Oleksandr Suvorov <[email protected]>
The Apalis iMX6 modules allow connecting a parallel video input. Add support for our ADV7280 video input module but have it disabled. This allows to enable it in an overlay per the current system configuration.
---
arch/arm/boot/dts/imx6qdl-apalis.dtsi | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)
arch/arm/boot/dts/imx6qdl-apalis.dtsi +30 -0
@@ -418,6 +418,21 @@ "MXM3_215"; }; +&gpr { + ipu1_csi0_mux { + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + port@1 { + reg = <1>; + ipu1_csi0_mux_from_parallel_sensor: endpoint { + remote-endpoint = <&adv7280_to_ipu1_csi0_mux>; + }; + }; + }; +}; + &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>;
@@ -643,6 +658,21 @@ sda-gpios = <&gpio3 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "disabled"; + adv_7280: adv7280@21 { + compatible = "adi,adv7280"; + reg = <0x21>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ipu1_csi0>; + status = "disabled"; + + port { + adv7280_to_ipu1_csi0_mux: endpoint { + bus-width = <8>; + remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>; + }; + }; + }; + ov5640_csi_cam: ov5640_mipi@3c { compatible = "ovti,ov5640"; AVDD-supply = <®_ov5640_2v8_a_vdd>;
Signature · 1 line
2.20.1
PATCH 11/17 ARM: dts: imx6q-apalis: Add ov5640 mipi csi camera
In reply to Max KrummenacherFrom: Oleksandr Suvorov <[email protected]>
The Apalis iMX6 modules allow connecting a mipi-csi video input. Add support for our OV5640 camera module but have it disabled. This allows to enable it in an overlay per the current system configuration.
---
arch/arm/boot/dts/imx6qdl-apalis.dtsi | 67 ++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-)
arch/arm/boot/dts/imx6qdl-apalis.dtsi +66 -1
@@ -29,6 +29,12 @@ status = "disabled"; }; + clk_ov5640_osc: clk_ov5640_osc_int { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + }; + lcd_display: disp0 { compatible = "fsl,imx-parallel-display"; #address-cells = <1>;
@@ -96,6 +102,26 @@ regulator-always-on; }; + reg_ov5640_1v8_d_o_vdd: regulator-ov5640-1v8-d-o-vdd { + compatible = "regulator-fixed"; + regulator-always-on; + regulator-max-microvolt = <1800000>; + regulator-min-microvolt = <1800000>; + regulator-name = "DOVDD/DVDD_1.8V"; + /* Note: The CSI module uses on-board 3.3V_SW supply */ + vin-supply = <®_module_3v3>; + }; + + reg_ov5640_2v8_a_vdd: regulator-ov5640-2v8-a-vdd { + compatible = "regulator-fixed"; + regulator-always-on; + regulator-max-microvolt = <2800000>; + regulator-min-microvolt = <2800000>; + regulator-name = "AVDD/AFVDD_2.8V"; + /* Note: The CSI module uses on-board 3.3V_SW supply */ + vin-supply = <®_module_3v3>; + }; + reg_usb_otg_vbus: regulator-usb-otg-vbus { compatible = "regulator-fixed"; pinctrl-names = "default";
@@ -438,7 +464,6 @@ reset-gpios = <&gpio6 9 GPIO_ACTIVE_LOW>; /* MXM3_13 */ status = "disabled"; }; - }; /*
@@ -617,6 +642,30 @@ scl-gpios = <&gpio3 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; sda-gpios = <&gpio3 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "disabled"; + + ov5640_csi_cam: ov5640_mipi@3c { + compatible = "ovti,ov5640"; + AVDD-supply = <®_ov5640_2v8_a_vdd>; + DOVDD-supply = <®_ov5640_1v8_d_o_vdd>; + DVDD-supply = <®_ov5640_1v8_d_o_vdd>; + clocks = <&clks IMX6QDL_CLK_CKO2>; + clock-names = "xclk"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_cam_mclk>; + /* These GPIOs are muxed with the iomuxc node */ + powerdown-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; + reg = <0x3c>; + reset-gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; + status = "disabled"; + + port { + ov5640_to_mipi_csi2: endpoint { + clock-lanes = <0>; + data-lanes = <1 2>; + remote-endpoint = <&mipi_csi_from_ov5640>; + }; + }; + }; }; &ipu1_di1_disp1 {
@@ -647,6 +696,22 @@ }; }; +&mipi_csi { + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + port@0 { + reg = <0>; + + mipi_csi_from_ov5640: endpoint { + clock-lanes = <0>; + data-lanes = <1 2>; + remote-endpoint = <&ov5640_to_mipi_csi2>; + }; + }; +}; + &pwm1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm1>;
Signature · 1 line
2.20.1
PATCH 15/17 ARM: dts: imx6q-apalis: backlight pwm: Simplify inverted backlight
In reply to Max KrummenacherFrom: Max Krummenacher <[email protected]>
Set #pwm-cells to the default 3 to gain access to the parameter which allows inverting the PWM signal. This is useful to specify a backlight which has its highest brightness at 0.
With the change to use the PWM with inverted polarity the PWM signal is inverted to how it was before this patch.
This changes the meaning of the values in the brightness-levels property. I.e. the duty-cycle changes from x/255 to (255-x)/255. Keeping the brightness-levels will then have a big brightness jump from 0 to 127 duty cycle, the other 6 steps will then be barely noticeable.
Change the brightness-levels to provide the same brightness-levels as before.
---
arch/arm/boot/dts/imx6qdl-apalis.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm/boot/dts/imx6qdl-apalis.dtsi +5 -5
@@ -6,6 +6,7 @@ */ #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/pwm/pwm.h> / { model = "Toradex Apalis iMX6Q/D Module";
@@ -19,13 +20,13 @@ backlight: backlight { compatible = "pwm-backlight"; + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <6>; + enable-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_bl_on>; - brightness-levels = <0 127 191 223 239 247 251 255>; - default-brightness-level = <1>; - enable-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; power-supply = <®_module_3v3>; - pwms = <&pwm4 0 5000000>; + pwms = <&pwm4 0 5000000 PWM_POLARITY_INVERTED>; status = "disabled"; };
@@ -761,7 +762,6 @@ }; &pwm4 { - #pwm-cells = <2>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm4>; status = "disabled";
Signature · 1 line
2.20.1
PATCH 17/17 ARM: dts: imx6q-apalis: Cleanup
In reply to Max KrummenacherFrom: Max Krummenacher <[email protected]>
- Sort nodes and properties alphabetical
- End all pinctrl node names in grp and avoid using dashes
- Change the pmic's node name to pmic@8 per binding requirement
- Add sound-dai-cells to the codec node per binding requirement
---
arch/arm/boot/dts/imx6q-apalis-eval.dts | 24 +-- arch/arm/boot/dts/imx6q-apalis-ixora.dts | 19 +- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 221 ++++++++++++----------- 3 files changed, 132 insertions(+), 132 deletions(-)
arch/arm/boot/dts/imx6q-apalis-eval.dts +12 -12
@@ -36,31 +36,31 @@ pinctrl-0 = <&pinctrl_gpio_keys>; wakeup { - label = "Wake-Up"; + debounce-interval = <10>; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + label = "Wake-Up"; linux,code = <KEY_WAKEUP>; - debounce-interval = <10>; wakeup-source; }; }; reg_pcie_switch: regulator-pcie-switch { compatible = "regulator-fixed"; - regulator-name = "pcie_switch"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; + enable-active-high; gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>; + regulator-max-microvolt = <1800000>; + regulator-min-microvolt = <1800000>; + regulator-name = "pcie_switch"; startup-delay-us = <100000>; - enable-active-high; status = "okay"; }; reg_3v3_sw: regulator-3v3-sw { compatible = "regulator-fixed"; - regulator-name = "3.3V_SW"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; regulator-always-on; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "3.3V_SW"; }; };
@@ -124,11 +124,11 @@ status = "okay"; }; -®_usb_otg_vbus { +®_usb_host_vbus { status = "okay"; }; -®_usb_host_vbus { +®_usb_otg_vbus { status = "okay"; };
@@ -177,8 +177,8 @@ /* SD1 */ &usdhc2 { + cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc2 &pinctrl_sd_cd>; - cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; status = "okay"; };
arch/arm/boot/dts/imx6q-apalis-ixora.dts +9 -10
@@ -36,38 +36,37 @@ pinctrl-0 = <&pinctrl_gpio_keys>; wakeup { - label = "Wake-Up"; + debounce-interval = <10>; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; + label = "Wake-Up"; linux,code = <KEY_WAKEUP>; - debounce-interval = <10>; wakeup-source; }; }; leds { compatible = "gpio-leds"; - pinctrl-names = "default"; pinctrl-0 = <&pinctrl_leds_ixora>; led4-green { - label = "LED_4_GREEN"; gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>; + label = "LED_4_GREEN"; }; led4-red { - label = "LED_4_RED"; gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>; + label = "LED_4_RED"; }; led5-green { - label = "LED_5_GREEN"; gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; + label = "LED_5_GREEN"; }; led5-red { - label = "LED_5_RED"; gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; + label = "LED_5_RED"; }; }; };
@@ -129,11 +128,11 @@ status = "okay"; }; -®_usb_otg_vbus { +®_usb_host_vbus { status = "okay"; }; -®_usb_host_vbus { +®_usb_otg_vbus { status = "okay"; };
@@ -177,9 +176,9 @@ /* SD1 */ &usdhc2 { + cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc2 &pinctrl_sd_cd>; - cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; status = "okay"; };
arch/arm/boot/dts/imx6qdl-apalis.dtsi +111 -110
550 lines not on this page · raw message
Signature · 1 line
2.20.1
PATCH 16/17 ARM: dts: imx6q-apalis: backlight pwm: Adapt brightness steps
In reply to Max KrummenacherFrom: Max Krummenacher <[email protected]>
Adapt the brightness steps as the backlight doesn't light up for very low duty cycles.
---
arch/arm/boot/dts/imx6qdl-apalis.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx6qdl-apalis.dtsi +2 -2
@@ -20,8 +20,8 @@ backlight: backlight { compatible = "pwm-backlight"; - brightness-levels = <0 4 8 16 32 64 128 255>; - default-brightness-level = <6>; + brightness-levels = <0 45 63 88 119 158 203 255>; + default-brightness-level = <4>; enable-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_bl_on>;
Signature · 1 line
2.20.1
Fabio Estevam
reviewerRe: [PATCH v1 11/17] ARM: dts: imx6q-apalis: Add ov5640 mipi csi camera
In reply to Max KrummenacherHi Max,
Quoted 20 lines · Max Krummenacher
From: Oleksandr Suvorov <[email protected]>
The Apalis iMX6 modules allow connecting a mipi-csi video input. Add support for our OV5640 camera module but have it disabled. This allows to enable it in an overlay per the current system configuration.
Signed-off-by Oleksandr Suvorov <[email protected]>Signed-off-by Max Krummenacher <[email protected]>---
arch/arm/boot/dts/imx6qdl-apalis.dtsi | 67 ++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-)arch/arm/boot/dts/imx6qdl-apalis.dtsi +0
-0
arch/arm/boot/dts/imx6qdl-apalis.dtsi line 32
Quoted 4 lines
arch/arm/boot/dts/imx6qdl-apalis.dtsi +1
-0@@ -29,6 +29,12 @@ status = "disabled"; }; + clk_ov5640_osc: clk_ov5640_osc_int {
Node names should have "-", not "_"
clk_ov5640_osc: clk-ov5640-osc
Also, no need for the _int suffix.
Just curious: is ov5640 mipi support functional?
I recalled that I had issues in getting Gstreamer pipeline to capture from the ov5640 mipi.
There were some errors related to LP-11 during the start of the capture.
Fabio Estevam
reviewerRe: [PATCH v1 12/17] ARM: dts: imx6q-apalis: Add adv7280 video input
In reply to Max KrummenacherHi Max,
arch/arm/boot/dts/imx6qdl-apalis.dtsi line 665
Quoted 5 lines · Max Krummenacher
arch/arm/boot/dts/imx6qdl-apalis.dtsi +5
-0+ adv_7280: adv7280@21 { + compatible = "adi,adv7280"; + reg = <0x21>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ipu1_csi0>;
I suggest passing "adv,force-bt656-4" property as this fixes sync problems.
Re: [PATCH v1 02/17] Revert "ARM: dts: imx6qdl-apalis: Avoid underscore in node name"
In reply to Max KrummenacherQuoted 5 lines · Max Krummenacher
From: Max Krummenacher <[email protected]>
The STMPE MFD device binding requires the child node to have a fixed name, i.e. with '_', not '-'. Otherwise the
stmpe_adc,stmpe_touchscreendrivers will not be probed.
IMO, the Linux driver should be fixed and the requirement to use a fixed node name be dropped from the binding. The driver itself already probes by compatible, the node name seems only to be used by the MFD driver to detect which functions to enable. It could do the same by checking for compatibles. Otherwise you invite a game of cat and mouse, where in future, this is changed back again reintroducing the regression..
Quoted 2 lines
Fixes 56086b5e804f ("ARM: dts: imx6qdl-apalis: Avoid underscore in node name")Signed-off-by Max Krummenacher <[email protected]>
Anyway, as a fix, this looks ok for now:
Cheers,
Ahmad
Quoted 27 lines
---
arch/arm/boot/dts/imx6qdl-apalis.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx6qdl-apalis.dtsi +2
-2@@ -315,7 +315,7 @@ /* ADC conversion time: 80 clocks */ st,sample-time = <4>; - stmpe_touchscreen: stmpe-touchscreen { + stmpe_touchscreen: stmpe_touchscreen { compatible = "st,stmpe-ts"; /* 8 sample average control */ st,ave-ctrl = <3>;@@ -332,7 +332,7 @@ st,touch-det-delay = <5>; }; - stmpe_adc: stmpe-adc { + stmpe_adc: stmpe_adc { compatible = "st,stmpe-adc"; /* forbid to use ADC channels 3-0 (touch) */ st,norequest-mask = <0x0F>;
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Re: [PATCH v1 02/17] Revert "ARM: dts: imx6qdl-apalis: Avoid underscore in node name"
Quoted 7 lines · Ahmad Fatoum
Quoted 5 lines · Max Krummenacher
From: Max Krummenacher <[email protected]>
The STMPE MFD device binding requires the child node to have a fixed name, i.e. with '_', not '-'. Otherwise the
stmpe_adc,stmpe_touchscreendrivers will not be probed.
Quoted 6 lines
IMO, the Linux driver should be fixed and the requirement to use a fixed node name be dropped from the binding. The driver itself already probes by compatible, the node name seems only to be used by the MFD driver to detect which functions to enable. It could do the same by checking for compatibles. Otherwise you invite a game of cat and mouse, where in future, this is changed back again reintroducing the regression..
How would you handle in general such kind of change? Would you keep the driver probing for both the old name with the _ and the compatible or you just break the compatibility?
Francesco
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH v1 02/17] Revert "ARM: dts: imx6qdl-apalis: Avoid underscore in node name"
Hello Francesco,
Quoted 15 lines · Francesco Dolcini
Quoted 7 lines · Ahmad Fatoum
Quoted 5 lines · Max Krummenacher
From: Max Krummenacher <[email protected]>
The STMPE MFD device binding requires the child node to have a fixed name, i.e. with '_', not '-'. Otherwise the
stmpe_adc,stmpe_touchscreendrivers will not be probed.Quoted 6 lines
IMO, the Linux driver should be fixed and the requirement to use a fixed node name be dropped from the binding. The driver itself already probes by compatible, the node name seems only to be used by the MFD driver to detect which functions to enable. It could do the same by checking for compatibles. Otherwise you invite a game of cat and mouse, where in future, this is changed back again reintroducing the regression..
Quoted 3 lines
How would you handle in general such kind of change? Would you keep the driver probing for both the old name with the
_and the compatible or you just break the compatibility?
The Binding requires child nodes to have both a specific node name and compatible. So if we remove the node name restriction, we stay compliant to the binding.
The MFD driver requires specific node names, while the MFD cell drivers seem to be matched by compatibles. It's thus should be safe to replace the node name readout in the MFD driver with a compatible check.
Existing device trees will continue to work. Newer device trees can use dashes. Once the binding is converted to YAML, we could enforce a name to get everyone aligned, but it will be just a binding checker warning, not a breakage on update.
Cheers,
Ahmad
Quoted 4 lines
Francesco
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Fabio Estevam
reviewerRe: [PATCH v1 11/17] ARM: dts: imx6q-apalis: Add ov5640 mipi csi camera
In reply to Max KrummenacherHi Max,
arch/arm/boot/dts/imx6qdl-apalis.dtsi line 647
Quoted 2 lines · Max Krummenacher
arch/arm/boot/dts/imx6qdl-apalis.dtsi +2
-0+ ov5640_csi_cam: ov5640_mipi@3c { + compatible = "ovti,ov5640";
Does it make sense to describe the ov5640 camera in the Apalis SoM dtsi?
The camera is not populated in the SoM. What if the customer baseboard uses a different camera?
The same applies to the adv720 description.
Re: [PATCH v1 01/17] dt-bindings: arm: fsl: Add carrier for toradex,apalis-imx6q
In reply to Max KrummenacherQuoted 11 lines · Max Krummenacher
From: Max Krummenacher <[email protected]>
Add binding for the Ixora V1.2 carrier board our Apalis iMX6D/Q may be mated with.
Signed-off-by Max Krummenacher <[email protected]>---
Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+)
Re: [PATCH v1 12/17] ARM: dts: imx6q-apalis: Add adv7280 video input
In reply to Fabio EstevamHi Fabio
Quoted 5 lines · Fabio Estevam
Hi Max,
On Mon, May 16, 2022 at 8:59 AM Max Krummenacher <[email protected]> wrote:
Quoted 7 lines
arch/arm/boot/dts/imx6qdl-apalis.dtsi line 665
Quoted 5 lines
arch/arm/boot/dts/imx6qdl-apalis.dtsi +5
-0+ adv_7280: adv7280@21 { + compatible = "adi,adv7280"; + reg = <0x21>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ipu1_csi0>;I suggest passing "adv,force-bt656-4" property as this fixes sync problems.
I will add the property in a V2 of the patchset. Thanks for the suggestion. With my setup, i.e. PAL camera as the signal source I see no noticeable change though.
Max
Fabio Estevam
reviewerRe: [PATCH v1 12/17] ARM: dts: imx6q-apalis: Add adv7280 video input
Hi Max,
Quoted 3 lines · Max Krummenacher
I will add the property in a V2 of the patchset. Thanks for the suggestion. With my setup, i.e. PAL camera as the signal source I see no noticeable change though.
Correct. This property helps to fix the sync with NTSC video.
Re: [PATCH v1 11/17] ARM: dts: imx6q-apalis: Add ov5640 mipi csi camera
In reply to Fabio EstevamHi Fabio
Quoted 27 lines · Fabio Estevam
Hi Max,
Quoted 23 lines · Max Krummenacher
From: Oleksandr Suvorov <[email protected]>
The Apalis iMX6 modules allow connecting a mipi-csi video input. Add support for our OV5640 camera module but have it disabled. This allows to enable it in an overlay per the current system configuration.
Signed-off-by Oleksandr Suvorov <[email protected]>Signed-off-by Max Krummenacher <[email protected]>---
arch/arm/boot/dts/imx6qdl-apalis.dtsi | 67 ++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-)arch/arm/boot/dts/imx6qdl-apalis.dtsi +0
-0@@ -29,6 +29,12 @@ status = "disabled"; };
Quoted 3 lines
arch/arm/boot/dts/imx6qdl-apalis.dtsi line 32
Quoted 1 line
arch/arm/boot/dts/imx6qdl-apalis.dtsi +1
-0+ clk_ov5640_osc: clk_ov5640_osc_int {Node names should have "-", not "_"
Ups, missed that one. Will fix it in V2. Thanks.
Quoted 11 lines
clk_ov5640_osc: clk-ov5640-oscAlso, no need for the
_intsuffix.Just curious: is ov5640 mipi support functional?
I recalled that I had issues in getting Gstreamer pipeline to capture from the ov5640 mipi.
There were some errors related to LP-11 during the start of the capture.
In my (limited) testing I saw no issues that the camera would not come up. It takes 2 to 3 seconds until the pipeline is running but I noted no hickups. I did this with setting the resolution to 640x480 and 1920x1080 which probably would not relate to the LP-11 issue you mention.
I.e. I set up the v4l2 pipeline and start capture to the screen as follows:
``` media-ctl -l "'ov5640 1-003c':0 -> 'imx6-mipi-csi2':0[1]" media-ctl -l "'imx6-mipi-csi2':2 -> 'ipu1_csi1':0[1]" media-ctl -l "'ipu1_csi1':2 -> 'ipu1_csi1 capture':0[1]" media-ctl -V "'ov5640 1-003c':0 [fmt:UYVY2X8/640x480 field:none]" media-ctl -V "'imx6-mipi-csi2':2 [fmt:UYVY2X8/640x480 field:none]" media-ctl -V "'ipu1_csi1':2 [fmt:AYUV32/640x480 field:none]" gst-launch-1.0 v4l2src device='/dev/video0' ! videoconvert ! waylandsink ```
Max
Fabio Estevam
reviewerRe: [PATCH v1 11/17] ARM: dts: imx6q-apalis: Add ov5640 mipi csi camera
Hi Max,
Quoted 6 lines · Max Krummenacher
In my (limited) testing I saw no issues that the camera would not come up. It takes 2 to 3 seconds until the pipeline is running but I noted no hickups. I did this with setting the resolution to 640x480 and 1920x1080 which probably would not relate to the LP-11 issue you mention.
I.e. I set up the v4l2 pipeline and start capture to the screen as follows:
Just curious: which baseboard did you use to test the ov5640 camera?
Most likely there was an issue with the customer's baseboard that prevented the camera capture to start.
Thanks
Re: [PATCH v1 11/17] ARM: dts: imx6q-apalis: Add ov5640 mipi csi camera
In reply to Fabio EstevamHi Fabio
Quoted 8 lines · Fabio Estevam
Hi Max,
arch/arm/boot/dts/imx6qdl-apalis.dtsi line 647
Quoted 2 lines · Max Krummenacher
arch/arm/boot/dts/imx6qdl-apalis.dtsi +2
-0+ ov5640_csi_cam: ov5640_mipi@3c { + compatible = "ovti,ov5640";
Quoted 6 lines
Does it make sense to describe the ov5640 camera in the Apalis SoM dtsi?
The camera is not populated in the SoM. What if the customer baseboard uses a different camera?
The same applies to the adv720 description.
We moved to a pattern where we do describe the 'Toradex' peripherals in the SoM dtsi but
keep their status disabled. Then if the peripheral is on the carrier board we only have to
enable it in the carrier board dts, for peripherals attached to the carrier boards (e.g. like the
cameras) we enable it in device tree overlays.
This did reduce code duplication a lot.
A customer who attaches a different camera would add its camera node in its device tree
or overlay and keep the ov5640 or adv7280 nodes disabled.
So I would rather not change anything here.
Max
Re: [PATCH v1 11/17] ARM: dts: imx6q-apalis: Add ov5640 mipi csi camera
In reply to Fabio EstevamHi Fabio
Quoted 10 lines · Fabio Estevam
Hi Max,
Quoted 5 lines · Max Krummenacher
In my (limited) testing I saw no issues that the camera would not come up. It takes 2 to 3 seconds until the pipeline is running but I noted no hickups. I did this with setting the resolution to 640x480 and 1920x1080 which probably would not relate to the LP-11 issue you mention.
Quoted 6 lines
Quoted 1 line
I.e. I set up the v4l2 pipeline and start capture to the screen as follows:
Just curious: which baseboard did you use to test the ov5640 camera?
Most likely there was an issue with the customer's baseboard that prevented the camera capture to start.
I used an 'Apalis Evaluation Board' with an 'Apalis iMX6 Mezannine V2.0A'. Now I did retry and it works equally well on an 'Ixora V1.1A'
Note that in the beginning the camera module required the SoM to provide a 24MHz clock. The V1.1B HW version then got its local oscillator and the clock input no longer requires a clock. That may or may not have been the issue your customer saw.
Max
Rob Herring
maintainerRe: [PATCH v1 02/17] Revert "ARM: dts: imx6qdl-apalis: Avoid underscore in node name"
In reply to Max KrummenacherQuoted 18 lines · Max Krummenacher
From: Max Krummenacher <[email protected]>
The STMPE MFD device binding requires the child node to have a fixed name, i.e. with '_', not '-'. Otherwise the
stmpe_adc,stmpe_touchscreendrivers will not be probed.Fixes 56086b5e804f ("ARM: dts: imx6qdl-apalis: Avoid underscore in node name")Signed-off-by Max Krummenacher <[email protected]>---
arch/arm/boot/dts/imx6qdl-apalis.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/boot/dts/imx6qdl-apalis.dtsi +0
-0
arch/arm/boot/dts/imx6qdl-apalis.dtsi line 318
Quoted 5 lines
arch/arm/boot/dts/imx6qdl-apalis.dtsi +1
-1@@ -315,7 +315,7 @@ /* ADC conversion time: 80 clocks */ st,sample-time = <4>; - stmpe_touchscreen: stmpe-touchscreen { + stmpe_touchscreen: stmpe_touchscreen {
In any case, the correct name would have been 'touchscreen' and 'adc'.
Quoted 15 lines
arch/arm/boot/dts/imx6qdl-apalis.dtsi +1
-1compatible = "st,stmpe-ts"; /* 8 sample average control */ st,ave-ctrl = <3>;@@ -332,7 +332,7 @@ st,touch-det-delay = <5>; }; - stmpe_adc: stmpe-adc { + stmpe_adc: stmpe_adc { compatible = "st,stmpe-adc"; /* forbid to use ADC channels 3-0 (touch) */ st,norequest-mask = <0x0F>;Signature · 1 line
2.20.1