<?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>i.MX ProcessorsのトピックRe: imx7 Sim Card Device Tree</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx7-Sim-Card-Device-Tree/m-p/1177108#M164433</link>
    <description>&lt;P&gt;I found the issue, the port in the device tree needs to be defined as the port number -1. So for me SIM1 PORT2 needed to be defined as Port 1&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 08:19:46 GMT</pubDate>
    <dc:creator>eoin_oconnell</dc:creator>
    <dc:date>2020-11-03T08:19:46Z</dc:date>
    <item>
      <title>imx7 Sim Card Device Tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7-Sim-Card-Device-Tree/m-p/1176732#M164392</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a SIM card that is connected to my imx7D processor on the following pins (through a level shifter IC):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;pinctrl_sim1: sim-grp {
fsl,pins = &amp;lt;
MX7D_PAD_EPDC_DATA00__SIM1_PORT2_TRXD 0x00   /* SODIMM 111*/ 
MX7D_PAD_EPDC_DATA01__SIM1_PORT2_CLK 0x00 /* SODIMM 113*/
MX7D_PAD_EPDC_DATA02__SIM1_PORT2_RST_B 0x00 /* SODIMM 115*/
MX7D_PAD_EPDC_DATA03__SIM1_PORT2_SVEN 0x00 /* SODIMM 117*/
MX7D_PAD_EPDC_DATA04__SIM1_PORT2_PD 0x50 /* SODIMM 119 47k pull up*/ 
&amp;gt;;
};&lt;/LI-CODE&gt;&lt;P&gt;I have the card detect pin from my sim connector connected to&amp;nbsp;MX7D_PAD_EPDC_DATA04__SIM1_PORT2_PD, when the card is present it pulls this pin down to ground.&lt;/P&gt;&lt;P&gt;To define the SIM in the device tree I tried this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;amp;sim1 {
	pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_sim1&amp;gt;;
	clocks = &amp;lt;&amp;amp;clks IMX7D_SIM1_ROOT_CLK&amp;gt;;
	assigned-clock-rates = &amp;lt;240000000&amp;gt;;
	pinctrl-assert-gpios = &amp;lt;&amp;amp;gpio2 4 GPIO_ACTIVE_HIGH&amp;gt;;
	port = &amp;lt;2&amp;gt;;
	sven_high_active;
	status = "okay";
};&lt;/LI-CODE&gt;&lt;P&gt;Unfortunately the sim peripheral does not show up in /dev/mxc_sim, however I do measure sensible voltages on the SIM pins and my card detect hardware is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also added this extra define into my Kernel build,&amp;nbsp;CONFIG_MXC_SIMv2 = y.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know what I might have done wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 15:30:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7-Sim-Card-Device-Tree/m-p/1176732#M164392</guid>
      <dc:creator>eoin_oconnell</dc:creator>
      <dc:date>2020-11-02T15:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: imx7 Sim Card Device Tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7-Sim-Card-Device-Tree/m-p/1176864#M164405</link>
      <description>&lt;P&gt;Hi eoin_oconnell&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sim dts example can be found on&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx7d-sdb.dts?h=imx_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx7d-sdb.dts?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;One can test it on i.MX7D Sabre SD board with Demo Image &lt;A style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;" href="https://www.nxp.com/webapp/Download?colCode=L5.4.47_2.2.0_MX7D&amp;amp;appType=license" target="_blank"&gt;i.MX 7Dual SABRESD&lt;/A&gt;​&lt;/P&gt;
&lt;P&gt;simple unit test&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_sim_test?h=imx_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_sim_test?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 01:12:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7-Sim-Card-Device-Tree/m-p/1176864#M164405</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-11-03T01:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: imx7 Sim Card Device Tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7-Sim-Card-Device-Tree/m-p/1177108#M164433</link>
      <description>&lt;P&gt;I found the issue, the port in the device tree needs to be defined as the port number -1. So for me SIM1 PORT2 needed to be defined as Port 1&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 08:19:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7-Sim-Card-Device-Tree/m-p/1177108#M164433</guid>
      <dc:creator>eoin_oconnell</dc:creator>
      <dc:date>2020-11-03T08:19:46Z</dc:date>
    </item>
  </channel>
</rss>

