blob: d4ff4f703978fefab19a0244ed14b006f377c5ce [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Vlad Zakharov0c770922017-03-21 14:49:48 +03002/*
3 * Copyright (C) 2017 Synopsys, Inc. All rights reserved.
Vlad Zakharov0c770922017-03-21 14:49:48 +03004 */
5
6/ {
Eugeniy Paltsevcdfe6912018-06-08 18:52:14 +03007 aliases {
8 spi0 = &spi0;
9 };
10
Vlad Zakharov0c770922017-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 };
Eugeniy Paltsevcc2f7b62019-03-21 16:37:23 +030034
35 mmcclk_ciu: mmcclk-ciu {
36 compatible = "fixed-clock";
37 /*
38 * DW sdio controller has external ciu clock divider
39 * controlled via register in SDIO IP. It divides
40 * sdio_ref_clk (which comes from CGU) by 16 for
41 * default. So default mmcclk clock (which comes
42 * to sdk_in) is 25000000 Hz.
43 */
44 clock-frequency = <25000000>;
45 #clock-cells = <0>;
46 };
47
48 mmcclk_biu: mmcclk-biu {
49 compatible = "fixed-clock";
50 clock-frequency = <50000000>;
51 #clock-cells = <0>;
52 };
Vlad Zakharov0c770922017-03-21 14:49:48 +030053 };
54
55 ethernet@18000 {
Eugeniy Paltsev2a723232019-10-07 19:10:50 +030056 compatible = "snps,arc-dwmac-3.70a";
Vlad Zakharov0c770922017-03-21 14:49:48 +030057 reg = < 0x18000 0x2000 >;
Vlad Zakharov0c770922017-03-21 14:49:48 +030058 phy-mode = "gmii";
59 snps,pbl = < 32 >;
60 clocks = <&apbclk>;
61 clock-names = "stmmaceth";
62 max-speed = <100>;
63 };
64
Eugeniy Paltsevd82ed672020-05-13 18:15:12 +030065 ehci@40000 {
Vlad Zakharov0c770922017-03-21 14:49:48 +030066 compatible = "generic-ehci";
67 reg = < 0x40000 0x100 >;
Vlad Zakharov0c770922017-03-21 14:49:48 +030068 };
69
Eugeniy Paltsevd82ed672020-05-13 18:15:12 +030070 ohci@60000 {
Vlad Zakharov0c770922017-03-21 14:49:48 +030071 compatible = "generic-ohci";
72 reg = < 0x60000 0x100 >;
Vlad Zakharov0c770922017-03-21 14:49:48 +030073 };
74
Eugeniy Paltsevcc2f7b62019-03-21 16:37:23 +030075 mmc: mmc@15000 {
76 compatible = "snps,dw-mshc";
77 reg = <0x15000 0x400>;
78 bus-width = <4>;
79 clocks = <&mmcclk_biu>, <&mmcclk_ciu>;
80 clock-names = "biu", "ciu";
81 max-frequency = <25000000>;
82 };
83
Vlad Zakharov0c770922017-03-21 14:49:48 +030084 uart0: serial0@22000 {
85 compatible = "snps,dw-apb-uart";
86 reg = <0x22000 0x100>;
87 clocks = <&uartclk>;
88 reg-shift = <2>;
89 reg-io-width = <4>;
90 };
Eugeniy Paltsevcdfe6912018-06-08 18:52:14 +030091
92 spi0: spi@0 {
Sean Anderson237e5882020-10-16 18:57:50 -040093 compatible = "snps,axs10x-spi", "snps,dw-apb-ssi";
Eugeniy Paltsevcdfe6912018-06-08 18:52:14 +030094 reg = <0x0 0x100>;
95 #address-cells = <1>;
96 #size-cells = <0>;
97 spi-max-frequency = <4000000>;
98 clocks = <&apbclk>;
99 clock-names = "spi_clk";
Sean Anderson13fc44e2020-10-16 18:57:45 -0400100 num-cs = <1>;
101 cs-gpios = <&cs_gpio 0>;
Eugeniy Paltsevcdfe6912018-06-08 18:52:14 +0300102 spi_flash@0 {
Neil Armstrongffd4c7c2019-02-10 10:16:20 +0000103 compatible = "jedec,spi-nor";
Eugeniy Paltsevcdfe6912018-06-08 18:52:14 +0300104 reg = <0>;
105 spi-max-frequency = <4000000>;
106 };
107 };
108
109 cs_gpio: gpio@11218 {
110 compatible = "snps,creg-gpio";
111 reg = <0x11218 0x4>;
112 gpio-controller;
113 #gpio-cells = <1>;
114 gpio-bank-name = "axs-spi-cs";
115 gpio-count = <1>;
116 gpio-first-shift = <0>;
117 gpio-bit-per-line = <2>;
118 gpio-activate-val = <1>;
119 gpio-deactivate-val = <3>;
120 gpio-default-val = <1>;
121 };
Vlad Zakharov0c770922017-03-21 14:49:48 +0300122 };
123};