boards: hsdk: add arduino_header and arduino_spi
add arduino_header and arduino_spi for hsdk baord. Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
This commit is contained in:
parent
6cc84e6f1d
commit
9f86020d37
1 changed files with 31 additions and 0 deletions
|
@ -43,8 +43,39 @@
|
||||||
zephyr,console = &uart0;
|
zephyr,console = &uart0;
|
||||||
zephyr,shell-uart = &uart0;
|
zephyr,shell-uart = &uart0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
arduino_header: connector {
|
||||||
|
compatible = "arduino-header-r3";
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
||||||
|
gpio-map-pass-thru = <0 0x3f>;
|
||||||
|
gpio-map = <0 0 &cy8c95xx_port0 2 0>, /* A0 */
|
||||||
|
<1 0 &cy8c95xx_port0 3 0>, /* A1 */
|
||||||
|
<2 0 &cy8c95xx_port0 4 0>, /* A2 */
|
||||||
|
<3 0 &cy8c95xx_port0 5 0>, /* A3 */
|
||||||
|
<4 0 &gpio0 18 0>, /* A4 */
|
||||||
|
<5 0 &gpio0 19 0>, /* A5 */
|
||||||
|
<6 0 &gpio0 23 0>, /* D0 */
|
||||||
|
<7 0 &gpio0 22 0>, /* D1 */
|
||||||
|
<8 0 &gpio0 16 0>, /* D2 */
|
||||||
|
<9 0 &gpio0 17 0>, /* D3 */
|
||||||
|
<10 0 &gpio0 11 0>, /* D4 */
|
||||||
|
<11 0 &gpio0 9 0>, /* D5 */
|
||||||
|
<12 0 &gpio0 21 0>, /* D6 */
|
||||||
|
<13 0 &gpio0 20 0>, /* D7 */
|
||||||
|
<14 0 &gpio0 10 0>, /* D8 */
|
||||||
|
<15 0 &gpio0 8 0>, /* D9 */
|
||||||
|
<16 0 &gpio0 12 0>, /* D10 */
|
||||||
|
<17 0 &gpio0 13 0>, /* D11 */
|
||||||
|
<18 0 &gpio0 14 0>, /* D12 */
|
||||||
|
<19 0 &gpio0 15 0>, /* D13 */
|
||||||
|
<20 0 &gpio0 18 0>, /* D14 */
|
||||||
|
<21 0 &gpio0 19 0>; /* D15 */
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
arduino_spi: &spi2 {};
|
||||||
|
|
||||||
&uart0 {
|
&uart0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
current-speed = <115200>;
|
current-speed = <115200>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue