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