x86: samus: Update device tree for verified boot
authorSimon Glass <sjg@chromium.org>
Wed, 8 May 2019 03:41:14 +0000 (21:41 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 8 May 2019 05:02:19 +0000 (13:02 +0800)
Add nvdata drivers for the TPM and RTC as used on samus. These are needed
for Chromium OS verified boot on samus.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/dts/chromebook_samus.dts

index c4207af..772ea5c 100644 (file)
@@ -9,6 +9,12 @@
 /include/ "rtc.dtsi"
 /include/ "tsc_timer.dtsi"
 
+#ifdef CONFIG_CHROMEOS
+#include "chromeos-x86.dtsi"
+#include "flashmap-x86-ro.dtsi"
+#include "flashmap-8mb-rw.dtsi"
+#endif
+
 / {
        model = "Google Samus";
        compatible = "google,samus", "intel,broadwell";
                                #address-cells = <1>;
                                #size-cells = <0>;
                                compatible = "intel,ich9-spi";
-                               spi-flash@0 {
+                               fwstore_spi: spi-flash@0 {
                                        u-boot,dm-pre-reloc;
                                        #size-cells = <1>;
                                        #address-cells = <1>;
                u-boot,dm-pre-reloc;
                reg = <0xfed40000 0x5000>;
                compatible = "infineon,slb9635lpc";
+               secdata {
+                       u-boot,dm-pre-reloc;
+                       compatible = "google,tpm-secdata";
+               };
        };
 
        microcode {
        };
 
 };
+
+&rtc {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       nvdata {
+               u-boot,dm-pre-reloc;
+               compatible = "google,cmos-nvdata";
+               reg = <0x26>;
+       };
+};