boards: added missing arduino defines to nRF5340 Audio DK board
The nRF5340 Audio DK board definition was missing Arduino Shield definitions. Signed-off-by: Tim Sørensen <tims@demant.com>
This commit is contained in:
parent
425dcc4678
commit
b8978e9efe
2 changed files with 21 additions and 5 deletions
|
@ -9,6 +9,10 @@ toolchain:
|
||||||
ram: 448
|
ram: 448
|
||||||
flash: 1024
|
flash: 1024
|
||||||
supported:
|
supported:
|
||||||
|
- arduino_adc
|
||||||
|
- arduino_i2c
|
||||||
|
- arduino_serial
|
||||||
|
- arduino_spi
|
||||||
- gpio
|
- gpio
|
||||||
- i2s
|
- i2s
|
||||||
- spi
|
- spi
|
||||||
|
|
|
@ -25,6 +25,17 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
arduino_adc: analog-connector {
|
||||||
|
compatible = "arduino,uno-adc";
|
||||||
|
#io-channel-cells = <1>;
|
||||||
|
io-channel-map = <0 &adc 1>, /* A0 = P0.4 = AIN1 */
|
||||||
|
<1 &adc 2>, /* A1 = P0.5 = AIN2 */
|
||||||
|
<2 &adc 4>, /* A2 = P0.6 = AIN4 */
|
||||||
|
<3 &adc 5>, /* A3 = P0.7 = AIN5 */
|
||||||
|
<4 &adc 6>, /* A4 = P0.25 = AIN6 */
|
||||||
|
<5 &adc 7>; /* A5 = P0.26 = AIN7 */
|
||||||
|
};
|
||||||
|
|
||||||
pmic {
|
pmic {
|
||||||
compatible = "nordic,npm1100";
|
compatible = "nordic,npm1100";
|
||||||
nordic,iset-gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
|
nordic,iset-gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
|
||||||
|
@ -120,7 +131,7 @@ arduino_serial: &uart1 {
|
||||||
pinctrl-names = "default", "sleep";
|
pinctrl-names = "default", "sleep";
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c1 {
|
arduino_i2c: &i2c1 {
|
||||||
compatible = "nordic,nrf-twim";
|
compatible = "nordic,nrf-twim";
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-0 = <&i2c1_default>;
|
pinctrl-0 = <&i2c1_default>;
|
||||||
|
@ -172,14 +183,15 @@ arduino_serial: &uart1 {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&spi4 {
|
arduino_spi: &spi4 {
|
||||||
compatible = "nordic,nrf-spim";
|
compatible = "nordic,nrf-spim";
|
||||||
status = "okay";
|
status = "okay";
|
||||||
cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>, <&gpio0 17 GPIO_ACTIVE_LOW>;
|
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>,
|
||||||
|
<&gpio0 11 GPIO_ACTIVE_LOW>, <&gpio0 17 GPIO_ACTIVE_LOW>;
|
||||||
pinctrl-0 = <&spi4_default>;
|
pinctrl-0 = <&spi4_default>;
|
||||||
pinctrl-1 = <&spi4_sleep>;
|
pinctrl-1 = <&spi4_sleep>;
|
||||||
pinctrl-names = "default", "sleep";
|
pinctrl-names = "default", "sleep";
|
||||||
sdhc0: sdhc@0 {
|
sdhc0: sdhc@1 {
|
||||||
compatible = "zephyr,sdhc-spi-slot";
|
compatible = "zephyr,sdhc-spi-slot";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
@ -191,7 +203,7 @@ arduino_serial: &uart1 {
|
||||||
spi-max-frequency = <8000000>;
|
spi-max-frequency = <8000000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
cs47l63: cs47l63@1 {
|
cs47l63: cs47l63@2 {
|
||||||
compatible = "cirrus,cs47l63";
|
compatible = "cirrus,cs47l63";
|
||||||
reg = <1>;
|
reg = <1>;
|
||||||
spi-max-frequency = <8000000>;
|
spi-max-frequency = <8000000>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue