- keys {
- compatible = "gpio-keys";
-
- mode {
- label = "mode";
- gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
- linux,code = <BTN_0>;
- };
-
- reset {
- label = "reset";
- gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
- };
-
- gpio_export {
- compatible = "gpio-export";
- #size-cells = <0>;
-
- buzzer {
- /* Beeper requires PWM for frequency selection */
- gpio-export,name = "buzzer";
- gpio-export,output = <0>;
- gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
- };
-
- usb_power {
- gpio-export,name = "usb_power";
- gpio-export,output = <1>;
- gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
- };