Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * Copyright 2012 Armadeus Systems - <support@armadeus.com>
0004  */
0005 
0006 /* APF28Dev is a docking board for the APF28 SOM */
0007 #include "imx28-apf28.dts"
0008 
0009 / {
0010         model = "Armadeus Systems APF28Dev docking/development board";
0011         compatible = "armadeus,imx28-apf28dev", "armadeus,imx28-apf28", "fsl,imx28";
0012 
0013         apb@80000000 {
0014                 apbh@80000000 {
0015                         ssp0: spi@80010000 {
0016                                 compatible = "fsl,imx28-mmc";
0017                                 pinctrl-names = "default";
0018                                 pinctrl-0 = <&mmc0_4bit_pins_a
0019                                         &mmc0_cd_cfg &mmc0_sck_cfg>;
0020                                 bus-width = <4>;
0021                                 status = "okay";
0022                         };
0023 
0024                         ssp2: spi@80014000 {
0025                                 compatible = "fsl,imx28-spi";
0026                                 pinctrl-names = "default";
0027                                 pinctrl-0 = <&spi2_pins_a>;
0028                                 status = "okay";
0029                         };
0030 
0031                         pinctrl@80018000 {
0032                                 pinctrl-names = "default";
0033                                 pinctrl-0 = <&hog_pins_apf28dev>;
0034 
0035                                 hog_pins_apf28dev: hog@0 {
0036                                         reg = <0>;
0037                                         fsl,pinmux-ids = <
0038                                                 MX28_PAD_LCD_D16__GPIO_1_16
0039                                                 MX28_PAD_LCD_D17__GPIO_1_17
0040                                                 MX28_PAD_LCD_D18__GPIO_1_18
0041                                                 MX28_PAD_LCD_D19__GPIO_1_19
0042                                                 MX28_PAD_LCD_D20__GPIO_1_20
0043                                                 MX28_PAD_LCD_D21__GPIO_1_21
0044                                                 MX28_PAD_LCD_D22__GPIO_1_22
0045                                                 MX28_PAD_GPMI_CE1N__GPIO_0_17
0046                                         >;
0047                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
0048                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
0049                                         fsl,pull-up = <MXS_PULL_DISABLE>;
0050                                 };
0051 
0052                                 lcdif_pins_apf28dev: lcdif-apf28dev@0 {
0053                                         reg = <0>;
0054                                         fsl,pinmux-ids = <
0055                                                 MX28_PAD_LCD_RD_E__LCD_VSYNC
0056                                                 MX28_PAD_LCD_WR_RWN__LCD_HSYNC
0057                                                 MX28_PAD_LCD_RS__LCD_DOTCLK
0058                                                 MX28_PAD_LCD_CS__LCD_ENABLE
0059                                         >;
0060                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
0061                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
0062                                         fsl,pull-up = <MXS_PULL_DISABLE>;
0063                                 };
0064 
0065                                 usb0_otg_apf28dev: otg-apf28dev@0 {
0066                                         reg = <0>;
0067                                         fsl,pinmux-ids = <
0068                                                 MX28_PAD_LCD_D23__GPIO_1_23
0069                                         >;
0070                                         fsl,drive-strength = <MXS_DRIVE_4mA>;
0071                                         fsl,voltage = <MXS_VOLTAGE_HIGH>;
0072                                         fsl,pull-up = <MXS_PULL_DISABLE>;
0073                                 };
0074                         };
0075 
0076                         lcdif@80030000 {
0077                                 pinctrl-names = "default";
0078                                 pinctrl-0 = <&lcdif_16bit_pins_a
0079                                                 &lcdif_pins_apf28dev>;
0080                                 display = <&display0>;
0081                                 status = "okay";
0082 
0083                                 display0: display0 {
0084                                         bits-per-pixel = <16>;
0085                                         bus-width = <16>;
0086 
0087                                         display-timings {
0088                                                 native-mode = <&timing0>;
0089                                                 timing0: timing0 {
0090                                                         clock-frequency = <33000033>;
0091                                                         hactive = <800>;
0092                                                         vactive = <480>;
0093                                                         hback-porch = <96>;
0094                                                         hfront-porch = <96>;
0095                                                         vback-porch = <20>;
0096                                                         vfront-porch = <21>;
0097                                                         hsync-len = <64>;
0098                                                         vsync-len = <4>;
0099                                                         hsync-active = <1>;
0100                                                         vsync-active = <1>;
0101                                                         de-active = <1>;
0102                                                         pixelclk-active = <0>;
0103                                                 };
0104                                         };
0105                                 };
0106                         };
0107 
0108                         can0: can@80032000 {
0109                                 pinctrl-names = "default";
0110                                 pinctrl-0 = <&can0_pins_a>;
0111                                 xceiver-supply = <&reg_can0_vcc>;
0112                                 status = "okay";
0113                         };
0114                 };
0115 
0116                 apbx@80040000 {
0117                         lradc@80050000 {
0118                                 fsl,lradc-touchscreen-wires = <4>;
0119                                 status = "okay";
0120                         };
0121 
0122                         i2c0: i2c@80058000 {
0123                                 pinctrl-names = "default";
0124                                 pinctrl-0 = <&i2c0_pins_a>;
0125                                 status = "okay";
0126                         };
0127 
0128                         pwm: pwm@80064000 {
0129                                 pinctrl-names = "default";
0130                                 pinctrl-0 = <&pwm3_pins_a &pwm4_pins_a>;
0131                                 status = "okay";
0132                         };
0133 
0134                         auart0: serial@8006a000 {
0135                                 pinctrl-names = "default";
0136                                 pinctrl-0 = <&auart0_pins_a>;
0137                                 uart-has-rtscts;
0138                                 status = "okay";
0139                         };
0140 
0141                         usbphy0: usbphy@8007c000 {
0142                                 status = "okay";
0143                         };
0144 
0145                         usbphy1: usbphy@8007e000 {
0146                                 status = "okay";
0147                         };
0148                 };
0149         };
0150 
0151         ahb@80080000 {
0152                 usb0: usb@80080000 {
0153                         pinctrl-names = "default";
0154                         pinctrl-0 = <&usb0_otg_apf28dev
0155                                         &usb0_id_pins_b>;
0156                         vbus-supply = <&reg_usb0_vbus>;
0157                         status = "okay";
0158                 };
0159 
0160                 usb1: usb@80090000 {
0161                         status = "okay";
0162                 };
0163 
0164                 mac1: ethernet@800f4000 {
0165                         phy-mode = "rmii";
0166                         pinctrl-names = "default";
0167                         pinctrl-0 = <&mac1_pins_a>;
0168                         phy-reset-gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
0169                         status = "okay";
0170                 };
0171         };
0172 
0173         regulators {
0174                 compatible = "simple-bus";
0175                 #address-cells = <1>;
0176                 #size-cells = <0>;
0177 
0178                 reg_usb0_vbus: regulator@0 {
0179                         compatible = "regulator-fixed";
0180                         reg = <0>;
0181                         regulator-name = "usb0_vbus";
0182                         regulator-min-microvolt = <5000000>;
0183                         regulator-max-microvolt = <5000000>;
0184                         gpio = <&gpio1 23 1>;
0185                         enable-active-high;
0186                 };
0187 
0188                 reg_can0_vcc: regulator@1 {
0189                         compatible = "regulator-fixed";
0190                         reg = <1>;
0191                         regulator-name = "can0_vcc";
0192                         regulator-min-microvolt = <5000000>;
0193                         regulator-max-microvolt = <5000000>;
0194                 };
0195         };
0196 
0197         leds {
0198                 compatible = "gpio-leds";
0199 
0200                 user {
0201                         label = "Heartbeat";
0202                         gpios = <&gpio0 21 0>;
0203                         linux,default-trigger = "heartbeat";
0204                 };
0205         };
0206 
0207         backlight {
0208                 compatible = "pwm-backlight";
0209 
0210                 pwms = <&pwm 3 191000>;
0211                 brightness-levels = <0 4 8 16 32 64 128 255>;
0212                 default-brightness-level = <6>;
0213         };
0214 
0215         gpio-keys {
0216                 compatible = "gpio-keys";
0217 
0218                 user-button {
0219                         label = "User button";
0220                         gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
0221                         linux,code = <0x100>;
0222                         wakeup-source;
0223                 };
0224         };
0225 };