blob: c666afb12445c5df7e9acf15bf10b58661c33ce3 [file] [log] [blame]
Thomas Gleixnerfcaf2032019-05-27 08:55:08 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Michael Heimpolddf0355f2013-11-09 12:14:16 +01002/*
Michael Heimpold768716f2017-02-09 08:42:44 +01003 * Copyright (C) 2013-2014,2016 Michael Heimpold <mhei@heimpold.de>
4 * Copyright (C) 2015-2017 I2SE GmbH <info@i2se.com>
Michael Heimpolddf0355f2013-11-09 12:14:16 +01005 */
6
7/dts-v1/;
Michael Heimpold768716f2017-02-09 08:42:44 +01008#include <dt-bindings/gpio/gpio.h>
Michael Heimpolddf0355f2013-11-09 12:14:16 +01009#include "imx28.dtsi"
10
11/ {
12 model = "I2SE Duckbill";
13 compatible = "i2se,duckbill", "fsl,imx28";
14
Marco Franchiad00e082018-01-24 11:22:14 -020015 memory@40000000 {
Fabio Estevam32018d12018-11-26 10:08:56 -020016 device_type = "memory";
Michael Heimpolddf0355f2013-11-09 12:14:16 +010017 reg = <0x40000000 0x08000000>;
18 };
19
20 apb@80000000 {
21 apbh@80000000 {
Rob Herring5a2ecf02018-09-13 13:12:29 -050022 ssp0: spi@80010000 {
Michael Heimpolddf0355f2013-11-09 12:14:16 +010023 compatible = "fsl,imx28-mmc";
24 pinctrl-names = "default";
Michael Heimpold6a207702014-03-27 23:51:27 +010025 pinctrl-0 = <&mmc0_4bit_pins_a
Michael Heimpolddf0355f2013-11-09 12:14:16 +010026 &mmc0_cd_cfg &mmc0_sck_cfg>;
Michael Heimpold6a207702014-03-27 23:51:27 +010027 bus-width = <4>;
Michael Heimpolddf0355f2013-11-09 12:14:16 +010028 vmmc-supply = <&reg_3p3v>;
29 status = "okay";
30 };
31
Rob Herring5a2ecf02018-09-13 13:12:29 -050032 ssp2: spi@80014000 {
Michael Heimpold768716f2017-02-09 08:42:44 +010033 compatible = "fsl,imx28-spi";
34 pinctrl-names = "default";
35 pinctrl-0 = <&spi2_pins_a>;
36 status = "okay";
37 };
38
Michael Heimpolddf0355f2013-11-09 12:14:16 +010039 pinctrl@80018000 {
40 pinctrl-names = "default";
41 pinctrl-0 = <&hog_pins_a>;
42
43 hog_pins_a: hog@0 {
44 reg = <0>;
45 fsl,pinmux-ids = <
Michael Heimpold768716f2017-02-09 08:42:44 +010046 MX28_PAD_LCD_D17__GPIO_1_17 /* Revision detection */
Michael Heimpolddf0355f2013-11-09 12:14:16 +010047 >;
48 fsl,drive-strength = <MXS_DRIVE_4mA>;
49 fsl,voltage = <MXS_VOLTAGE_HIGH>;
50 fsl,pull-up = <MXS_PULL_DISABLE>;
51 };
52
Michael Heimpold768716f2017-02-09 08:42:44 +010053 mac0_phy_reset_pin: mac0-phy-reset@0 {
54 reg = <0>;
55 fsl,pinmux-ids = <
56 MX28_PAD_SSP0_DATA7__GPIO_2_7 /* PHY Reset */
57 >;
58 fsl,drive-strength = <MXS_DRIVE_4mA>;
59 fsl,voltage = <MXS_VOLTAGE_HIGH>;
60 fsl,pull-up = <MXS_PULL_DISABLE>;
61 };
62
63 led_pins: leds@0 {
Michael Heimpolddf0355f2013-11-09 12:14:16 +010064 reg = <0>;
65 fsl,pinmux-ids = <
66 MX28_PAD_AUART1_RX__GPIO_3_4
67 MX28_PAD_AUART1_TX__GPIO_3_5
68 >;
69 fsl,drive-strength = <MXS_DRIVE_4mA>;
70 fsl,voltage = <MXS_VOLTAGE_HIGH>;
71 fsl,pull-up = <MXS_PULL_DISABLE>;
72 };
73 };
74 };
75
76 apbx@80040000 {
Michael Heimpold768716f2017-02-09 08:42:44 +010077 lradc@80050000 {
78 status = "okay";
79 };
80
81 i2c0: i2c@80058000 {
82 pinctrl-names = "default";
83 pinctrl-0 = <&i2c0_pins_a>;
84 status = "okay";
85 };
86
87 auart0: serial@8006a000 {
88 pinctrl-names = "default";
89 pinctrl-0 = <&auart0_2pins_a>;
90 status = "okay";
91 };
92
Michael Heimpolddf0355f2013-11-09 12:14:16 +010093 duart: serial@80074000 {
94 pinctrl-names = "default";
95 pinctrl-0 = <&duart_pins_a>;
96 status = "okay";
97 };
98
99 usbphy0: usbphy@8007c000 {
100 status = "okay";
101 };
102 };
103 };
104
105 ahb@80080000 {
106 usb0: usb@80080000 {
107 status = "okay";
Michael Heimpold768716f2017-02-09 08:42:44 +0100108 dr_mode = "peripheral";
Michael Heimpolddf0355f2013-11-09 12:14:16 +0100109 };
110
111 mac0: ethernet@800f0000 {
112 phy-mode = "rmii";
113 pinctrl-names = "default";
Michael Heimpold768716f2017-02-09 08:42:44 +0100114 pinctrl-0 = <&mac0_pins_a>, <&mac0_phy_reset_pin>;
Michael Heimpolddf0355f2013-11-09 12:14:16 +0100115 phy-supply = <&reg_3p3v>;
Michael Heimpold99d1d682014-03-27 23:51:28 +0100116 phy-reset-gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
Michael Heimpold768716f2017-02-09 08:42:44 +0100117 phy-reset-duration = <25>;
Michael Heimpolddf0355f2013-11-09 12:14:16 +0100118 status = "okay";
119 };
120 };
121
Michael Heimpold768716f2017-02-09 08:42:44 +0100122 reg_3p3v: regulator-3p3v {
123 compatible = "regulator-fixed";
124 regulator-name = "3P3V";
125 regulator-min-microvolt = <3300000>;
126 regulator-max-microvolt = <3300000>;
127 regulator-always-on;
Michael Heimpolddf0355f2013-11-09 12:14:16 +0100128 };
129
130 leds {
131 compatible = "gpio-leds";
132 pinctrl-names = "default";
Michael Heimpold768716f2017-02-09 08:42:44 +0100133 pinctrl-0 = <&led_pins>;
Michael Heimpolddf0355f2013-11-09 12:14:16 +0100134
Michael Heimpold768716f2017-02-09 08:42:44 +0100135 status-red {
Michael Heimpolddf0355f2013-11-09 12:14:16 +0100136 label = "duckbill:red:status";
Michael Heimpold457c17e2014-03-27 23:51:30 +0100137 gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
Michael Heimpold768716f2017-02-09 08:42:44 +0100138 linux,default-trigger = "default-on";
139 };
140
141 status-green {
142 label = "duckbill:green:status";
143 gpios = <&gpio3 5 GPIO_ACTIVE_HIGH>;
144 linux,default-trigger = "heartbeat";
Michael Heimpolddf0355f2013-11-09 12:14:16 +0100145 };
146 };
147};