David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | |
| 3 | /dts-v1/; |
| 4 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 5 | #include <dt-bindings/clock/clps711x-clock.h> |
| 6 | |
| 7 | / { |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 8 | #address-cells = <1>; |
| 9 | #size-cells = <1>; |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 10 | model = "Cirrus Logic EP7209"; |
| 11 | compatible = "cirrus,ep7209"; |
| 12 | |
| 13 | aliases { |
| 14 | gpio0 = &porta; |
| 15 | gpio1 = &portb; |
| 16 | gpio3 = &portd; |
| 17 | gpio4 = &porte; |
| 18 | serial0 = &uart1; |
| 19 | serial1 = &uart2; |
| 20 | spi0 = &spi; |
| 21 | timer0 = &timer1; |
| 22 | timer1 = &timer2; |
| 23 | }; |
| 24 | |
| 25 | cpus { |
| 26 | #address-cells = <0>; |
| 27 | #size-cells = <0>; |
| 28 | |
| 29 | cpu { |
| 30 | device_type = "cpu"; |
| 31 | compatible = "arm,arm720t"; |
| 32 | }; |
| 33 | }; |
| 34 | |
| 35 | soc { |
| 36 | #address-cells = <1>; |
| 37 | #size-cells = <1>; |
| 38 | compatible = "simple-bus"; |
| 39 | interrupt-parent = <&intc>; |
| 40 | ranges; |
| 41 | |
| 42 | clks: clks@80000000 { |
| 43 | #clock-cells = <1>; |
| 44 | compatible = "cirrus,ep7209-clk"; |
| 45 | reg = <0x80000000 0xc000>; |
| 46 | startup-frequency = <73728000>; |
| 47 | }; |
| 48 | |
| 49 | intc: intc@80000000 { |
| 50 | compatible = "cirrus,ep7209-intc"; |
| 51 | reg = <0x80000000 0x4000>; |
| 52 | interrupt-controller; |
| 53 | #interrupt-cells = <1>; |
| 54 | }; |
| 55 | |
| 56 | porta: gpio@80000000 { |
| 57 | compatible = "cirrus,ep7209-gpio"; |
| 58 | reg = <0x80000000 0x1 0x80000040 0x1>; |
| 59 | gpio-controller; |
| 60 | #gpio-cells = <2>; |
| 61 | }; |
| 62 | |
| 63 | portb: gpio@80000001 { |
| 64 | compatible = "cirrus,ep7209-gpio"; |
| 65 | reg = <0x80000001 0x1 0x80000041 0x1>; |
| 66 | gpio-controller; |
| 67 | #gpio-cells = <2>; |
| 68 | }; |
| 69 | |
| 70 | portd: gpio@80000003 { |
| 71 | compatible = "cirrus,ep7209-gpio"; |
| 72 | reg = <0x80000003 0x1 0x80000043 0x1>; |
| 73 | gpio-controller; |
| 74 | #gpio-cells = <2>; |
| 75 | }; |
| 76 | |
| 77 | porte: gpio@80000083 { |
| 78 | compatible = "cirrus,ep7209-gpio"; |
| 79 | reg = <0x80000083 0x1 0x800000c3 0x1>; |
| 80 | gpio-controller; |
| 81 | #gpio-cells = <2>; |
| 82 | }; |
| 83 | |
| 84 | syscon1: syscon@80000100 { |
| 85 | compatible = "cirrus,ep7209-syscon1", "syscon"; |
| 86 | reg = <0x80000100 0x80>; |
| 87 | }; |
| 88 | |
| 89 | bus: bus@80000180 { |
| 90 | #address-cells = <2>; |
| 91 | #size-cells = <1>; |
| 92 | compatible = "cirrus,ep7209-bus", "simple-bus"; |
| 93 | clocks = <&clks CLPS711X_CLK_BUS>; |
| 94 | reg = <0x80000180 0x80>; |
| 95 | ranges = < |
| 96 | 0 0 0x00000000 0x10000000 |
| 97 | 1 0 0x10000000 0x10000000 |
| 98 | 2 0 0x20000000 0x10000000 |
| 99 | 3 0 0x30000000 0x10000000 |
| 100 | 4 0 0x40000000 0x10000000 |
| 101 | 5 0 0x50000000 0x10000000 |
| 102 | 6 0 0x60000000 0x0000c000 |
| 103 | 7 0 0x70000000 0x00000080 |
| 104 | >; |
| 105 | }; |
| 106 | |
| 107 | fb: fb@800002c0 { |
| 108 | compatible = "cirrus,ep7209-fb"; |
| 109 | reg = <0x800002c0 0xd44>, <0x60000000 0xc000>; |
| 110 | clocks = <&clks CLPS711X_CLK_BUS>; |
| 111 | status = "disabled"; |
| 112 | }; |
| 113 | |
| 114 | timer1: timer@80000300 { |
| 115 | compatible = "cirrus,ep7209-timer"; |
| 116 | reg = <0x80000300 0x4>; |
| 117 | clocks = <&clks CLPS711X_CLK_TIMER1>; |
| 118 | interrupts = <8>; |
| 119 | }; |
| 120 | |
| 121 | timer2: timer@80000340 { |
| 122 | compatible = "cirrus,ep7209-timer"; |
| 123 | reg = <0x80000340 0x4>; |
| 124 | clocks = <&clks CLPS711X_CLK_TIMER2>; |
| 125 | interrupts = <9>; |
| 126 | }; |
| 127 | |
| 128 | pwm: pwm@80000400 { |
| 129 | compatible = "cirrus,ep7209-pwm"; |
| 130 | reg = <0x80000400 0x4>; |
| 131 | clocks = <&clks CLPS711X_CLK_PWM>; |
| 132 | #pwm-cells = <1>; |
| 133 | }; |
| 134 | |
| 135 | uart1: uart@80000480 { |
| 136 | compatible = "cirrus,ep7209-uart"; |
| 137 | reg = <0x80000480 0x80>; |
| 138 | interrupts = <12 13>; |
| 139 | clocks = <&clks CLPS711X_CLK_UART>; |
| 140 | syscon = <&syscon1>; |
| 141 | }; |
| 142 | |
| 143 | spi: spi@80000500 { |
| 144 | #address-cells = <1>; |
| 145 | #size-cells = <0>; |
| 146 | compatible = "cirrus,ep7209-spi"; |
| 147 | reg = <0x80000500 0x4>; |
| 148 | interrupts = <15>; |
| 149 | clocks = <&clks CLPS711X_CLK_SPI>; |
| 150 | status = "disabled"; |
| 151 | }; |
| 152 | |
| 153 | syscon2: syscon@80001100 { |
| 154 | compatible = "cirrus,ep7209-syscon2", "syscon"; |
| 155 | reg = <0x80001100 0x80>; |
| 156 | }; |
| 157 | |
| 158 | uart2: uart@80001480 { |
| 159 | compatible = "cirrus,ep7209-uart"; |
| 160 | reg = <0x80001480 0x80>; |
| 161 | interrupts = <28 29>; |
| 162 | clocks = <&clks CLPS711X_CLK_UART>; |
| 163 | syscon = <&syscon2>; |
| 164 | }; |
| 165 | |
| 166 | dai: dai@80002000 { |
| 167 | #sound-dai-cells = <0>; |
| 168 | compatible = "cirrus,ep7209-dai"; |
| 169 | reg = <0x80002000 0x604>; |
| 170 | clocks = <&clks CLPS711X_CLK_PLL>; |
| 171 | clock-names = "pll"; |
| 172 | interrupts = <32>; |
| 173 | status = "disabled"; |
| 174 | }; |
| 175 | |
| 176 | syscon3: syscon@80002200 { |
| 177 | compatible = "cirrus,ep7209-syscon3", "syscon"; |
| 178 | reg = <0x80002200 0x40>; |
| 179 | }; |
| 180 | }; |
| 181 | |
| 182 | mctrl: mctrl { |
| 183 | compatible = "cirrus,ep7209-mctrl-gpio"; |
| 184 | gpio-controller; |
| 185 | #gpio-cells = <2>; |
| 186 | }; |
| 187 | }; |