arm64: zynqmp: Disable BOOTCOMMAND
[oweals/u-boot.git] / arch / arc / dts / hsdk.dts
index 09f3fe9a374937a318090ab6ccb021e71600eefb..f024b96925e440c956674833ab954f9fe6688554 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2017 Synopsys, Inc. All rights reserved.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 /dts-v1/;
 
@@ -9,18 +8,21 @@
 #include "dt-bindings/clock/snps,hsdk-cgu.h"
 
 / {
+       model = "snps,hsdk";
+
        #address-cells = <1>;
        #size-cells = <1>;
 
        aliases {
                console = &uart0;
+               spi0 = &spi0;
        };
 
        cpu_card {
                core_clk: core_clk {
                        #clock-cells = <0>;
                        compatible = "fixed-clock";
-                       clock-frequency = <1000000000>;
+                       clock-frequency = <500000000>;
                        u-boot,dm-pre-reloc;
                };
        };
                compatible = "generic-ohci";
                reg = <0xf0060000 0x100>;
        };
+
+       spi0: spi@f0020000 {
+               compatible = "snps,dw-apb-ssi";
+               reg = <0xf0020000 0x1000>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               spi-max-frequency = <4000000>;
+               clocks = <&cgu_clk CLK_SYS_SPI_REF>;
+               clock-names = "spi_clk";
+               cs-gpio = <&cs_gpio 0>;
+               spi_flash@0 {
+                       compatible = "spi-flash";
+                       reg = <0>;
+                       spi-max-frequency = <4000000>;
+               };
+       };
+
+       cs_gpio: gpio@f00014b0 {
+               compatible = "snps,creg-gpio";
+               reg = <0xf00014b0 0x4>;
+               gpio-controller;
+               #gpio-cells = <1>;
+               gpio-bank-name = "hsdk-spi-cs";
+               gpio-count = <1>;
+               gpio-first-shift = <0>;
+               gpio-bit-per-line = <2>;
+               gpio-activate-val = <2>;
+               gpio-deactivate-val = <3>;
+               gpio-default-val = <1>;
+       };
 };