Skip to contentSkip to conversation

of: Add vendor prefix for Menlo Systems GmbH

PATCH In review Marek Vasut 3 participants 10 messages Mar 21, 2019 – Apr 11, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/3 of: Add vendor prefix for Menlo Systems GmbH

Add vendor prefix for Menlo Systems GmbH, http://www.menlosystems.com/ .

To: [email protected]
---
V2: - Rebase on latest next/master
V3: - No change
V4: - No change

---
 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 10b52511ac63..fae55f50b2d3 100644
@@ -244,6 +244,7 @@ melexis	Melexis N.V.
 melfas	MELFAS Inc.
 mellanox	Mellanox Technologies
 memsic	MEMSIC Inc.
+menlo	Menlo Systems GmbH
 merrii	Merrii Technology Co., Ltd.
 micrel	Micrel Inc.
 microchip	Microchip Technology Inc.
Signature · 1 line
2.20.1
#1 lore raw

PATCH v4 2/3 ARM: dts: imx53: Rename M53 SoM touchscreen node

Rename the touchscreen node to match contemporary design.

Cc Shawn Guo <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>

To: [email protected]
---
V4: - New patch

---
 arch/arm/boot/dts/imx53-m53.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx53-m53.dtsi +1 -1
index db2e5bce9b6a..d1770e1d5e50 100644
@@ -52,7 +52,7 @@
 	clock-frequency = <400000>;
 	status = "okay";
 
-	stmpe610@41 {
+	touchscreen@41 {
 		compatible = "st,stmpe610";
 		reg = <0x41>;
 		id = <0>;
Signature · 7 lines
2.20.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#2 lore raw

PATCH v4 3/3 ARM: dts: imx53: Add Menlosystems M53 board

In reply to Marek Vasut

Add device tree for the Menlosystems board based on i.MX53 M53 SoM.

Cc Shawn Guo <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>

To: [email protected]
---
V2: - Rebase on latest next/master
V3: - Add vendor specific compatible for the platform
- Rename ledgrp and touchscreen nodes to follow DT spec
- Update pinmux (LVDS has no pin config, so use default settings)
V4: - Add fsl.yaml entry
- Pull regulator out of simple bus
- Rename touchscreen@ node
- Add reg entry to lvds-channel@0
- Fix touchscreen interrupt polarity

---
 .../devicetree/bindings/arm/fsl.yaml          |   1 +
 arch/arm/boot/dts/Makefile                    |   1 +
 arch/arm/boot/dts/imx53-m53menlo.dts          | 310 ++++++++++++++++++
 3 files changed, 312 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx53-m53menlo.dts
Documentation/devicetree/bindings/arm/fsl.yaml +1 -0
index 7e2cd6ad26bd..d106003a0c91 100644
@@ -67,6 +67,7 @@ properties:
               - fsl,imx53-evk
               - fsl,imx53-qsb
               - fsl,imx53-smd
+              - menlo,m53menlo
           - const: fsl,imx53
 
       - description: i.MX6Q based Boards
arch/arm/boot/dts/Makefile +1 -0
index dad1202d1d87..96ea958698a0 100644
@@ -380,6 +380,7 @@ dtb-$(CONFIG_SOC_IMX53) += \
 	imx53-kp-ddc.dtb \
 	imx53-kp-hsc.dtb \
 	imx53-m53evk.dtb \
+	imx53-m53menlo.dtb \
 	imx53-mba53.dtb \
 	imx53-ppd.dtb \
 	imx53-qsb.dtb \
arch/arm/boot/dts/imx53-m53menlo.dts new file +310 -0

310 lines not on this page · raw message

Signature · 7 lines
2.20.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#3 lore raw

Re: [PATCH V4 3/3] ARM: dts: imx53: Add Menlosystems M53 board

Quoted 17 lines · Marek Vasut

Add device tree for the Menlosystems board based on i.MX53 M53 SoM.

Cc Shawn Guo <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>

To: [email protected]
---
V2: - Rebase on latest next/master
V3: - Add vendor specific compatible for the platform
- Rename ledgrp and touchscreen nodes to follow DT spec
- Update pinmux (LVDS has no pin config, so use default settings)
V4: - Add fsl.yaml entry
- Pull regulator out of simple bus
- Rename touchscreen@ node
- Add reg entry to lvds-channel@0
- Fix touchscreen interrupt polarity

Quoted 2 lines
---
 .../devicetree/bindings/arm/fsl.yaml          |   1 +

We need to make the bindings a separate patch and be ACK-ed by DT folks.

Quoted 263 lines
 arch/arm/boot/dts/Makefile                    |   1 +
 arch/arm/boot/dts/imx53-m53menlo.dts          | 310 ++++++++++++++++++
 3 files changed, 312 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx53-m53menlo.dts
Documentation/devicetree/bindings/arm/fsl.yaml +1 -0
index 7e2cd6ad26bd..d106003a0c91 100644
@@ -67,6 +67,7 @@ properties:
               - fsl,imx53-evk
               - fsl,imx53-qsb
               - fsl,imx53-smd
+              - menlo,m53menlo
           - const: fsl,imx53
 
       - description: i.MX6Q based Boards
arch/arm/boot/dts/Makefile +1 -0
index dad1202d1d87..96ea958698a0 100644
@@ -380,6 +380,7 @@ dtb-$(CONFIG_SOC_IMX53) += \
 	imx53-kp-ddc.dtb \
 	imx53-kp-hsc.dtb \
 	imx53-m53evk.dtb \
+	imx53-m53menlo.dtb \
 	imx53-mba53.dtb \
 	imx53-ppd.dtb \
 	imx53-qsb.dtb \
arch/arm/boot/dts/imx53-m53menlo.dts new file +228 -0
new file mode 100644
index 000000000000..441842b272e1
@@ -0,0 +1,310 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (C) 2019 Marek Vasut <[email protected]>
+ */
+
+/dts-v1/;
+#include "imx53-m53.dtsi"
+
+/ {
+	model = "MENLO M53 EMBEDDED DEVICE";
+	compatible = "menlo,m53menlo", "fsl,imx53";
+
+	leds {
+		compatible = "gpio-leds";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_led>;
+
+		user1 {
+			label = "TestLed601";
+			gpios = <&gpio6 1 GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "mmc0";
+		};
+
+		user2 {
+			label = "TestLed602";
+			gpios = <&gpio6 2 GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "heartbeat";
+		};
+
+		eth {
+			label = "EthLedYe";
+			gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
+			linux,default-trigger = "none";
+		};
+	};
+
+	panel {
+		compatible = "edt,etm070080dh6";
+		enable-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>;
+
+		port {
+			panel_in: endpoint {
+				remote-endpoint = <&lvds0_out>;
+			};
+		};
+	};
+
+	reg_usbh1_vbus: regulator-usbh1-vbus {
+		compatible = "regulator-fixed";
+		regulator-name = "vbus";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		gpio = <&gpio1 2 GPIO_ACTIVE_LOW>;
+	};
+};
+
+&can1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_can1>;
+	status = "okay";
+};
+
+&can2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_can2>;
+	status = "okay";
+};
+
+&clks {
+	assigned-clocks = <&clks IMX5_CLK_CKO1_SEL>,
+			  <&clks IMX5_CLK_CKO1_PODF>,
+			  <&clks IMX5_CLK_CKO1>;
+	assigned-clock-parents = <&clks IMX5_CLK_AHB>;
+	assigned-clock-rates = <133333334>, <33333334>, <33333334>;
+};
+
+&esdhc1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_esdhc1>;
+	cd-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
+	wp-gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
+	status = "okay";
+};
+
+&fec {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_fec>;
+	phy-mode = "rmii";
+	status = "okay";
+};
+
+&i2c1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c1>;
+	status = "okay";
+
+	touchscreen@38 {
+		compatible = "edt,edt-ft5x06";
+		reg = <0x38>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_edt_ft5x06>;
+		interrupt-parent = <&gpio6>;
+		interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
+		reset-gpios = <&gpio2 9 GPIO_ACTIVE_LOW>;
+		wake-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
+	};
+
+	eeprom@50 {
+		compatible = "atmel,24c64";
+		reg = <0x50>;
+		pagesize = <32>;
+	};
+
+	dac@60 {
+		compatible = "microchip,mcp4725";
+		reg = <0x60>;
+	};
+};
+
+&i2c2 {
+	touchscreen@41 {
+		status = "disabled";
+	};
+};
+
+&i2c3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c3>;
+	status = "okay";
+};
+
+&iomuxc {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_hog>;
+
+	imx53-m53evk {
+		hoggrp {
+			fsl,pins = <
+				MX53_PAD_GPIO_0__CCM_SSI_EXT1_CLK	0x1c4
+				MX53_PAD_EIM_EB3__GPIO2_31		0x1d5
+				MX53_PAD_PATA_DA_0__GPIO7_6		0x1d5
+				MX53_PAD_GPIO_19__CCM_CLKO		0x1d5
+				MX53_PAD_CSI0_MCLK__CCM_CSI0_MCLK	0x1d5
+				MX53_PAD_CSI0_DAT4__GPIO5_22		0x1d5
+				MX53_PAD_CSI0_DAT5__GPIO5_23		0x1d5
+				MX53_PAD_CSI0_DAT6__GPIO5_24		0x1d5
+				MX53_PAD_CSI0_DAT7__GPIO5_25		0x1d5
+				MX53_PAD_CSI0_DAT8__GPIO5_26		0x1d5
+				MX53_PAD_CSI0_DAT9__GPIO5_27		0x1d5
+				MX53_PAD_CSI0_DAT10__GPIO5_28		0x1d5
+				MX53_PAD_CSI0_DAT11__GPIO5_29		0x1d5
+				MX53_PAD_CSI0_DAT14__GPIO6_0		0x1d5
+			>;
+		};
+
+		pinctrl_led: ledgrp {
+			fsl,pins = <
+				MX53_PAD_CSI0_DAT15__GPIO6_1		0x1d5
+				MX53_PAD_CSI0_DAT16__GPIO6_2		0x1d5
+			>;
+		};
+
+		pinctrl_can1: can1grp {
+			fsl,pins = <
+				MX53_PAD_GPIO_7__CAN1_TXCAN		0x1c4
+				MX53_PAD_GPIO_8__CAN1_RXCAN		0x1c4
+			>;
+		};
+
+		pinctrl_can2: can2grp {
+			fsl,pins = <
+				MX53_PAD_KEY_COL4__CAN2_TXCAN		0x1c4
+				MX53_PAD_KEY_ROW4__CAN2_RXCAN		0x1c4
+			>;
+		};
+
+		pinctrl_display_gpio: display-gpiogrp {
+			fsl,pins = <
+				MX53_PAD_CSI0_DAT12__GPIO5_30		0x1d5 /* Reset */
+				MX53_PAD_CSI0_DAT13__GPIO5_31		0x1d5 /* Interrupt */
+			>;
+		};
+
+		pinctrl_edt_ft5x06: edt-ft5x06grp {
+			fsl,pins = <
+				MX53_PAD_PATA_DATA9__GPIO2_9		0x1d5 /* Reset */
+				MX53_PAD_CSI0_DAT19__GPIO6_5		0x1d5 /* Interrupt */
+				MX53_PAD_PATA_DATA10__GPIO2_10		0x1d5 /* Wake */
+			>;
+		};
+
+		pinctrl_esdhc1: esdhc1grp {
+			fsl,pins = <
+				MX53_PAD_SD1_DATA0__ESDHC1_DAT0		0x1d5
+				MX53_PAD_SD1_DATA1__ESDHC1_DAT1		0x1d5
+				MX53_PAD_SD1_DATA2__ESDHC1_DAT2		0x1d5
+				MX53_PAD_SD1_DATA3__ESDHC1_DAT3		0x1d5
+				MX53_PAD_SD1_CMD__ESDHC1_CMD		0x1d5
+				MX53_PAD_SD1_CLK__ESDHC1_CLK		0x1d5
+			>;
+		};
+
+		pinctrl_fec: fecgrp {
+			fsl,pins = <
+				MX53_PAD_FEC_MDC__FEC_MDC		0x4
+				MX53_PAD_FEC_MDIO__FEC_MDIO		0x1fc
+				MX53_PAD_FEC_REF_CLK__FEC_TX_CLK	0x180
+				MX53_PAD_FEC_RX_ER__FEC_RX_ER		0x180
+				MX53_PAD_FEC_CRS_DV__FEC_RX_DV		0x180
+				MX53_PAD_FEC_RXD1__FEC_RDATA_1		0x180
+				MX53_PAD_FEC_RXD0__FEC_RDATA_0		0x180
+				MX53_PAD_FEC_TX_EN__FEC_TX_EN		0x4
+				MX53_PAD_FEC_TXD1__FEC_TDATA_1		0x4
+				MX53_PAD_FEC_TXD0__FEC_TDATA_0		0x4
+			>;
+		};
+
+		pinctrl_i2c1: i2c1grp {
+			fsl,pins = <
+				MX53_PAD_EIM_D21__I2C1_SCL		0x400001e4
+				MX53_PAD_EIM_D28__I2C1_SDA		0x400001e4
+			>;
+		};
+
+		pinctrl_i2c3: i2c3grp {
+			fsl,pins = <
+				MX53_PAD_GPIO_6__I2C3_SDA		0x400001e4
+				MX53_PAD_GPIO_5__I2C3_SCL		0x400001e4

arch/arm/boot/dts/imx53-m53menlo.dts line 238

Quoted 10 lines
arch/arm/boot/dts/imx53-m53menlo.dts new file +10 -0
+			>;
+		};
+
+		pinctrl_lvds0: lvds0grp {
+			fsl,pins = <
+				MX53_PAD_LVDS0_CLK_P__LDB_LVDS0_CLK	0x80000000
+				MX53_PAD_LVDS0_TX0_P__LDB_LVDS0_TX0	0x80000000
+				MX53_PAD_LVDS0_TX1_P__LDB_LVDS0_TX1	0x80000000
+				MX53_PAD_LVDS0_TX2_P__LDB_LVDS0_TX2	0x80000000
+				MX53_PAD_LVDS0_TX3_P__LDB_LVDS0_TX3	0x80000000

Please have proper pad configurations rather than relying on the settings out of reset or set up by bootloader.

Shawn

Quoted 75 lines
arch/arm/boot/dts/imx53-m53menlo.dts new file +72 -0
+			>;
+		};
+
+		pinctrl_uart1: uart1grp {
+			fsl,pins = <
+				MX53_PAD_PATA_DIOW__UART1_TXD_MUX	0x1e4
+				MX53_PAD_PATA_DMACK__UART1_RXD_MUX	0x1e4
+			>;
+		};
+
+		pinctrl_uart2: uart2grp {
+			fsl,pins = <
+				MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX	0x1e4
+				MX53_PAD_PATA_DMARQ__UART2_TXD_MUX	0x1e4
+			>;
+		};
+
+		pinctrl_usb: usbgrp {
+			fsl,pins = <
+				MX53_PAD_GPIO_2__GPIO1_2		0x1d5
+				MX53_PAD_GPIO_3__USBOH3_USBH1_OC	0x1d5
+			>;
+		};
+	};
+};
+
+&ldb {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_lvds0>;
+	status = "okay";
+
+	lvds0: lvds-channel@0 {
+		reg = <0>;
+		fsl,data-mapping = "spwg";
+		fsl,data-width = <18>;
+		status = "okay";
+
+		port@2 {
+			reg = <2>;
+
+			lvds0_out: endpoint {
+				remote-endpoint = <&panel_in>;
+			};
+		};
+	};
+};
+
+&uart1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart1>;
+	status = "okay";
+};
+
+&uart2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart2>;
+	status = "okay";
+};
+
+&usbh1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usb>;
+	vbus-supply = <&reg_usbh1_vbus>;
+	phy_type = "utmi";
+	dr_mode = "peripheral";
+	status = "okay";
+};
+
+&usbotg {
+	dr_mode = "peripheral";
+	status = "okay";
+};
Signature · 1 line
2.20.1

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#4 lore raw

Re: [PATCH V4 3/3] ARM: dts: imx53: Add Menlosystems M53 board

Quoted 21 lines · Shawn Guo
Quoted 17 lines · Marek Vasut

Add device tree for the Menlosystems board based on i.MX53 M53 SoM.

Cc Shawn Guo <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>

To: [email protected]
---
V2: - Rebase on latest next/master
V3: - Add vendor specific compatible for the platform
- Rename ledgrp and touchscreen nodes to follow DT spec
- Update pinmux (LVDS has no pin config, so use default settings)
V4: - Add fsl.yaml entry
- Pull regulator out of simple bus
- Rename touchscreen@ node
- Add reg entry to lvds-channel@0
- Fix touchscreen interrupt polarity

Quoted 2 lines
---
 .../devicetree/bindings/arm/fsl.yaml          |   1 +
Quoted 1 line

We need to make the bindings a separate patch and be ACK-ed by DT folks.

Sure.

Quoted 5 lines
Quoted 5 lines
 arch/arm/boot/dts/Makefile                    |   1 +
 arch/arm/boot/dts/imx53-m53menlo.dts          | 310 ++++++++++++++++++
 3 files changed, 312 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx53-m53menlo.dts

[...]

Quoted 10 lines

arch/arm/boot/dts/imx53-m53menlo.dts line 238

Quoted 7 lines
arch/arm/boot/dts/imx53-m53menlo.dts new file +7 -0
+		pinctrl_lvds0: lvds0grp {
+			fsl,pins = <
+				MX53_PAD_LVDS0_CLK_P__LDB_LVDS0_CLK	0x80000000
+				MX53_PAD_LVDS0_TX0_P__LDB_LVDS0_TX0	0x80000000
+				MX53_PAD_LVDS0_TX1_P__LDB_LVDS0_TX1	0x80000000
+				MX53_PAD_LVDS0_TX2_P__LDB_LVDS0_TX2	0x80000000
+				MX53_PAD_LVDS0_TX3_P__LDB_LVDS0_TX3	0x80000000

Please have proper pad configurations rather than relying on the settings out of reset or set up by bootloader.

Do you have an example LVDS configuration for the MX53 ? I didn't find one, all the other boards just leave the LVDS line configuration in default settings.

Signature · 7 lines
Best regards,
Marek Vasut

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#5 lore raw

Re: [PATCH V4 3/3] ARM: dts: imx53: Add Menlosystems M53 board

Quoted 45 lines · Marek Vasut
Quoted 21 lines · Shawn Guo
Quoted 17 lines · Marek Vasut

Add device tree for the Menlosystems board based on i.MX53 M53 SoM.

Cc Shawn Guo <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>

To: [email protected]
---
V2: - Rebase on latest next/master
V3: - Add vendor specific compatible for the platform
- Rename ledgrp and touchscreen nodes to follow DT spec
- Update pinmux (LVDS has no pin config, so use default settings)
V4: - Add fsl.yaml entry
- Pull regulator out of simple bus
- Rename touchscreen@ node
- Add reg entry to lvds-channel@0
- Fix touchscreen interrupt polarity

Quoted 2 lines
---
 .../devicetree/bindings/arm/fsl.yaml          |   1 +
Quoted 1 line

We need to make the bindings a separate patch and be ACK-ed by DT folks.

Sure.

Quoted 5 lines
Quoted 5 lines
 arch/arm/boot/dts/Makefile                    |   1 +
 arch/arm/boot/dts/imx53-m53menlo.dts          | 310 ++++++++++++++++++
 3 files changed, 312 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx53-m53menlo.dts

[...]

Quoted 10 lines

arch/arm/boot/dts/imx53-m53menlo.dts line 238

Quoted 7 lines
arch/arm/boot/dts/imx53-m53menlo.dts new file +7 -0
+		pinctrl_lvds0: lvds0grp {
+			fsl,pins = <
+				MX53_PAD_LVDS0_CLK_P__LDB_LVDS0_CLK	0x80000000
+				MX53_PAD_LVDS0_TX0_P__LDB_LVDS0_TX0	0x80000000
+				MX53_PAD_LVDS0_TX1_P__LDB_LVDS0_TX1	0x80000000
+				MX53_PAD_LVDS0_TX2_P__LDB_LVDS0_TX2	0x80000000
+				MX53_PAD_LVDS0_TX3_P__LDB_LVDS0_TX3	0x80000000

Please have proper pad configurations rather than relying on the settings out of reset or set up by bootloader.

Quoted 3 lines

Do you have an example LVDS configuration for the MX53 ? I didn't find one, all the other boards just leave the LVDS line configuration in default settings.

Sorry, I do not. If your bootloader doesn't touch the settings, you may just need to code the reset values from reference manual here?

Shawn

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#6 lore raw

Re: [PATCH V4 3/3] ARM: dts: imx53: Add Menlosystems M53 board

Quoted 46 lines · Shawn Guo
Quoted 45 lines · Marek Vasut
Quoted 21 lines · Shawn Guo
Quoted 17 lines · Marek Vasut

Add device tree for the Menlosystems board based on i.MX53 M53 SoM.

Cc Shawn Guo <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>

To: [email protected]
---
V2: - Rebase on latest next/master
V3: - Add vendor specific compatible for the platform
- Rename ledgrp and touchscreen nodes to follow DT spec
- Update pinmux (LVDS has no pin config, so use default settings)
V4: - Add fsl.yaml entry
- Pull regulator out of simple bus
- Rename touchscreen@ node
- Add reg entry to lvds-channel@0
- Fix touchscreen interrupt polarity

Quoted 2 lines
---
 .../devicetree/bindings/arm/fsl.yaml          |   1 +
Quoted 1 line

We need to make the bindings a separate patch and be ACK-ed by DT folks.

Sure.

Quoted 5 lines
Quoted 5 lines
 arch/arm/boot/dts/Makefile                    |   1 +
 arch/arm/boot/dts/imx53-m53menlo.dts          | 310 ++++++++++++++++++
 3 files changed, 312 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx53-m53menlo.dts

[...]

Quoted 10 lines

arch/arm/boot/dts/imx53-m53menlo.dts line 238

Quoted 7 lines
arch/arm/boot/dts/imx53-m53menlo.dts new file +7 -0
+		pinctrl_lvds0: lvds0grp {
+			fsl,pins = <
+				MX53_PAD_LVDS0_CLK_P__LDB_LVDS0_CLK	0x80000000
+				MX53_PAD_LVDS0_TX0_P__LDB_LVDS0_TX0	0x80000000
+				MX53_PAD_LVDS0_TX1_P__LDB_LVDS0_TX1	0x80000000
+				MX53_PAD_LVDS0_TX2_P__LDB_LVDS0_TX2	0x80000000
+				MX53_PAD_LVDS0_TX3_P__LDB_LVDS0_TX3	0x80000000

Please have proper pad configurations rather than relying on the settings out of reset or set up by bootloader.

Quoted 6 lines
Quoted 3 lines

Do you have an example LVDS configuration for the MX53 ? I didn't find one, all the other boards just leave the LVDS line configuration in default settings.

Sorry, I do not. If your bootloader doesn't touch the settings, you may just need to code the reset values from reference manual here?

The reference manual only indicates there's a MUX_MODE bit for those signals, there are no other configuration values. So I presume this is actually correct ?

Signature · 7 lines
Best regards,
Marek Vasut

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#7 lore raw

Re: [PATCH V4 3/3] ARM: dts: imx53: Add Menlosystems M53 board

Quoted 51 lines · Marek Vasut
Quoted 50 lines · Shawn Guo
Quoted 48 lines · Marek Vasut
Quoted 21 lines · Shawn Guo
Quoted 17 lines · Marek Vasut

Add device tree for the Menlosystems board based on i.MX53 M53 SoM.

Cc Shawn Guo <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc NXP Linux Team <[email protected]>

To: [email protected]
---
V2: - Rebase on latest next/master
V3: - Add vendor specific compatible for the platform
- Rename ledgrp and touchscreen nodes to follow DT spec
- Update pinmux (LVDS has no pin config, so use default settings)
V4: - Add fsl.yaml entry
- Pull regulator out of simple bus
- Rename touchscreen@ node
- Add reg entry to lvds-channel@0
- Fix touchscreen interrupt polarity

Quoted 2 lines
---
 .../devicetree/bindings/arm/fsl.yaml          |   1 +
Quoted 1 line

We need to make the bindings a separate patch and be ACK-ed by DT folks.

Sure.

Quoted 5 lines
Quoted 5 lines
 arch/arm/boot/dts/Makefile                    |   1 +
 arch/arm/boot/dts/imx53-m53menlo.dts          | 310 ++++++++++++++++++
 3 files changed, 312 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx53-m53menlo.dts

[...]

Quoted 10 lines

arch/arm/boot/dts/imx53-m53menlo.dts line 238

Quoted 7 lines
arch/arm/boot/dts/imx53-m53menlo.dts new file +7 -0
+		pinctrl_lvds0: lvds0grp {
+			fsl,pins = <
+				MX53_PAD_LVDS0_CLK_P__LDB_LVDS0_CLK	0x80000000
+				MX53_PAD_LVDS0_TX0_P__LDB_LVDS0_TX0	0x80000000
+				MX53_PAD_LVDS0_TX1_P__LDB_LVDS0_TX1	0x80000000
+				MX53_PAD_LVDS0_TX2_P__LDB_LVDS0_TX2	0x80000000
+				MX53_PAD_LVDS0_TX3_P__LDB_LVDS0_TX3	0x80000000

Please have proper pad configurations rather than relying on the settings out of reset or set up by bootloader.

Do you have an example LVDS configuration for the MX53 ? I didn't find one, all the other boards just leave the LVDS line configuration in default settings.

Quoted 6 lines
Quoted 2 lines

Sorry, I do not. If your bootloader doesn't touch the settings, you may just need to code the reset values from reference manual here?

The reference manual only indicates there's a MUX_MODE bit for those signals, there are no other configuration values. So I presume this is actually correct ?

Configuring the pads with unknown values is not a correct thing to me. Again, we are trying to get away from using 0x80000000, so please do not introduce more.

Shawn

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

reviewer
#8 lore raw

Re: [PATCH V4 3/3] ARM: dts: imx53: Add Menlosystems M53 board

Hi Shawn,

Quoted 7 lines · Shawn Guo
Quoted 3 lines

The reference manual only indicates there's a MUX_MODE bit for those signals, there are no other configuration values. So I presume this is actually correct ?

Configuring the pads with unknown values is not a correct thing to me. Again, we are trying to get away from using 0x80000000, so please do not introduce more.

Looking at the i.MX53 Reference these LVDS pins look different from the others because they do not have the associated IOMUXC_SW_PAD_CTL register, only the IOMUXC_SW_MUX_CTL_PAD_LVDS0_CLK_P is present. This means that we don't have a real value to put in the devicetree, so 0x80000000 makes sense in this case.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#9 lore raw

Re: [PATCH V4 3/3] ARM: dts: imx53: Add Menlosystems M53 board

Quoted 12 lines · Fabio Estevam

Hi Shawn,

Quoted 7 lines · Shawn Guo
Quoted 3 lines

The reference manual only indicates there's a MUX_MODE bit for those signals, there are no other configuration values. So I presume this is actually correct ?

Configuring the pads with unknown values is not a correct thing to me. Again, we are trying to get away from using 0x80000000, so please do not introduce more.

Quoted 5 lines

Looking at the i.MX53 Reference these LVDS pins look different from the others because they do not have the associated IOMUXC_SW_PAD_CTL register, only the IOMUXC_SW_MUX_CTL_PAD_LVDS0_CLK_P is present. This means that we don't have a real value to put in the devicetree, so 0x80000000 makes sense in this case.

Okay. @Marek, please add the comment into the code.

Shawn

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel