dts: meson-sm1-odroid-c4-u-boot: add linux-event-codes about button
[platform/kernel/u-boot.git] / arch / arm / dts / meson-sm1-odroid-c4-u-boot.dtsi
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Copyright (c) 2020 BayLibre, SAS
4  * Author: Neil Armstrong <narmstrong@baylibre.com>
5  */
6
7 #include "meson-sm1-u-boot.dtsi"
8 #include <dt-bindings/input/linux-event-codes.h>
9
10 &ethmac {
11         snps,reset-gpio = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
12         snps,reset-delays-us = <0 10000 1000000>;
13         snps,reset-active-low;
14 };
15
16 /* SARADC is needed for proper board variant detection */
17 &saradc {
18         status = "okay";
19         vref-supply = <&vddao_1v8>;
20 };
21
22 &tflash_vdd {
23         gpio = <&gpio_ao GPIOAO_3 GPIO_OPEN_DRAIN>;
24 };
25
26 / {
27         gpio-keys {
28                 compatible = "gpio-keys";
29
30                 power_key {
31                         label = "PowerKey";
32                         linux,code = <BTN_0>;
33                         gpios = <&gpio GPIOX_3 GPIO_ACTIVE_LOW>;
34                 };
35         };
36 };