This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: Memory mapping on peripheral interfaces

Part Number: AM3358


Hi,

I have a question about memory mapping on am3358 Starter Kit Board.

Please see the file, build/tmp-glibc/work/ti_am335x-wrs-linux-gnueabi/u-boot/1_2019.07-r0/git/arch/arm/dts/am335x-evmsk.dts.

Could anyone tell me the values 0x820, 0x824, 0x828...etc. are defined by whom? I have studied the datasheet but I did not find any definition like this.

 

&am33xx_pinmux {
    pinctrl-names = "default";
    pinctrl-0 = <&gpio_keys_s0 &clkout2_pin>;

    lcd_pins_default: lcd_pins_default {
    pinctrl-single,pins = <
    AM33XX_IOPAD(0x820, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad8.lcd_data23 */
    AM33XX_IOPAD(0x824, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad9.lcd_data22 */
    AM33XX_IOPAD(0x828, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad10.lcd_data21 */
    AM33XX_IOPAD(0x82c, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad11.lcd_data20 */
    AM33XX_IOPAD(0x830, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad12.lcd_data19 */

  • Hello Woody,

    You are looking at pinmux settings, not memory map settings.

    If you search your AM335x Technical Reference Manual (TRM) for pin gpmc_ad8 (as indicated in the comment), you will see it has an offset of 0x820 in the CONTROL_MODULE registers. gpmc_ad9 has an offset of 0x824, and so on.

    Regards,

    Nick