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