Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
ARM: dtsi: baseboard_pico_pi: default baseboard set to rev.B1
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-chang committed Dec 25, 2018
1 parent 3a31571 commit ffea2f1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion arch/arm/boot/dts/baseboard_pico_pi.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,19 @@
dir = "out";
};

/* Mikrobus */
#ifdef PICO_PI_REVC2
gpio_p25 {
label = "SWITCH";
gpios = <&PICO_EXT_GPIO_P25 GPIO_ACTIVE_HIGH>;
dir = "out";
};
#else
gpio_p28 {
label = "GPIO_P28";
gpios = <&PICO_EXT_GPIO_P28 GPIO_ACTIVE_HIGH>;
dir = "out";
};
#endif
gpio_p26 {
label = "GPIO_P26";
gpios = <&PICO_EXT_GPIO_P26 GPIO_ACTIVE_HIGH>;
Expand Down Expand Up @@ -80,7 +87,11 @@

led {
label = "gpio-led";
#ifdef PICO_PI_REVC2
gpios = <&PICO_EXT_GPIO_P28 GPIO_ACTIVE_HIGH>; /* PICO_P28 */
#else
gpios = <&PICO_EXT_GPIO_P25 GPIO_ACTIVE_HIGH>; /* PICO_P25 */
#endif
};
};

Expand Down

0 comments on commit ffea2f1

Please sign in to comment.