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