blob: b5aacd5170e18c31f2b80c37350e6453e43bf79e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Vlad Zakharova7a67492017-03-21 14:49:48 +03002/*
3 * Copyright (C) 2017 Synopsys, Inc. All rights reserved.
Vlad Zakharova7a67492017-03-21 14:49:48 +03004 */
5
6/ {
Eugeniy Paltsevc96cafb2018-06-08 18:52:14 +03007 aliases {
8 spi0 = &spi0;
9 };
10
Vlad Zakharova7a67492017-03-21 14:49:48 +030011 axs10x_mb@e0000000 {
12 compatible = "simple-bus";
13 #address-cells = <1>;
14 #size-cells = <1>;
15 ranges = <0x00000000 0xe0000000 0x10000000>;
16 u-boot,dm-pre-reloc;
17
18 clocks {
19 compatible = "simple-bus";
20 u-boot,dm-pre-reloc;
21
22 apbclk: apbclk {
23 compatible = "fixed-clock";
24 clock-frequency = <50000000>;
25 #clock-cells = <0>;
26 };
27
28 uartclk: uartclk {
29 compatible = "fixed-clock";
30 clock-frequency = <33333333>;
31 #clock-cells = <0>;
32 u-boot,dm-pre-reloc;
33 };
34 };
35
36 ethernet@18000 {
Vlad Zakharova7a67492017-03-21 14:49:48 +030037 compatible = "altr,socfpga-stmmac";
38 reg = < 0x18000 0x2000 >;
Vlad Zakharova7a67492017-03-21 14:49:48 +030039 phy-mode = "gmii";
40 snps,pbl = < 32 >;
41 clocks = <&apbclk>;
42 clock-names = "stmmaceth";
43 max-speed = <100>;
44 };
45
46 ehci@0x40000 {
47 compatible = "generic-ehci";
48 reg = < 0x40000 0x100 >;
Vlad Zakharova7a67492017-03-21 14:49:48 +030049 };
50
51 ohci@0x60000 {
52 compatible = "generic-ohci";
53 reg = < 0x60000 0x100 >;
Vlad Zakharova7a67492017-03-21 14:49:48 +030054 };
55
56 uart0: serial0@22000 {
57 compatible = "snps,dw-apb-uart";
58 reg = <0x22000 0x100>;
59 clocks = <&uartclk>;
60 reg-shift = <2>;
61 reg-io-width = <4>;
62 };
Eugeniy Paltsevc96cafb2018-06-08 18:52:14 +030063
64 spi0: spi@0 {
65 compatible = "snps,dw-apb-ssi";
66 reg = <0x0 0x100>;
67 #address-cells = <1>;
68 #size-cells = <0>;
69 spi-max-frequency = <4000000>;
70 clocks = <&apbclk>;
71 clock-names = "spi_clk";
72 cs-gpio = <&cs_gpio 0>;
73 spi_flash@0 {
Neil Armstronga009fa72019-02-10 10:16:20 +000074 compatible = "jedec,spi-nor";
Eugeniy Paltsevc96cafb2018-06-08 18:52:14 +030075 reg = <0>;
76 spi-max-frequency = <4000000>;
77 };
78 };
79
80 cs_gpio: gpio@11218 {
81 compatible = "snps,creg-gpio";
82 reg = <0x11218 0x4>;
83 gpio-controller;
84 #gpio-cells = <1>;
85 gpio-bank-name = "axs-spi-cs";
86 gpio-count = <1>;
87 gpio-first-shift = <0>;
88 gpio-bit-per-line = <2>;
89 gpio-activate-val = <1>;
90 gpio-deactivate-val = <3>;
91 gpio-default-val = <1>;
92 };
Vlad Zakharova7a67492017-03-21 14:49:48 +030093 };
94};