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