Loading...
1/*
2 * Copyright (C) 2015-2017 I2SE GmbH <info@i2se.com>
3 * Copyright (C) 2016 Michael Heimpold <mhei@heimpold.de>
4 *
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:
8 *
9 * http://www.opensource.org/licenses/gpl-license.html
10 * http://www.gnu.org/copyleft/gpl.html
11 */
12
13/dts-v1/;
14#include <dt-bindings/interrupt-controller/irq.h>
15#include <dt-bindings/gpio/gpio.h>
16#include "imx28.dtsi"
17
18/ {
19 model = "I2SE Duckbill 2 SPI";
20 compatible = "i2se,duckbill-2-spi", "i2se,duckbill-2", "fsl,imx28";
21
22 aliases {
23 ethernet1 = &qca7000;
24 };
25
26 memory@40000000 {
27 reg = <0x40000000 0x08000000>;
28 };
29
30 apb@80000000 {
31 apbh@80000000 {
32 ssp0: ssp@80010000 {
33 compatible = "fsl,imx28-mmc";
34 pinctrl-names = "default";
35 pinctrl-0 = <&mmc0_8bit_pins_a
36 &mmc0_cd_cfg &mmc0_sck_cfg>;
37 bus-width = <8>;
38 vmmc-supply = <®_3p3v>;
39 status = "okay";
40 non-removable;
41 };
42
43 ssp2: ssp@80014000 {
44 compatible = "fsl,imx28-spi";
45 pinctrl-names = "default";
46 pinctrl-0 = <&spi2_pins_a>;
47 status = "okay";
48
49 qca7000: ethernet@0 {
50 reg = <0>;
51 compatible = "qca,qca7000";
52 pinctrl-names = "default";
53 pinctrl-0 = <&qca7000_pins>;
54 interrupt-parent = <&gpio3>;
55 interrupts = <3 IRQ_TYPE_EDGE_RISING>;
56 spi-cpha;
57 spi-cpol;
58 spi-max-frequency = <8000000>;
59 };
60 };
61
62 pinctrl@80018000 {
63 pinctrl-names = "default";
64 pinctrl-0 = <&hog_pins_a>;
65
66 hog_pins_a: hog@0 {
67 reg = <0>;
68 fsl,pinmux-ids = <
69 MX28_PAD_LCD_D17__GPIO_1_17 /* Revision detection */
70 >;
71 fsl,drive-strength = <MXS_DRIVE_4mA>;
72 fsl,voltage = <MXS_VOLTAGE_HIGH>;
73 fsl,pull-up = <MXS_PULL_DISABLE>;
74 };
75
76 mac0_phy_reset_pin: mac0-phy-reset@0 {
77 reg = <0>;
78 fsl,pinmux-ids = <
79 MX28_PAD_GPMI_ALE__GPIO_0_26 /* PHY Reset */
80 >;
81 fsl,drive-strength = <MXS_DRIVE_4mA>;
82 fsl,voltage = <MXS_VOLTAGE_HIGH>;
83 fsl,pull-up = <MXS_PULL_DISABLE>;
84 };
85
86 mac0_phy_int_pin: mac0-phy-int@0 {
87 reg = <0>;
88 fsl,pinmux-ids = <
89 MX28_PAD_GPMI_D07__GPIO_0_7 /* PHY Interrupt */
90 >;
91 fsl,drive-strength = <MXS_DRIVE_4mA>;
92 fsl,voltage = <MXS_VOLTAGE_HIGH>;
93 fsl,pull-up = <MXS_PULL_DISABLE>;
94 };
95
96 led_pins: led@0 {
97 reg = <0>;
98 fsl,pinmux-ids = <
99 MX28_PAD_SAIF0_MCLK__GPIO_3_20
100 MX28_PAD_SAIF0_LRCLK__GPIO_3_21
101 >;
102 fsl,drive-strength = <MXS_DRIVE_4mA>;
103 fsl,voltage = <MXS_VOLTAGE_HIGH>;
104 fsl,pull-up = <MXS_PULL_DISABLE>;
105 };
106
107 qca7000_pins: qca7000@0 {
108 reg = <0>;
109 fsl,pinmux-ids = <
110 MX28_PAD_AUART0_RTS__GPIO_3_3 /* Interrupt */
111 MX28_PAD_LCD_D13__GPIO_1_13 /* QCA7K reset */
112 MX28_PAD_LCD_D14__GPIO_1_14 /* GPIO 0 */
113 MX28_PAD_LCD_D15__GPIO_1_15 /* GPIO 1 */
114 MX28_PAD_LCD_D18__GPIO_1_18 /* GPIO 2 */
115 MX28_PAD_LCD_D21__GPIO_1_21 /* GPIO 3 */
116 >;
117 fsl,drive-strength = <MXS_DRIVE_4mA>;
118 fsl,voltage = <MXS_VOLTAGE_HIGH>;
119 fsl,pull-up = <MXS_PULL_DISABLE>;
120 };
121 };
122 };
123
124 apbx@80040000 {
125 lradc@80050000 {
126 status = "okay";
127 };
128
129 duart: serial@80074000 {
130 pinctrl-names = "default";
131 pinctrl-0 = <&duart_pins_a>;
132 status = "okay";
133 };
134
135 usbphy0: usbphy@8007c000 {
136 status = "okay";
137 };
138 };
139 };
140
141 ahb@80080000 {
142 usb0: usb@80080000 {
143 status = "okay";
144 dr_mode = "peripheral";
145 };
146
147 mac0: ethernet@800f0000 {
148 phy-mode = "rmii";
149 pinctrl-names = "default";
150 pinctrl-0 = <&mac0_pins_a>, <&mac0_phy_reset_pin>;
151 phy-supply = <®_3p3v>;
152 phy-reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
153 phy-reset-duration = <25>;
154 phy-handle = <ðphy>;
155 status = "okay";
156
157 mdio {
158 #address-cells = <1>;
159 #size-cells = <0>;
160
161 ethphy: ethernet-phy@0 {
162 compatible = "ethernet-phy-ieee802.3-c22";
163 reg = <0>;
164 pinctrl-names = "default";
165 pinctrl-0 = <&mac0_phy_int_pin>;
166 interrupt-parent = <&gpio0>;
167 interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
168 max-speed = <100>;
169 };
170 };
171 };
172 };
173
174 reg_3p3v: regulator-3p3v {
175 compatible = "regulator-fixed";
176 regulator-name = "3P3V";
177 regulator-min-microvolt = <3300000>;
178 regulator-max-microvolt = <3300000>;
179 regulator-always-on;
180 };
181
182 leds {
183 compatible = "gpio-leds";
184 pinctrl-names = "default";
185 pinctrl-0 = <&led_pins>;
186
187 status-red {
188 label = "duckbill:red:status";
189 gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
190 linux,default-trigger = "default-on";
191 };
192
193 status-green {
194 label = "duckbill:green:status";
195 gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
196 linux,default-trigger = "heartbeat";
197 };
198 };
199};
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2015-2017 I2SE GmbH <info@i2se.com>
4 * Copyright (C) 2016 Michael Heimpold <mhei@heimpold.de>
5 */
6
7/dts-v1/;
8#include <dt-bindings/interrupt-controller/irq.h>
9#include <dt-bindings/gpio/gpio.h>
10#include "imx28.dtsi"
11
12/ {
13 model = "I2SE Duckbill 2 SPI";
14 compatible = "i2se,duckbill-2-spi", "i2se,duckbill-2", "fsl,imx28";
15
16 aliases {
17 ethernet1 = &qca7000;
18 };
19
20 memory@40000000 {
21 device_type = "memory";
22 reg = <0x40000000 0x08000000>;
23 };
24
25 apb@80000000 {
26 apbh@80000000 {
27 ssp0: spi@80010000 {
28 compatible = "fsl,imx28-mmc";
29 pinctrl-names = "default";
30 pinctrl-0 = <&mmc0_8bit_pins_a
31 &mmc0_cd_cfg &mmc0_sck_cfg>;
32 bus-width = <8>;
33 vmmc-supply = <®_3p3v>;
34 status = "okay";
35 non-removable;
36 };
37
38 ssp2: spi@80014000 {
39 compatible = "fsl,imx28-spi";
40 pinctrl-names = "default";
41 pinctrl-0 = <&spi2_pins_a>;
42 status = "okay";
43
44 qca7000: ethernet@0 {
45 reg = <0>;
46 compatible = "qca,qca7000";
47 pinctrl-names = "default";
48 pinctrl-0 = <&qca7000_pins>;
49 interrupt-parent = <&gpio3>;
50 interrupts = <3 IRQ_TYPE_EDGE_RISING>;
51 spi-cpha;
52 spi-cpol;
53 spi-max-frequency = <8000000>;
54 };
55 };
56
57 pinctrl@80018000 {
58 pinctrl-names = "default";
59 pinctrl-0 = <&hog_pins_a>;
60
61 hog_pins_a: hog@0 {
62 reg = <0>;
63 fsl,pinmux-ids = <
64 MX28_PAD_LCD_D17__GPIO_1_17 /* Revision detection */
65 >;
66 fsl,drive-strength = <MXS_DRIVE_4mA>;
67 fsl,voltage = <MXS_VOLTAGE_HIGH>;
68 fsl,pull-up = <MXS_PULL_DISABLE>;
69 };
70
71 mac0_phy_reset_pin: mac0-phy-reset@0 {
72 reg = <0>;
73 fsl,pinmux-ids = <
74 MX28_PAD_GPMI_ALE__GPIO_0_26 /* PHY Reset */
75 >;
76 fsl,drive-strength = <MXS_DRIVE_4mA>;
77 fsl,voltage = <MXS_VOLTAGE_HIGH>;
78 fsl,pull-up = <MXS_PULL_DISABLE>;
79 };
80
81 mac0_phy_int_pin: mac0-phy-int@0 {
82 reg = <0>;
83 fsl,pinmux-ids = <
84 MX28_PAD_GPMI_D07__GPIO_0_7 /* PHY Interrupt */
85 >;
86 fsl,drive-strength = <MXS_DRIVE_4mA>;
87 fsl,voltage = <MXS_VOLTAGE_HIGH>;
88 fsl,pull-up = <MXS_PULL_DISABLE>;
89 };
90
91 led_pins: led@0 {
92 reg = <0>;
93 fsl,pinmux-ids = <
94 MX28_PAD_SAIF0_MCLK__GPIO_3_20
95 MX28_PAD_SAIF0_LRCLK__GPIO_3_21
96 >;
97 fsl,drive-strength = <MXS_DRIVE_4mA>;
98 fsl,voltage = <MXS_VOLTAGE_HIGH>;
99 fsl,pull-up = <MXS_PULL_DISABLE>;
100 };
101
102 qca7000_pins: qca7000@0 {
103 reg = <0>;
104 fsl,pinmux-ids = <
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 */
111 >;
112 fsl,drive-strength = <MXS_DRIVE_4mA>;
113 fsl,voltage = <MXS_VOLTAGE_HIGH>;
114 fsl,pull-up = <MXS_PULL_DISABLE>;
115 };
116 };
117 };
118
119 apbx@80040000 {
120 lradc@80050000 {
121 status = "okay";
122 };
123
124 duart: serial@80074000 {
125 pinctrl-names = "default";
126 pinctrl-0 = <&duart_pins_a>;
127 status = "okay";
128 };
129
130 usbphy0: usbphy@8007c000 {
131 status = "okay";
132 };
133 };
134 };
135
136 ahb@80080000 {
137 usb0: usb@80080000 {
138 status = "okay";
139 dr_mode = "peripheral";
140 };
141
142 mac0: ethernet@800f0000 {
143 phy-mode = "rmii";
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>;
150 status = "okay";
151
152 mdio {
153 #address-cells = <1>;
154 #size-cells = <0>;
155
156 ethphy: ethernet-phy@0 {
157 compatible = "ethernet-phy-ieee802.3-c22";
158 reg = <0>;
159 pinctrl-names = "default";
160 pinctrl-0 = <&mac0_phy_int_pin>;
161 interrupt-parent = <&gpio0>;
162 interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
163 max-speed = <100>;
164 };
165 };
166 };
167 };
168
169 reg_3p3v: regulator-3p3v {
170 compatible = "regulator-fixed";
171 regulator-name = "3P3V";
172 regulator-min-microvolt = <3300000>;
173 regulator-max-microvolt = <3300000>;
174 regulator-always-on;
175 };
176
177 leds {
178 compatible = "gpio-leds";
179 pinctrl-names = "default";
180 pinctrl-0 = <&led_pins>;
181
182 status-red {
183 label = "duckbill:red:status";
184 gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
185 linux,default-trigger = "default-on";
186 };
187
188 status-green {
189 label = "duckbill:green:status";
190 gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
191 linux,default-trigger = "heartbeat";
192 };
193 };
194};