I am working on ARM platform ,I am trying to move pin configurations in kernel files to board/SOC specific DTS|DTSI files.. can somebody in light me , how can I achieve this... or any link where ican get some help ?
Asked
Active
Viewed 490 times
0
-
You have to either use existing (see below answer) or create a new one pinctrl driver for your multiplexed pins. – 0andriy Sep 28 '15 at 16:47
1 Answers
4
Just to clarify your answer... You have some board with pin configuration parts in its machine file? And now you want to move to device tree way to work with your board?
If so, then:
- Read doc from kernel tree: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
- Read doc from kernel tree: Documentation/devicetree/bindings/pinctrl/YOU_PLATFORM_OR_SOC
And finally, you can find many examples or even DTS files for your platform in the path: arch/arm/boot/dts/
Small example of pinctrl configuration:
&am33xx_pinmux {
pinctrl-names = "default";
pinctrl-0 = <&misc_pins>;
misc_pins: misc_pins {
pinctrl-single,pins = <
0x15c (PIN_OUTPUT | MUX_MODE7) /* spi0_cs0.gpio0_5 */
>;
};
};
P.S. If you specify your platform I will give you more details.

Anton Glukhov
- 3,507
- 1
- 15
- 16