<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PTN5110 - iMX6UL - Kernel 5.15 - Device Tree Configuration in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1535532#M196206</link>
    <description>&lt;P&gt;What is referenced with usb1_drd_sw?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;port {
	typec1_dr_sw: endpoint {
		remote-endpoint = &amp;lt;&amp;amp;usb1_drd_sw&amp;gt;;
	};
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;and does it in return have to reference the typec1_dr_sw endpoint?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2022 09:25:29 GMT</pubDate>
    <dc:creator>screen-cleaner</dc:creator>
    <dc:date>2022-10-11T09:25:29Z</dc:date>
    <item>
      <title>PTN5110 - iMX6UL - Kernel 5.15 - Device Tree Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1531654#M195906</link>
      <description>&lt;P&gt;Same Hardware, new Kernel&lt;/P&gt;&lt;P&gt;We are trying to update to the new Kernel 5.15.32 (old Kernel 4.19.72) but the USB-PD Chip (PTN5110) just does not work:&lt;/P&gt;&lt;P&gt;When we start the module &lt;EM&gt;tcpci&lt;/EM&gt; with our Device Tree (see below) we get the following messages:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;devel@europa:/usr/lib/modules/5.15.32+g4122737b2fca$ sudo modprobe tcpci
[  139.282440] OF: graph: no port node found in /soc/bus@2100000/i2c@21f8000/ptn5110@50
[  139.332044] OF: graph: no port node found in /soc/bus@2100000/i2c@21f8000/ptn5110@50/connector
[  139.341524] OF: graph: no port node found in /soc/bus@2100000/i2c@21f8000/ptn5110@50/connector&lt;/LI-CODE&gt;&lt;P&gt;We did try to specify the port but were unlucky so far (nothing seams to work and we are trying for a few weeks now). The DT below worked wonderful in the old kernel but not the new one.&lt;BR /&gt;After loading the module we see some communication over the I2C port and everything seams to work fine. As soon as we plug in a USB connection the Kernel gets flooded with IRQ requests (or so it seams). The I2C bus is filled with data exchange and none of the consoles are reacting to any keystroke. After unplugging the USB connection the system reacts normal again. (the system seams to be blocked completely)&lt;/P&gt;&lt;P&gt;Our device tree:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/ {
	regulators {
		compatible = "simple-bus";
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;0&amp;gt;;

		reg_usb_otg1_vbus: regulator@2 {
			compatible = "regulator-fixed";
			reg = &amp;lt;2&amp;gt;;
			regulator-name = "usb_otg1_vbus";
			pinctrl-names = "default";
			pinctrl-0 = &amp;lt;&amp;amp;pinctrl_usb_otg1_vbus&amp;gt;;
			regulator-min-microvolt = &amp;lt;5000000&amp;gt;;
			regulator-max-microvolt = &amp;lt;5000000&amp;gt;;
			gpio = &amp;lt;&amp;amp;gpio2 8 GPIO_ACTIVE_HIGH&amp;gt;;
			enable-active-high;
			status = "okay";
		};
	};
};

&amp;amp;usbotg1 {
	/*pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_usbotg1&amp;gt;;*/
	dr_mode = "otg";
	status = "okay";
	disable-over-current;
	vbus-supply = &amp;lt;&amp;amp;reg_usb_otg1_vbus&amp;gt;;
};

&amp;amp;i2c4 {
	clock-frequency = &amp;lt;100000&amp;gt;;
	pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c4&amp;gt;;
	status = "okay";

	usb_pd: ptn5110@50 {
		compatible = "nxp,ptn5110";
		reg = &amp;lt;0x50&amp;gt;;
		pinctrl-names = "default";
		pinctrl-0 = &amp;lt;&amp;amp;pinctrl_usb_pd&amp;gt;;
		interrupt-parent = &amp;lt;&amp;amp;gpio2&amp;gt;;
		interrupts = &amp;lt;11 IRQ_TYPE_LEVEL_LOW&amp;gt;;
		wakeup-source;

		usb_con: connector {
			compatible = "usb-c-connector";
			label = "USB-C";
			data-role = "dual";
			power-role = "dual";
			try-power-role = "sink";
			source-pdos = &amp;lt;PDO_FIXED(VSAFE5V, 2000, PDO_FIXED_USB_COMM | PDO_FIXED_DUAL_ROLE)&amp;gt;;
			sink-pdos = &amp;lt;PDO_FIXED(VSAFE5V, 2000, PDO_FIXED_USB_COMM | PDO_FIXED_DUAL_ROLE)
                                     //PDO_FIXED(VSAFE5V, 3000, 0)
                                     //PDO_FIXED(9000, 3000, 0)
                                     PDO_FIXED(12000, 3000, 0)
                                     PDO_FIXED(20000, 3000, 0)&amp;gt;;
                                     //PDO_FIXED(20000, 5000, 0)&amp;gt;;
			op-sink-microwatt = &amp;lt;10000000&amp;gt;;

		};
	};
};

&amp;amp;iomuxc {
	pinctrl_i2c4: i2c4grp {
		fsl,pins = &amp;lt;
			MX6UL_PAD_UART2_TX_DATA__I2C4_SCL	0x4001b8b0
			MX6UL_PAD_UART2_RX_DATA__I2C4_SDA	0x4001b8b0
		&amp;gt;;
	};

	pinctrl_usb_pd: usbpdgrp {
		fsl,pins = &amp;lt;
			MX6UL_PAD_ENET2_TX_DATA0__GPIO2_IO11	0x0001b020 /* Alert Interrupt */
			MX6UL_PAD_ENET2_TX_CLK__GPIO2_IO14		0x0001b020 /* Fault Interrupt */
		&amp;gt;;
	};

	pinctrl_usb_otg1_vbus: usbotg1 {
		fsl,pins = &amp;lt;
			MX6UL_PAD_ENET2_RX_DATA0__GPIO2_IO08	0x000000b9
			MX6UL_PAD_ENET2_RX_DATA1__USB_OTG1_OC	0x000010b0
		&amp;gt;;
	};
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 13:43:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1531654#M195906</guid>
      <dc:creator>screen-cleaner</dc:creator>
      <dc:date>2022-10-03T13:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: PTN5110 - iMX6UL - Kernel 5.15 - Device Tree Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1534062#M196103</link>
      <description>&lt;P&gt;The PTN5110 bindings for IMX6UL are the same that the IMX8MM, you can try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ptn5110: tcpc@50 {
		compatible = "nxp,ptn5110";
		pinctrl-names = "default";
		pinctrl-0 = &amp;lt;&amp;amp;pinctrl_typec1&amp;gt;;
		reg = &amp;lt;0x50&amp;gt;;
		interrupt-parent = &amp;lt;&amp;amp;gpio2&amp;gt;;
		interrupts = &amp;lt;11 8&amp;gt;;
		status = "okay";

		port {
			typec1_dr_sw: endpoint {
				remote-endpoint = &amp;lt;&amp;amp;usb1_drd_sw&amp;gt;;
			};
		};

		typec1_con: connector {
			compatible = "usb-c-connector";
			label = "USB-C";
			power-role = "dual";
			data-role = "dual";
			try-power-role = "sink";
			source-pdos = &amp;lt;PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)&amp;gt;;
			sink-pdos = &amp;lt;PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
				     PDO_VAR(5000, 20000, 3000)&amp;gt;;
			op-sink-microwatt = &amp;lt;15000000&amp;gt;;
			self-powered;
		};
	};&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 19:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1534062#M196103</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2022-10-07T19:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: PTN5110 - iMX6UL - Kernel 5.15 - Device Tree Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1535532#M196206</link>
      <description>&lt;P&gt;What is referenced with usb1_drd_sw?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;port {
	typec1_dr_sw: endpoint {
		remote-endpoint = &amp;lt;&amp;amp;usb1_drd_sw&amp;gt;;
	};
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;and does it in return have to reference the typec1_dr_sw endpoint?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 09:25:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1535532#M196206</guid>
      <dc:creator>screen-cleaner</dc:creator>
      <dc:date>2022-10-11T09:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: PTN5110 - iMX6UL - Kernel 5.15 - Device Tree Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1535723#M196227</link>
      <description>&lt;P&gt;I guess you refer this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;amp;usbotg1 {
	dr_mode = "otg";
	hnp-disable;
	srp-disable;
	adp-disable;
	usb-role-switch;
	disable-over-current;
	samsung,picophy-pre-emp-curr-control = &amp;lt;3&amp;gt;;
	samsung,picophy-dc-vol-level-adjust = &amp;lt;7&amp;gt;;
	status = "okay";

	port {
		usb1_drd_sw: endpoint {
			remote-endpoint = &amp;lt;&amp;amp;typec1_dr_sw&amp;gt;;
		};
	};
};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;As I said, the IC2 of IMX6UL is the same that IMX8MM, so you can refer &lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi?h=lf-5.15.y#n408" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;for review that part.&lt;/P&gt;&lt;P&gt;I hope I have answered your question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 15:05:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1535723#M196227</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2022-10-11T15:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: PTN5110 - iMX6UL - Kernel 5.15 - Device Tree Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1537125#M196331</link>
      <description>&lt;P&gt;This reduces the messages from the module by 1 but the overall behaviour stays the same:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;devel@ganymed:~$ sudo modprobe tcpci
[  297.071214] OF: graph: no port node found in /soc/bus@2100000/i2c@21f8000/ptn5110@50/connector
[  297.080634] OF: graph: no port node found in /soc/bus@2100000/i2c@21f8000/ptn5110@50/connector&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;After loading the module and connecting the USB cable the system gets blocked by IRQ Requests from the chip and only response again after disconnecting the USB Connection.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 12:46:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1537125#M196331</guid>
      <dc:creator>screen-cleaner</dc:creator>
      <dc:date>2022-10-13T12:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: PTN5110 - iMX6UL - Kernel 5.15 - Device Tree Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1537280#M196344</link>
      <description>&lt;P&gt;Ok, I see, could you please try with this?:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ptn5110@50 {
	compatible = "nxp,ptn5110";
	reg = &amp;lt;0x50&amp;gt;;
	interrupt-parent = &amp;lt;&amp;amp;gpio3&amp;gt;;
	interrupts = &lt;LI-EMOJI id="lia_red-heart" title=":red_heart:"&gt;&lt;/LI-EMOJI&gt; IRQ_TYPE_LEVEL_LOW&amp;gt;;

	usb_con: connector {
		compatible = "usb-c-connector";
		label = "USB-C";
		data-role = "dual";
		power-role = "dual";
		try-power-role = "sink";
		source-pdos = &amp;lt;PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)&amp;gt;;
		sink-pdos = &amp;lt;PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)
			     PDO_VAR(5000, 12000, 2000)&amp;gt;;
		op-sink-microwatt = &amp;lt;10000000&amp;gt;;

		ports {
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;0&amp;gt;;

			port@1 {
				reg = &amp;lt;1&amp;gt;;
				usb_con_ss: endpoint {
					remote-endpoint = &amp;lt;&amp;amp;usb3_data_ss&amp;gt;;
				};
			};
		};
	};
};&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Oct 2022 17:47:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1537280#M196344</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2022-10-13T17:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: PTN5110 - iMX6UL - Kernel 5.15 - Device Tree Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1537655#M196360</link>
      <description>&lt;P&gt;In the Documentation of the Kernel (&lt;A href="https://www.kernel.org/doc/Documentation/devicetree/bindings/connector/usb-connector.yaml" target="_blank"&gt;https://www.kernel.org/doc/Documentation/devicetree/bindings/connector/usb-connector.yaml&lt;/A&gt;), we found this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;  ports:
    $ref: /schemas/graph.yaml#/properties/ports
    description: OF graph bindings modeling any data bus to the connector
      unless the bus is between parent node and the connector. Since a single
      connector can have multiple data buses every bus has an assigned OF graph
      port number as described below.

    properties:
      port@0:
        $ref: /schemas/graph.yaml#/properties/port
        description: High Speed (HS), present in all connectors.

      port@1:
        $ref: /schemas/graph.yaml#/properties/port
        description: Super Speed (SS), present in SS capable connectors.

      port@2:
        $ref: /schemas/graph.yaml#/properties/port
        description: Sideband Use (SBU), present in USB-C. This describes the
          alternate mode connection of which SBU is a part.

    required:
      - port@0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Are you sure, we should not just use port@0?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 08:00:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1537655#M196360</guid>
      <dc:creator>screen-cleaner</dc:creator>
      <dc:date>2022-10-14T08:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: PTN5110 - iMX6UL - Kernel 5.15 - Device Tree Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1537869#M196370</link>
      <description>&lt;P&gt;Using this configuration does not change the faulty behaviour. Maybe it is not even a Problem of the Ports but the interrupt configuration:&lt;/P&gt;&lt;P&gt;As soon as I attach a USB Cable it seams to me as if the module can not resolve the interrupt request of the device. Do you see something wrong with that part of the configuration?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 12:50:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1537869#M196370</guid>
      <dc:creator>screen-cleaner</dc:creator>
      <dc:date>2022-10-14T12:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: PTN5110 - iMX6UL - Kernel 5.15 - Device Tree Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1541003#M196612</link>
      <description>&lt;P&gt;So I did find out that the Chip goes into Fault every time I plug in a USB Connection. (It comes out of the Fault as soon as I unplug the USB)&lt;/P&gt;&lt;P&gt;On the I2C Bus I see that the Kernel Module keeps trying to reset the Fault flag without success.&lt;/P&gt;&lt;P&gt;I see a repeating pattern of:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;0x50 Write 0x10&lt;/LI&gt;&lt;LI&gt;0x50 Read 0x00 0x02&lt;/LI&gt;&lt;LI&gt;0x50 Write 0x10 0x00 0x02&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As I wrote, the chip was working fine with the old Kernel 4.19.72 but not with the new Kernel 5.15.68.&lt;/P&gt;&lt;P&gt;If someone could tell me what is going wrong I would be very thankful.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 08:45:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PTN5110-iMX6UL-Kernel-5-15-Device-Tree-Configuration/m-p/1541003#M196612</guid>
      <dc:creator>screen-cleaner</dc:creator>
      <dc:date>2022-10-20T08:45:57Z</dc:date>
    </item>
  </channel>
</rss>

