Max Filippov | 5584b4d | 2012-11-03 12:57:52 +0400 | [diff] [blame] | 1 | / { |
Baruch Siach | 42beb76 | 2013-12-01 10:13:33 +0200 | [diff] [blame] | 2 | compatible = "cdns,xtensa-xtfpga"; |
Max Filippov | 5584b4d | 2012-11-03 12:57:52 +0400 | [diff] [blame] | 3 | #address-cells = <1>; |
| 4 | #size-cells = <1>; |
| 5 | interrupt-parent = <&pic>; |
| 6 | |
| 7 | chosen { |
| 8 | bootargs = "earlycon=uart8250,mmio32,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug"; |
| 9 | }; |
| 10 | |
| 11 | memory@0 { |
| 12 | device_type = "memory"; |
| 13 | reg = <0x00000000 0x06000000>; |
| 14 | }; |
| 15 | |
| 16 | cpus { |
| 17 | #address-cells = <1>; |
| 18 | #size-cells = <0>; |
| 19 | cpu@0 { |
Baruch Siach | 42beb76 | 2013-12-01 10:13:33 +0200 | [diff] [blame] | 20 | compatible = "cdns,xtensa-cpu"; |
Max Filippov | 5584b4d | 2012-11-03 12:57:52 +0400 | [diff] [blame] | 21 | reg = <0>; |
| 22 | /* Filled in by platform_setup from FPGA register |
| 23 | * clock-frequency = <100000000>; |
| 24 | */ |
| 25 | }; |
| 26 | }; |
| 27 | |
| 28 | pic: pic { |
Max Filippov | cbd1de2 | 2013-12-01 12:59:49 +0400 | [diff] [blame] | 29 | compatible = "cdns,xtensa-pic"; |
Max Filippov | 5584b4d | 2012-11-03 12:57:52 +0400 | [diff] [blame] | 30 | /* one cell: internal irq number, |
| 31 | * two cells: second cell == 0: internal irq number |
| 32 | * second cell == 1: external irq number |
| 33 | */ |
| 34 | #interrupt-cells = <2>; |
| 35 | interrupt-controller; |
| 36 | }; |
| 37 | |
Max Filippov | cdc9af7 | 2014-01-29 07:42:46 +0400 | [diff] [blame] | 38 | clocks { |
| 39 | osc: main-oscillator { |
| 40 | #clock-cells = <0>; |
| 41 | compatible = "fixed-clock"; |
| 42 | }; |
Max Filippov | c2c62e6 | 2013-04-19 21:01:31 +0400 | [diff] [blame] | 43 | |
| 44 | clk54: clk54 { |
| 45 | #clock-cells = <0>; |
| 46 | compatible = "fixed-clock"; |
| 47 | clock-frequency = <54000000>; |
| 48 | }; |
Max Filippov | cdc9af7 | 2014-01-29 07:42:46 +0400 | [diff] [blame] | 49 | }; |
| 50 | |
Max Filippov | 08a7bbf | 2014-02-23 03:48:32 +0400 | [diff] [blame] | 51 | soc { |
| 52 | #address-cells = <1>; |
| 53 | #size-cells = <1>; |
| 54 | compatible = "simple-bus"; |
| 55 | ranges = <0x00000000 0xf0000000 0x10000000>; |
Max Filippov | 5584b4d | 2012-11-03 12:57:52 +0400 | [diff] [blame] | 56 | |
Max Filippov | 08a7bbf | 2014-02-23 03:48:32 +0400 | [diff] [blame] | 57 | serial0: serial@0d050020 { |
| 58 | device_type = "serial"; |
| 59 | compatible = "ns16550a"; |
| 60 | no-loopback-test; |
| 61 | reg = <0x0d050020 0x20>; |
| 62 | reg-shift = <2>; |
Max Filippov | abfbd89 | 2015-08-24 19:44:46 +0300 | [diff] [blame] | 63 | reg-io-width = <4>; |
| 64 | native-endian; |
Max Filippov | 08a7bbf | 2014-02-23 03:48:32 +0400 | [diff] [blame] | 65 | interrupts = <0 1>; /* external irq 0 */ |
| 66 | clocks = <&osc>; |
| 67 | }; |
| 68 | |
| 69 | enet0: ethoc@0d030000 { |
| 70 | compatible = "opencores,ethoc"; |
| 71 | reg = <0x0d030000 0x4000 0x0d800000 0x4000>; |
Max Filippov | d99434e | 2015-08-25 09:04:12 +0300 | [diff] [blame^] | 72 | native-endian; |
Max Filippov | 08a7bbf | 2014-02-23 03:48:32 +0400 | [diff] [blame] | 73 | interrupts = <1 1>; /* external irq 1 */ |
| 74 | local-mac-address = [00 50 c2 13 6f 00]; |
| 75 | clocks = <&osc>; |
| 76 | }; |
Max Filippov | c2c62e6 | 2013-04-19 21:01:31 +0400 | [diff] [blame] | 77 | |
| 78 | i2s0: xtfpga-i2s@0d080000 { |
| 79 | #sound-dai-cells = <0>; |
| 80 | compatible = "cdns,xtfpga-i2s"; |
| 81 | reg = <0x0d080000 0x40>; |
| 82 | interrupts = <2 1>; /* external irq 2 */ |
| 83 | clocks = <&cdce706 4>; |
| 84 | }; |
| 85 | |
| 86 | i2c0: i2c-master@0d090000 { |
| 87 | compatible = "opencores,i2c-ocores"; |
| 88 | #address-cells = <1>; |
| 89 | #size-cells = <0>; |
| 90 | reg = <0x0d090000 0x20>; |
| 91 | reg-shift = <2>; |
| 92 | reg-io-width = <1>; |
| 93 | interrupts = <4 1>; |
| 94 | clocks = <&osc>; |
| 95 | |
| 96 | cdce706: clock-synth@69 { |
| 97 | compatible = "ti,cdce706"; |
| 98 | #clock-cells = <1>; |
| 99 | reg = <0x69>; |
| 100 | clocks = <&clk54>; |
| 101 | clock-names = "clk_in0"; |
| 102 | }; |
| 103 | }; |
| 104 | |
| 105 | spi0: spi-master@0d0a0000 { |
| 106 | compatible = "cdns,xtfpga-spi"; |
| 107 | #address-cells = <1>; |
| 108 | #size-cells = <0>; |
| 109 | reg = <0x0d0a0000 0xc>; |
| 110 | |
| 111 | tlv320aic23: sound-codec@0 { |
| 112 | #sound-dai-cells = <0>; |
| 113 | compatible = "tlv320aic23"; |
| 114 | reg = <0>; |
| 115 | spi-max-frequency = <12500000>; |
| 116 | }; |
| 117 | }; |
| 118 | }; |
| 119 | |
| 120 | sound { |
| 121 | compatible = "simple-audio-card"; |
| 122 | simple-audio-card,format = "i2s"; |
| 123 | simple-audio-card,mclk-fs = <256>; |
| 124 | |
| 125 | simple-audio-card,cpu { |
| 126 | sound-dai = <&i2s0>; |
| 127 | }; |
| 128 | |
| 129 | simple-audio-card,codec { |
| 130 | sound-dai = <&tlv320aic23>; |
| 131 | simple-audio-card,bitclock-master = <0>; |
| 132 | simple-audio-card,frame-master = <0>; |
| 133 | clocks = <&cdce706 4>; |
| 134 | }; |
Max Filippov | 5584b4d | 2012-11-03 12:57:52 +0400 | [diff] [blame] | 135 | }; |
| 136 | }; |