mirror of
https://github.com/easytarget/MQ-Pro-IO.git
synced 2026-01-23 19:33:23 +00:00
docs
This commit is contained in:
@@ -42,7 +42,7 @@ But if not; my somewhat limited notes on compiling the tree, plus a script that
|
||||
# Enabling Bluetooth
|
||||
You need one of the new device trees provided (*except the original Nezha one*) since these correctly map UART1 onto the BT controller (with RTS/CTS).
|
||||
|
||||
Once that is in place you still need the correct firmware for this particular device, a copy of this is in the [bluetooth firmware][./bt-fw] folder.
|
||||
Once that is in place you still need the correct firmware for this particular device, a copy of this is in the [bluetooth firmware](./bt-fw) folder.
|
||||
* Copy the two firmware (`.bin`) files to `/usr/lib/firmware/` on the MQ PRO and reboot.
|
||||
|
||||
# Allwinner D1 GPIO pins
|
||||
@@ -92,7 +92,7 @@ The board has a 'standard' Raspberry Pi compatible 40 pin GPIO connector; 12 are
|
||||
|
||||
Internally, the **D1** has a number of internal hardware interfaces for different signal types; 6xUART for serial, 2xSPI, 4xI2C(TWI), 3xI2Si/PCM (audio), 8xPWM, and some additional units for USB, HDMI, Audio, and more (see the Data sheet)
|
||||
|
||||
The chip has an internal 'pin muxer' to connect pins to signals. Each pin can connect to a (predefined) set of signals, which allows you to map each pin on the GPIO header to multiple possible functions. You can browse the full range of mappings in the Allwinner D1 datasheet, Table 4-3 (see the 'references' folder in this repo for a copy).
|
||||
The chip has an internal 'pin muxer' to connect pins to signals. Each pin can connect to a (predefined) set of signals, which allows you to map each pin on the GPIO header to multiple possible functions. You can browse the full range of mappings in the Allwinner D1 datasheet, Table 4-3 (see the [references](./reference)' folder in this repo for a copy).
|
||||
|
||||
Additionally all pins are high-impedance by default and can be set to a HIGH or LOW digital output. They can all work as digital inputs, and all have configurable pull-up and pull down resistors, and can generate interrupts. ADC input capable pins are limited, see the datasheet for more.
|
||||
|
||||
|
||||
@@ -2,28 +2,28 @@
|
||||
Each folder contains a `.dtb` file, which is the compiled device tree itself, plus a `.dts` with the original source and a `.gpio` file showing the GPIO pin mappings.
|
||||
|
||||
## Generic
|
||||
[./generic](The generic device tree I will use in my project, suitable for many occasions)
|
||||
(The generic device tree I will use in my project, suitable for many occasions)[./generic]
|
||||
* Has 2x UART (plus the console uart), 2x I2C. 1xSPI
|
||||
* 12 unassigned GPIO pins
|
||||
|
||||
## Serial
|
||||
[./serial](Four UART interfaces *and* Four I2C interfaces)
|
||||
(Four UART interfaces *and* Four I2C interfaces)[./serial]
|
||||
* Has 4x UART (plus the console uart), 4x I2C
|
||||
* UART3 has RTC/CTS pins available too
|
||||
* 10 unassigned GPIO pins
|
||||
|
||||
## SPI
|
||||
[./spi](SPI plus Serial interfaces)
|
||||
(SPI plus Serial interfaces)[./spi]
|
||||
* Has 3x UART (plus the console uart), 3x I2C. 1xSPI
|
||||
* 8 unassigned GPIO pins
|
||||
|
||||
## SunXI
|
||||
[./sunxi](Vanilla, unpopulated, upstream)
|
||||
(Vanilla, unpopulated, upstream)[./sunxi]
|
||||
* Has the console uart, nothing more
|
||||
* *26 unassigned GPIO pins!*
|
||||
|
||||
## AllWinner Nezha
|
||||
[./allwinner-nezha](DO NOT USE)
|
||||
(DO NOT USE)[./allwinner-nezha]
|
||||
* Included for completeness, this is the default device tree you get with the Ubuntu image.
|
||||
* Has the console uart, 1x I2C. 1xSPI
|
||||
* 15 unassigned GPIO pins, 3 pre-assigned to pinctl
|
||||
|
||||
Reference in New Issue
Block a user