0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003 * Copyright (C) 2015-2017 I2SE GmbH <info@i2se.com>
0004 * Copyright (C) 2016 Michael Heimpold <mhei@heimpold.de>
0005 */
0006
0007 /dts-v1/;
0008 #include <dt-bindings/interrupt-controller/irq.h>
0009 #include <dt-bindings/gpio/gpio.h>
0010 #include "imx28.dtsi"
0011
0012 / {
0013 model = "I2SE Duckbill 2";
0014 compatible = "i2se,duckbill-2", "fsl,imx28";
0015
0016 memory@40000000 {
0017 device_type = "memory";
0018 reg = <0x40000000 0x08000000>;
0019 };
0020
0021 apb@80000000 {
0022 apbh@80000000 {
0023 ssp0: spi@80010000 {
0024 compatible = "fsl,imx28-mmc";
0025 pinctrl-names = "default";
0026 pinctrl-0 = <&mmc0_8bit_pins_a
0027 &mmc0_cd_cfg &mmc0_sck_cfg>;
0028 bus-width = <8>;
0029 vmmc-supply = <®_3p3v>;
0030 status = "okay";
0031 non-removable;
0032 };
0033
0034 ssp2: spi@80014000 {
0035 compatible = "fsl,imx28-mmc";
0036 pinctrl-names = "default";
0037 pinctrl-0 = <&mmc2_4bit_pins_b
0038 &mmc2_cd_cfg &mmc2_sck_cfg_b>;
0039 bus-width = <4>;
0040 vmmc-supply = <®_3p3v>;
0041 status = "okay";
0042 };
0043
0044 pinctrl@80018000 {
0045 pinctrl-names = "default";
0046 pinctrl-0 = <&hog_pins_a>;
0047
0048 hog_pins_a: hog@0 {
0049 reg = <0>;
0050 fsl,pinmux-ids = <
0051 MX28_PAD_LCD_D17__GPIO_1_17 /* Revision detection */
0052 >;
0053 fsl,drive-strength = <MXS_DRIVE_4mA>;
0054 fsl,voltage = <MXS_VOLTAGE_HIGH>;
0055 fsl,pull-up = <MXS_PULL_DISABLE>;
0056 };
0057
0058 mac0_phy_reset_pin: mac0-phy-reset@0 {
0059 reg = <0>;
0060 fsl,pinmux-ids = <
0061 MX28_PAD_GPMI_ALE__GPIO_0_26 /* PHY Reset */
0062 >;
0063 fsl,drive-strength = <MXS_DRIVE_4mA>;
0064 fsl,voltage = <MXS_VOLTAGE_HIGH>;
0065 fsl,pull-up = <MXS_PULL_DISABLE>;
0066 };
0067
0068 mac0_phy_int_pin: mac0-phy-int@0 {
0069 reg = <0>;
0070 fsl,pinmux-ids = <
0071 MX28_PAD_GPMI_D07__GPIO_0_7 /* PHY Interrupt */
0072 >;
0073 fsl,drive-strength = <MXS_DRIVE_4mA>;
0074 fsl,voltage = <MXS_VOLTAGE_HIGH>;
0075 fsl,pull-up = <MXS_PULL_DISABLE>;
0076 };
0077
0078 led_pins: leds@0 {
0079 reg = <0>;
0080 fsl,pinmux-ids = <
0081 MX28_PAD_SAIF0_MCLK__GPIO_3_20
0082 MX28_PAD_SAIF0_LRCLK__GPIO_3_21
0083 >;
0084 fsl,drive-strength = <MXS_DRIVE_4mA>;
0085 fsl,voltage = <MXS_VOLTAGE_HIGH>;
0086 fsl,pull-up = <MXS_PULL_DISABLE>;
0087 };
0088 };
0089 };
0090
0091 apbx@80040000 {
0092 lradc@80050000 {
0093 status = "okay";
0094 };
0095
0096 i2c0: i2c@80058000 {
0097 pinctrl-names = "default";
0098 pinctrl-0 = <&i2c0_pins_a>;
0099 status = "okay";
0100 };
0101
0102 auart0: serial@8006a000 {
0103 pinctrl-names = "default";
0104 pinctrl-0 = <&auart0_2pins_a>;
0105 status = "okay";
0106 };
0107
0108 duart: serial@80074000 {
0109 pinctrl-names = "default";
0110 pinctrl-0 = <&duart_pins_a>;
0111 status = "okay";
0112 };
0113
0114 usbphy0: usbphy@8007c000 {
0115 status = "okay";
0116 };
0117 };
0118 };
0119
0120 ahb@80080000 {
0121 usb0: usb@80080000 {
0122 status = "okay";
0123 dr_mode = "peripheral";
0124 };
0125
0126 mac0: ethernet@800f0000 {
0127 phy-mode = "rmii";
0128 pinctrl-names = "default";
0129 pinctrl-0 = <&mac0_pins_a>, <&mac0_phy_reset_pin>;
0130 phy-supply = <®_3p3v>;
0131 phy-reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
0132 phy-reset-duration = <25>;
0133 phy-handle = <ðphy>;
0134 status = "okay";
0135
0136 mdio {
0137 #address-cells = <1>;
0138 #size-cells = <0>;
0139
0140 ethphy: ethernet-phy@0 {
0141 compatible = "ethernet-phy-ieee802.3-c22";
0142 reg = <0>;
0143 pinctrl-names = "default";
0144 pinctrl-0 = <&mac0_phy_int_pin>;
0145 interrupt-parent = <&gpio0>;
0146 interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
0147 max-speed = <100>;
0148 };
0149 };
0150 };
0151 };
0152
0153 reg_3p3v: regulator-3p3v {
0154 compatible = "regulator-fixed";
0155 regulator-name = "3P3V";
0156 regulator-min-microvolt = <3300000>;
0157 regulator-max-microvolt = <3300000>;
0158 regulator-always-on;
0159 };
0160
0161 leds {
0162 compatible = "gpio-leds";
0163 pinctrl-names = "default";
0164 pinctrl-0 = <&led_pins>;
0165
0166 status-red {
0167 label = "duckbill:red:status";
0168 gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
0169 linux,default-trigger = "default-on";
0170 };
0171
0172 status-green {
0173 label = "duckbill:green:status";
0174 gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
0175 linux,default-trigger = "heartbeat";
0176 };
0177 };
0178 };