1/dts-v1/; 2 3/ { 4 #address-cells = <1>; 5 #size-cells = <1>; 6 7 aliases { 8 pci0 = &pci; 9 }; 10 11 chosen { 12 stdout-path = "/serial"; 13 }; 14 15 /* Needs to be available prior to relocation */ 16 uart0: serial { 17 compatible = "sandbox,serial"; 18 sandbox,text-colour = "cyan"; 19 }; 20 21 triangle { 22 compatible = "demo-shape"; 23 colour = "cyan"; 24 sides = <3>; 25 character = <83>; 26 light-gpios = <&gpio_a 2>, <&gpio_b 6 0>; 27 }; 28 square { 29 compatible = "demo-shape"; 30 colour = "blue"; 31 sides = <4>; 32 }; 33 hexagon { 34 compatible = "demo-simple"; 35 colour = "white"; 36 sides = <6>; 37 }; 38 39 host@0 { 40 #address-cells = <1>; 41 #size-cells = <0>; 42 compatible = "sandbox,host-emulation"; 43 cros-ec@0 { 44 reg = <0>; 45 compatible = "google,cros-ec"; 46 47 /* 48 * This describes the flash memory within the EC. Note 49 * that the STM32L flash erases to 0, not 0xff. 50 */ 51 #address-cells = <1>; 52 #size-cells = <1>; 53 flash@8000000 { 54 reg = <0x08000000 0x20000>; 55 erase-value = <0>; 56 #address-cells = <1>; 57 #size-cells = <1>; 58 59 /* Information for sandbox */ 60 ro { 61 reg = <0 0xf000>; 62 }; 63 wp-ro { 64 reg = <0xf000 0x1000>; 65 }; 66 rw { 67 reg = <0x10000 0x10000>; 68 }; 69 }; 70 }; 71 }; 72 73 lcd { 74 compatible = "sandbox,lcd-sdl"; 75 xres = <800>; 76 yres = <600>; 77 }; 78 79 cros-ec-keyb { 80 compatible = "google,cros-ec-keyb"; 81 keypad,num-rows = <8>; 82 keypad,num-columns = <13>; 83 google,ghost-filter; 84 /* 85 * Keymap entries take the form of 0xRRCCKKKK where 86 * RR=Row CC=Column KKKK=Key Code 87 * The values below are for a US keyboard layout and 88 * are taken from the Linux driver. Note that the 89 * 102ND key is not used for US keyboards. 90 */ 91 linux,keymap = < 92 /* CAPSLCK F1 B F10 */ 93 0x0001003a 0x0002003b 0x00030030 0x00040044 94 /* N = R_ALT ESC */ 95 0x00060031 0x0008000d 0x000a0064 0x01010001 96 /* F4 G F7 H */ 97 0x0102003e 0x01030022 0x01040041 0x01060023 98 /* ' F9 BKSPACE L_CTRL */ 99 0x01080028 0x01090043 0x010b000e 0x0200001d 100 /* TAB F3 T F6 */ 101 0x0201000f 0x0202003d 0x02030014 0x02040040 102 /* ] Y 102ND [ */ 103 0x0205001b 0x02060015 0x02070056 0x0208001a 104 /* F8 GRAVE F2 5 */ 105 0x02090042 0x03010029 0x0302003c 0x03030006 106 /* F5 6 - \ */ 107 0x0304003f 0x03060007 0x0308000c 0x030b002b 108 /* R_CTRL A D F */ 109 0x04000061 0x0401001e 0x04020020 0x04030021 110 /* S K J ; */ 111 0x0404001f 0x04050025 0x04060024 0x04080027 112 /* L ENTER Z C */ 113 0x04090026 0x040b001c 0x0501002c 0x0502002e 114 /* V X , M */ 115 0x0503002f 0x0504002d 0x05050033 0x05060032 116 /* L_SHIFT / . SPACE */ 117 0x0507002a 0x05080035 0x05090034 0x050B0039 118 /* 1 3 4 2 */ 119 0x06010002 0x06020004 0x06030005 0x06040003 120 /* 8 7 0 9 */ 121 0x06050009 0x06060008 0x0608000b 0x0609000a 122 /* L_ALT DOWN RIGHT Q */ 123 0x060a0038 0x060b006c 0x060c006a 0x07010010 124 /* E R W I */ 125 0x07020012 0x07030013 0x07040011 0x07050017 126 /* U R_SHIFT P O */ 127 0x07060016 0x07070036 0x07080019 0x07090018 128 /* UP LEFT */ 129 0x070b0067 0x070c0069>; 130 }; 131 132 gpio_a: gpios@0 { 133 gpio-controller; 134 compatible = "sandbox,gpio"; 135 #gpio-cells = <1>; 136 gpio-bank-name = "a"; 137 num-gpios = <20>; 138 }; 139 140 gpio_b: gpios@1 { 141 gpio-controller; 142 compatible = "sandbox,gpio"; 143 #gpio-cells = <2>; 144 gpio-bank-name = "b"; 145 num-gpios = <10>; 146 }; 147 148 i2c@0 { 149 #address-cells = <1>; 150 #size-cells = <0>; 151 reg = <0 0>; 152 compatible = "sandbox,i2c"; 153 clock-frequency = <400000>; 154 eeprom@2c { 155 reg = <0x2c>; 156 compatible = "i2c-eeprom"; 157 emul { 158 compatible = "sandbox,i2c-eeprom"; 159 sandbox,filename = "i2c.bin"; 160 sandbox,size = <128>; 161 }; 162 }; 163 }; 164 165 spi@0 { 166 #address-cells = <1>; 167 #size-cells = <0>; 168 reg = <0 0>; 169 compatible = "sandbox,spi"; 170 cs-gpios = <0>, <&gpio_a 0>; 171 flash@0 { 172 reg = <0>; 173 compatible = "spansion,m25p16", "sandbox,spi-flash"; 174 spi-max-frequency = <40000000>; 175 sandbox,filename = "spi.bin"; 176 }; 177 }; 178 179 cros-ec@0 { 180 compatible = "google,cros-ec"; 181 #address-cells = <1>; 182 #size-cells = <1>; 183 firmware_storage_spi: flash@0 { 184 reg = <0 0x400000>; 185 }; 186 }; 187 188 pci: pci-controller { 189 compatible = "sandbox,pci"; 190 device_type = "pci"; 191 #address-cells = <3>; 192 #size-cells = <2>; 193 ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000 194 0x01000000 0 0x20000000 0x20000000 0 0x2000>; 195 pci@1f,0 { 196 compatible = "pci-generic"; 197 reg = <0xf800 0 0 0 0>; 198 emul@1f,0 { 199 compatible = "sandbox,swap-case"; 200 }; 201 }; 202 }; 203 204 eth@10002000 { 205 compatible = "sandbox,eth"; 206 reg = <0x10002000 0x1000>; 207 fake-host-hwaddr = [00 00 66 44 22 00]; 208 }; 209}; 210