Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame^] | 1 | /dts-v1/; |
| 2 | /include/ "skeleton.dtsi" |
| 3 | /include/ "zynq-7000.dtsi" |
| 4 | /include/ "zynq-7000-qspi-dummy.dtsi" |
| 5 | /include/ "pcw.dtsi" |
| 6 | /include/ "pl.dtsi" |
| 7 | |
| 8 | / { |
| 9 | model = "Digilent-Zybo-Linux-BD-v2015.4"; |
| 10 | aliases { |
| 11 | serial0 = &uart1; |
| 12 | ethernet0 = &gem0; |
| 13 | spi0 = &qspi; |
| 14 | }; |
| 15 | chosen { |
| 16 | bootargs = ""; |
| 17 | stdout-path = "serial0:115200n8"; |
| 18 | }; |
| 19 | memory { |
| 20 | device_type = "memory"; |
| 21 | reg = <0x0 0x20000000>; |
| 22 | }; |
| 23 | |
| 24 | gpio-keys { |
| 25 | compatible = "gpio-keys"; |
| 26 | #address-cells = <1>; |
| 27 | #size-cells = <0>; |
| 28 | autorepeat; |
| 29 | btn4 { |
| 30 | label = "btn4"; |
| 31 | gpios = <&gpio0 50 0>; |
| 32 | linux,code = <108>; /* down */ |
| 33 | gpio-key,wakeup; |
| 34 | autorepeat; |
| 35 | }; |
| 36 | btn5 { |
| 37 | label = "btn5"; |
| 38 | gpios = <&gpio0 51 0>; |
| 39 | linux,code = <103>; /* up */ |
| 40 | gpio-key,wakeup; |
| 41 | autorepeat; |
| 42 | }; |
| 43 | }; |
| 44 | |
| 45 | usb_phy0: usb_phy@0 { |
| 46 | compatible = "usb-nop-xceiv"; |
| 47 | #phy-cells = <0>; |
| 48 | reset-gpios = <&gpio0 46 1>; |
| 49 | }; |
| 50 | }; |
| 51 | |
| 52 | &amba { |
| 53 | u-boot,dm-pre-reloc; |
| 54 | }; |
| 55 | |
| 56 | &amba_pl { |
| 57 | encoder_0: digilent_encoder { |
| 58 | compatible = "digilent,drm-encoder"; |
| 59 | dglnt,edid-i2c = <&i2c1>; |
| 60 | }; |
| 61 | |
| 62 | xilinx_drm { |
| 63 | compatible = "xlnx,drm"; |
| 64 | xlnx,vtc = <&v_tc_0>; |
| 65 | xlnx,connector-type = "HDMIA"; |
| 66 | xlnx,encoder-slave = <&encoder_0>; |
| 67 | clocks = <&axi_dynclk_0>; |
| 68 | planes { |
| 69 | xlnx,pixel-format = "xrgb8888"; |
| 70 | plane0 { |
| 71 | dmas = <&axi_vdma_0 0>; |
| 72 | dma-names = "dma0"; |
| 73 | }; |
| 74 | }; |
| 75 | }; |
| 76 | |
| 77 | i2s_clk: i2s_clk { |
| 78 | #clock-cells = <0>; |
| 79 | compatible = "fixed-clock"; |
| 80 | clock-frequency = <12288000>; |
| 81 | clock-output-names = "i2s_clk"; |
| 82 | }; |
| 83 | |
| 84 | sound { |
| 85 | compatible = "simple-audio-card"; |
| 86 | simple-audio-card,name = "ZYBO-Sound-Card"; |
| 87 | simple-audio-card,format = "i2s"; |
| 88 | simple-audio-card,bitclock-master = <&dailink0_master>; |
| 89 | simple-audio-card,frame-master = <&dailink0_master>; |
| 90 | simple-audio-card,widgets = |
| 91 | "Microphone", "Microphone Jack", |
| 92 | "Headphone", "Headphone Jack", |
| 93 | "Line", "Line In Jack"; |
| 94 | simple-audio-card,routing = |
| 95 | "MICIN", "Microphone Jack", |
| 96 | "Headphone Jack", "LHPOUT", |
| 97 | "Headphone Jack", "RHPOUT", |
| 98 | "LLINEIN", "Line In Jack", |
| 99 | "RLINEIN", "Line In Jack"; |
| 100 | dailink0_master: simple-audio-card,cpu { |
| 101 | clocks = <&i2s_clk>; |
| 102 | sound-dai = <&axi_i2s_adi_0>; |
| 103 | }; |
| 104 | simple-audio-card,codec { |
| 105 | clocks = <&i2s_clk>; |
| 106 | sound-dai = <&ssm2603>; |
| 107 | }; |
| 108 | }; |
| 109 | }; |
| 110 | |
| 111 | &axi_dynclk_0 { |
| 112 | compatible = "digilent,axi-dynclk"; |
| 113 | #clock-cells = <0>; |
| 114 | clocks = <&clkc 15>; |
| 115 | }; |
| 116 | |
| 117 | &axi_i2s_adi_0 { |
| 118 | #sound-dai-cells = <0>; |
| 119 | compatible = "adi,axi-i2s-1.00.a"; |
| 120 | clocks = <&clkc 15>, <&i2s_clk>; |
| 121 | clock-names = "axi", "ref"; |
| 122 | dmas = <&dmac_s 0 &dmac_s 1>; |
| 123 | dma-names = "tx", "rx"; |
| 124 | }; |
| 125 | |
| 126 | &gem0 { |
| 127 | phy-handle = <&phy0>; |
| 128 | phy-mode = "rgmii-id"; |
| 129 | local-mac-address = []; |
| 130 | phy0: phy@0 { |
| 131 | device_type = "ethernet-phy"; |
| 132 | reg = <0>; |
| 133 | }; |
| 134 | }; |
| 135 | |
| 136 | &i2c0 { |
| 137 | eeprom@50 { |
| 138 | /* Microchip 24AA02E48 */ |
| 139 | compatible = "microchip,24c02"; |
| 140 | reg = <0x50>; |
| 141 | }; |
| 142 | |
| 143 | ssm2603: ssm2603@1a{ |
| 144 | #sound-dai-cells = <0>; |
| 145 | compatible = "adi,ssm2603"; |
| 146 | reg = <0x1a>; |
| 147 | }; |
| 148 | }; |
| 149 | |
| 150 | &qspi { |
| 151 | #address-cells = <1>; |
| 152 | #size-cells = <0>; |
| 153 | flash0: flash@0 { |
| 154 | compatible = "micron,m25p80", "s25fl128s"; |
| 155 | reg = <0x0>; |
| 156 | #address-cells = <1>; |
| 157 | #size-cells = <1>; |
| 158 | spi-max-frequency = <50000000>; |
| 159 | partition@0x00000000 { |
| 160 | label = "boot"; |
| 161 | reg = <0x00000000 0x00300000>; |
| 162 | }; |
| 163 | partition@0x00300000 { |
| 164 | label = "bootenv"; |
| 165 | reg = <0x00300000 0x00020000>; |
| 166 | }; |
| 167 | partition@0x00320000 { |
| 168 | label = "kernel"; |
| 169 | reg = <0x00320000 0x00a80000>; |
| 170 | }; |
| 171 | partition@0x00da0000 { |
| 172 | label = "spare"; |
| 173 | reg = <0x00da0000 0x00000000>; |
| 174 | }; |
| 175 | }; |
| 176 | }; |
| 177 | |
| 178 | &usb0 { |
| 179 | usb-phy = <&usb_phy0>; |
| 180 | }; |
| 181 | |
| 182 | &v_tc_0 { |
| 183 | compatible = "xlnx,v-tc-5.01.a"; |
| 184 | }; |