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 SPI";
0014 compatible = "i2se,duckbill-2-spi", "i2se,duckbill-2", "fsl,imx28";
0015
0016 aliases {
0017 ethernet1 = &qca7000;
0018 };
0019
0020 memory@40000000 {
0021 device_type = "memory";
0022 reg = <0x40000000 0x08000000>;
0023 };
0024
0025 apb@80000000 {
0026 apbh@80000000 {
0027 ssp0: spi@80010000 {
0028 compatible = "fsl,imx28-mmc";
0029 pinctrl-names = "default";
0030 pinctrl-0 = <&mmc0_8bit_pins_a
0031 &mmc0_cd_cfg &mmc0_sck_cfg>;
0032 bus-width = <8>;
0033 vmmc-supply = <®_3p3v>;
0034 status = "okay";
0035 non-removable;
0036 };
0037
0038 ssp2: spi@80014000 {
0039 compatible = "fsl,imx28-spi";
0040 pinctrl-names = "default";
0041 pinctrl-0 = <&spi2_pins_a>;
0042 status = "okay";
0043
0044 qca7000: ethernet@0 {
0045 reg = <0>;
0046 compatible = "qca,qca7000";
0047 pinctrl-names = "default";
0048 pinctrl-0 = <&qca7000_pins>;
0049 interrupt-parent = <&gpio3>;
0050 interrupts = <3 IRQ_TYPE_EDGE_RISING>;
0051 spi-cpha;
0052 spi-cpol;
0053 spi-max-frequency = <8000000>;
0054 };
0055 };
0056
0057 pinctrl@80018000 {
0058 pinctrl-names = "default";
0059 pinctrl-0 = <&hog_pins_a>;
0060
0061 hog_pins_a: hog@0 {
0062 reg = <0>;
0063 fsl,pinmux-ids = <
0064 MX28_PAD_LCD_D17__GPIO_1_17 /* Revision detection */
0065 >;
0066 fsl,drive-strength = <MXS_DRIVE_4mA>;
0067 fsl,voltage = <MXS_VOLTAGE_HIGH>;
0068 fsl,pull-up = <MXS_PULL_DISABLE>;
0069 };
0070
0071 mac0_phy_reset_pin: mac0-phy-reset@0 {
0072 reg = <0>;
0073 fsl,pinmux-ids = <
0074 MX28_PAD_GPMI_ALE__GPIO_0_26 /* PHY Reset */
0075 >;
0076 fsl,drive-strength = <MXS_DRIVE_4mA>;
0077 fsl,voltage = <MXS_VOLTAGE_HIGH>;
0078 fsl,pull-up = <MXS_PULL_DISABLE>;
0079 };
0080
0081 mac0_phy_int_pin: mac0-phy-int@0 {
0082 reg = <0>;
0083 fsl,pinmux-ids = <
0084 MX28_PAD_GPMI_D07__GPIO_0_7 /* PHY Interrupt */
0085 >;
0086 fsl,drive-strength = <MXS_DRIVE_4mA>;
0087 fsl,voltage = <MXS_VOLTAGE_HIGH>;
0088 fsl,pull-up = <MXS_PULL_DISABLE>;
0089 };
0090
0091 led_pins: led@0 {
0092 reg = <0>;
0093 fsl,pinmux-ids = <
0094 MX28_PAD_SAIF0_MCLK__GPIO_3_20
0095 MX28_PAD_SAIF0_LRCLK__GPIO_3_21
0096 >;
0097 fsl,drive-strength = <MXS_DRIVE_4mA>;
0098 fsl,voltage = <MXS_VOLTAGE_HIGH>;
0099 fsl,pull-up = <MXS_PULL_DISABLE>;
0100 };
0101
0102 qca7000_pins: qca7000@0 {
0103 reg = <0>;
0104 fsl,pinmux-ids = <
0105 MX28_PAD_AUART0_RTS__GPIO_3_3 /* Interrupt */
0106 MX28_PAD_LCD_D13__GPIO_1_13 /* QCA7K reset */
0107 MX28_PAD_LCD_D14__GPIO_1_14 /* GPIO 0 */
0108 MX28_PAD_LCD_D15__GPIO_1_15 /* GPIO 1 */
0109 MX28_PAD_LCD_D18__GPIO_1_18 /* GPIO 2 */
0110 MX28_PAD_LCD_D21__GPIO_1_21 /* GPIO 3 */
0111 >;
0112 fsl,drive-strength = <MXS_DRIVE_4mA>;
0113 fsl,voltage = <MXS_VOLTAGE_HIGH>;
0114 fsl,pull-up = <MXS_PULL_DISABLE>;
0115 };
0116 };
0117 };
0118
0119 apbx@80040000 {
0120 lradc@80050000 {
0121 status = "okay";
0122 };
0123
0124 duart: serial@80074000 {
0125 pinctrl-names = "default";
0126 pinctrl-0 = <&duart_pins_a>;
0127 status = "okay";
0128 };
0129
0130 usbphy0: usbphy@8007c000 {
0131 status = "okay";
0132 };
0133 };
0134 };
0135
0136 ahb@80080000 {
0137 usb0: usb@80080000 {
0138 status = "okay";
0139 dr_mode = "peripheral";
0140 };
0141
0142 mac0: ethernet@800f0000 {
0143 phy-mode = "rmii";
0144 pinctrl-names = "default";
0145 pinctrl-0 = <&mac0_pins_a>, <&mac0_phy_reset_pin>;
0146 phy-supply = <®_3p3v>;
0147 phy-reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
0148 phy-reset-duration = <25>;
0149 phy-handle = <ðphy>;
0150 status = "okay";
0151
0152 mdio {
0153 #address-cells = <1>;
0154 #size-cells = <0>;
0155
0156 ethphy: ethernet-phy@0 {
0157 compatible = "ethernet-phy-ieee802.3-c22";
0158 reg = <0>;
0159 pinctrl-names = "default";
0160 pinctrl-0 = <&mac0_phy_int_pin>;
0161 interrupt-parent = <&gpio0>;
0162 interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
0163 max-speed = <100>;
0164 };
0165 };
0166 };
0167 };
0168
0169 reg_3p3v: regulator-3p3v {
0170 compatible = "regulator-fixed";
0171 regulator-name = "3P3V";
0172 regulator-min-microvolt = <3300000>;
0173 regulator-max-microvolt = <3300000>;
0174 regulator-always-on;
0175 };
0176
0177 leds {
0178 compatible = "gpio-leds";
0179 pinctrl-names = "default";
0180 pinctrl-0 = <&led_pins>;
0181
0182 status-red {
0183 label = "duckbill:red:status";
0184 gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
0185 linux,default-trigger = "default-on";
0186 };
0187
0188 status-green {
0189 label = "duckbill:green:status";
0190 gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
0191 linux,default-trigger = "heartbeat";
0192 };
0193 };
0194 };