mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 15:43:59 +08:00
175210a842
This adds device tree hunks for the LED and userbutton on the USB S8815 board, and set up a heartbeat trigger on the LED and an escape key on the user button. Alter the defconfig to enable these standard DT-enabled GPIO drivers. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
/*
|
|
* Device Tree for the ST-Ericsson Nomadik S8815 board
|
|
* Produced by Calao Systems
|
|
*/
|
|
|
|
/dts-v1/;
|
|
/include/ "ste-nomadik-stn8815.dtsi"
|
|
|
|
/ {
|
|
model = "Calao Systems USB-S8815";
|
|
compatible = "calaosystems,usb-s8815";
|
|
|
|
chosen {
|
|
bootargs = "root=/dev/ram0 console=ttyAMA1,115200n8 earlyprintk";
|
|
};
|
|
|
|
/* Custom board node with GPIO pins to active etc */
|
|
usb-s8815 {
|
|
/* The S8815 is using this very GPIO pin for the SMSC91x IRQs */
|
|
ethernet-gpio {
|
|
gpios = <&gpio3 19 0x1>;
|
|
interrupts = <19 0x1>;
|
|
interrupt-parent = <&gpio3>;
|
|
};
|
|
/* This will bias the MMC/SD card detect line */
|
|
mmcsd-gpio {
|
|
gpios = <&gpio3 16 0x1>;
|
|
};
|
|
};
|
|
|
|
/* The user LED on the board is set up to be used for heartbeat */
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
user-led {
|
|
label = "user_led";
|
|
gpios = <&gpio0 2 0x1>;
|
|
default-state = "off";
|
|
linux,default-trigger = "heartbeat";
|
|
};
|
|
};
|
|
|
|
/* User key mapped in as "escape" */
|
|
gpio-keys {
|
|
compatible = "gpio-keys";
|
|
user-button {
|
|
label = "user_button";
|
|
gpios = <&gpio0 3 0x1>;
|
|
linux,code = <1>; /* KEY_ESC */
|
|
gpio-key,wakeup;
|
|
};
|
|
};
|
|
};
|