2013-01-04 23:29:31 +00:00
|
|
|
/*
|
|
|
|
* Device Tree for the ST-Ericsson Nomadik S8815 board
|
|
|
|
* Produced by Calao Systems
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2014-10-01 21:44:17 +00:00
|
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
2014-07-25 10:18:42 +00:00
|
|
|
#include "ste-nomadik-stn8815.dtsi"
|
2013-01-04 23:29:31 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Calao Systems USB-S8815";
|
|
|
|
compatible = "calaosystems,usb-s8815";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
bootargs = "root=/dev/ram0 console=ttyAMA1,115200n8 earlyprintk";
|
|
|
|
};
|
|
|
|
|
2013-06-04 23:18:40 +00:00
|
|
|
src@101e0000 {
|
|
|
|
/* These chrystal drivers are not used on this board */
|
|
|
|
disable-sxtalo;
|
|
|
|
disable-mxtalo;
|
|
|
|
};
|
|
|
|
|
2013-05-24 19:56:38 +00:00
|
|
|
pinctrl {
|
|
|
|
/* Hog CD pins */
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&cd_default_mode>;
|
|
|
|
|
|
|
|
mmcsd-cd {
|
|
|
|
cd_default_mode: cd_default {
|
|
|
|
cd_default_cfg1 {
|
|
|
|
/* CD input GPIO */
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO111_H21";
|
2013-05-24 19:56:38 +00:00
|
|
|
ste,input = <0>;
|
|
|
|
};
|
|
|
|
cd_default_cfg2 {
|
|
|
|
/* CD GPIO biasing */
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO112_J21";
|
2013-05-24 19:56:38 +00:00
|
|
|
ste,output = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2014-09-27 13:40:42 +00:00
|
|
|
gpioi2c {
|
|
|
|
gpioi2c_default_mode: gpioi2c_default {
|
|
|
|
gpioi2c_default_cfg {
|
2014-12-11 18:43:14 +00:00
|
|
|
pins = "GPIO73_C21", "GPIO74_C20";
|
2014-09-27 13:40:42 +00:00
|
|
|
ste,input = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2013-05-24 19:56:38 +00:00
|
|
|
user-led {
|
|
|
|
user_led_default_mode: user_led_default {
|
|
|
|
user_led_default_cfg {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO2_C5";
|
2013-05-24 19:56:38 +00:00
|
|
|
ste,output = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
user-button {
|
|
|
|
user_button_default_mode: user_button_default {
|
|
|
|
user_button_default_cfg {
|
2014-09-30 10:16:25 +00:00
|
|
|
pins = "GPIO3_A4";
|
2013-05-24 19:56:38 +00:00
|
|
|
ste,input = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-10-01 21:44:17 +00:00
|
|
|
/* Ethernet */
|
|
|
|
external-bus@34000000 {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
reg = <0x34000000 0x1000000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges = <0 0x34000000 0x1000000>;
|
|
|
|
ethernet@300 {
|
|
|
|
compatible = "smsc,lan91c111";
|
|
|
|
reg = <0x300 0x0fd00>;
|
|
|
|
interrupt-parent = <&gpio3>;
|
|
|
|
interrupts = <8 IRQ_TYPE_EDGE_RISING>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-09-27 13:40:42 +00:00
|
|
|
/* GPIO I2C connected to the USB portions of the STw4811 only */
|
|
|
|
gpio-i2c {
|
|
|
|
compatible = "i2c-gpio";
|
|
|
|
gpios = <&gpio2 10 0>, /* sda */
|
|
|
|
<&gpio2 9 0>; /* scl */
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&gpioi2c_default_mode>;
|
|
|
|
|
|
|
|
stw4811@2d {
|
|
|
|
compatible = "st,stw4811-usb";
|
|
|
|
reg = <0x2d>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-09-11 16:56:33 +00:00
|
|
|
/* Configure card detect for the uSD slot */
|
|
|
|
amba {
|
|
|
|
mmcsd: sdi@101f6000 {
|
|
|
|
cd-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-01-04 23:29:31 +00:00
|
|
|
/* Custom board node with GPIO pins to active etc */
|
|
|
|
usb-s8815 {
|
2013-01-06 00:47:29 +00:00
|
|
|
/* This will bias the MMC/SD card detect line */
|
|
|
|
mmcsd-gpio {
|
|
|
|
gpios = <&gpio3 16 0x1>;
|
|
|
|
};
|
2013-01-04 23:29:31 +00:00
|
|
|
};
|
2013-05-18 21:55:13 +00:00
|
|
|
|
|
|
|
/* 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";
|
2013-05-24 19:56:38 +00:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&user_led_default_mode>;
|
2013-05-18 21:55:13 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* 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;
|
2013-05-24 19:56:38 +00:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&user_button_default_mode>;
|
2013-05-18 21:55:13 +00:00
|
|
|
};
|
|
|
|
};
|
2013-01-04 23:29:31 +00:00
|
|
|
};
|