Outside AM335X development board expansion GPIO resources on how to use?

AM335X
Mill MYD-AM335X-J development board J11 terminal extended GPIO how to use the corresponding GPIO pin definitions or how much?
Mill Technical Support answer: this only needs one device tree can be. TI reference to the following manner using the configuration tool pinmux. Once you've configured you can use sysfs gpio the control. Specific principles may be combined with the base plate pin definitions, and FIG. 01-Documents \ UserManual \ Chinese \ MYC_J335X PIN List.pdf determined.
{am33xx_pinmux &
pinctrl-names = "default";
pinctrl-0 = <& misc_gpios>;

misc_gpios: pinmux_misc_gpios {
pinctrl-single,pins = <
0x20 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) / (U10) gpmc_ad8.gpio0[22] /
0x24 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) / (T10) gpmc_ad9.gpio0[23] /
0x28 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) / (T11) gpmc_ad10.gpio0[26] /
0x2c ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) / (U12) gpmc_ad11.gpio0[27] /
0x30 ( PIN_INPUT_PULLUP | MUX_MODE7 ) / (T12) gpmc_ad12.gpio1[12] /
0x34 ( PIN_INPUT_PULLUP | MUX_MODE7 ) / (R12) gpmc_ad13.gpio1[13] /
0x38 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) / (V13) gpmc_ad14.gpio1[14] /
0x3c ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) / (U13) gpmc_ad15.gpio1[15] /
0x88 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) / (T13) gpmc_csn3.gpio2[0] /
0x8c ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) / (V12) gpmc_clk.gpio2[1]
/

;
};

&gpio0 {
status = “okay”;
ti,no-reset-on-init;
};

&gpio1 {
status = “okay”;
ti,no-reset-on-init;
};

&gpio2 {
status = “okay”;
ti,no-reset-on-init;
};

After modifying, use the following command to recompile the device tree to
make dtbs

Guess you like

Origin blog.51cto.com/14441798/2443111