Skip to contentSkip to conversation

dt-bindings: phy: ti,tcan104x-can: Document Microchip ATA6563

PATCH Superseded Marek Vasut 2 participants 4 messages Sep 17

Subsystems (4)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 dt-bindings: phy: ti,tcan104x-can: Document Microchip ATA6563

Microchip ATA6563 is High-Speed CAN Transceiver with Standby Mode. It is pin-compatible with TI TCAN1042 and has a compatible programming model, therefore use ti,tcan1042 as fallback compatible.

---
Cc: Aswath Govindraju <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Marc Kleine-Budde <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V2: No change

---
 Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml +1 -0
index 9f5c37ca6496a..75c276548e122 100644
@@ -18,6 +18,7 @@ properties:
       - items:
           - enum:
               - microchip,ata6561
+              - microchip,ata6563
               - ti,tcan1051
           - const: ti,tcan1042
       - items:
Signature · 1 line
2.53.0
#1 lore raw

PATCH v2 2/3 dt-bindings: arm: fsl: Document Data Modul i.MX95 eDM SBC

Document Data Modul i.MX95 eDM SBC board. This is an evaluation board for various custom display units. Currently supported are serial console, ethernet, eMMC, SD, SPI NOR, USB host and PCIe.

---
Cc: Aswath Govindraju <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Marc Kleine-Budde <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V2: No change

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/fsl.yaml +1 -0
index 36e28e0e4ad99..04abae2018043 100644
@@ -1548,6 +1548,7 @@ properties:
       - description: i.MX95 based Boards
         items:
           - enum:
+              - dmo,imx95-data-modul-edm-sbc # i.MX95 eDM SBC
               - fsl,imx95-15x15-ab2       # i.MX95 15x15 Audio Board V2
               - fsl,imx95-15x15-evk       # i.MX95 15x15 EVK Board
               - fsl,imx95-15x15-frdm      # i.MX95 15x15 FRDM Board
Signature · 1 line
2.53.0
#2 lore raw

PATCH v2 3/3 arm64: dts: imx95: Add support for Data Modul i.MX95 eDM SBC

In reply to Marek Vasut

Add support for Data Modul i.MX95 eDM SBC board. This is an evaluation board for various custom display units. Currently supported are serial console, ethernet, eMMC, SD, SPI NOR, USB host and PCIe.

---
Cc: Aswath Govindraju <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Frank Li <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Marc Kleine-Budde <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V2: - Rename PCIE_M2-E_EN to PCIE_M2-M_EN
- Fix the PCAL expander GPIO reset

---
 arch/arm64/boot/dts/freescale/Makefile        |    1 +
 .../freescale/imx95-data-modul-edm-sbc.dts    | 1111 +++++++++++++++++
 2 files changed, 1112 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts
arch/arm64/boot/dts/freescale/Makefile +1 -0
index 7944e3b325130..8e4c4464788e4 100644
@@ -955,6 +955,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx95-19x19-evk-sof.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx95-19x19-frdm-pro.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx95-aquila-clover.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx95-aquila-dev.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx95-data-modul-edm-sbc.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx95-toradex-smarc-dev.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx95-tqma9596la-mba95xxca.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx95-tqma9596sa-mb-smarc-2.dtb
arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts new file +1111 -0

1,111 lines not on this page · raw message

Signature · 1 line
2.53.0
#3 lore raw

Re: [PATCH v2 3/3] arm64: dts: imx95: Add support for Data Modul i.MX95 eDM SBC

Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider: - [High] dts: Incorrect interrupt polarity for PCAL6524 GPIO expanders causes interrupt storm - [High] dts…

Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider:
- [High] dts: Incorrect interrupt polarity for PCAL6524 GPIO expanders causes interrupt storm
- [High] dts: Incorrect reset GPIO polarity holds KSZ9131 Ethernet PHYs in reset
- [Low] dts: Use of deprecated singular reset-gpio and gpio properties
- [Low] dts: Typo in the 5.0V fixed regulator node name (regulator-0p0v)
--

commit 88c0d25818385c2749a5ff45278aa5930847be84
Author: Marek Vasut <[email protected]>

arm64: dts: imx95: Add support for Data Modul i.MX95 eDM SBC

This commit adds support for the Data Modul i.MX95 eDM SBC evaluation board, including its serial console, ethernet, eMMC, SD, SPI NOR, USB host, and PCIe components.

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts new file +0 -0
new file mode 100644
index 0000000000000..391bf6e28e9c6
@@ -0,0 +1,1111 @@

[ ... ]

arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts line 131

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts new file +6 -0
+	reg_5p0v: regulator-0p0v {
+		compatible = "regulator-fixed";
+		regulator-max-microvolt = <5000000>;
+		regulator-min-microvolt = <5000000>;
+		regulator-name = "VDD_5V0";
+	};

[Severity: Low]
Is the node name regulator-0p0v a typo? It contradicts the defined output of 5,000,000 microvolts and could cause confusion or schema warnings.

[ ... ]

arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts line 150

Quoted 8 lines
arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts new file +8 -0
+	reg_pcie0: regulator-pcie0 {
+		compatible = "regulator-fixed";
+		regulator-max-microvolt = <3300000>;
+		regulator-min-microvolt = <3300000>;
+		regulator-name = "PCIE_M2-B_EN";
+		gpio = <&i2c2_gpio_expander_20 6 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+	};

[Severity: Low]
Does this node need to use the gpios property instead of the deprecated singular gpio property?

[ ... ]

arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts line 311

Quoted 8 lines
arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts new file +8 -0
+	i2c2_gpio_expander_20: gpio@20 {	/* U12 */
+		compatible = "nxp,pcal6524";
+		reg = <0x20>;
+		#gpio-cells = <2>;
+		gpio-controller;
+		#interrupt-cells = <2>;
+		interrupt-controller;
+		interrupts-extended = <&gpio5 11 IRQ_TYPE_LEVEL_HIGH>;

[Severity: High]
Does this configuration cause an interrupt storm? The PCAL6524 INT output is an open-drain, active-low signal. Configuring it as IRQ_TYPE_LEVEL_HIGH could mean the kernel immediately and continuously perceives the idle state as an asserted interrupt.

[ ... ]

arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts line 342

Quoted 8 lines
arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts new file +8 -0
+	i2c2_gpio_expander_21: gpio@21 {	/* U14 */
+		compatible = "nxp,pcal6524";
+		reg = <0x21>;
+		#gpio-cells = <2>;
+		gpio-controller;
+		#interrupt-cells = <2>;
+		interrupt-controller;
+		interrupts-extended = <&gpio5 11 IRQ_TYPE_LEVEL_HIGH>;

[Severity: High]
This seems to have the same interrupt polarity issue as the first expander, where the active-low signal is configured as active-high.

[ ... ]

arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts line 380

Quoted 8 lines
arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts new file +8 -0
+	i2c2_gpio_expander_22: gpio@22 {	/* U13 */
+		compatible = "nxp,pcal6524";
+		reg = <0x22>;
+		#gpio-cells = <2>;
+		gpio-controller;
+		#interrupt-cells = <2>;
+		interrupt-controller;
+		interrupts-extended = <&gpio5 11 IRQ_TYPE_LEVEL_HIGH>;

[Severity: High]
This seems to have the same interrupt polarity issue as the other two expanders, where the active-low signal is configured as active-high.

[ ... ]

arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts line 529

Quoted 13 lines

+&netc_emdio {

arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts new file +12 -0
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_emdio>;
+	status = "okay";
+
+	ethphy0: ethernet-phy@1 {	/* KSZ9131RNXI U20 */
+		compatible = "ethernet-phy-id0022.1640";
+		reg = <1>;
+		interrupts-extended = <&gpio1 10 IRQ_TYPE_LEVEL_LOW>;
+		reset-assert-us = <1000>;
+		/* RESET_N signal rise time ~100ms */
+		reset-deassert-us = <120000>;
+		reset-gpios = <&i2c2_gpio_expander_22 4 GPIO_ACTIVE_HIGH>;

[Severity: High]
Will this hold the ethernet PHY in reset? The KSZ9131 has an active-low hardware reset pin (RESET_N). By specifying GPIO_ACTIVE_HIGH, the logical polarity is inverted, causing the GPIO subsystem to drive the pin low when it attempts to deassert the reset.

arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts line 539

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts new file +10 -0
+	};
+
+	ethphy1: ethernet-phy@2 {	/* KSZ9131RNXI U22 */
+		compatible = "ethernet-phy-id0022.1640";
+		reg = <2>;
+		interrupts-extended = <&gpio1 10 IRQ_TYPE_LEVEL_LOW>;
+		reset-assert-us = <1000>;
+		/* RESET_N signal rise time ~100ms */
+		reset-deassert-us = <120000>;
+		reset-gpios = <&i2c2_gpio_expander_22 5 GPIO_ACTIVE_HIGH>;

[Severity: High]
This seems to have the same issue as ethphy0, incorrectly specifying active-high reset polarity for the active-low RESET_N pin.

[ ... ]

arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts line 554

Quoted 4 lines

+&pcie0 { /* M.2 Key-B */

arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts new file +3 -0
+	pinctrl-0 = <&pinctrl_pcie0>;
+	pinctrl-names = "default";
+	reset-gpio = <&gpio5 13 GPIO_ACTIVE_LOW>;

[Severity: Low]
Does this node need to use the reset-gpios property instead of the deprecated singular reset-gpio property?

arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts line 562

Quoted 8 lines
arch/arm64/boot/dts/freescale/imx95-data-modul-edm-sbc.dts new file +8 -0
+	vpcie-supply = <&reg_pcie0>;
+	status = "okay";
+};
+
+&pcie1 {	/* M.2 Key-M */
+	pinctrl-0 = <&pinctrl_pcie1>;
+	pinctrl-names = "default";
+	reset-gpio = <&gpio5 16 GPIO_ACTIVE_LOW>;

[Severity: Low]
Does this node need to use the reset-gpios property instead of the deprecated singular reset-gpio property?

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3