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/input/input.h>
16 #include <dt-bindings/gpio/gpio.h>
20 model = "I2SE Duckbill 2 EnOcean";
21 compatible = "i2se,duckbill-2-enocean", "i2se,duckbill-2", "fsl,imx28";
24 reg = <0x40000000 0x08000000>;
30 compatible = "fsl,imx28-mmc";
31 pinctrl-names = "default";
32 pinctrl-0 = <&mmc0_8bit_pins_a
33 &mmc0_cd_cfg &mmc0_sck_cfg>;
35 vmmc-supply = <®_3p3v>;
41 compatible = "fsl,imx28-mmc";
42 pinctrl-names = "default";
43 pinctrl-0 = <&mmc2_4bit_pins_b
44 &mmc2_cd_cfg &mmc2_sck_cfg_b>;
46 vmmc-supply = <®_3p3v>;
51 pinctrl-names = "default";
52 pinctrl-0 = <&hog_pins_a>;
57 MX28_PAD_LCD_D17__GPIO_1_17 /* Revision detection */
59 fsl,drive-strength = <MXS_DRIVE_4mA>;
60 fsl,voltage = <MXS_VOLTAGE_HIGH>;
61 fsl,pull-up = <MXS_PULL_DISABLE>;
64 mac0_phy_reset_pin: mac0-phy-reset@0 {
67 MX28_PAD_GPMI_ALE__GPIO_0_26 /* PHY Reset */
69 fsl,drive-strength = <MXS_DRIVE_4mA>;
70 fsl,voltage = <MXS_VOLTAGE_HIGH>;
71 fsl,pull-up = <MXS_PULL_DISABLE>;
74 mac0_phy_int_pin: mac0-phy-int@0 {
77 MX28_PAD_GPMI_D07__GPIO_0_7 /* PHY Interrupt */
79 fsl,drive-strength = <MXS_DRIVE_4mA>;
80 fsl,voltage = <MXS_VOLTAGE_HIGH>;
81 fsl,pull-up = <MXS_PULL_DISABLE>;
87 MX28_PAD_SAIF0_MCLK__GPIO_3_20
88 MX28_PAD_SAIF0_LRCLK__GPIO_3_21
89 MX28_PAD_AUART0_CTS__GPIO_3_2
90 MX28_PAD_I2C0_SCL__GPIO_3_24
91 MX28_PAD_I2C0_SDA__GPIO_3_25
93 fsl,drive-strength = <MXS_DRIVE_4mA>;
94 fsl,voltage = <MXS_VOLTAGE_HIGH>;
95 fsl,pull-up = <MXS_PULL_DISABLE>;
98 enocean_button: enocean-button@0 {
101 MX28_PAD_AUART0_RTS__GPIO_3_3
103 fsl,drive-strength = <MXS_DRIVE_4mA>;
104 fsl,voltage = <MXS_VOLTAGE_HIGH>;
105 fsl,pull-up = <MXS_PULL_DISABLE>;
115 auart0: serial@8006a000 {
116 pinctrl-names = "default";
117 pinctrl-0 = <&auart0_2pins_a>;
121 duart: serial@80074000 {
122 pinctrl-names = "default";
123 pinctrl-0 = <&duart_pins_a>;
127 usbphy0: usbphy@8007c000 {
136 dr_mode = "peripheral";
139 mac0: ethernet@800f0000 {
141 pinctrl-names = "default";
142 pinctrl-0 = <&mac0_pins_a>, <&mac0_phy_reset_pin>;
143 phy-supply = <®_3p3v>;
144 phy-reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
145 phy-reset-duration = <25>;
146 phy-handle = <ðphy>;
150 #address-cells = <1>;
153 ethphy: ethernet-phy@0 {
154 compatible = "ethernet-phy-ieee802.3-c22";
156 pinctrl-names = "default";
157 pinctrl-0 = <&mac0_phy_int_pin>;
158 interrupt-parent = <&gpio0>;
159 interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
166 reg_3p3v: regulator-3p3v {
167 compatible = "regulator-fixed";
168 regulator-name = "3P3V";
169 regulator-min-microvolt = <3300000>;
170 regulator-max-microvolt = <3300000>;
175 compatible = "gpio-leds";
176 pinctrl-names = "default";
177 pinctrl-0 = <&led_pins>;
180 label = "duckbill:red:status";
181 gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
182 linux,default-trigger = "default-on";
186 label = "duckbill:green:status";
187 gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
188 linux,default-trigger = "heartbeat";
192 label = "duckbill:blue:enocean";
193 gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
197 label = "duckbill:red:enocean";
198 gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
202 label = "duckbill:green:enocean";
203 gpios = <&gpio3 2 GPIO_ACTIVE_LOW>;
208 compatible = "gpio-keys";
209 #address-cells = <1>;
211 pinctrl-names = "default";
212 pinctrl-0 = <&enocean_button>;
216 linux,code = <KEY_NEW>;
217 gpios = <&gpio3 3 GPIO_ACTIVE_HIGH>;