aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSadek Baroudi <[email protected]>2024-04-21 12:37:47 -0700
committerPete Johanson <[email protected]>2024-04-25 00:54:44 -0700
commitf4a070aacf775c50b6f01a22dc3e898d49abe7b0 (patch)
treeab7ad2c287ded583a84727d62cd88a398c21fc47
parent16e92cf6652e4dbe56ba4f18f6ca6cec510b147c (diff)
downloadzmk-f4a070aacf775c50b6f01a22dc3e898d49abe7b0.tar.gz
zmk-f4a070aacf775c50b6f01a22dc3e898d49abe7b0.zip
fix(boards): nrf boards missing SPI in pinctrl and dtsi, requiring users to manually define in their shield definitions if they wanted to use SPI
-rw-r--r--app/boards/arm/bluemicro840/arduino_pro_micro_pins.dtsi2
-rw-r--r--app/boards/arm/bluemicro840/bluemicro840_v1-pinctrl.dtsi17
-rw-r--r--app/boards/arm/bluemicro840/bluemicro840_v1.dts7
-rw-r--r--app/boards/arm/mikoto/arduino_pro_micro_pins.dtsi2
-rw-r--r--app/boards/arm/mikoto/mikoto_520-pinctrl.dtsi17
-rw-r--r--app/boards/arm/mikoto/mikoto_520.dts7
-rw-r--r--app/boards/arm/nice_nano/arduino_pro_micro_pins.dtsi2
-rw-r--r--app/boards/arm/nice_nano/nice_nano-pinctrl.dtsi17
-rw-r--r--app/boards/arm/nice_nano/nice_nano.dtsi7
-rw-r--r--app/boards/arm/nrfmicro/arduino_pro_micro_pins.dtsi2
-rw-r--r--app/boards/arm/nrfmicro/arduino_pro_micro_pins_52833.dtsi2
-rw-r--r--app/boards/arm/nrfmicro/arduino_pro_micro_pins_flipped.dtsi2
-rw-r--r--app/boards/arm/nrfmicro/nrfmicro-flipped-pinctrl.dtsi17
-rw-r--r--app/boards/arm/nrfmicro/nrfmicro-pinctrl.dtsi17
-rw-r--r--app/boards/arm/nrfmicro/nrfmicro_11.dts7
-rw-r--r--app/boards/arm/nrfmicro/nrfmicro_11_flipped.dts7
-rw-r--r--app/boards/arm/nrfmicro/nrfmicro_13.dts7
-rw-r--r--app/boards/arm/nrfmicro/nrfmicro_13_52833.dts7
18 files changed, 140 insertions, 6 deletions
diff --git a/app/boards/arm/bluemicro840/arduino_pro_micro_pins.dtsi b/app/boards/arm/bluemicro840/arduino_pro_micro_pins.dtsi
index cdb8fcdd3f..b2026b6f2c 100644
--- a/app/boards/arm/bluemicro840/arduino_pro_micro_pins.dtsi
+++ b/app/boards/arm/bluemicro840/arduino_pro_micro_pins.dtsi
@@ -53,5 +53,5 @@
pro_micro_d: &pro_micro {};
pro_micro_i2c: &i2c0 {};
-pro_micro_spi: &spi0 {};
+pro_micro_spi: &spi1 {};
pro_micro_serial: &uart0 {};
diff --git a/app/boards/arm/bluemicro840/bluemicro840_v1-pinctrl.dtsi b/app/boards/arm/bluemicro840/bluemicro840_v1-pinctrl.dtsi
index 868d3c27ad..046c0346f3 100644
--- a/app/boards/arm/bluemicro840/bluemicro840_v1-pinctrl.dtsi
+++ b/app/boards/arm/bluemicro840/bluemicro840_v1-pinctrl.dtsi
@@ -36,4 +36,21 @@
low-power-enable;
};
};
+
+ spi1_default: spi1_default {
+ group1 {
+ psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
+ <NRF_PSEL(SPIM_MOSI, 0, 28)>,
+ <NRF_PSEL(SPIM_MISO, 0, 3)>;
+ };
+ };
+
+ spi1_sleep: spi1_sleep {
+ group1 {
+ psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
+ <NRF_PSEL(SPIM_MOSI, 0, 28)>,
+ <NRF_PSEL(SPIM_MISO, 0, 3)>;
+ low-power-enable;
+ };
+ };
};
diff --git a/app/boards/arm/bluemicro840/bluemicro840_v1.dts b/app/boards/arm/bluemicro840/bluemicro840_v1.dts
index 408cca3be7..aabdf310a2 100644
--- a/app/boards/arm/bluemicro840/bluemicro840_v1.dts
+++ b/app/boards/arm/bluemicro840/bluemicro840_v1.dts
@@ -67,6 +67,13 @@
pinctrl-names = "default", "sleep";
};
+&spi1 {
+ compatible = "nordic,nrf-spim";
+ pinctrl-0 = <&spi1_default>;
+ pinctrl-1 = <&spi1_sleep>;
+ pinctrl-names = "default", "sleep";
+};
+
&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
diff --git a/app/boards/arm/mikoto/arduino_pro_micro_pins.dtsi b/app/boards/arm/mikoto/arduino_pro_micro_pins.dtsi
index ed6097ec6b..b2e2d6a3cf 100644
--- a/app/boards/arm/mikoto/arduino_pro_micro_pins.dtsi
+++ b/app/boards/arm/mikoto/arduino_pro_micro_pins.dtsi
@@ -55,5 +55,5 @@
pro_micro_d: &pro_micro {};
pro_micro_i2c: &i2c0 {};
-pro_micro_spi: &spi0 {};
+pro_micro_spi: &spi1 {};
pro_micro_serial: &uart0 {};
diff --git a/app/boards/arm/mikoto/mikoto_520-pinctrl.dtsi b/app/boards/arm/mikoto/mikoto_520-pinctrl.dtsi
index df43c407ee..8cd1e0afc1 100644
--- a/app/boards/arm/mikoto/mikoto_520-pinctrl.dtsi
+++ b/app/boards/arm/mikoto/mikoto_520-pinctrl.dtsi
@@ -36,4 +36,21 @@
low-power-enable;
};
};
+
+ spi1_default: spi1_default {
+ group1 {
+ psels = <NRF_PSEL(SPIM_SCK, 0, 2)>,
+ <NRF_PSEL(SPIM_MOSI, 0, 10)>,
+ <NRF_PSEL(SPIM_MISO, 1, 13)>;
+ };
+ };
+
+ spi1_sleep: spi1_sleep {
+ group1 {
+ psels = <NRF_PSEL(SPIM_SCK, 0, 2)>,
+ <NRF_PSEL(SPIM_MOSI, 0, 10)>,
+ <NRF_PSEL(SPIM_MISO, 1, 13)>;
+ low-power-enable;
+ };
+ };
};
diff --git a/app/boards/arm/mikoto/mikoto_520.dts b/app/boards/arm/mikoto/mikoto_520.dts
index 05ec72dfcd..a6ca50812f 100644
--- a/app/boards/arm/mikoto/mikoto_520.dts
+++ b/app/boards/arm/mikoto/mikoto_520.dts
@@ -66,6 +66,13 @@
pinctrl-names = "default", "sleep";
};
+&spi1 {
+ compatible = "nordic,nrf-spim";
+ pinctrl-0 = <&spi1_default>;
+ pinctrl-1 = <&spi1_sleep>;
+ pinctrl-names = "default", "sleep";
+};
+
&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
diff --git a/app/boards/arm/nice_nano/arduino_pro_micro_pins.dtsi b/app/boards/arm/nice_nano/arduino_pro_micro_pins.dtsi
index f1b569c05d..2c257ef016 100644
--- a/app/boards/arm/nice_nano/arduino_pro_micro_pins.dtsi
+++ b/app/boards/arm/nice_nano/arduino_pro_micro_pins.dtsi
@@ -53,5 +53,5 @@
pro_micro_d: &pro_micro {};
pro_micro_i2c: &i2c0 {};
-pro_micro_spi: &spi0 {};
+pro_micro_spi: &spi1 {};
pro_micro_serial: &uart0 {};
diff --git a/app/boards/arm/nice_nano/nice_nano-pinctrl.dtsi b/app/boards/arm/nice_nano/nice_nano-pinctrl.dtsi
index 15c4850920..bcabf4ab37 100644
--- a/app/boards/arm/nice_nano/nice_nano-pinctrl.dtsi
+++ b/app/boards/arm/nice_nano/nice_nano-pinctrl.dtsi
@@ -36,4 +36,21 @@
low-power-enable;
};
};
+
+ spi1_default: spi1_default {
+ group1 {
+ psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
+ <NRF_PSEL(SPIM_MOSI, 0, 10)>,
+ <NRF_PSEL(SPIM_MISO, 1, 11)>;
+ };
+ };
+
+ spi1_sleep: spi1_sleep {
+ group1 {
+ psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
+ <NRF_PSEL(SPIM_MOSI, 0, 10)>,
+ <NRF_PSEL(SPIM_MISO, 1, 11)>;
+ low-power-enable;
+ };
+ };
};
diff --git a/app/boards/arm/nice_nano/nice_nano.dtsi b/app/boards/arm/nice_nano/nice_nano.dtsi
index 81f10906b9..41770dd310 100644
--- a/app/boards/arm/nice_nano/nice_nano.dtsi
+++ b/app/boards/arm/nice_nano/nice_nano.dtsi
@@ -50,6 +50,13 @@
pinctrl-names = "default", "sleep";
};
+&spi1 {
+ compatible = "nordic,nrf-spim";
+ pinctrl-0 = <&spi1_default>;
+ pinctrl-1 = <&spi1_sleep>;
+ pinctrl-names = "default", "sleep";
+};
+
&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
diff --git a/app/boards/arm/nrfmicro/arduino_pro_micro_pins.dtsi b/app/boards/arm/nrfmicro/arduino_pro_micro_pins.dtsi
index 01e342c0df..1f88a4eb0e 100644
--- a/app/boards/arm/nrfmicro/arduino_pro_micro_pins.dtsi
+++ b/app/boards/arm/nrfmicro/arduino_pro_micro_pins.dtsi
@@ -55,5 +55,5 @@
pro_micro_d: &pro_micro {};
pro_micro_i2c: &i2c0 {};
-pro_micro_spi: &spi0 {};
+pro_micro_spi: &spi1 {};
pro_micro_serial: &uart0 {};
diff --git a/app/boards/arm/nrfmicro/arduino_pro_micro_pins_52833.dtsi b/app/boards/arm/nrfmicro/arduino_pro_micro_pins_52833.dtsi
index 76ece25f78..b16465e6aa 100644
--- a/app/boards/arm/nrfmicro/arduino_pro_micro_pins_52833.dtsi
+++ b/app/boards/arm/nrfmicro/arduino_pro_micro_pins_52833.dtsi
@@ -55,5 +55,5 @@
pro_micro_d: &pro_micro {};
pro_micro_i2c: &i2c0 {};
-pro_micro_spi: &spi0 {};
+pro_micro_spi: &spi1 {};
pro_micro_serial: &uart0 {};
diff --git a/app/boards/arm/nrfmicro/arduino_pro_micro_pins_flipped.dtsi b/app/boards/arm/nrfmicro/arduino_pro_micro_pins_flipped.dtsi
index 923efbbf25..3ab31900b0 100644
--- a/app/boards/arm/nrfmicro/arduino_pro_micro_pins_flipped.dtsi
+++ b/app/boards/arm/nrfmicro/arduino_pro_micro_pins_flipped.dtsi
@@ -53,5 +53,5 @@
pro_micro_d: &pro_micro {};
pro_micro_i2c: &i2c0 {};
-pro_micro_spi: &spi0 {};
+pro_micro_spi: &spi1 {};
pro_micro_serial: &uart0 {};
diff --git a/app/boards/arm/nrfmicro/nrfmicro-flipped-pinctrl.dtsi b/app/boards/arm/nrfmicro/nrfmicro-flipped-pinctrl.dtsi
index 22bc11d401..57e868a487 100644
--- a/app/boards/arm/nrfmicro/nrfmicro-flipped-pinctrl.dtsi
+++ b/app/boards/arm/nrfmicro/nrfmicro-flipped-pinctrl.dtsi
@@ -36,4 +36,21 @@
low-power-enable;
};
};
+
+ spi1_default: spi1_default {
+ group1 {
+ psels = <NRF_PSEL(SPIM_SCK, 0, 9)>,
+ <NRF_PSEL(SPIM_MOSI, 0, 10)>,
+ <NRF_PSEL(SPIM_MISO, 1, 6)>;
+ };
+ };
+
+ spi1_sleep: spi1_sleep {
+ group1 {
+ psels = <NRF_PSEL(SPIM_SCK, 0, 9)>,
+ <NRF_PSEL(SPIM_MOSI, 0, 10)>,
+ <NRF_PSEL(SPIM_MISO, 1, 6)>;
+ low-power-enable;
+ };
+ };
};
diff --git a/app/boards/arm/nrfmicro/nrfmicro-pinctrl.dtsi b/app/boards/arm/nrfmicro/nrfmicro-pinctrl.dtsi
index 35a46e5ae5..c4b9f5a7c6 100644
--- a/app/boards/arm/nrfmicro/nrfmicro-pinctrl.dtsi
+++ b/app/boards/arm/nrfmicro/nrfmicro-pinctrl.dtsi
@@ -36,4 +36,21 @@
low-power-enable;
};
};
+
+ spi1_default: spi1_default {
+ group1 {
+ psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
+ <NRF_PSEL(SPIM_MOSI, 0, 28)>,
+ <NRF_PSEL(SPIM_MISO, 0, 3)>;
+ };
+ };
+
+ spi1_sleep: spi1_sleep {
+ group1 {
+ psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
+ <NRF_PSEL(SPIM_MOSI, 0, 28)>,
+ <NRF_PSEL(SPIM_MISO, 0, 3)>;
+ low-power-enable;
+ };
+ };
};
diff --git a/app/boards/arm/nrfmicro/nrfmicro_11.dts b/app/boards/arm/nrfmicro/nrfmicro_11.dts
index 652df1011a..04368ab874 100644
--- a/app/boards/arm/nrfmicro/nrfmicro_11.dts
+++ b/app/boards/arm/nrfmicro/nrfmicro_11.dts
@@ -54,6 +54,13 @@
pinctrl-names = "default", "sleep";
};
+&spi1 {
+ compatible = "nordic,nrf-spim";
+ pinctrl-0 = <&spi1_default>;
+ pinctrl-1 = <&spi1_sleep>;
+ pinctrl-names = "default", "sleep";
+};
+
&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
diff --git a/app/boards/arm/nrfmicro/nrfmicro_11_flipped.dts b/app/boards/arm/nrfmicro/nrfmicro_11_flipped.dts
index 5095d64865..600935aa0a 100644
--- a/app/boards/arm/nrfmicro/nrfmicro_11_flipped.dts
+++ b/app/boards/arm/nrfmicro/nrfmicro_11_flipped.dts
@@ -54,6 +54,13 @@
pinctrl-names = "default", "sleep";
};
+&spi1 {
+ compatible = "nordic,nrf-spim";
+ pinctrl-0 = <&spi1_default>;
+ pinctrl-1 = <&spi1_sleep>;
+ pinctrl-names = "default", "sleep";
+};
+
&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
diff --git a/app/boards/arm/nrfmicro/nrfmicro_13.dts b/app/boards/arm/nrfmicro/nrfmicro_13.dts
index 7a6a5d4d95..716e5b181d 100644
--- a/app/boards/arm/nrfmicro/nrfmicro_13.dts
+++ b/app/boards/arm/nrfmicro/nrfmicro_13.dts
@@ -66,6 +66,13 @@
pinctrl-names = "default", "sleep";
};
+&spi1 {
+ compatible = "nordic,nrf-spim";
+ pinctrl-0 = <&spi1_default>;
+ pinctrl-1 = <&spi1_sleep>;
+ pinctrl-names = "default", "sleep";
+};
+
&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
diff --git a/app/boards/arm/nrfmicro/nrfmicro_13_52833.dts b/app/boards/arm/nrfmicro/nrfmicro_13_52833.dts
index ff2e027fcb..f57c413da8 100644
--- a/app/boards/arm/nrfmicro/nrfmicro_13_52833.dts
+++ b/app/boards/arm/nrfmicro/nrfmicro_13_52833.dts
@@ -66,6 +66,13 @@
pinctrl-names = "default", "sleep";
};
+&spi1 {
+ compatible = "nordic,nrf-spim";
+ pinctrl-0 = <&spi1_default>;
+ pinctrl-1 = <&spi1_sleep>;
+ pinctrl-names = "default", "sleep";
+};
+
&uart0 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;