|
| 1 | +/* |
| 2 | + * Device tree for ADI sc594-som-ezlite board |
| 3 | + * |
| 4 | + * Copyright 2014 - 2020 Analog Devices Inc. |
| 5 | + * |
| 6 | + * Licensed under the GPL-2 or later. |
| 7 | + * |
| 8 | + */ |
| 9 | + |
| 10 | +/dts-v1/; |
| 11 | + |
| 12 | +#include "sc594-som.dtsi" |
| 13 | + |
| 14 | +/ { |
| 15 | + model = "ADI sc594-som-ezlite"; |
| 16 | + compatible = "adi,sc594-som-ezlite", "adi,sc59x"; |
| 17 | + |
| 18 | + clocks { |
| 19 | + compatible = "simple-bus"; |
| 20 | + mclk: mclk { |
| 21 | + compatible = "fixed-clock"; |
| 22 | + #clock-cells = <0>; |
| 23 | + clock-frequency = <24576000>; |
| 24 | + clock-output-names = "mclk"; |
| 25 | + }; |
| 26 | + }; |
| 27 | + |
| 28 | + scb { |
| 29 | + sound { |
| 30 | + compatible = "adi,sc5xx-asoc-card"; |
| 31 | + adi,cpu-dai = <&i2s0>; |
| 32 | + adi,codec = <&adau1372>; |
| 33 | + }; |
| 34 | + }; |
| 35 | +}; |
| 36 | + |
| 37 | +&i2c2 { |
| 38 | + gpio_expander: adp5588@30 { |
| 39 | + compatible = "adi,adp5588-gpio"; |
| 40 | + gpio-controller; |
| 41 | + #gpio-cells = <2>; |
| 42 | + reg = <0x30>; |
| 43 | + status = "okay"; |
| 44 | + |
| 45 | + usb-spi0 { |
| 46 | + gpio-hog; |
| 47 | + gpios = <8 GPIO_ACTIVE_HIGH>; |
| 48 | + output-high; |
| 49 | + line-name = "usb_spi0_en"; |
| 50 | + }; |
| 51 | + |
| 52 | + usb-spi1 { |
| 53 | + gpio-hog; |
| 54 | + gpios = <9 GPIO_ACTIVE_HIGH>; |
| 55 | + output-high; |
| 56 | + line-name = "usb_spi1_en"; |
| 57 | + }; |
| 58 | + |
| 59 | + usb-qspi-en { |
| 60 | + gpio-hog; |
| 61 | + gpios = <10 GPIO_ACTIVE_HIGH>; |
| 62 | + output-high; |
| 63 | + line-name = "usb_qspi_en"; |
| 64 | + }; |
| 65 | + |
| 66 | + usb-qspi-reset { |
| 67 | + gpio-hog; |
| 68 | + gpios = <11 GPIO_ACTIVE_HIGH>; |
| 69 | + output-low; |
| 70 | + line-name = "usb_qspi_reset"; |
| 71 | + }; |
| 72 | + |
| 73 | + eth0-reset { |
| 74 | + gpio-hog; |
| 75 | + gpios = <12 GPIO_ACTIVE_HIGH>; |
| 76 | + output-high; |
| 77 | + line-name = "~eth0-reset"; |
| 78 | + }; |
| 79 | + |
| 80 | + adau1372-pwrdwn { |
| 81 | + gpio-hog; |
| 82 | + gpios = <13 GPIO_ACTIVE_HIGH>; |
| 83 | + output-high; |
| 84 | + line-name = "adau1372_pwrdwn"; |
| 85 | + }; |
| 86 | + |
| 87 | + led1 { |
| 88 | + gpio-hog; |
| 89 | + gpios = <15 GPIO_ACTIVE_HIGH>; |
| 90 | + output-low; |
| 91 | + line-name = "led1-en"; |
| 92 | + }; |
| 93 | + |
| 94 | + led2 { |
| 95 | + gpio-hog; |
| 96 | + gpios = <16 GPIO_ACTIVE_HIGH>; |
| 97 | + output-low; |
| 98 | + line-name = "led2-en"; |
| 99 | + }; |
| 100 | + |
| 101 | + led3 { |
| 102 | + gpio-hog; |
| 103 | + gpios = <17 GPIO_ACTIVE_HIGH>; |
| 104 | + output-low; |
| 105 | + line-name = "led3-en"; |
| 106 | + }; |
| 107 | + }; |
| 108 | + |
| 109 | + adau1372: adau1372@0x3c { |
| 110 | + compatible = "adi,adau1372"; |
| 111 | + reg = <0x3c>; |
| 112 | + clock-names = "mclk"; |
| 113 | + clocks = <&mclk>; |
| 114 | + }; |
| 115 | + |
| 116 | +}; |
| 117 | + |
| 118 | +&emac0 { |
| 119 | + snps,reset-active-low; |
| 120 | + snps,reset-delays-us = <0 200 500>; |
| 121 | + phy-handle = <&adin1300>; |
| 122 | + phy-mode = "rgmii-id"; |
| 123 | + pinctrl-names = "default"; |
| 124 | + pinctrl-0 = <ð0_default>; |
| 125 | + status = "okay"; |
| 126 | + snps,mtl-rx-config = <&emac0rxconfig>; |
| 127 | + snps,mtl-tx-config = <&emac0txconfig>; |
| 128 | + |
| 129 | + emac0txconfig: tx-config { |
| 130 | + snps,tx-queues-to-use = <3>; |
| 131 | + |
| 132 | + queue0 { |
| 133 | + snps,dcb-algorithm; |
| 134 | + }; |
| 135 | + |
| 136 | + queue1 { |
| 137 | + snps,dcb-algorithm; |
| 138 | + }; |
| 139 | + |
| 140 | + queue2 { |
| 141 | + snps,dcb-algorithm; |
| 142 | + }; |
| 143 | + }; |
| 144 | + |
| 145 | + emac0rxconfig: rx-config { |
| 146 | + snps,rx-queues-to-use = <1>; |
| 147 | + |
| 148 | + queue0 { |
| 149 | + snps,dcb-algorithm; |
| 150 | + }; |
| 151 | + |
| 152 | + queue1 { |
| 153 | + snps,dcb-algorithm; |
| 154 | + }; |
| 155 | + |
| 156 | + queue2 { |
| 157 | + snps,dcb-algorithm; |
| 158 | + }; |
| 159 | + }; |
| 160 | + |
| 161 | + mdio0 { |
| 162 | + compatible = "snps,dwmac-mdio"; |
| 163 | + #address-cells = <1>; |
| 164 | + #size-cells = <0>; |
| 165 | + adin1300: ethernet-phy@0 { |
| 166 | + reg = <0>; |
| 167 | + }; |
| 168 | + }; |
| 169 | +}; |
| 170 | + |
| 171 | +&emac1 { |
| 172 | + status = "disabled"; |
| 173 | +}; |
| 174 | + |
| 175 | +&sru_ctrl_dai0 { |
| 176 | + status = "okay"; |
| 177 | + |
| 178 | + sru_dai0: sru_dai0_mux { |
| 179 | + route { |
| 180 | + sru-routing = |
| 181 | + /* 1362 TX LRCLK */ |
| 182 | + <DAI0_LOW_F DAI0_PBEN01_I>, /* set DAI0_PIN01 to input */ |
| 183 | + <DAI0_PB01_O_ABCDE SPT0_AFS_I>, /* route DAI0_PIN01 to SPT0_AFS */ |
| 184 | + |
| 185 | + /* 1363 TX BCLK */ |
| 186 | + <DAI0_LOW_F DAI0_PBEN02_I>, /* set DAI0_PIN02 to input */ |
| 187 | + <DAI0_PB02_O_ABCDE SPT0_ACLK_I>, /* route DAI0_PIN02 to SPT0_ACLK */ |
| 188 | + |
| 189 | + /* 1363 TX DAC_SDATA/MP0 */ |
| 190 | + <DAI0_HIGH_F DAI0_PBEN03_I>, /* set DAI0_PIN03 to output */ |
| 191 | + <SPT0_AD0_O_BD DAI0_PB03_I>, /* route SPT0_AD0 to DAI0_PIN03 */ |
| 192 | + |
| 193 | + /* 1362 RX LRCLK */ |
| 194 | + <DAI0_LOW_F DAI0_PBEN01_I>, /* set DAI0_PIN01 to input */ |
| 195 | + <DAI0_PB01_O_ABCDE SPT0_BFS_I>, /* route DAI0_PIN01 to SPT0_BFS */ |
| 196 | + |
| 197 | + /* 1363 RX BCLK */ |
| 198 | + <DAI0_LOW_F DAI0_PBEN02_I>, /* set DAI0_PIN02 to input */ |
| 199 | + <DAI0_PB02_O_ABCDE SPT0_BCLK_I>, /* route DAI0_PIN02 to SPT0_BCLK */ |
| 200 | + |
| 201 | + /* 1363 RX ADC_SDATA0/MP1 */ |
| 202 | + <DAI0_LOW_F DAI0_PBEN04_I>, /* set DAI0_PIN04 to input */ |
| 203 | + <DAI0_PB04_O_ABCDE SPT0_BD0_I>, /* route DAI0_PIN04 to SPT0_BD0 */ |
| 204 | + |
| 205 | + /* 1363 RX ADC_SDATA1/MP6 */ |
| 206 | + <DAI0_LOW_F DAI0_PBEN05_I>, /* set DAI0_PIN05 to input */ |
| 207 | + <DAI0_PB05_O_ABCDE SPT0_BD1_I>; /* route DAI0_PIN05 to SPT0_BD1 */ |
| 208 | + }; |
| 209 | + }; |
| 210 | +}; |
| 211 | + |
| 212 | +&i2s0 { |
| 213 | + pinctrl-names = "default"; |
| 214 | + pinctrl-0 = <&sru_dai0>; |
| 215 | + status = "okay"; |
| 216 | +}; |
| 217 | + |
0 commit comments