]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/sandbox/dts/sandbox.dts
efffacba1d37b86f88fab96c19fb0bfcd535c024
[karo-tx-uboot.git] / arch / sandbox / dts / sandbox.dts
1 /dts-v1/;
2
3 / {
4         triangle {
5                 compatible = "demo-shape";
6                 colour = "cyan";
7                 sides = <3>;
8                 character = <83>;
9         };
10         square {
11                 compatible = "demo-shape";
12                 colour = "blue";
13                 sides = <4>;
14         };
15         hexagon {
16                 compatible = "demo-simple";
17                 colour = "white";
18                 sides = <6>;
19         };
20
21         host@0 {
22                 #address-cells = <1>;
23                 #size-cells = <0>;
24                 compatible = "sandbox,host-emulation";
25                 cros-ec@0 {
26                         reg = <0>;
27                         compatible = "google,cros-ec";
28
29                         /*
30                          * This describes the flash memory within the EC. Note
31                          * that the STM32L flash erases to 0, not 0xff.
32                          */
33                         #address-cells = <1>;
34                         #size-cells = <1>;
35                         flash@8000000 {
36                                 reg = <0x08000000 0x20000>;
37                                 erase-value = <0>;
38                                 #address-cells = <1>;
39                                 #size-cells = <1>;
40
41                                 /* Information for sandbox */
42                                 ro {
43                                         reg = <0 0xf000>;
44                                 };
45                                 wp-ro {
46                                         reg = <0xf000 0x1000>;
47                                 };
48                                 rw {
49                                         reg = <0x10000 0x10000>;
50                                 };
51                         };
52                 };
53         };
54
55         lcd {
56                 compatible = "sandbox,lcd-sdl";
57                 xres = <800>;
58                 yres = <600>;
59         };
60
61         cros-ec-keyb {
62                 compatible = "google,cros-ec-keyb";
63                 google,key-rows = <8>;
64                 google,key-columns = <13>;
65                 google,repeat-delay-ms = <240>;
66                 google,repeat-rate-ms = <30>;
67                 google,ghost-filter;
68                 /*
69                  * Keymap entries take the form of 0xRRCCKKKK where
70                  * RR=Row CC=Column KKKK=Key Code
71                  * The values below are for a US keyboard layout and
72                  * are taken from the Linux driver. Note that the
73                  * 102ND key is not used for US keyboards.
74                  */
75                 linux,keymap = <
76                         /* CAPSLCK F1         B          F10     */
77                         0x0001003a 0x0002003b 0x00030030 0x00040044
78                         /* N       =          R_ALT      ESC     */
79                         0x00060031 0x0008000d 0x000a0064 0x01010001
80                         /* F4      G          F7         H       */
81                         0x0102003e 0x01030022 0x01040041 0x01060023
82                         /* '       F9         BKSPACE    L_CTRL  */
83                         0x01080028 0x01090043 0x010b000e 0x0200001d
84                         /* TAB     F3         T          F6      */
85                         0x0201000f 0x0202003d 0x02030014 0x02040040
86                         /* ]       Y          102ND      [       */
87                         0x0205001b 0x02060015 0x02070056 0x0208001a
88                         /* F8      GRAVE      F2         5       */
89                         0x02090042 0x03010029 0x0302003c 0x03030006
90                         /* F5      6          -          \       */
91                         0x0304003f 0x03060007 0x0308000c 0x030b002b
92                         /* R_CTRL  A          D          F       */
93                         0x04000061 0x0401001e 0x04020020 0x04030021
94                         /* S       K          J          ;       */
95                         0x0404001f 0x04050025 0x04060024 0x04080027
96                         /* L       ENTER      Z          C       */
97                         0x04090026 0x040b001c 0x0501002c 0x0502002e
98                         /* V       X          ,          M       */
99                         0x0503002f 0x0504002d 0x05050033 0x05060032
100                         /* L_SHIFT /          .          SPACE   */
101                         0x0507002a 0x05080035 0x05090034 0x050B0039
102                         /* 1       3          4          2       */
103                         0x06010002 0x06020004 0x06030005 0x06040003
104                         /* 8       7          0          9       */
105                         0x06050009 0x06060008 0x0608000b 0x0609000a
106                         /* L_ALT   DOWN       RIGHT      Q       */
107                         0x060a0038 0x060b006c 0x060c006a 0x07010010
108                         /* E       R          W          I       */
109                         0x07020012 0x07030013 0x07040011 0x07050017
110                         /* U       R_SHIFT    P          O       */
111                         0x07060016 0x07070036 0x07080019 0x07090018
112                         /* UP      LEFT    */
113                         0x070b0067 0x070c0069>;
114         };
115
116         gpio_a: gpios {
117                 gpio-controller;
118                 compatible = "sandbox,gpio";
119                 #gpio-cells = <1>;
120                 gpio-bank-name = "a";
121                 num-gpios = <20>;
122         };
123
124 };