refactor(boards): Move to pinctrl.
This commit is contained in:
parent
518f9a550f
commit
1493620bf7
89 changed files with 1981 additions and 376 deletions
12
app/boards/arm/nice60/nice60-pinctrl.dtsi
Normal file
12
app/boards/arm/nice60/nice60-pinctrl.dtsi
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* Copyright (c) 2022 The ZMK Contributors
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
&pinctrl {
|
||||
spi0_default: spi0_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIM_MOSI, 0, 27)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -10,6 +10,8 @@
|
|||
#include <dt-bindings/led/led.h>
|
||||
#include <dt-bindings/zmk/matrix_transform.h>
|
||||
|
||||
#include "nice60-pinctrl.dtsi"
|
||||
|
||||
/ {
|
||||
model = "nice!60";
|
||||
compatible = "nice,60";
|
||||
|
|
@ -110,10 +112,9 @@ RC(4,0) RC(4,1) RC(4,2) RC(4,5) R
|
|||
&spi0 {
|
||||
compatible = "nordic,nrf-spim";
|
||||
/* Cannot be used together with i2c0. */
|
||||
pinctrl-0 = <&spi0_default>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
sck-pin = <12>;
|
||||
mosi-pin = <27>;
|
||||
miso-pin = <13>;
|
||||
|
||||
led_strip: ws2812@0 {
|
||||
compatible = "worldsemi,ws2812-spi";
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ CONFIG_BOARD_NICE60=y
|
|||
# Enable MPU
|
||||
CONFIG_ARM_MPU=y
|
||||
|
||||
CONFIG_PINCTRL=y
|
||||
|
||||
# enable GPIO
|
||||
CONFIG_GPIO=y
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue