xref: /openbmc/linux/arch/arm/boot/dts/nxp/mxs/imx28-duckbill.dts (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (C) 2013-2014,2016 Michael Heimpold <mhei@heimpold.de>
4*724ba675SRob Herring * Copyright (C) 2015-2017 I2SE GmbH <info@i2se.com>
5*724ba675SRob Herring */
6*724ba675SRob Herring
7*724ba675SRob Herring/dts-v1/;
8*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
9*724ba675SRob Herring#include "imx28.dtsi"
10*724ba675SRob Herring
11*724ba675SRob Herring/ {
12*724ba675SRob Herring	model = "I2SE Duckbill";
13*724ba675SRob Herring	compatible = "i2se,duckbill", "fsl,imx28";
14*724ba675SRob Herring
15*724ba675SRob Herring	memory@40000000 {
16*724ba675SRob Herring		device_type = "memory";
17*724ba675SRob Herring		reg = <0x40000000 0x08000000>;
18*724ba675SRob Herring	};
19*724ba675SRob Herring
20*724ba675SRob Herring	reg_3p3v: regulator-3p3v {
21*724ba675SRob Herring		compatible = "regulator-fixed";
22*724ba675SRob Herring		regulator-name = "3P3V";
23*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
24*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
25*724ba675SRob Herring		regulator-always-on;
26*724ba675SRob Herring	};
27*724ba675SRob Herring
28*724ba675SRob Herring	leds {
29*724ba675SRob Herring		compatible = "gpio-leds";
30*724ba675SRob Herring		pinctrl-names = "default";
31*724ba675SRob Herring		pinctrl-0 = <&led_pins>;
32*724ba675SRob Herring
33*724ba675SRob Herring		status-red {
34*724ba675SRob Herring			label = "duckbill:red:status";
35*724ba675SRob Herring			gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
36*724ba675SRob Herring			linux,default-trigger = "default-on";
37*724ba675SRob Herring		};
38*724ba675SRob Herring
39*724ba675SRob Herring		status-green {
40*724ba675SRob Herring			label = "duckbill:green:status";
41*724ba675SRob Herring			gpios = <&gpio3 5 GPIO_ACTIVE_HIGH>;
42*724ba675SRob Herring			linux,default-trigger = "heartbeat";
43*724ba675SRob Herring		};
44*724ba675SRob Herring	};
45*724ba675SRob Herring};
46*724ba675SRob Herring
47*724ba675SRob Herring&auart0 {
48*724ba675SRob Herring	pinctrl-names = "default";
49*724ba675SRob Herring	pinctrl-0 = <&auart0_2pins_a>;
50*724ba675SRob Herring	status = "okay";
51*724ba675SRob Herring};
52*724ba675SRob Herring
53*724ba675SRob Herring&duart {
54*724ba675SRob Herring	pinctrl-names = "default";
55*724ba675SRob Herring	pinctrl-0 = <&duart_pins_a>;
56*724ba675SRob Herring	status = "okay";
57*724ba675SRob Herring};
58*724ba675SRob Herring
59*724ba675SRob Herring&lradc {
60*724ba675SRob Herring	status = "okay";
61*724ba675SRob Herring};
62*724ba675SRob Herring
63*724ba675SRob Herring&i2c0 {
64*724ba675SRob Herring	pinctrl-names = "default";
65*724ba675SRob Herring	pinctrl-0 = <&i2c0_pins_a>;
66*724ba675SRob Herring	status = "okay";
67*724ba675SRob Herring};
68*724ba675SRob Herring
69*724ba675SRob Herring&mac0 {
70*724ba675SRob Herring	phy-mode = "rmii";
71*724ba675SRob Herring	pinctrl-names = "default";
72*724ba675SRob Herring	pinctrl-0 = <&mac0_pins_a>, <&mac0_phy_reset_pin>;
73*724ba675SRob Herring	phy-supply = <&reg_3p3v>;
74*724ba675SRob Herring	phy-reset-gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
75*724ba675SRob Herring	phy-reset-duration = <25>;
76*724ba675SRob Herring	status = "okay";
77*724ba675SRob Herring};
78*724ba675SRob Herring
79*724ba675SRob Herring&pinctrl {
80*724ba675SRob Herring	pinctrl-names = "default";
81*724ba675SRob Herring	pinctrl-0 = <&hog_pins_a>;
82*724ba675SRob Herring
83*724ba675SRob Herring	hog_pins_a: hog@0 {
84*724ba675SRob Herring		reg = <0>;
85*724ba675SRob Herring		fsl,pinmux-ids = <
86*724ba675SRob Herring			MX28_PAD_LCD_D17__GPIO_1_17    /* Revision detection */
87*724ba675SRob Herring		>;
88*724ba675SRob Herring		fsl,drive-strength = <MXS_DRIVE_4mA>;
89*724ba675SRob Herring		fsl,voltage = <MXS_VOLTAGE_HIGH>;
90*724ba675SRob Herring		fsl,pull-up = <MXS_PULL_DISABLE>;
91*724ba675SRob Herring	};
92*724ba675SRob Herring
93*724ba675SRob Herring	mac0_phy_reset_pin: mac0-phy-reset@0 {
94*724ba675SRob Herring		reg = <0>;
95*724ba675SRob Herring		fsl,pinmux-ids = <
96*724ba675SRob Herring			MX28_PAD_SSP0_DATA7__GPIO_2_7    /* PHY Reset */
97*724ba675SRob Herring		>;
98*724ba675SRob Herring		fsl,drive-strength = <MXS_DRIVE_4mA>;
99*724ba675SRob Herring		fsl,voltage = <MXS_VOLTAGE_HIGH>;
100*724ba675SRob Herring		fsl,pull-up = <MXS_PULL_DISABLE>;
101*724ba675SRob Herring	};
102*724ba675SRob Herring
103*724ba675SRob Herring	led_pins: leds@0 {
104*724ba675SRob Herring		reg = <0>;
105*724ba675SRob Herring		fsl,pinmux-ids = <
106*724ba675SRob Herring			MX28_PAD_AUART1_RX__GPIO_3_4
107*724ba675SRob Herring			MX28_PAD_AUART1_TX__GPIO_3_5
108*724ba675SRob Herring		>;
109*724ba675SRob Herring		fsl,drive-strength = <MXS_DRIVE_4mA>;
110*724ba675SRob Herring		fsl,voltage = <MXS_VOLTAGE_HIGH>;
111*724ba675SRob Herring		fsl,pull-up = <MXS_PULL_DISABLE>;
112*724ba675SRob Herring	};
113*724ba675SRob Herring};
114*724ba675SRob Herring
115*724ba675SRob Herring&ssp0 {
116*724ba675SRob Herring	compatible = "fsl,imx28-mmc";
117*724ba675SRob Herring	pinctrl-names = "default";
118*724ba675SRob Herring	pinctrl-0 = <&mmc0_4bit_pins_a
119*724ba675SRob Herring		&mmc0_cd_cfg &mmc0_sck_cfg>;
120*724ba675SRob Herring	bus-width = <4>;
121*724ba675SRob Herring	vmmc-supply = <&reg_3p3v>;
122*724ba675SRob Herring	status = "okay";
123*724ba675SRob Herring};
124*724ba675SRob Herring
125*724ba675SRob Herring&ssp2 {
126*724ba675SRob Herring	compatible = "fsl,imx28-spi";
127*724ba675SRob Herring	pinctrl-names = "default";
128*724ba675SRob Herring	pinctrl-0 = <&spi2_pins_a>;
129*724ba675SRob Herring	status = "okay";
130*724ba675SRob Herring};
131*724ba675SRob Herring
132*724ba675SRob Herring&usb0 {
133*724ba675SRob Herring	dr_mode = "peripheral";
134*724ba675SRob Herring	status = "okay";
135*724ba675SRob Herring};
136*724ba675SRob Herring
137*724ba675SRob Herring&usbphy0 {
138*724ba675SRob Herring	status = "okay";
139*724ba675SRob Herring};
140