You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.9 KiB
59 lines
1.9 KiB
/* |
|
* Copyright (c) 2023 Andriy Gelman |
|
* |
|
* SPDX-License-Identifier: Apache-2.0 |
|
*/ |
|
|
|
/ { |
|
mikrobus_header_1: mikrobus-connector-1 { |
|
compatible = "mikro-bus"; |
|
#gpio-cells = <2>; |
|
gpio-map-mask = <0xffffffff 0xffffffc0>; |
|
gpio-map-pass-thru = <0 0x3f>; |
|
gpio-map = <0 0 &arduino_header 0 0>, /* AN -> A0 */ |
|
<1 0 &arduino_header 3 0>, /* RST -> A3 */ |
|
<2 0 &arduino_header 16 0>, /* CS -> D10 */ |
|
<3 0 &arduino_header 19 0>, /* SCK -> D13 */ |
|
<4 0 &arduino_header 18 0>, /* MISO -> D12 */ |
|
<5 0 &arduino_header 17 0>, /* MOSI -> D11 */ |
|
/* +3.3V */ |
|
/* GND */ |
|
<6 0 &arduino_header 12 0>, /* PWM -> D6 */ |
|
<7 0 &arduino_header 8 0>, /* INT -> D2 */ |
|
<8 0 &arduino_header 6 0>, /* RX -> D0 */ |
|
<9 0 &arduino_header 7 0>, /* TX -> D1 */ |
|
<10 0 &arduino_header 5 0>, /* SCL -> A5 */ |
|
<11 0 &arduino_header 4 0>; /* SDA -> A4 */ |
|
/* +5V */ |
|
/* GND */ |
|
}; |
|
|
|
mikrobus_header_2: mikrobus-connector-2 { |
|
compatible = "mikro-bus"; |
|
#gpio-cells = <2>; |
|
gpio-map-mask = <0xffffffff 0xffffffc0>; |
|
gpio-map-pass-thru = <0 0x3f>; |
|
gpio-map = <0 0 &arduino_header 1 0>, /* AN -> A1 */ |
|
<1 0 &arduino_header 2 0>, /* RST -> A2 */ |
|
<2 0 &arduino_header 15 0>, /* CS -> D9 */ |
|
<3 0 &arduino_header 19 0>, /* SCK -> D13 */ |
|
<4 0 &arduino_header 18 0>, /* MISO -> D12 */ |
|
<5 0 &arduino_header 17 0>, /* MOSI -> D11 */ |
|
/* +3.3V */ |
|
/* GND */ |
|
<6 0 &arduino_header 11 0>, /* PWM -> D5 */ |
|
<7 0 &arduino_header 9 0>, /* INT -> D3 */ |
|
<8 0 &arduino_header 6 0>, /* RX -> D0 */ |
|
<9 0 &arduino_header 7 0>, /* TX -> D1 */ |
|
<10 0 &arduino_header 5 0>, /* SCL -> A5 */ |
|
<11 0 &arduino_header 4 0>; /* SDA -> A4 */ |
|
/* +5V */ |
|
/* GND */ |
|
}; |
|
}; |
|
|
|
mikrobus_spi: &arduino_spi {}; |
|
mikrobus_serial: &arduino_serial {}; |
|
mikrobus_i2c: &arduino_i2c {}; |
|
|
|
mikrobus_header: &mikrobus_header_1 {};
|
|
|