Browse Source

boards: Cleanup and standardize features

xmkb
Nick 4 years ago committed by Pete Johanson
parent
commit
91e3a7d75a
  1. 21
      app/boards/arm/bluemicro840/bluemicro840_v1.dts
  2. 11
      app/boards/arm/nice_nano/nice_nano.dts
  3. 21
      app/boards/arm/nrf52840_m2/nrf52840_m2.dts
  4. 12
      app/boards/arm/nrfmicro/nrfmicro_11.dts
  5. 12
      app/boards/arm/nrfmicro/nrfmicro_11_flipped.dts
  6. 12
      app/boards/arm/nrfmicro/nrfmicro_13.dts

21
app/boards/arm/bluemicro840/bluemicro840_v1.dts

@ -14,9 +14,6 @@
chosen { chosen {
zephyr,code-partition = &code_partition; zephyr,code-partition = &code_partition;
// zephyr,console = &uart0;
//zephyr,bt-mon-uart = &uart0;
//zephyr,bt-c2h-uart = &uart0;
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
@ -29,6 +26,12 @@
}; };
}; };
ext-power {
compatible = "zmk,ext-power-generic";
label = "EXT_POWER";
control-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
};
vbatt { vbatt {
compatible = "zmk,battery-voltage-divider"; compatible = "zmk,battery-voltage-divider";
label = "BATTERY"; label = "BATTERY";
@ -43,6 +46,10 @@
status = "okay"; status = "okay";
}; };
&gpiote {
status = "okay";
};
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };
@ -61,10 +68,10 @@
compatible = "nordic,nrf-uarte"; compatible = "nordic,nrf-uarte";
status = "okay"; status = "okay";
current-speed = <115200>; current-speed = <115200>;
tx-pin = <39>; tx-pin = <19>;
rx-pin = <34>; rx-pin = <21>;
rts-pin = <33>; rts-pin = <23>;
cts-pin = <12>; cts-pin = <25>;
}; };
&usbd { &usbd {

11
app/boards/arm/nice_nano/nice_nano.dts

@ -14,9 +14,6 @@
chosen { chosen {
zephyr,code-partition = &code_partition; zephyr,code-partition = &code_partition;
// zephyr,console = &uart0;
//zephyr,bt-mon-uart = &uart0;
//zephyr,bt-c2h-uart = &uart0;
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
@ -70,10 +67,10 @@
compatible = "nordic,nrf-uarte"; compatible = "nordic,nrf-uarte";
status = "okay"; status = "okay";
current-speed = <115200>; current-speed = <115200>;
tx-pin = <39>; tx-pin = <19>;
rx-pin = <34>; rx-pin = <21>;
rts-pin = <33>; rts-pin = <23>;
cts-pin = <12>; cts-pin = <25>;
}; };
&usbd { &usbd {

21
app/boards/arm/nrf52840_m2/nrf52840_m2.dts

@ -12,9 +12,6 @@
chosen { chosen {
zephyr,code-partition = &code_partition; zephyr,code-partition = &code_partition;
//zephyr,console = &uart0;
//zephyr,bt-mon-uart = &uart0;
//zephyr,bt-c2h-uart = &uart0;
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
@ -37,6 +34,14 @@
}; };
&adc {
status = "okay";
};
&gpiote {
status = "okay";
};
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };
@ -46,13 +51,13 @@
}; };
&uart0 { &uart0 {
compatible = "nordic,nrf-uart"; compatible = "nordic,nrf-uarte";
status = "okay"; status = "okay";
current-speed = <115200>; current-speed = <115200>;
tx-pin = <16>; tx-pin = <19>;
rx-pin = <15>; rx-pin = <21>;
rts-pin = <14>; rts-pin = <23>;
cts-pin = <13>; cts-pin = <25>;
}; };
&usbd { &usbd {

12
app/boards/arm/nrfmicro/nrfmicro_11.dts

@ -33,6 +33,10 @@
}; };
}; };
&gpiote {
status = "okay";
};
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };
@ -51,10 +55,10 @@
compatible = "nordic,nrf-uarte"; compatible = "nordic,nrf-uarte";
status = "okay"; status = "okay";
current-speed = <115200>; current-speed = <115200>;
tx-pin = <39>; tx-pin = <19>;
rx-pin = <34>; rx-pin = <21>;
rts-pin = <33>; rts-pin = <23>;
cts-pin = <12>; cts-pin = <25>;
}; };
&usbd { &usbd {

12
app/boards/arm/nrfmicro/nrfmicro_11_flipped.dts

@ -33,6 +33,10 @@
}; };
}; };
&gpiote {
status = "okay";
};
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };
@ -51,10 +55,10 @@
compatible = "nordic,nrf-uarte"; compatible = "nordic,nrf-uarte";
status = "okay"; status = "okay";
current-speed = <115200>; current-speed = <115200>;
tx-pin = <39>; tx-pin = <19>;
rx-pin = <34>; rx-pin = <21>;
rts-pin = <33>; rts-pin = <23>;
cts-pin = <12>; cts-pin = <25>;
}; };
&usbd { &usbd {

12
app/boards/arm/nrfmicro/nrfmicro_13.dts

@ -45,6 +45,10 @@
status = "okay"; status = "okay";
}; };
&gpiote {
status = "okay";
};
&gpio0 { &gpio0 {
status = "okay"; status = "okay";
}; };
@ -63,10 +67,10 @@
compatible = "nordic,nrf-uarte"; compatible = "nordic,nrf-uarte";
status = "okay"; status = "okay";
current-speed = <115200>; current-speed = <115200>;
tx-pin = <39>; tx-pin = <19>;
rx-pin = <34>; rx-pin = <21>;
rts-pin = <33>; rts-pin = <23>;
cts-pin = <12>; cts-pin = <25>;
}; };
&usbd { &usbd {

Loading…
Cancel
Save