| Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame^] | 1 | /* | 
|  | 2 | * dts file for MiniZed | 
|  | 3 | * | 
|  | 4 | * Copyright (C) 2018 Clément Laigle <clement.laigle8@gmail.com> | 
|  | 5 | */ | 
|  | 6 |  | 
|  | 7 | /dts-v1/; | 
|  | 8 | /include/ "zynq-7000.dtsi" | 
|  | 9 |  | 
|  | 10 |  | 
|  | 11 | / { | 
|  | 12 | model = "Zynq Minized Board"; | 
|  | 13 | compatible = "xlnx,zynq-Minized", "xlnx,zynq-7000"; | 
|  | 14 |  | 
|  | 15 | chosen { | 
|  | 16 | stdout-path = "serial0:115200n8"; | 
|  | 17 | }; | 
|  | 18 |  | 
|  | 19 | cpus { | 
|  | 20 | cpu@0 { | 
|  | 21 | operating-points = <666666 1000000 333333 1000000>; | 
|  | 22 | }; | 
|  | 23 | }; | 
|  | 24 |  | 
|  | 25 | aliases { | 
|  | 26 | serial0 = &uart1; | 
|  | 27 | serial1 = &bluetooth_uart; | 
|  | 28 | spi0 = &qspi; | 
|  | 29 | mmc0 = &sdhci1; | 
|  | 30 | }; | 
|  | 31 |  | 
|  | 32 | memory { | 
|  | 33 | device_type = "memory"; | 
|  | 34 | reg = <0 0x20000000>; | 
|  | 35 | }; | 
|  | 36 |  | 
|  | 37 | usb_phy0: phy0 { | 
|  | 38 | compatible = "usb-nop-xceiv"; | 
|  | 39 | #phy-cells = <0x0>; | 
|  | 40 | }; | 
|  | 41 |  | 
|  | 42 | leds { | 
|  | 43 | compatible = "gpio-leds"; | 
|  | 44 | led-psg { | 
|  | 45 | label = "led-psg"; | 
|  | 46 | gpios = <&gpio0 53 0>; | 
|  | 47 | default-state = "on"; | 
|  | 48 | linux,default-trigger = "heartbeat"; | 
|  | 49 | }; | 
|  | 50 | led-psr { | 
|  | 51 | label = "led-psr"; | 
|  | 52 | gpios = <&gpio0 52 0>; | 
|  | 53 | default-state = "on"; | 
|  | 54 | linux,default-trigger = "heartbeat"; | 
|  | 55 | }; | 
|  | 56 | }; | 
|  | 57 |  | 
|  | 58 | gpio-keys { | 
|  | 59 | compatible = "gpio-keys"; | 
|  | 60 | #address-cells = <1>; | 
|  | 61 | #size-cells = <0>; | 
|  | 62 | autorepeat; | 
|  | 63 | sw3 { | 
|  | 64 | label = "ps-bp"; | 
|  | 65 | gpios = <&gpio0 0 0>; | 
|  | 66 | linux,code = <108>; /* down */ | 
|  | 67 | gpio-key,wakeup; | 
|  | 68 | autorepeat; | 
|  | 69 | }; | 
|  | 70 | }; | 
|  | 71 |  | 
|  | 72 | amba_pl: amba_pl { | 
|  | 73 | #address-cells = <1>; | 
|  | 74 | #size-cells = <1>; | 
|  | 75 | compatible = "simple-bus"; | 
|  | 76 | ranges ; | 
|  | 77 |  | 
|  | 78 | axi_gpio_0: gpio@41200000 { | 
|  | 79 | #gpio-cells = <2>; | 
|  | 80 | compatible = "xlnx,xps-gpio-1.00.a"; | 
|  | 81 | gpio-controller ; | 
|  | 82 | reg = <0x41200000 0x10000>; | 
|  | 83 | xlnx,all-inputs = <0x0>; | 
|  | 84 | xlnx,all-inputs-2 = <0x0>; | 
|  | 85 | xlnx,all-outputs = <0x1>; | 
|  | 86 | xlnx,all-outputs-2 = <0x1>; | 
|  | 87 | xlnx,dout-default = <0x00000000>; | 
|  | 88 | xlnx,dout-default-2 = <0x00000000>; | 
|  | 89 | xlnx,gpio-width = <0x1>; | 
|  | 90 | xlnx,gpio2-width = <0x1>; | 
|  | 91 | xlnx,interrupt-present = <0x0>; | 
|  | 92 | xlnx,is-dual = <0x1>; | 
|  | 93 | xlnx,tri-default = <0xFFFFFFFF>; | 
|  | 94 | xlnx,tri-default-2 = <0xFFFFFFFF>; | 
|  | 95 | }; | 
|  | 96 | axi_gpio_1: gpio@41210000 { | 
|  | 97 | #gpio-cells = <2>; | 
|  | 98 | compatible = "xlnx,xps-gpio-1.00.a"; | 
|  | 99 | gpio-controller ; | 
|  | 100 | reg = <0x41210000 0x10000>; | 
|  | 101 | xlnx,all-inputs = <0x1>; | 
|  | 102 | xlnx,all-inputs-2 = <0x0>; | 
|  | 103 | xlnx,all-outputs = <0x0>; | 
|  | 104 | xlnx,all-outputs-2 = <0x0>; | 
|  | 105 | xlnx,dout-default = <0x00000000>; | 
|  | 106 | xlnx,dout-default-2 = <0x00000000>; | 
|  | 107 | xlnx,gpio-width = <0x1>; | 
|  | 108 | xlnx,gpio2-width = <0x20>; | 
|  | 109 | xlnx,interrupt-present = <0x0>; | 
|  | 110 | xlnx,is-dual = <0x0>; | 
|  | 111 | xlnx,tri-default = <0xFFFFFFFF>; | 
|  | 112 | xlnx,tri-default-2 = <0xFFFFFFFF>; | 
|  | 113 | }; | 
|  | 114 | axi_iic_0: i2c@41600000 { | 
|  | 115 | #address-cells = <1>; | 
|  | 116 | #size-cells = <0>; | 
|  | 117 | clock-names = "ref_clk"; | 
|  | 118 | clocks = <&clkc 15>; | 
|  | 119 | compatible = "xlnx,xps-iic-2.00.a"; | 
|  | 120 | interrupt-parent = <&intc>; | 
|  | 121 | interrupts = <0 30 4>; | 
|  | 122 | reg = <0x41600000 0x10000>; | 
|  | 123 | }; | 
|  | 124 | bluetooth_uart: serial@43c00000 { | 
|  | 125 | clock-frequency = <0x2dc6c00>; | 
|  | 126 | clock-names = "ref_clk"; | 
|  | 127 | clocks = <&clkc 0>; | 
|  | 128 | compatible = "xlnx,xps-uart16550-2.00.a", "ns16550a"; | 
|  | 129 | current-speed = <115200>; | 
|  | 130 | device_type = "serial"; | 
|  | 131 | interrupt-parent = <&intc>; | 
|  | 132 | interrupts = <0 29 4>; | 
|  | 133 | port-number = <1>; | 
|  | 134 | reg = <0x43c00000 0x10000>; | 
|  | 135 | reg-offset = <0x1000>; | 
|  | 136 | reg-shift = <2>; | 
|  | 137 | xlnx,external-xin-clk-hz = <0x2dc6c00>; | 
|  | 138 | xlnx,external-xin-clk-hz-d = <0x30>; | 
|  | 139 | xlnx,has-external-rclk = <0x0>; | 
|  | 140 | xlnx,has-external-xin = <0x1>; | 
|  | 141 | xlnx,is-a-16550 = <0x1>; | 
|  | 142 | xlnx,s-axi-aclk-freq-hz-d = "100.0"; | 
|  | 143 | xlnx,use-modem-ports = <0x1>; | 
|  | 144 | xlnx,use-user-ports = <0x1>; | 
|  | 145 | }; | 
|  | 146 | }; | 
|  | 147 |  | 
|  | 148 | wlreg_on: wlreg-on { | 
|  | 149 | compatible = "regulator-fixed"; | 
|  | 150 | regulator-name = "wlreg_on"; | 
|  | 151 | enable-active-high; | 
|  | 152 | gpio = <&gpio0 56 0>; | 
|  | 153 | regulator-min-microvolt = <3300000>; | 
|  | 154 | regulator-max-microvolt = <3300000>; | 
|  | 155 | startup-delay-us = <100>; | 
|  | 156 | }; | 
|  | 157 | }; | 
|  | 158 |  | 
|  | 159 | &gpio0 { | 
|  | 160 | emio-gpio-width = <4>; | 
|  | 161 | gpio-mask-high = <0x0>; | 
|  | 162 | gpio-mask-low = <0x5600>; | 
|  | 163 | }; | 
|  | 164 |  | 
|  | 165 | &intc { | 
|  | 166 | num_cpus = <1>; | 
|  | 167 | num_interrupts = <96>; | 
|  | 168 | }; | 
|  | 169 |  | 
|  | 170 | &uart1 { | 
|  | 171 | status = "okay"; | 
|  | 172 | }; | 
|  | 173 |  | 
|  | 174 | &sdhci0 { | 
|  | 175 | status = "okay"; | 
|  | 176 | bus-width= <4>; | 
|  | 177 | xlnx,has-cd = <0x0>; | 
|  | 178 | xlnx,has-power = <0x0>; | 
|  | 179 | xlnx,has-wp = <0x0>; | 
|  | 180 | non-removeable; | 
|  | 181 | broken-cd; | 
|  | 182 | vmmc-supply = <&wlreg_on>; | 
|  | 183 |  | 
|  | 184 | brcmf: brcmf@1 { | 
|  | 185 | status = "okay"; | 
|  | 186 | reg = <1>; | 
|  | 187 | compatible = "brcm,bcm43430-fmac"; | 
|  | 188 | }; | 
|  | 189 | }; | 
|  | 190 |  | 
|  | 191 | &sdhci1 { | 
|  | 192 | status = "okay"; | 
|  | 193 | non-removable; | 
|  | 194 | bus-width = <4>; | 
|  | 195 | max-frequency = <12000000>; | 
|  | 196 |  | 
|  | 197 | #address-cells = <1>; | 
|  | 198 | #size-cells = <0>; | 
|  | 199 | mmccard: mmccard@0 { | 
|  | 200 | compatible = "mmc-card"; | 
|  | 201 | reg = <0>; | 
|  | 202 | broken-hpi; | 
|  | 203 | }; | 
|  | 204 | }; | 
|  | 205 |  | 
|  | 206 | &usb0 { | 
|  | 207 | status = "okay"; | 
|  | 208 | dr_mode = "host"; | 
|  | 209 | usb-reset = <&gpio0 7 0>; | 
|  | 210 | usb-phy = <&usb_phy0>; | 
|  | 211 | }; | 
|  | 212 |  | 
|  | 213 | &uart1 { | 
|  | 214 | u-boot,dm-pre-reloc; | 
|  | 215 | status = "okay"; | 
|  | 216 | }; | 
|  | 217 |  | 
|  | 218 | &qspi { | 
|  | 219 | status = "okay"; | 
|  | 220 | #address-cells = <1>; | 
|  | 221 | #size-cells = <0>; | 
|  | 222 | interrupt-parent = <0x3>; | 
|  | 223 | is-dual = <0x0>; | 
|  | 224 | num-cs = <0x1>; | 
|  | 225 |  | 
|  | 226 |  | 
|  | 227 | flash0: flash@0 { | 
|  | 228 | compatible = "micron,m25p80"; | 
|  | 229 | reg = <0x0>; | 
|  | 230 | #address-cells = <1>; | 
|  | 231 | #size-cells = <1>; | 
|  | 232 | spi-max-frequency = <50000000>; | 
|  | 233 |  | 
|  | 234 | partition@0x00000000 { | 
|  | 235 | label = "boot"; | 
|  | 236 | reg = <0x0 0xff0000>; | 
|  | 237 | }; | 
|  | 238 | partition@0x00270000 { | 
|  | 239 | label = "kernel"; | 
|  | 240 | reg = <0x270000 0xd80000>; | 
|  | 241 | }; | 
|  | 242 | partition@0x00ff0000 { | 
|  | 243 | label = "bootenv"; | 
|  | 244 | reg = <0xff0000 0x10000>; | 
|  | 245 | }; | 
|  | 246 |  | 
|  | 247 | partition@0x01000000 { | 
|  | 248 | label = "spare"; | 
|  | 249 | reg = <0x1000000 0x0>; | 
|  | 250 | }; | 
|  | 251 |  | 
|  | 252 | }; | 
|  | 253 | }; | 
|  | 254 |  |