Linux 5.6.13
[linux/fpc-iii.git] / arch / arm / boot / dts / imx28-duckbill-2-spi.dts
blob0e8be5975709b5c995356ed51301fa2875c442eb
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  */
7 /dts-v1/;
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include "imx28.dtsi"
12 / {
13         model = "I2SE Duckbill 2 SPI";
14         compatible = "i2se,duckbill-2-spi", "i2se,duckbill-2", "fsl,imx28";
16         aliases {
17                 ethernet1 = &qca7000;
18         };
20         memory@40000000 {
21                 device_type = "memory";
22                 reg = <0x40000000 0x08000000>;
23         };
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 = <&reg_3p3v>;
34                                 status = "okay";
35                                 non-removable;
36                         };
38                         ssp2: spi@80014000 {
39                                 compatible = "fsl,imx28-spi";
40                                 pinctrl-names = "default";
41                                 pinctrl-0 = <&spi2_pins_a>;
42                                 status = "okay";
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                         };
57                         pinctrl@80018000 {
58                                 pinctrl-names = "default";
59                                 pinctrl-0 = <&hog_pins_a>;
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                                 };
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                                 };
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                                 };
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                                 };
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                 };
119                 apbx@80040000 {
120                         lradc@80050000 {
121                                 status = "okay";
122                         };
124                         duart: serial@80074000 {
125                                 pinctrl-names = "default";
126                                 pinctrl-0 = <&duart_pins_a>;
127                                 status = "okay";
128                         };
130                         usbphy0: usbphy@8007c000 {
131                                 status = "okay";
132                         };
133                 };
134         };
136         ahb@80080000 {
137                 usb0: usb@80080000 {
138                         status = "okay";
139                         dr_mode = "peripheral";
140                 };
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 = <&reg_3p3v>;
147                         phy-reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
148                         phy-reset-duration = <25>;
149                         phy-handle = <&ethphy>;
150                         status = "okay";
152                         mdio {
153                                 #address-cells = <1>;
154                                 #size-cells = <0>;
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         };
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         };
177         leds {
178                 compatible = "gpio-leds";
179                 pinctrl-names = "default";
180                 pinctrl-0 = <&led_pins>;
182                 status-red {
183                         label = "duckbill:red:status";
184                         gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
185                         linux,default-trigger = "default-on";
186                 };
188                 status-green {
189                         label = "duckbill:green:status";
190                         gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
191                         linux,default-trigger = "heartbeat";
192                 };
193         };