1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2015-2017 I2SE GmbH <info@i2se.com>
4 * Copyright (C) 2016 Michael Heimpold <mhei@heimpold.de>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/gpio/gpio.h>
13 model = "I2SE Duckbill 2 SPI";
14 compatible = "i2se,duckbill-2-spi", "i2se,duckbill-2", "fsl,imx28";
21 device_type = "memory";
22 reg = <0x40000000 0x08000000>;
28 compatible = "fsl,imx28-mmc";
29 pinctrl-names = "default";
30 pinctrl-0 = <&mmc0_8bit_pins_a
31 &mmc0_cd_cfg &mmc0_sck_cfg>;
33 vmmc-supply = <®_3p3v>;
39 compatible = "fsl,imx28-spi";
40 pinctrl-names = "default";
41 pinctrl-0 = <&spi2_pins_a>;
46 compatible = "qca,qca7000";
47 pinctrl-names = "default";
48 pinctrl-0 = <&qca7000_pins>;
49 interrupt-parent = <&gpio3>;
50 interrupts = <3 IRQ_TYPE_EDGE_RISING>;
53 spi-max-frequency = <8000000>;
58 pinctrl-names = "default";
59 pinctrl-0 = <&hog_pins_a>;
64 MX28_PAD_LCD_D17__GPIO_1_17 /* Revision detection */
66 fsl,drive-strength = <MXS_DRIVE_4mA>;
67 fsl,voltage = <MXS_VOLTAGE_HIGH>;
68 fsl,pull-up = <MXS_PULL_DISABLE>;
71 mac0_phy_reset_pin: mac0-phy-reset@0 {
74 MX28_PAD_GPMI_ALE__GPIO_0_26 /* PHY Reset */
76 fsl,drive-strength = <MXS_DRIVE_4mA>;
77 fsl,voltage = <MXS_VOLTAGE_HIGH>;
78 fsl,pull-up = <MXS_PULL_DISABLE>;
81 mac0_phy_int_pin: mac0-phy-int@0 {
84 MX28_PAD_GPMI_D07__GPIO_0_7 /* PHY Interrupt */
86 fsl,drive-strength = <MXS_DRIVE_4mA>;
87 fsl,voltage = <MXS_VOLTAGE_HIGH>;
88 fsl,pull-up = <MXS_PULL_DISABLE>;
94 MX28_PAD_SAIF0_MCLK__GPIO_3_20
95 MX28_PAD_SAIF0_LRCLK__GPIO_3_21
97 fsl,drive-strength = <MXS_DRIVE_4mA>;
98 fsl,voltage = <MXS_VOLTAGE_HIGH>;
99 fsl,pull-up = <MXS_PULL_DISABLE>;
102 qca7000_pins: qca7000@0 {
105 MX28_PAD_AUART0_RTS__GPIO_3_3 /* Interrupt */
106 MX28_PAD_LCD_D13__GPIO_1_13 /* QCA7K reset */
107 MX28_PAD_LCD_D14__GPIO_1_14 /* GPIO 0 */
108 MX28_PAD_LCD_D15__GPIO_1_15 /* GPIO 1 */
109 MX28_PAD_LCD_D18__GPIO_1_18 /* GPIO 2 */
110 MX28_PAD_LCD_D21__GPIO_1_21 /* GPIO 3 */
112 fsl,drive-strength = <MXS_DRIVE_4mA>;
113 fsl,voltage = <MXS_VOLTAGE_HIGH>;
114 fsl,pull-up = <MXS_PULL_DISABLE>;
124 duart: serial@80074000 {
125 pinctrl-names = "default";
126 pinctrl-0 = <&duart_pins_a>;
130 usbphy0: usbphy@8007c000 {
139 dr_mode = "peripheral";
142 mac0: ethernet@800f0000 {
144 pinctrl-names = "default";
145 pinctrl-0 = <&mac0_pins_a>, <&mac0_phy_reset_pin>;
146 phy-supply = <®_3p3v>;
147 phy-reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
148 phy-reset-duration = <25>;
149 phy-handle = <ðphy>;
153 #address-cells = <1>;
156 ethphy: ethernet-phy@0 {
157 compatible = "ethernet-phy-ieee802.3-c22";
159 pinctrl-names = "default";
160 pinctrl-0 = <&mac0_phy_int_pin>;
161 interrupt-parent = <&gpio0>;
162 interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
169 reg_3p3v: regulator-3p3v {
170 compatible = "regulator-fixed";
171 regulator-name = "3P3V";
172 regulator-min-microvolt = <3300000>;
173 regulator-max-microvolt = <3300000>;
178 compatible = "gpio-leds";
179 pinctrl-names = "default";
180 pinctrl-0 = <&led_pins>;
183 label = "duckbill:red:status";
184 gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
185 linux,default-trigger = "default-on";
189 label = "duckbill:green:status";
190 gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
191 linux,default-trigger = "heartbeat";