2014-02-26 22:59:14 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
2015-03-25 18:22:42 +00:00
|
|
|
#define USB_CLASS_HUB 9
|
|
|
|
|
2014-02-26 22:59:14 +00:00
|
|
|
/ {
|
2014-10-14 05:41:48 +00:00
|
|
|
#address-cells = <1>;
|
2015-03-05 19:25:13 +00:00
|
|
|
#size-cells = <1>;
|
2014-10-14 05:41:48 +00:00
|
|
|
|
2015-03-05 19:25:26 +00:00
|
|
|
aliases {
|
2015-03-22 22:09:23 +00:00
|
|
|
eth5 = "/eth@90000000";
|
2015-04-20 18:37:28 +00:00
|
|
|
i2c0 = &i2c_0;
|
2015-03-05 19:25:26 +00:00
|
|
|
pci0 = &pci;
|
2015-04-20 18:37:28 +00:00
|
|
|
rtc0 = &rtc_0;
|
2015-03-05 19:25:26 +00:00
|
|
|
};
|
|
|
|
|
2014-09-04 22:27:29 +00:00
|
|
|
chosen {
|
|
|
|
stdout-path = "/serial";
|
|
|
|
};
|
|
|
|
|
2015-03-26 15:29:39 +00:00
|
|
|
cros_ec: cros-ec@0 {
|
|
|
|
reg = <0 0>;
|
|
|
|
compatible = "google,cros-ec-sandbox";
|
2014-02-27 20:25:59 +00:00
|
|
|
|
2015-03-26 15:29:39 +00:00
|
|
|
/*
|
|
|
|
* This describes the flash memory within the EC. Note
|
|
|
|
* that the STM32L flash erases to 0, not 0xff.
|
|
|
|
*/
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
flash@8000000 {
|
|
|
|
reg = <0x08000000 0x20000>;
|
|
|
|
erase-value = <0>;
|
2014-02-27 20:25:59 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2015-03-26 15:29:39 +00:00
|
|
|
|
|
|
|
/* Information for sandbox */
|
|
|
|
ro {
|
|
|
|
reg = <0 0xf000>;
|
|
|
|
};
|
|
|
|
wp-ro {
|
|
|
|
reg = <0xf000 0x1000>;
|
|
|
|
};
|
|
|
|
rw {
|
|
|
|
reg = <0x10000 0x10000>;
|
2014-02-27 20:25:59 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-05-22 21:42:16 +00:00
|
|
|
eth@10002000 {
|
|
|
|
compatible = "sandbox,eth";
|
|
|
|
reg = <0x10002000 0x1000>;
|
|
|
|
fake-host-hwaddr = [00 00 66 44 22 00];
|
|
|
|
};
|
|
|
|
|
|
|
|
eth@80000000 {
|
|
|
|
compatible = "sandbox,eth-raw";
|
|
|
|
reg = <0x80000000 0x1000>;
|
|
|
|
host-raw-interface = "eth0";
|
|
|
|
};
|
|
|
|
|
|
|
|
eth@90000000 {
|
|
|
|
compatible = "sandbox,eth-raw";
|
|
|
|
reg = <0x90000000 0x1000>;
|
|
|
|
host-raw-interface = "lo";
|
2014-02-27 20:25:59 +00:00
|
|
|
};
|
|
|
|
|
2015-01-06 03:05:31 +00:00
|
|
|
gpio_a: gpios@0 {
|
2014-08-11 15:24:03 +00:00
|
|
|
gpio-controller;
|
|
|
|
compatible = "sandbox,gpio";
|
|
|
|
#gpio-cells = <1>;
|
|
|
|
gpio-bank-name = "a";
|
|
|
|
num-gpios = <20>;
|
|
|
|
};
|
|
|
|
|
2015-01-06 03:05:31 +00:00
|
|
|
gpio_b: gpios@1 {
|
|
|
|
gpio-controller;
|
|
|
|
compatible = "sandbox,gpio";
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-bank-name = "b";
|
|
|
|
num-gpios = <10>;
|
|
|
|
};
|
|
|
|
|
2015-05-22 21:42:16 +00:00
|
|
|
hexagon {
|
|
|
|
compatible = "demo-simple";
|
|
|
|
colour = "white";
|
|
|
|
sides = <6>;
|
|
|
|
};
|
|
|
|
|
2015-04-20 18:37:28 +00:00
|
|
|
i2c_0: i2c@0 {
|
2014-12-10 15:55:53 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2015-03-05 19:25:13 +00:00
|
|
|
reg = <0 0>;
|
2014-12-10 15:55:53 +00:00
|
|
|
compatible = "sandbox,i2c";
|
|
|
|
clock-frequency = <400000>;
|
2015-08-27 03:44:30 +00:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_i2c0>;
|
2014-12-10 15:55:53 +00:00
|
|
|
eeprom@2c {
|
|
|
|
reg = <0x2c>;
|
|
|
|
compatible = "i2c-eeprom";
|
|
|
|
emul {
|
|
|
|
compatible = "sandbox,i2c-eeprom";
|
|
|
|
sandbox,filename = "i2c.bin";
|
|
|
|
sandbox,size = <128>;
|
|
|
|
};
|
|
|
|
};
|
2015-04-20 18:37:28 +00:00
|
|
|
|
|
|
|
rtc_0: rtc@43 {
|
|
|
|
reg = <0x43>;
|
|
|
|
compatible = "sandbox-rtc";
|
|
|
|
emul {
|
|
|
|
compatible = "sandbox,i2c-rtc";
|
|
|
|
};
|
|
|
|
};
|
2015-05-13 11:38:35 +00:00
|
|
|
sandbox_pmic: sandbox_pmic {
|
|
|
|
reg = <0x40>;
|
|
|
|
};
|
2014-12-10 15:55:53 +00:00
|
|
|
};
|
|
|
|
|
2015-05-22 21:42:16 +00:00
|
|
|
lcd {
|
|
|
|
compatible = "sandbox,lcd-sdl";
|
|
|
|
xres = <1366>;
|
|
|
|
yres = <768>;
|
2014-10-14 05:41:48 +00:00
|
|
|
};
|
|
|
|
|
2015-03-05 19:25:26 +00:00
|
|
|
pci: pci-controller {
|
|
|
|
compatible = "sandbox,pci";
|
|
|
|
device_type = "pci";
|
|
|
|
#address-cells = <3>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
|
|
|
|
0x01000000 0 0x20000000 0x20000000 0 0x2000>;
|
|
|
|
pci@1f,0 {
|
|
|
|
compatible = "pci-generic";
|
|
|
|
reg = <0xf800 0 0 0 0>;
|
|
|
|
emul@1f,0 {
|
|
|
|
compatible = "sandbox,swap-case";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-08-27 03:44:30 +00:00
|
|
|
pinctrl {
|
|
|
|
compatible = "sandbox,pinctrl";
|
|
|
|
|
|
|
|
pinctrl_i2c0: i2c0 {
|
|
|
|
groups = "i2c";
|
|
|
|
function = "i2c";
|
|
|
|
bias-pull-up;
|
|
|
|
};
|
|
|
|
|
|
|
|
pinctrl_serial0: uart0 {
|
|
|
|
groups = "serial_a";
|
|
|
|
function = "serial";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-05-22 21:42:16 +00:00
|
|
|
spi@0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0 0>;
|
|
|
|
compatible = "sandbox,spi";
|
|
|
|
cs-gpios = <0>, <&gpio_a 0>;
|
|
|
|
firmware_storage_spi: flash@0 {
|
|
|
|
reg = <0>;
|
|
|
|
compatible = "spansion,m25p16", "sandbox,spi-flash";
|
|
|
|
spi-max-frequency = <40000000>;
|
|
|
|
sandbox,filename = "spi.bin";
|
|
|
|
};
|
2015-03-22 22:09:13 +00:00
|
|
|
};
|
2015-03-22 22:09:21 +00:00
|
|
|
|
2015-05-22 21:42:16 +00:00
|
|
|
square {
|
|
|
|
compatible = "demo-shape";
|
|
|
|
colour = "blue";
|
|
|
|
sides = <4>;
|
2015-03-22 22:09:21 +00:00
|
|
|
};
|
2015-03-22 22:09:23 +00:00
|
|
|
|
2015-08-23 00:31:35 +00:00
|
|
|
tpm {
|
|
|
|
compatible = "google,sandbox-tpm";
|
|
|
|
};
|
|
|
|
|
2015-05-22 21:42:16 +00:00
|
|
|
triangle {
|
|
|
|
compatible = "demo-shape";
|
|
|
|
colour = "cyan";
|
|
|
|
sides = <3>;
|
|
|
|
character = <83>;
|
|
|
|
light-gpios = <&gpio_a 2>, <&gpio_b 6 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Needs to be available prior to relocation */
|
|
|
|
uart0: serial {
|
|
|
|
compatible = "sandbox,serial";
|
|
|
|
sandbox,text-colour = "cyan";
|
2015-08-27 03:44:30 +00:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&pinctrl_serial0>;
|
2015-03-22 22:09:23 +00:00
|
|
|
};
|
2015-03-25 18:22:42 +00:00
|
|
|
|
|
|
|
usb@0 {
|
|
|
|
compatible = "sandbox,usb";
|
|
|
|
status = "disabled";
|
|
|
|
hub {
|
|
|
|
compatible = "sandbox,usb-hub";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
flash-stick {
|
|
|
|
reg = <0>;
|
|
|
|
compatible = "sandbox,usb-flash";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
usb@1 {
|
|
|
|
compatible = "sandbox,usb";
|
|
|
|
hub {
|
|
|
|
compatible = "usb-hub";
|
|
|
|
usb,device-class = <USB_CLASS_HUB>;
|
|
|
|
hub-emul {
|
|
|
|
compatible = "sandbox,usb-hub";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
flash-stick {
|
|
|
|
reg = <0>;
|
|
|
|
compatible = "sandbox,usb-flash";
|
|
|
|
sandbox,filepath = "flash.bin";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
usb@2 {
|
|
|
|
compatible = "sandbox,usb";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2014-02-26 22:59:14 +00:00
|
|
|
};
|
2015-03-26 15:29:39 +00:00
|
|
|
|
|
|
|
#include "cros-ec-keyboard.dtsi"
|
2015-05-13 11:38:35 +00:00
|
|
|
#include "sandbox_pmic.dtsi"
|