boards: shields: adafruit: map the pins to arduino_nano_header
This maps the Arduino Rev3 header's pins expected by the shield overlay to the real Arduino Nano header pins of the Arduino Nano 33 BLE board and aliases the I2C and SPI interfaces accordingly. Fixes: #43927 Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
This commit is contained in:
parent
25e4ead02e
commit
b57eefe074
1 changed files with 8 additions and 6 deletions
|
@ -7,16 +7,18 @@
|
||||||
/ {
|
/ {
|
||||||
/*
|
/*
|
||||||
* Arduino Nano form factor doesn't really have a Rev3 Arduino header
|
* Arduino Nano form factor doesn't really have a Rev3 Arduino header
|
||||||
* so this is just a "virtual" mapping for the pins used by the
|
* so the below is a mapping of "virtual" Rev3 pins to real nano pins.
|
||||||
* Adafruit display.
|
|
||||||
*/
|
*/
|
||||||
arduino_header: connector {
|
arduino_header: virtual_connector {
|
||||||
compatible = "arduino-header-r3";
|
compatible = "arduino-header-r3";
|
||||||
#gpio-cells = <2>;
|
#gpio-cells = <2>;
|
||||||
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
||||||
gpio-map-pass-thru = <0 0x3f>;
|
gpio-map-pass-thru = <0 0x3f>;
|
||||||
gpio-map = <10 0 &gpio1 15 0>, // D4
|
gpio-map = <10 0 &arduino_nano_header 4 0>, // D4
|
||||||
<15 0 &gpio1 2 0>, // D10
|
<15 0 &arduino_nano_header 10 0>, // D10
|
||||||
<16 0 &gpio0 27 0>; // D9
|
<16 0 &arduino_nano_header 9 0>; // D9
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
arduino_i2c: &arduino_nano_i2c {};
|
||||||
|
arduino_spi: &arduino_nano_spi {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue