Changes

Jump to: navigation, search

Physical devices mapping (XUELK)

1,610 bytes added, 15:55, 4 October 2016
no edit summary
==WiFi/Bluetooth==
Please refer to [[XUELK-AN-001:_Using_WiFi-Bluetooth_combo_plugin_with_SBC_Lynx|this page]].
==USB OTG==
==USB host==
==NOR and NAND flash==
NOR and NAND flashes are managed as [Memory_Tecnology_Device_(MTD) MTD devices].
 
Generally speaking, their partitioning is defined via Linux kernel command line. For instance this command line
<pre>
mtdparts=gpmi-nand:8M(nand-uboot),1M(nand-env1),1M(nand-env2),1M(nand-fdt),1M(nand-spare),8M(nand-kernel),4M(nand-splash),-(nand-ubi);spi0.0:1M(spi-uboot),256k(spi-env1),256k(spi-env2),512k(spi-dtb),6M(spi-kernel),4M(spi-splash),-(spi-free)
</pre>
defines these partitions:
<pre>
root@sbc-lynx:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00800000 00020000 "nand-uboot"
mtd1: 00100000 00020000 "nand-env1"
mtd2: 00100000 00020000 "nand-env2"
mtd3: 00100000 00020000 "nand-fdt"
mtd4: 00100000 00020000 "nand-spare"
mtd5: 00800000 00020000 "nand-kernel"
mtd6: 00400000 00020000 "nand-splash"
mtd7: 3e800000 00020000 "nand-ubi"
mtd8: 00100000 00010000 "spi-uboot"
mtd9: 00040000 00010000 "spi-env1"
mtd10: 00040000 00010000 "spi-env2"
mtd11: 00080000 00010000 "spi-dtb"
mtd12: 00600000 00010000 "spi-kernel"
mtd13: 00400000 00010000 "spi-splash"
mtd14: 01400000 00010000 "spi-free"
</pre>
==ADCs==
The following processor's signals are available on J54 mezzanine connector and can be configured as 12-bit ADC inputs:
*<code>GPIO1_IO01</code>
*<code>GPIO1_IO02</code>
*<code>GPIO1_IO03</code>
*<code>GPIO1_IO04</code>
*<code>GPIO1_IO05</code>
 
To read the digital value of the converted analog voltage, issue the following command (the example refers to the <code>GPIO1_IO05</code> pin):
<pre>
cat /sys/bus/iio/devices/iio\:device0/in_voltage5_raw
</pre>
4,650
edits

Navigation menu