Home/Support/Support Forum/DEY 1.6 - GPIO assignement by kernel on imx28
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

DEY 1.6 - GPIO assignement by kernel on imx28

0 votes
I try to build an image in dey-1.6.5 for a custom board with the ccardimx28. I've already (un-)commented the used/unused features in the Platform Device Tree (arch/arm/boot/dts/imx28-ccardimx28js.dts)
I can build the images an the interfaces work like configured in the PDT. I can access the free GPIOs over sysfs but now I want an image where my GPIOs are configured at startup so I dont need to export and configure it first over sysfs.

I think this has also to be done over the dts files, but I've got no clue how to set it there for my needs.
For example i tried to set an output for a heartbeat-led and an input for a user button
led_pin_gpio0_19: led_gpio0_19@0 { reg = <0>; fsl,pinmux-ids = < 0x0121 /* MX28_PAD_GPMI_CE2N__CAN1_TX */ >; fsl,drive-strength = <0>; fsl,voltage = <1>; fsl,pull-up = <0>; }; button_pin_gpio0_18: button_gpio0_18@0 { reg = <0>; fsl,pinmux-ids = < 0x0131 /* MX28_PAD_GPMI_CE3N__CAN1_RX */ >; fsl,drive-strength = <0>; fsl,voltage = <1>; fsl,pull-up = <0>; };

But as I expected this isnt really working :-)
asked Jul 4, 2015 in Linux by floko New to the Community (3 points)

Please log in or register to answer this question.

2 Answers

0 votes
looks like you are in the right direction. Does this thread helps?

answered Jul 6, 2015 by LeonidM Veteran of the Digi Community (4,454 points)
0 votes
I found a helpful tutorial for the hole device tree thing. I'm now reading through it for better understanding of the FDT. Maybe this is is useful for someone other who want to dig in deeper in the FDT:

Your link looks promising, I'll give it a try the next days. thy
answered Jul 7, 2015 by floko New to the Community (3 points)