Hi, All
I want to control gpio by nmap method.how to know the gpio base address?
I want to know the gpio
GPIO_SPI2_SCLK is 0x0c2F1200 ?
GPIO_SPI2_MOSI is 0x0c2F1240 ?
how to caculate the base addares?
Hi, All
I want to control gpio by nmap method.how to know the gpio base address?
I want to know the gpio
GPIO_SPI2_SCLK is 0x0c2F1200 ?
GPIO_SPI2_MOSI is 0x0c2F1240 ?
how to caculate the base addares?
hello ashingtsai,
you may check TRM for the base-address.
however, you may review MB1 pinmux bct file for the pin address,
please also refer to Topic 220249 for demonstrations. thanks
hi,
what I ask is for the below number definition
the Topic 220249 seems not meet I want.
#define AON_GPIO_BASE (0x0c2F0000 + 0x01000)
// gpio-tegra186.c TEGRA194_AON_GPIO_PORT(CC, 0, 1, 8)
#define GPIO_SPI2_SCLK 0x0c2F1200
// GPIO3_PCC.02 from gpio-tegra186.c and nvidia(tital: Xavier AGX /dev/mem gpio)
#define GPIO_SPI2_MOSI 0x0c2F1240
#define TEGRA_AON_GPIO_PORT_INFO(port, cid, cind, npins)
[TEGRA_AON_GPIO_PORT_##port] = {
.port_name = #port,
.cont_id = cid,
.port_index = cind,
.valid_pins = npins,
.reg_index = 1,
.scr_offset = cind * 0x40,
.reg_offset = cind * 0x200,
}
GPIO_SPI2_SCLK is 0x0c2F1200 ?
GPIO_SPI2_MOSI is 0x0c2F1240 ?
how to caculate?
but in pinmux config file
pinmux.0x0c302048 = 0x00000400; # spi2_sck_pcc0: spi2, tristate-disable, input-disable, io_high_voltage-disable, lpdr-disable
pinmux.0x0c302028 = 0x00000400; # spi2_mosi_pcc2: spi2, tristate-disable, input-disable, io_high_voltage-disable, lpdr-disable
hello ashingtsai,
that’s it.
pinmux.0x0c302048
pinmux.0x0c302028
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.