<?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>LayerscapeのトピックHow to set different vendor nor flash in u-boot device tree</title>
    <link>https://community.nxp.com/t5/Layerscape/How-to-set-different-vendor-nor-flash-in-u-boot-device-tree/m-p/1520523#M11145</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We use Macronix and Winbond NOR flash to our LS1088ardb board.&lt;BR /&gt;Therefore, we add Macronix and Winbond ids in spi-nor-ids.c&lt;BR /&gt;The following code is we added in u-boot spi-nor-ids.c&lt;/P&gt;&lt;P&gt;#ifdef CONFIG_SPI_FLASH_MACRONIX&lt;BR /&gt;....&lt;/P&gt;&lt;P&gt;{ INFO("mx25u51245g", 0xc2253a, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_4B_OPCODES) },&lt;/P&gt;&lt;P&gt;......&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;#ifdef CONFIG_SPI_FLASH_WINBOND&lt;BR /&gt;......&lt;BR /&gt;{&lt;BR /&gt;INFO("w25q512nwq", 0xef6020, 0, 64 * 1024, 1024,&lt;BR /&gt;SECT_4K | SPI_NOR_4B_OPCODES)&lt;BR /&gt;},&lt;BR /&gt;......&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;If we use Macronix nor flash, we set u-boot fsl-ls 1088a-rdb.dts qspi part as the follow.&lt;/P&gt;&lt;P&gt;qflash0: mx25u51245g0@0 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;compatible = "macronix,mx25u51245g";&lt;BR /&gt;spi-max-frequency = &amp;lt;50000000&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When we change to use Winbond nor flash, we change u-boot fsl-ls 1088a-rdb.dts qspi part as the follow.&lt;/P&gt;&lt;P&gt;qflash0: w25q512nw@0 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;compatible = "winbond,w25q512";&lt;BR /&gt;spi-max-frequency = &amp;lt;50000000&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We want to support both of these NOR flashes.&lt;BR /&gt;We are confused about that if we want the u-boot to support both NOR flashes.&lt;BR /&gt;How to set the u-boot fsl-ls 1088a-rdb.dts qspi part?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 11:55:01 GMT</pubDate>
    <dc:creator>tzongruey</dc:creator>
    <dc:date>2022-09-12T11:55:01Z</dc:date>
    <item>
      <title>How to set different vendor nor flash in u-boot device tree</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-set-different-vendor-nor-flash-in-u-boot-device-tree/m-p/1520523#M11145</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We use Macronix and Winbond NOR flash to our LS1088ardb board.&lt;BR /&gt;Therefore, we add Macronix and Winbond ids in spi-nor-ids.c&lt;BR /&gt;The following code is we added in u-boot spi-nor-ids.c&lt;/P&gt;&lt;P&gt;#ifdef CONFIG_SPI_FLASH_MACRONIX&lt;BR /&gt;....&lt;/P&gt;&lt;P&gt;{ INFO("mx25u51245g", 0xc2253a, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_4B_OPCODES) },&lt;/P&gt;&lt;P&gt;......&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;#ifdef CONFIG_SPI_FLASH_WINBOND&lt;BR /&gt;......&lt;BR /&gt;{&lt;BR /&gt;INFO("w25q512nwq", 0xef6020, 0, 64 * 1024, 1024,&lt;BR /&gt;SECT_4K | SPI_NOR_4B_OPCODES)&lt;BR /&gt;},&lt;BR /&gt;......&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;If we use Macronix nor flash, we set u-boot fsl-ls 1088a-rdb.dts qspi part as the follow.&lt;/P&gt;&lt;P&gt;qflash0: mx25u51245g0@0 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;compatible = "macronix,mx25u51245g";&lt;BR /&gt;spi-max-frequency = &amp;lt;50000000&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When we change to use Winbond nor flash, we change u-boot fsl-ls 1088a-rdb.dts qspi part as the follow.&lt;/P&gt;&lt;P&gt;qflash0: w25q512nw@0 {&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;compatible = "winbond,w25q512";&lt;BR /&gt;spi-max-frequency = &amp;lt;50000000&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We want to support both of these NOR flashes.&lt;BR /&gt;We are confused about that if we want the u-boot to support both NOR flashes.&lt;BR /&gt;How to set the u-boot fsl-ls 1088a-rdb.dts qspi part?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 11:55:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-set-different-vendor-nor-flash-in-u-boot-device-tree/m-p/1520523#M11145</guid>
      <dc:creator>tzongruey</dc:creator>
      <dc:date>2022-09-12T11:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to set different vendor nor flash in u-boot device tree</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-set-different-vendor-nor-flash-in-u-boot-device-tree/m-p/1521351#M11153</link>
      <description>&lt;P&gt;We don't have anything like that from our side, but it seems possible to do, see below:&lt;/P&gt;
&lt;P&gt;First of all,&amp;nbsp;You should find unused memory regions in the LS1088 physical address space for each NOR flash and modify the device_tree, qspi part for each one NOR_Flash.&lt;/P&gt;
&lt;P&gt;There isn't any mechanism that you can use inside device_tree to decide what NOR flash will use the system in the boot process;&amp;nbsp; So, you need to set the "environment variable" setenv and use the command bootargs to specify which one NOR_flash to use, in U-boot of corse.&lt;BR /&gt;It is something like the below:&lt;BR /&gt;Uboot&amp;nbsp;&amp;gt;&amp;nbsp;setenv bootargs root=/dev/ram rw initrd=0x21100000,6000000 ramdisk_size=15360 console=ttyS0,115200 mem=32M&lt;BR /&gt;Uboot&amp;nbsp;&amp;gt;&amp;nbsp;saveenv&lt;BR /&gt;You will need to do that every time you want to switch between NOR flash.&lt;/P&gt;
&lt;P&gt;I hope that helps you.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 15:18:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-set-different-vendor-nor-flash-in-u-boot-device-tree/m-p/1521351#M11153</guid>
      <dc:creator>LFGP</dc:creator>
      <dc:date>2022-09-13T15:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to set different vendor nor flash in u-boot device tree</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-set-different-vendor-nor-flash-in-u-boot-device-tree/m-p/1521515#M11154</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Our boards are currently changed to boot from NOR flash.&lt;BR /&gt;Each of our boards only has one NOR flash.&lt;BR /&gt;Our boards may use two types of NORs, Macronix mx25u51245g or Winbond w25q512nwq for factory manufacture.&lt;BR /&gt;So I would like to know if there is a way that qflash@0 can support both types of NOR at the same address in the device tree&lt;BR /&gt;But our boards have been changed to boot from NOR flash, I think it couldn't decide what NOR flash will use the system in the u-boot environment variable&lt;BR /&gt;It means the board should recognize which type of NOR flash is used when booting up.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 00:58:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-set-different-vendor-nor-flash-in-u-boot-device-tree/m-p/1521515#M11154</guid>
      <dc:creator>tzongruey</dc:creator>
      <dc:date>2022-09-14T00:58:17Z</dc:date>
    </item>
  </channel>
</rss>

