x86: dts: Remove coreboot_fb.dtsi
[oweals/u-boot.git] / arch / x86 / dts / chromebook_link.dts
index 58072031df88e7c2fd536b1bb6fa6ac686d84d72..f9f097973026a7de3d8ea3cab862cc9f2bfe53a1 100644 (file)
@@ -1,8 +1,11 @@
 /dts-v1/;
 
+#include <dt-bindings/gpio/x86-gpio.h>
+
 /include/ "skeleton.dtsi"
 /include/ "keyboard.dtsi"
 /include/ "serial.dtsi"
+/include/ "reset.dtsi"
 /include/ "rtc.dtsi"
 /include/ "tsc_timer.dtsi"
 
 
        };
 
-       gpioa {
-               compatible = "intel,ich6-gpio";
-               u-boot,dm-pre-reloc;
-               reg = <0 0x10>;
-               bank-name = "A";
-       };
-
-       gpiob {
-               compatible = "intel,ich6-gpio";
-               u-boot,dm-pre-reloc;
-               reg = <0x30 0x10>;
-               bank-name = "B";
-       };
-
-       gpioc {
-               compatible = "intel,ich6-gpio";
-               u-boot,dm-pre-reloc;
-               reg = <0x40 0x10>;
-               bank-name = "C";
-       };
-
        chosen {
                stdout-path = "/serial";
        };
                intel,duplicate-por;
        };
 
-       spd {
-               compatible = "memory-spd";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               elpida_4Gb_1600_x16 {
-                       reg = <0>;
-                       data = [92 10 0b 03 04 19 02 02
-                               03 52 01 08 0a 00 fe 00
-                               69 78 69 3c 69 11 18 81
-                               20 08 3c 3c 01 40 83 81
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 0f 11 42 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 02 fe 00
-                               11 52 00 00 00 07 7f 37
-                               45 42 4a 32 30 55 47 36
-                               45 42 55 30 2d 47 4e 2d
-                               46 20 30 20 02 fe 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00];
-               };
-               samsung_4Gb_1600_1.35v_x16 {
-                       reg = <1>;
-                       data = [92 11 0b 03 04 19 02 02
-                               03 11 01 08 0a 00 fe 00
-                               69 78 69 3c 69 11 18 81
-                               f0 0a 3c 3c 01 40 83 01
-                               00 80 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 0f 11 02 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 80 ce 01
-                               00 00 00 00 00 00 6a 04
-                               4d 34 37 31 42 35 36 37
-                               34 42 48 30 2d 59 4b 30
-                               20 20 00 00 80 ce 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00];
-                       };
-               micron_4Gb_1600_1.35v_x16 {
-                       reg = <2>;
-                       data = [92 11 0b 03 04 19 02 02
-                               03 11 01 08 0a 00 fe 00
-                               69 78 69 3c 69 11 18 81
-                               20 08 3c 3c 01 40 83 05
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 0f 01 02 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 80 2c 00
-                               00 00 00 00 00 00 ad 75
-                               34 4b 54 46 32 35 36 36
-                               34 48 5a 2d 31 47 36 45
-                               31 20 45 31 80 2c 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               00 00 00 00 00 00 00 00
-                               ff ff ff ff ff ff ff ff
-                               ff ff ff ff ff ff ff ff
-                               ff ff ff ff ff ff ff ff
-                               ff ff ff ff ff ff ff ff
-                               ff ff ff ff ff ff ff ff
-                               ff ff ff ff ff ff ff ff
-                               ff ff ff ff ff ff ff ff
-                               ff ff ff ff ff ff ff ff
-                               ff ff ff ff ff ff ff ff
-                               ff ff ff ff ff ff ff ff];
+       pch_pinctrl {
+               compatible = "intel,x86-pinctrl";
+               u-boot,dm-pre-reloc;
+               reg = <0 0>;
+
+               gpio_a0 {
+                       gpio-offset = <0 0>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+               };
+
+               gpio_a1 {
+                       gpio-offset = <0>;
+                       mode-gpio;
+                       direction = <PIN_OUTPUT>;
+                       output-value = <1>;
+               };
+
+               gpio_a3 {
+                       gpio-offset = <0 3>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
                };
+
+               gpio_a5 {
+                       gpio-offset = <0 5>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+               };
+
+               gpio_a6 {
+                       gpio-offset = <0 6>;
+                       mode-gpio;
+                       direction = <PIN_OUTPUT>;
+                       output-value = <1>;
+               };
+
+               gpio_a7 {
+                       gpio-offset = <0 7>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+                       invert;
+               };
+
+               gpio_a8 {
+                       gpio-offset = <0 8>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+                       invert;
+               };
+
+               gpio_a9 {
+                       gpio-offset = <0 9>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+               };
+
+               gpio_a10 {
+                       u-boot,dm-pre-reloc;
+                       gpio-offset = <0 10>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+               };
+
+               gpio_a11 {
+                       gpio-offset = <0 11>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+               };
+
+               gpio_a12 {
+                       gpio-offset = <0 12>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+                       invert;
+               };
+
+               gpio_a14 {
+                       gpio-offset = <0 14>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+                       invert;
+               };
+
+               gpio_a15 {
+                       gpio-offset = <0 15>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+                       invert;
+               };
+
+               gpio_a21 {
+                       gpio-offset = <0 21>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+               };
+
+               gpio_a24 {
+                       gpio-offset = <0 24>;
+                       mode-gpio;
+                       output-value = <0>;
+                       direction = <PIN_OUTPUT>;
+               };
+
+               gpio_a28 {
+                       gpio-offset = <0 28>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+               };
+
+               gpio_b4 {
+                       gpio-offset = <0x30 4>;
+                       mode-gpio;
+                       direction = <PIN_OUTPUT>;
+                       output-value = <1>;
+               };
+
+               gpio_b9 {
+                       u-boot,dm-pre-reloc;
+                       gpio-offset = <0x30 9>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+               };
+
+               gpio_b10 {
+                       u-boot,dm-pre-reloc;
+                       gpio-offset = <0x30 10>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+               };
+
+               gpio_b11 {
+                       u-boot,dm-pre-reloc;
+                       gpio-offset = <0x30 11>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+               };
+
+               gpio_b25 {
+                       gpio-offset = <0x30 25>;
+                       mode-gpio;
+                       direction = <PIN_INPUT>;
+               };
+
+               gpio_b28 {
+                       gpio-offset = <0x30 28>;
+                       mode-gpio;
+                       direction = <PIN_OUTPUT>;
+                       output-value = <1>;
+               };
+
        };
 
        pci {
 
                northbridge@0,0 {
                        reg = <0x00000000 0 0 0 0>;
-                       compatible = "intel,bd82x6x-northbridge";
                        u-boot,dm-pre-reloc;
+                       compatible = "intel,bd82x6x-northbridge";
+                       board-id-gpios = <&gpio_b 9 0>, <&gpio_b 10 0>,
+                                       <&gpio_b 11 0>, <&gpio_a 10 0>;
+                       spd {
+                               u-boot,dm-pre-reloc;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               elpida_4Gb_1600_x16 {
+                                       u-boot,dm-pre-reloc;
+                                       reg = <0>;
+                                       data = [92 10 0b 03 04 19 02 02
+                                               03 52 01 08 0a 00 fe 00
+                                               69 78 69 3c 69 11 18 81
+                                               20 08 3c 3c 01 40 83 81
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 0f 11 42 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 02 fe 00
+                                               11 52 00 00 00 07 7f 37
+                                               45 42 4a 32 30 55 47 36
+                                               45 42 55 30 2d 47 4e 2d
+                                               46 20 30 20 02 fe 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00];
+                               };
+                               samsung_4Gb_1600_1.35v_x16 {
+                                       u-boot,dm-pre-reloc;
+                                       reg = <1>;
+                                       data = [92 11 0b 03 04 19 02 02
+                                               03 11 01 08 0a 00 fe 00
+                                               69 78 69 3c 69 11 18 81
+                                               f0 0a 3c 3c 01 40 83 01
+                                               00 80 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 0f 11 02 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 80 ce 01
+                                               00 00 00 00 00 00 6a 04
+                                               4d 34 37 31 42 35 36 37
+                                               34 42 48 30 2d 59 4b 30
+                                               20 20 00 00 80 ce 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00];
+                                       };
+                               micron_4Gb_1600_1.35v_x16 {
+                                       reg = <2>;
+                                       data = [92 11 0b 03 04 19 02 02
+                                               03 11 01 08 0a 00 fe 00
+                                               69 78 69 3c 69 11 18 81
+                                               20 08 3c 3c 01 40 83 05
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 0f 01 02 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 80 2c 00
+                                               00 00 00 00 00 00 ad 75
+                                               34 4b 54 46 32 35 36 36
+                                               34 48 5a 2d 31 47 36 45
+                                               31 20 45 31 80 2c 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               00 00 00 00 00 00 00 00
+                                               ff ff ff ff ff ff ff ff
+                                               ff ff ff ff ff ff ff ff
+                                               ff ff ff ff ff ff ff ff
+                                               ff ff ff ff ff ff ff ff
+                                               ff ff ff ff ff ff ff ff
+                                               ff ff ff ff ff ff ff ff
+                                               ff ff ff ff ff ff ff ff
+                                               ff ff ff ff ff ff ff ff
+                                               ff ff ff ff ff ff ff ff
+                                               ff ff ff ff ff ff ff ff];
+                               };
+                       };
                };
 
                gma@2,0 {
                        spi: spi {
                                #address-cells = <1>;
                                #size-cells = <0>;
-                               compatible = "intel,ich-spi";
+                               compatible = "intel,ich9-spi";
+                               u-boot,dm-pre-reloc;
                                spi-flash@0 {
                                        #size-cells = <1>;
                                        #address-cells = <1>;
+                                       u-boot,dm-pre-reloc;
                                        reg = <0>;
                                        compatible = "winbond,w25q64",
                                                        "spi-flash";
                                        rw-mrc-cache {
                                                label = "rw-mrc-cache";
                                                reg = <0x003e0000 0x00010000>;
+                                               u-boot,dm-pre-reloc;
                                        };
                                };
                        };
 
+                       gpio_a: gpioa {
+                               compatible = "intel,ich6-gpio";
+                               u-boot,dm-pre-reloc;
+                               #gpio-cells = <2>;
+                               gpio-controller;
+                               reg = <0 0x10>;
+                               bank-name = "A";
+                       };
+
+                       gpio_b: gpiob {
+                               compatible = "intel,ich6-gpio";
+                               u-boot,dm-pre-reloc;
+                               #gpio-cells = <2>;
+                               gpio-controller;
+                               reg = <0x30 0x10>;
+                               bank-name = "B";
+                       };
+
+                       gpio_c: gpioc {
+                               compatible = "intel,ich6-gpio";
+                               u-boot,dm-pre-reloc;
+                               #gpio-cells = <2>;
+                               gpio-controller;
+                               reg = <0x40 0x10>;
+                               bank-name = "C";
+                       };
+
                        lpc {
                                compatible = "intel,bd82x6x-lpc";
                                #address-cells = <1>;
        };
 
        microcode {
+               u-boot,dm-pre-reloc;
                update@0 {
+                       u-boot,dm-pre-reloc;
 #include "microcode/m12306a9_0000001b.dtsi"
                };
        };