Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 1 | /dts-v1/; |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 2 | #include "imx28.dtsi" |
Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 3 | |
| 4 | / { |
| 5 | model = "Bluegiga APX4 Development Kit"; |
| 6 | compatible = "bluegiga,apx4devkit", "fsl,imx28"; |
| 7 | |
| 8 | memory { |
| 9 | reg = <0x40000000 0x04000000>; |
| 10 | }; |
| 11 | |
| 12 | apb@80000000 { |
| 13 | apbh@80000000 { |
Lauri Hintsala | 3317d99 | 2012-07-10 10:08:07 +0300 | [diff] [blame] | 14 | gpmi-nand@8000c000 { |
| 15 | pinctrl-names = "default"; |
| 16 | pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg>; |
| 17 | status = "okay"; |
| 18 | }; |
| 19 | |
Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 20 | ssp0: ssp@80010000 { |
| 21 | compatible = "fsl,imx28-mmc"; |
| 22 | pinctrl-names = "default"; |
Lauri Hintsala | 1eb73ca | 2012-07-10 10:08:09 +0300 | [diff] [blame] | 23 | pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_sck_cfg>; |
| 24 | bus-width = <4>; |
Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 25 | status = "okay"; |
| 26 | }; |
| 27 | |
Lauri Hintsala | 557763b | 2012-07-10 10:08:10 +0300 | [diff] [blame] | 28 | ssp2: ssp@80014000 { |
| 29 | compatible = "fsl,imx28-mmc"; |
| 30 | pinctrl-names = "default"; |
| 31 | pinctrl-0 = <&mmc2_4bit_pins_apx4 &mmc2_sck_cfg_apx4>; |
| 32 | bus-width = <4>; |
| 33 | status = "okay"; |
| 34 | }; |
| 35 | |
Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 36 | pinctrl@80018000 { |
| 37 | pinctrl-names = "default"; |
| 38 | pinctrl-0 = <&hog_pins_a>; |
| 39 | |
Fabio Estevam | e0e35b4 | 2012-08-22 13:25:31 -0300 | [diff] [blame] | 40 | hog_pins_a: hog@0 { |
Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 41 | reg = <0>; |
| 42 | fsl,pinmux-ids = < |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 43 | MX28_PAD_GPMI_CE1N__GPIO_0_17 |
| 44 | MX28_PAD_GPMI_RDY1__GPIO_0_21 |
| 45 | MX28_PAD_SSP2_MISO__GPIO_2_18 |
| 46 | MX28_PAD_SSP2_SS0__AUART3_TX /* was: 0x2131 - MX28_PAD_SSP2_SS0__GPIO_2_19 */ |
| 47 | MX28_PAD_PWM3__GPIO_3_28 |
| 48 | MX28_PAD_LCD_RESET__GPIO_3_30 |
| 49 | MX28_PAD_JTAG_RTCK__GPIO_4_20 |
Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 50 | >; |
Lothar Waßmann | 4191c34 | 2013-09-22 14:02:59 +0800 | [diff] [blame] | 51 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
| 52 | fsl,voltage = <MXS_VOLTAGE_HIGH>; |
| 53 | fsl,pull-up = <MXS_PULL_DISABLE>; |
Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 54 | }; |
Lauri Hintsala | d8bb823 | 2012-07-10 10:08:08 +0300 | [diff] [blame] | 55 | |
| 56 | lcdif_pins_apx4: lcdif-apx4@0 { |
| 57 | reg = <0>; |
| 58 | fsl,pinmux-ids = < |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 59 | MX28_PAD_LCD_RD_E__LCD_VSYNC |
| 60 | MX28_PAD_LCD_WR_RWN__LCD_HSYNC |
| 61 | MX28_PAD_LCD_RS__LCD_DOTCLK |
| 62 | MX28_PAD_LCD_CS__LCD_ENABLE |
Lauri Hintsala | d8bb823 | 2012-07-10 10:08:08 +0300 | [diff] [blame] | 63 | >; |
Lothar Waßmann | 4191c34 | 2013-09-22 14:02:59 +0800 | [diff] [blame] | 64 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
| 65 | fsl,voltage = <MXS_VOLTAGE_HIGH>; |
| 66 | fsl,pull-up = <MXS_PULL_DISABLE>; |
Lauri Hintsala | d8bb823 | 2012-07-10 10:08:08 +0300 | [diff] [blame] | 67 | }; |
Lauri Hintsala | 557763b | 2012-07-10 10:08:10 +0300 | [diff] [blame] | 68 | |
| 69 | mmc2_4bit_pins_apx4: mmc2-4bit-apx4@0 { |
| 70 | reg = <0>; |
| 71 | fsl,pinmux-ids = < |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 72 | MX28_PAD_SSP0_DATA4__SSP2_D0 |
| 73 | MX28_PAD_SSP0_DATA5__SSP2_D3 |
| 74 | MX28_PAD_SSP0_DATA6__SSP2_CMD |
| 75 | MX28_PAD_SSP0_DATA7__SSP2_SCK |
| 76 | MX28_PAD_SSP2_SS1__SSP2_D1 |
| 77 | MX28_PAD_SSP2_SS2__SSP2_D2 |
Lauri Hintsala | 557763b | 2012-07-10 10:08:10 +0300 | [diff] [blame] | 78 | >; |
Lothar Waßmann | 4191c34 | 2013-09-22 14:02:59 +0800 | [diff] [blame] | 79 | fsl,drive-strength = <MXS_DRIVE_8mA>; |
| 80 | fsl,voltage = <MXS_VOLTAGE_HIGH>; |
| 81 | fsl,pull-up = <MXS_PULL_ENABLE>; |
Lauri Hintsala | 557763b | 2012-07-10 10:08:10 +0300 | [diff] [blame] | 82 | }; |
| 83 | |
| 84 | mmc2_sck_cfg_apx4: mmc2-sck-cfg-apx4 { |
| 85 | fsl,pinmux-ids = < |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 86 | MX28_PAD_SSP0_DATA7__SSP2_SCK |
Lauri Hintsala | 557763b | 2012-07-10 10:08:10 +0300 | [diff] [blame] | 87 | >; |
Lothar Waßmann | 4191c34 | 2013-09-22 14:02:59 +0800 | [diff] [blame] | 88 | fsl,drive-strength = <MXS_DRIVE_12mA>; |
| 89 | fsl,pull-up = <MXS_PULL_DISABLE>; |
Lauri Hintsala | 557763b | 2012-07-10 10:08:10 +0300 | [diff] [blame] | 90 | }; |
Lauri Hintsala | d8bb823 | 2012-07-10 10:08:08 +0300 | [diff] [blame] | 91 | }; |
| 92 | |
| 93 | lcdif@80030000 { |
| 94 | pinctrl-names = "default"; |
| 95 | pinctrl-0 = <&lcdif_24bit_pins_a |
| 96 | &lcdif_pins_apx4>; |
Fabio Estevam | d46c2dc | 2014-09-04 22:31:18 -0300 | [diff] [blame] | 97 | display = <&display0>; |
Lauri Hintsala | d8bb823 | 2012-07-10 10:08:08 +0300 | [diff] [blame] | 98 | status = "okay"; |
Shawn Guo | 0d9f821 | 2013-03-14 11:37:15 +0800 | [diff] [blame] | 99 | |
Fabio Estevam | d46c2dc | 2014-09-04 22:31:18 -0300 | [diff] [blame] | 100 | display0: display0 { |
Shawn Guo | 0d9f821 | 2013-03-14 11:37:15 +0800 | [diff] [blame] | 101 | bits-per-pixel = <32>; |
| 102 | bus-width = <24>; |
| 103 | |
| 104 | display-timings { |
| 105 | native-mode = <&timing0>; |
| 106 | timing0: timing0 { |
| 107 | clock-frequency = <30000000>; |
| 108 | hactive = <800>; |
| 109 | vactive = <480>; |
| 110 | hback-porch = <88>; |
| 111 | hfront-porch = <40>; |
| 112 | vback-porch = <32>; |
| 113 | vfront-porch = <13>; |
| 114 | hsync-len = <48>; |
| 115 | vsync-len = <3>; |
| 116 | hsync-active = <1>; |
| 117 | vsync-active = <1>; |
| 118 | de-active = <1>; |
| 119 | pixelclk-active = <0>; |
| 120 | }; |
| 121 | }; |
| 122 | }; |
Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 123 | }; |
| 124 | }; |
| 125 | |
| 126 | apbx@80040000 { |
| 127 | saif0: saif@80042000 { |
| 128 | pinctrl-names = "default"; |
| 129 | pinctrl-0 = <&saif0_pins_a>; |
| 130 | status = "okay"; |
| 131 | }; |
| 132 | |
| 133 | saif1: saif@80046000 { |
| 134 | pinctrl-names = "default"; |
| 135 | pinctrl-0 = <&saif1_pins_a>; |
| 136 | fsl,saif-master = <&saif0>; |
| 137 | status = "okay"; |
| 138 | }; |
| 139 | |
| 140 | i2c0: i2c@80058000 { |
| 141 | pinctrl-names = "default"; |
| 142 | pinctrl-0 = <&i2c0_pins_a>; |
| 143 | status = "okay"; |
| 144 | |
| 145 | sgtl5000: codec@0a { |
| 146 | compatible = "fsl,sgtl5000"; |
| 147 | reg = <0x0a>; |
| 148 | VDDA-supply = <®_3p3v>; |
| 149 | VDDIO-supply = <®_3p3v>; |
Shawn Guo | 66acaf3 | 2013-07-01 15:46:05 +0800 | [diff] [blame] | 150 | clocks = <&saif0>; |
Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 151 | }; |
| 152 | |
| 153 | pcf8563: rtc@51 { |
| 154 | compatible = "phg,pcf8563"; |
| 155 | reg = <0x51>; |
| 156 | }; |
| 157 | }; |
| 158 | |
| 159 | duart: serial@80074000 { |
| 160 | pinctrl-names = "default"; |
| 161 | pinctrl-0 = <&duart_pins_a>; |
| 162 | status = "okay"; |
| 163 | }; |
| 164 | |
| 165 | auart0: serial@8006a000 { |
| 166 | pinctrl-names = "default"; |
| 167 | pinctrl-0 = <&auart0_pins_a>; |
| 168 | status = "okay"; |
| 169 | }; |
| 170 | |
| 171 | auart1: serial@8006c000 { |
| 172 | pinctrl-names = "default"; |
| 173 | pinctrl-0 = <&auart1_2pins_a>; |
| 174 | status = "okay"; |
| 175 | }; |
| 176 | |
| 177 | auart2: serial@8006e000 { |
| 178 | pinctrl-names = "default"; |
| 179 | pinctrl-0 = <&auart2_2pins_a>; |
| 180 | status = "okay"; |
| 181 | }; |
Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 182 | }; |
| 183 | }; |
| 184 | |
| 185 | ahb@80080000 { |
| 186 | mac0: ethernet@800f0000 { |
| 187 | phy-mode = "rmii"; |
| 188 | pinctrl-names = "default"; |
| 189 | pinctrl-0 = <&mac0_pins_a>; |
| 190 | status = "okay"; |
| 191 | }; |
| 192 | }; |
| 193 | |
| 194 | regulators { |
| 195 | compatible = "simple-bus"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 196 | #address-cells = <1>; |
| 197 | #size-cells = <0>; |
Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 198 | |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 199 | reg_3p3v: regulator@0 { |
Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 200 | compatible = "regulator-fixed"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 201 | reg = <0>; |
Shawn Guo | 3143bbb | 2012-07-07 23:12:03 +0800 | [diff] [blame] | 202 | regulator-name = "3P3V"; |
| 203 | regulator-min-microvolt = <3300000>; |
| 204 | regulator-max-microvolt = <3300000>; |
| 205 | regulator-always-on; |
| 206 | }; |
| 207 | }; |
| 208 | |
| 209 | sound { |
| 210 | compatible = "bluegiga,apx4devkit-sgtl5000", |
| 211 | "fsl,mxs-audio-sgtl5000"; |
| 212 | model = "apx4devkit-sgtl5000"; |
| 213 | saif-controllers = <&saif0 &saif1>; |
| 214 | audio-codec = <&sgtl5000>; |
| 215 | }; |
| 216 | |
| 217 | leds { |
| 218 | compatible = "gpio-leds"; |
| 219 | |
| 220 | user { |
| 221 | label = "Heartbeat"; |
| 222 | gpios = <&gpio3 28 0>; |
| 223 | linux,default-trigger = "heartbeat"; |
| 224 | }; |
| 225 | }; |
| 226 | }; |