2 * Copyright (C) 2015-2017 I2SE GmbH <info@i2se.com>
3 * Copyright (C) 2016 Michael Heimpold <mhei@heimpold.de>
5 * The code contained herein is licensed under the GNU General Public
6 * License. You may obtain a copy of the GNU General Public License
7 * Version 2 or later at the following locations:
9 * http://www.opensource.org/licenses/gpl-license.html
10 * http://www.gnu.org/copyleft/gpl.html
14 #include <dt-bindings/interrupt-controller/irq.h>
15 #include <dt-bindings/gpio/gpio.h>
19 model = "I2SE Duckbill 2 SPI";
20 compatible = "i2se,duckbill-2-spi", "i2se,duckbill-2", "fsl,imx28";
27 device_type = "memory";
28 reg = <0x40000000 0x08000000>;
34 compatible = "fsl,imx28-mmc";
35 pinctrl-names = "default";
36 pinctrl-0 = <&mmc0_8bit_pins_a
37 &mmc0_cd_cfg &mmc0_sck_cfg>;
39 vmmc-supply = <®_3p3v>;
45 compatible = "fsl,imx28-spi";
46 pinctrl-names = "default";
47 pinctrl-0 = <&spi2_pins_a>;
52 compatible = "qca,qca7000";
53 pinctrl-names = "default";
54 pinctrl-0 = <&qca7000_pins>;
55 interrupt-parent = <&gpio3>;
56 interrupts = <3 IRQ_TYPE_EDGE_RISING>;
59 spi-max-frequency = <8000000>;
64 pinctrl-names = "default";
65 pinctrl-0 = <&hog_pins_a>;
70 MX28_PAD_LCD_D17__GPIO_1_17 /* Revision detection */
72 fsl,drive-strength = <MXS_DRIVE_4mA>;
73 fsl,voltage = <MXS_VOLTAGE_HIGH>;
74 fsl,pull-up = <MXS_PULL_DISABLE>;
77 mac0_phy_reset_pin: mac0-phy-reset@0 {
80 MX28_PAD_GPMI_ALE__GPIO_0_26 /* PHY Reset */
82 fsl,drive-strength = <MXS_DRIVE_4mA>;
83 fsl,voltage = <MXS_VOLTAGE_HIGH>;
84 fsl,pull-up = <MXS_PULL_DISABLE>;
87 mac0_phy_int_pin: mac0-phy-int@0 {
90 MX28_PAD_GPMI_D07__GPIO_0_7 /* PHY Interrupt */
92 fsl,drive-strength = <MXS_DRIVE_4mA>;
93 fsl,voltage = <MXS_VOLTAGE_HIGH>;
94 fsl,pull-up = <MXS_PULL_DISABLE>;
100 MX28_PAD_SAIF0_MCLK__GPIO_3_20
101 MX28_PAD_SAIF0_LRCLK__GPIO_3_21
103 fsl,drive-strength = <MXS_DRIVE_4mA>;
104 fsl,voltage = <MXS_VOLTAGE_HIGH>;
105 fsl,pull-up = <MXS_PULL_DISABLE>;
108 qca7000_pins: qca7000@0 {
111 MX28_PAD_AUART0_RTS__GPIO_3_3 /* Interrupt */
112 MX28_PAD_LCD_D13__GPIO_1_13 /* QCA7K reset */
113 MX28_PAD_LCD_D14__GPIO_1_14 /* GPIO 0 */
114 MX28_PAD_LCD_D15__GPIO_1_15 /* GPIO 1 */
115 MX28_PAD_LCD_D18__GPIO_1_18 /* GPIO 2 */
116 MX28_PAD_LCD_D21__GPIO_1_21 /* GPIO 3 */
118 fsl,drive-strength = <MXS_DRIVE_4mA>;
119 fsl,voltage = <MXS_VOLTAGE_HIGH>;
120 fsl,pull-up = <MXS_PULL_DISABLE>;
130 duart: serial@80074000 {
131 pinctrl-names = "default";
132 pinctrl-0 = <&duart_pins_a>;
136 usbphy0: usbphy@8007c000 {
145 dr_mode = "peripheral";
148 mac0: ethernet@800f0000 {
150 pinctrl-names = "default";
151 pinctrl-0 = <&mac0_pins_a>, <&mac0_phy_reset_pin>;
152 phy-supply = <®_3p3v>;
153 phy-reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
154 phy-reset-duration = <25>;
155 phy-handle = <ðphy>;
159 #address-cells = <1>;
162 ethphy: ethernet-phy@0 {
163 compatible = "ethernet-phy-ieee802.3-c22";
165 pinctrl-names = "default";
166 pinctrl-0 = <&mac0_phy_int_pin>;
167 interrupt-parent = <&gpio0>;
168 interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
175 reg_3p3v: regulator-3p3v {
176 compatible = "regulator-fixed";
177 regulator-name = "3P3V";
178 regulator-min-microvolt = <3300000>;
179 regulator-max-microvolt = <3300000>;
184 compatible = "gpio-leds";
185 pinctrl-names = "default";
186 pinctrl-0 = <&led_pins>;
189 label = "duckbill:red:status";
190 gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
191 linux,default-trigger = "default-on";
195 label = "duckbill:green:status";
196 gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
197 linux,default-trigger = "heartbeat";