Hello everyone,
I'm using a linux-fslc kernel for imx28 and I need to change the pin mux for mine board.
I saw that is necessary to change the file imx28-evk.dts but I didnt find many information how to change that.
In my case I just need to change the mux for these pins to output:
LED1 -> GPIO1_13 (LCD_D13);
LED2 -> GPIO1_13 (LCD_D12);
LED3 -> GPIO1_11 (LCD_D11);
LED4 -> GPIO1_10 (LCD_D10);
LED5 -> GPIO1_9 (LCD_D09);
I'm not sure if this is the correct way to change the mux in this kernel version.
Some one know where I can find some informations or how to change this file?
Thanks for all help.
I dont know what happen,
I can export tha gpio 45, change the direction, but I cant change the value.
root@imx28evk:/sys/class/gpio/gpio45# echo out > direction
root@imx28evk:/sys/class/gpio/gpio45# echo 1 > value
root@imx28evk:/sys/class/gpio/gpio45# cat /sys/kernel/debug/gpio
GPIOs 0-31, platform/gpio.0, gpio.0:
GPIOs 32-63, platform/gpio.1, gpio.1:
gpio-45 (sysfs ) out lo
GPIOs 64-95, platform/gpio.2, gpio.2:
gpio-77 (flexcan-switch ) out lo
gpio-79 (fec-3v3 ) out lo
GPIOs 96-127, platform/gpio.3, gpio.3:
gpio-101 (Heartbeat ) out lo
gpio-104 (usb1_vbus ) out hi
gpio-105 (usb0_vbus ) out hi
gpio-124 (vddio-sd0 ) out lo
gpio-126 (lcd-3v3 ) out lo
GPIOs 128-159, platform/gpio.4, gpio.4:
gpio-141 (phy-reset ) out hi
Somo one know why?
First of all, it's important to know which Kernel version you are using.
Beginning with Kernel 3.5 the i.MX28 EVK has Device Tree Support (dts), before it was necessary edit C files in the board support.
I'm use the kernel 3.10.
Thanks for reply!
Hi Raul,
in this case it's easy.
1. Open the following URL https://www.kernel.org/doc/Documentation/devicetree/bindings/pinctrl/fsl,mxs-pinctrl.txt and look for the pinmux ID of the GPIOs.
2. Open the EVK dts file in an editor and use the existing LED on GPIO3_5 as a template and copy the section led_pin_gpio3_5 under pinctrl@80018000. Then change the settings (name, pinmux ID, voltage, drive-strength) to your needs. Keep in mind that the name of the structure should be unique.
3. After that go at the end of the file to the leds section. Copy the user section for every LED you want to use and change the settings to your needs. The name behind the ampersand refers to the settings in the pinctrl section. Here are some information: https://www.kernel.org/doc/Documentation/devicetree/bindings/leds/leds-gpio.txt
I hope this helps.
Stefan
Hi, I did what you said before.
Thise is my files.
imx28-evk.dts:
_____________________________________________________________________________
--- imx28-evk.dts | 2013-10-21 16:55:37.844551256 -0200 |
+++ imx28-evk.dts_orig | 2013-10-18 15:52:13.546483259 -0300 |
@@ -93,16 +93,6 @@
fsl,voltage = <1>; | |||||
fsl,pull-up = <0>; | |||||
}; |
- led_pin_gpio1_13: led_gpio1_13@0 {
- reg = <0>;
- fsl,pinmux-ids = <
- 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */
- >;
- fsl,drive-strength = <0>;
- fsl,voltage = <1>;
- fsl,pull-up = <0>;
- };
-
gpmi_pins_evk: gpmi-nand-evk@0 { | |||||
reg = <0>; |
@@ -342,19 +332,13 @@
leds { | ||
compatible = "gpio-leds"; | ||
pinctrl-names = "default"; | ||
- | pinctrl-0 = <&led_pin_gpio3_5 &led_pin_gpio1_13>; | |
+ | pinctrl-0 = <&led_pin_gpio3_5>; |
- | user1 { | ||
+ | user { | ||
label = "Heartbeat"; | |||
gpios = <&gpio3 5 0>; | |||
linux,default-trigger = "heartbeat"; | |||
}; |
- user2 {
- label = "GPIO1_13";
- gpios = <&gpio1 13 0>;
- linux,default-trigger = "gpio1_13";
- };
-
}; |
backlight { |
_____________________________________________________________________________
Now I can see the configuration in:
root@imx28evk:/sys/class/leds/GPIO1_13# cat /sys/kernel/debug/gpio
GPIOs 0-31, platform/gpio.0, gpio.0:
GPIOs 32-63, platform/gpio.1, gpio.1:
gpio-45 (GPIO1_13 ) out lo
GPIOs 64-95, platform/gpio.2, gpio.2:
gpio-77 (flexcan-switch ) out lo
gpio-79 (fec-3v3 ) out lo
GPIOs 96-127, platform/gpio.3, gpio.3:
gpio-101 (Heartbeat ) out hi
gpio-104 (usb1_vbus ) out hi
gpio-105 (usb0_vbus ) out hi
gpio-124 (vddio-sd0 ) out lo
gpio-126 (lcd-3v3 ) out hi
GPIOs 128-159, platform/gpio.4, gpio.4:
gpio-141 (phy-reset ) out hi
And I can see in "/sys/class/leds/GPIO1_13"
But After Change the brightness value notting change!
Thanks for all help.
Hi Raul,
if found 2 mistakes in your changes:
1. You have taken the wrong pinmux ID. It's a common mistake to use the first pin in the list and not the GPIO pin. Please keep in mind, that every pin can have 4 functions. With the pinmux ID you select this function. There is a simple rule of thumb that every pinmux ID for the i.MX28 ends with a three. In your example 0x10d3 (MX28_PAD_LCD_D13__GPIO_1_13) would be the correct value.
2. The default-trigger is wrong. Try to use default-on as list in the documentation.
Additional note before you change the brightness always make sure the trigger is set correctly.
Hello Stefan,
I did exactly what did you say.
Look, this is my file now:
----------------------------------------------------------------------------------------------------------------------------------------------
--- imx28-evk.dts | 2013-10-22 10:14:12.362942333 -0200 |
+++ imx28-evk.dts_orig | 2013-10-18 15:52:13.546483259 -0300 |
@@ -93,16 +93,6 @@
fsl,voltage = <1>; | |||||
fsl,pull-up = <0>; | |||||
}; |
- led_pin_gpio1_13: led_gpio1_13@0 {
- reg = <0>;
- fsl,pinmux-ids = <
- 0x10d3 /* MX28_PAD_LCD_D13__LCD_D13 */
- >;
- fsl,drive-strength = <0>;
- fsl,voltage = <1>;
- fsl,pull-up = <0>;
- };
-
gpmi_pins_evk: gpmi-nand-evk@0 { | |||||
reg = <0>; |
@@ -342,19 +332,13 @@
leds { | ||
compatible = "gpio-leds"; | ||
pinctrl-names = "default"; | ||
- | pinctrl-0 = <&led_pin_gpio3_5 &led_pin_gpio1_13>; | |
+ | pinctrl-0 = <&led_pin_gpio3_5>; |
- | user1 { | ||
+ | user { | ||
label = "Heartbeat"; | |||
gpios = <&gpio3 5 0>; | |||
linux,default-trigger = "heartbeat"; | |||
}; |
- user2 {
- label = "GPIO1_13";
- gpios = <&gpio1 13 0>;
- linux,default-trigger = "default-on";
- };
-
}; |
backlight { |
----------------------------------------------------------------------------------------------------------------------------------------------
But still without work, I changed all the trigger options and nothing happened.
I want to do something simpler, I want just use "/sys/class/gpio", and than export and set direction and value.
This was very simple in the kernel 2.6, I can't belive how difficult it start to be, just for me.
Just to be clear I dont want to use "/sys/class/led/" I just want to use like a normal gpio in "sys/class/gpio" and with the correct mux.
Thanks for all help, this discussion has been very helpful.
Oh sorry, if missed a important part. You need to remove the LCD stuff. Please remove the complete section lcdif@80030000.
If you don't want to use the LED driver, then restore the section leds as it was before. After that you can use the userspace GPIO
Stefan
Hello Stefan
I did what you told me, however I have successfully change the GPIO states.
Than I try to export the gpio 36 and 37 for example and I just can chance the direction.
Is impossible to change the value!
root@imx28evk:/sys/class/gpio/gpio36# cat value
0
root@imx28evk:/sys/class/gpio/gpio36# echo 1 > value
root@imx28evk:/sys/class/gpio/gpio36# cat value
0
Look My Patch
diff -Naur linux-3.12-poky_orig/arch/arm/boot/dts/imx28-evk.dts linux-3.12-poky/arch/arm/boot/dts/imx28-evk.dts
--- linux-3.12-poky_orig/arch/arm/boot/dts/imx28-evk.dts 2013-11-27 17:48:36.501282822 -0200
+++ linux-3.12-poky/arch/arm/boot/dts/imx28-evk.dts 2013-11-27 18:10:25.893306722 -0200
@@ -93,6 +93,96 @@
fsl,voltage = <1>;
fsl,pull-up = <0>;
};
+ led_pin_gpio1_3: led_gpio1_3@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1033 /* MX28_PAD_LCD_D03__GPIO_1_3 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_4: led_gpio1_4@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1043 /* MX28_PAD_LCD_D04__GPIO_1_4 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_5: led_gpio1_5@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1053 /* MX28_PAD_LCD_D05__GPIO_1_5 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_6: led_gpio1_6@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1063 /* MX28_PAD_LCD_D06__GPIO_1_6 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_7: led_gpio1_7@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1073 /* MX28_PAD_LCD_D07__GPIO_1_7 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_9: led_gpio1_9@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1093 /* MX28_PAD_LCD_D09__GPIO_1_9 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_10: led_gpio1_10@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x10a3 /* MX28_PAD_LCD_D10__GPIO_1_10 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_11: led_gpio1_11@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x10b3 /* MX28_PAD_LCD_D11__GPIO_1_11 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_12: led_gpio1_12@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x10c3 /* MX28_PAD_LCD_D12__GPIO_1_12 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_13: led_gpio1_13@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x10d3 /* MX28_PAD_LCD_D13__GPIO_1_13 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
gpmi_pins_evk: gpmi-nand-evk@0 {
reg = <0>;
@@ -119,52 +209,7 @@
};
};
- lcdif@80030000 {
- pinctrl-names = "default";
- pinctrl-0 = <&lcdif_24bit_pins_a
- &lcdif_pins_evk>;
- lcd-supply = <®_lcd_3v3>;
- display = <&display>;
- status = "okay";
-
- display: display {
- bits-per-pixel = <32>;
- bus-width = <24>;
-
- display-timings {
- native-mode = <&timing0>;
- timing0: timing0 {
- clock-frequency = <33500000>;
- hactive = <800>;
- vactive = <480>;
- hback-porch = <89>;
- hfront-porch = <164>;
- vback-porch = <23>;
- vfront-porch = <10>;
- hsync-len = <10>;
- vsync-len = <10>;
- hsync-active = <0>;
- vsync-active = <0>;
- de-active = <1>;
- pixelclk-active = <0>;
- };
- };
- };
- };
- can0: can@80032000 {
- pinctrl-names = "default";
- pinctrl-0 = <&can0_pins_a>;
- xceiver-supply = <®_can_3v3>;
- status = "okay";
- };
-
- can1: can@80034000 {
- pinctrl-names = "default";
- pinctrl-0 = <&can1_pins_a>;
- xceiver-supply = <®_can_3v3>;
- status = "okay";
- };
};
apbx@80040000 {
@@ -244,6 +289,8 @@
ahb@80080000 {
usb0: usb@80080000 {
vbus-supply = <®_usb0_vbus>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usbphy0_pins_c>;
status = "okay";
};
@@ -323,16 +370,6 @@
gpio = <&gpio3 30 0>;
enable-active-high;
};
-
- reg_can_3v3: can-3v3 {
- compatible = "regulator-fixed";
- regulator-name = "can-3v3";
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- gpio = <&gpio2 13 0>;
- enable-active-high;
- };
-
};
sound {
diff -Naur linux-3.12-poky_orig/arch/arm/boot/dts/imx28.dtsi linux-3.12-poky/arch/arm/boot/dts/imx28.dtsi
--- linux-3.12-poky_orig/arch/arm/boot/dts/imx28.dtsi 2013-11-26 15:46:39.816831765 -0200
+++ linux-3.12-poky/arch/arm/boot/dts/imx28.dtsi 2013-11-27 18:33:18.617331778 -0200
@@ -590,98 +590,6 @@
fsl,pull-up = <0>;
};
- lcdif_24bit_pins_a: lcdif-24bit@0 {
- reg = <0>;
- fsl,pinmux-ids = <
- 0x1000 /* MX28_PAD_LCD_D00__LCD_D0 */
- 0x1010 /* MX28_PAD_LCD_D01__LCD_D1 */
- 0x1020 /* MX28_PAD_LCD_D02__LCD_D2 */
- 0x1030 /* MX28_PAD_LCD_D03__LCD_D3 */
- 0x1040 /* MX28_PAD_LCD_D04__LCD_D4 */
- 0x1050 /* MX28_PAD_LCD_D05__LCD_D5 */
- 0x1060 /* MX28_PAD_LCD_D06__LCD_D6 */
- 0x1070 /* MX28_PAD_LCD_D07__LCD_D7 */
- 0x1080 /* MX28_PAD_LCD_D08__LCD_D8 */
- 0x1090 /* MX28_PAD_LCD_D09__LCD_D9 */
- 0x10a0 /* MX28_PAD_LCD_D10__LCD_D10 */
- 0x10b0 /* MX28_PAD_LCD_D11__LCD_D11 */
- 0x10c0 /* MX28_PAD_LCD_D12__LCD_D12 */
- 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */
- 0x10e0 /* MX28_PAD_LCD_D14__LCD_D14 */
- 0x10f0 /* MX28_PAD_LCD_D15__LCD_D15 */
- 0x1100 /* MX28_PAD_LCD_D16__LCD_D16 */
- 0x1110 /* MX28_PAD_LCD_D17__LCD_D17 */
- 0x1120 /* MX28_PAD_LCD_D18__LCD_D18 */
- 0x1130 /* MX28_PAD_LCD_D19__LCD_D19 */
- 0x1140 /* MX28_PAD_LCD_D20__LCD_D20 */
- 0x1150 /* MX28_PAD_LCD_D21__LCD_D21 */
- 0x1160 /* MX28_PAD_LCD_D22__LCD_D22 */
- 0x1170 /* MX28_PAD_LCD_D23__LCD_D23 */
- >;
- fsl,drive-strength = <0>;
- fsl,voltage = <1>;
- fsl,pull-up = <0>;
- };
-
- lcdif_16bit_pins_a: lcdif-16bit@0 {
- reg = <0>;
- fsl,pinmux-ids = <
- 0x1000 /* MX28_PAD_LCD_D00__LCD_D0 */
- 0x1010 /* MX28_PAD_LCD_D01__LCD_D1 */
- 0x1020 /* MX28_PAD_LCD_D02__LCD_D2 */
- 0x1030 /* MX28_PAD_LCD_D03__LCD_D3 */
- 0x1040 /* MX28_PAD_LCD_D04__LCD_D4 */
- 0x1050 /* MX28_PAD_LCD_D05__LCD_D5 */
- 0x1060 /* MX28_PAD_LCD_D06__LCD_D6 */
- 0x1070 /* MX28_PAD_LCD_D07__LCD_D7 */
- 0x1080 /* MX28_PAD_LCD_D08__LCD_D8 */
- 0x1090 /* MX28_PAD_LCD_D09__LCD_D9 */
- 0x10a0 /* MX28_PAD_LCD_D10__LCD_D10 */
- 0x10b0 /* MX28_PAD_LCD_D11__LCD_D11 */
- 0x10c0 /* MX28_PAD_LCD_D12__LCD_D12 */
- 0x10d0 /* MX28_PAD_LCD_D13__LCD_D13 */
- 0x10e0 /* MX28_PAD_LCD_D14__LCD_D14 */
- 0x10f0 /* MX28_PAD_LCD_D15__LCD_D15 */
- >;
- fsl,drive-strength = <0>;
- fsl,voltage = <1>;
- fsl,pull-up = <0>;
- };
-
- lcdif_sync_pins_a: lcdif-sync@0 {
- reg = <0>;
- fsl,pinmux-ids = <
- 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */
- 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */
- 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */
- 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */
- >;
- fsl,drive-strength = <0>;
- fsl,voltage = <1>;
- fsl,pull-up = <0>;
- };
-
- can0_pins_a: can0@0 {
- reg = <0>;
- fsl,pinmux-ids = <
- 0x0161 /* MX28_PAD_GPMI_RDY2__CAN0_TX */
- 0x0171 /* MX28_PAD_GPMI_RDY3__CAN0_RX */
- >;
- fsl,drive-strength = <0>;
- fsl,voltage = <1>;
- fsl,pull-up = <0>;
- };
-
- can1_pins_a: can1@0 {
- reg = <0>;
- fsl,pinmux-ids = <
- 0x0121 /* MX28_PAD_GPMI_CE2N__CAN1_TX */
- 0x0131 /* MX28_PAD_GPMI_CE3N__CAN1_RX */
- >;
- fsl,drive-strength = <0>;
- fsl,voltage = <1>;
- fsl,pull-up = <0>;
- };
spi2_pins_a: spi2@0 {
reg = <0>;
@@ -731,6 +639,16 @@
fsl,pull-up = <0>;
};
+ usbphy0_pins_c: usbphy0@2 {
+ reg = <2>;
+ fsl,pinmux-ids = <
+ 0x3071 /* MX28_PAD_AUART1_RTS__USB0_ID */
+ >;
+ fsl,drive-strength = <2>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <1>;
+ };
+
usbphy1_pins_a: usbphy1@0 {
reg = <0>;
fsl,pinmux-ids = <
diff -Naur linux-3.12-poky_orig/arch/arm/boot/dts/imx28-evk.dts linux-3.12-poky/arch/arm/boot/dts/imx28-evk.dts
--- linux-3.12-poky_orig/arch/arm/boot/dts/imx28-evk.dts 2013-11-27 17:48:36.501282822 -0200
+++ linux-3.12-poky/arch/arm/boot/dts/imx28-evk.dts 2013-11-27 18:10:25.893306722 -0200
@@ -93,6 +93,96 @@
fsl,voltage = <1>;
fsl,pull-up = <0>;
};
+ led_pin_gpio1_3: led_gpio1_3@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1033 /* MX28_PAD_LCD_D03__GPIO_1_3 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_4: led_gpio1_4@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1043 /* MX28_PAD_LCD_D04__GPIO_1_4 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_5: led_gpio1_5@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1053 /* MX28_PAD_LCD_D05__GPIO_1_5 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_6: led_gpio1_6@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1063 /* MX28_PAD_LCD_D06__GPIO_1_6 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_7: led_gpio1_7@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1073 /* MX28_PAD_LCD_D07__GPIO_1_7 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_9: led_gpio1_9@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1093 /* MX28_PAD_LCD_D09__GPIO_1_9 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_10: led_gpio1_10@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x10a3 /* MX28_PAD_LCD_D10__GPIO_1_10 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_11: led_gpio1_11@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x10b3 /* MX28_PAD_LCD_D11__GPIO_1_11 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_12: led_gpio1_12@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x10c3 /* MX28_PAD_LCD_D12__GPIO_1_12 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ led_pin_gpio1_13: led_gpio1_13@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x10d3 /* MX28_PAD_LCD_D13__GPIO_1_13 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
gpmi_pins_evk: gpmi-nand-evk@0 {
reg = <0>;
@@ -119,52 +209,7 @@
};
};
- lcdif@80030000 {
- pinctrl-names = "default";
- pinctrl-0 = <&lcdif_24bit_pins_a
- &lcdif_pins_evk>;
- lcd-supply = <®_lcd_3v3>;
- display = <&display>;
- status = "okay";
-
- display: display {
- bits-per-pixel = <32>;
- bus-width = <24>;
-
- display-timings {
- native-mode = <&timing0>;
- timing0: timing0 {
- clock-frequency = <33500000>;
- hactive = <800>;
- vactive = <480>;
- hback-porch = <89>;
- hfront-porch = <164>;
- vback-porch = <23>;
- vfront-porch = <10>;
- hsync-len = <10>;
- vsync-len = <10>;
- hsync-active = <0>;
- vsync-active = <0>;
- de-active = <1>;
- pixelclk-active = <0>;
- };
- };
- };
- };
- can0: can@80032000 {
- pinctrl-names = "default";
- pinctrl-0 = <&can0_pins_a>;
- xceiver-supply = <®_can_3v3>;
- status = "okay";
- };
-
- can1: can@80034000 {
- pinctrl-names = "default";
- pinctrl-0 = <&can1_pins_a>;
- xceiver-supply = <®_can_3v3>;
- status = "okay";
- };
};
apbx@80040000 {
@@ -244,6 +289,8 @@
ahb@80080000 {
usb0: usb@80080000 {
vbus-supply = <®_usb0_vbus>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&usbphy0_pins_c>;
status = "okay";
};
@@ -323,16 +370,6 @@
gpio = <&gpio3 30 0>;
enable-active-high;
};
-
- reg_can_3v3: can-3v3 {
- compatible = "regulator-fixed";
- regulator-name = "can-3v3";
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- gpio = <&gpio2 13 0>;
- enable-active-high;
- };
-
};
sound {