Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Vlad Zakharov | 0c77092 | 2017-03-21 14:49:48 +0300 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2017 Synopsys, Inc. All rights reserved. |
Vlad Zakharov | 0c77092 | 2017-03-21 14:49:48 +0300 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | / { |
Eugeniy Paltsev | cdfe691 | 2018-06-08 18:52:14 +0300 | [diff] [blame] | 7 | aliases { |
| 8 | spi0 = &spi0; |
| 9 | }; |
| 10 | |
Vlad Zakharov | 0c77092 | 2017-03-21 14:49:48 +0300 | [diff] [blame] | 11 | 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 Paltsev | cc2f7b6 | 2019-03-21 16:37:23 +0300 | [diff] [blame] | 34 | |
| 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 Zakharov | 0c77092 | 2017-03-21 14:49:48 +0300 | [diff] [blame] | 53 | }; |
| 54 | |
| 55 | ethernet@18000 { |
Vlad Zakharov | 0c77092 | 2017-03-21 14:49:48 +0300 | [diff] [blame] | 56 | compatible = "altr,socfpga-stmmac"; |
| 57 | reg = < 0x18000 0x2000 >; |
Vlad Zakharov | 0c77092 | 2017-03-21 14:49:48 +0300 | [diff] [blame] | 58 | phy-mode = "gmii"; |
| 59 | snps,pbl = < 32 >; |
| 60 | clocks = <&apbclk>; |
| 61 | clock-names = "stmmaceth"; |
| 62 | max-speed = <100>; |
| 63 | }; |
| 64 | |
| 65 | ehci@0x40000 { |
| 66 | compatible = "generic-ehci"; |
| 67 | reg = < 0x40000 0x100 >; |
Vlad Zakharov | 0c77092 | 2017-03-21 14:49:48 +0300 | [diff] [blame] | 68 | }; |
| 69 | |
| 70 | ohci@0x60000 { |
| 71 | compatible = "generic-ohci"; |
| 72 | reg = < 0x60000 0x100 >; |
Vlad Zakharov | 0c77092 | 2017-03-21 14:49:48 +0300 | [diff] [blame] | 73 | }; |
| 74 | |
Eugeniy Paltsev | cc2f7b6 | 2019-03-21 16:37:23 +0300 | [diff] [blame] | 75 | 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 Zakharov | 0c77092 | 2017-03-21 14:49:48 +0300 | [diff] [blame] | 84 | 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 Paltsev | cdfe691 | 2018-06-08 18:52:14 +0300 | [diff] [blame] | 91 | |
| 92 | spi0: spi@0 { |
| 93 | compatible = "snps,dw-apb-ssi"; |
| 94 | reg = <0x0 0x100>; |
| 95 | #address-cells = <1>; |
| 96 | #size-cells = <0>; |
| 97 | spi-max-frequency = <4000000>; |
| 98 | clocks = <&apbclk>; |
| 99 | clock-names = "spi_clk"; |
| 100 | cs-gpio = <&cs_gpio 0>; |
| 101 | spi_flash@0 { |
Neil Armstrong | ffd4c7c | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 102 | compatible = "jedec,spi-nor"; |
Eugeniy Paltsev | cdfe691 | 2018-06-08 18:52:14 +0300 | [diff] [blame] | 103 | reg = <0>; |
| 104 | spi-max-frequency = <4000000>; |
| 105 | }; |
| 106 | }; |
| 107 | |
| 108 | cs_gpio: gpio@11218 { |
| 109 | compatible = "snps,creg-gpio"; |
| 110 | reg = <0x11218 0x4>; |
| 111 | gpio-controller; |
| 112 | #gpio-cells = <1>; |
| 113 | gpio-bank-name = "axs-spi-cs"; |
| 114 | gpio-count = <1>; |
| 115 | gpio-first-shift = <0>; |
| 116 | gpio-bit-per-line = <2>; |
| 117 | gpio-activate-val = <1>; |
| 118 | gpio-deactivate-val = <3>; |
| 119 | gpio-default-val = <1>; |
| 120 | }; |
Vlad Zakharov | 0c77092 | 2017-03-21 14:49:48 +0300 | [diff] [blame] | 121 | }; |
| 122 | }; |