I'm working with Koen's repo (https://github.com/koenkooi/linux.git) and have a question. There are two places, where pin's function is defined:
arch/arm/mach-omap2/mux33xx.c:
static struct omap_mux __initdata am33xx_muxmodes[] = {
/**/ _AM33XX_MUXENTRY(GPMC_AD0, 0,
"gpmc_ad0", "mmc1_dat0", NULL, NULL,
NULL, NULL, NULL, "gpio1_0"),
arch/arm/mach-omap2/board-am335xevm.c:
{"mdio_data.mdio_data", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},
Is it redundant or OMAP_MUX_x is the only one that changes pins function?
Regards,
Yegor
On Mon, Jun 11, 2012 at 17:49:52, Yegor Yefremov wrote:
I'm working with Koen's repo (https://github.com/koenkooi/linux.git) and have a question. There are two places, where pin's function is defined:
arch/arm/mach-omap2/mux33xx.c:
static struct omap_mux __initdata am33xx_muxmodes[] = {
/**/ _AM33XX_MUXENTRY(GPMC_AD0, 0,
"gpmc_ad0", "mmc1_dat0", NULL, NULL,
NULL, NULL, NULL, "gpio1_0"),
This is the big AM33XX pin mux super set table. Here, Entire Mux entries for AM335x SOC
are defined.
This is where the actual board pin-mux is "defined". Later this structure is passed
to setup_pin_mux() which calls omap_mux_init_signal() where the actual pin-mux
registers are written.
Is it redundant or OMAP_MUX_x is the only one that changes pins function?
Regards,
Yegor
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
On Mon, Jun 11, 2012 at 17:49:52, Yegor Yefremov wrote:
quoted
I'm working with Koen's repo (https://github.com/koenkooi/linux.git) and have a question. There are two places, where pin's function is defined:
arch/arm/mach-omap2/mux33xx.c:
static struct omap_mux __initdata am33xx_muxmodes[] = {
/**/ _AM33XX_MUXENTRY(GPMC_AD0, 0,
"gpmc_ad0", "mmc1_dat0", NULL, NULL,
NULL, NULL, NULL, "gpio1_0"),
This is the big AM33XX pin mux super set table. Here, Entire Mux entries for AM335x SOC
are defined.
Please note that we're moving to the generic pinctrl framework,
and using device tree and pinctrl-single driver. So the old style
pinmux data or board-*.c files will not get merged upstream.
Regards,
Tony
On Mon, Jun 11, 2012 at 17:49:52, Yegor Yefremov wrote:
quoted
I'm working with Koen's repo (https://github.com/koenkooi/linux.git) and have a question. There are two places, where pin's function is defined:
arch/arm/mach-omap2/mux33xx.c:
static struct omap_mux __initdata am33xx_muxmodes[] = {
/**/ _AM33XX_MUXENTRY(GPMC_AD0, 0,
"gpmc_ad0", "mmc1_dat0", NULL, NULL,
NULL, NULL, NULL, "gpio1_0"),
This is the big AM33XX pin mux super set table. Here, Entire Mux entries for AM335x SOC
are defined.
This is where the actual board pin-mux is "defined". Later this structure is passed
to setup_pin_mux() which calls omap_mux_init_signal() where the actual pin-mux
registers are written.
I understand this, but I see here two redundant definitions:
{"mii1_txd2.rgmii1_td2", OMAP_MUX_MODE2 | AM33XX_PIN_OUTPUT},
Here both "rgmii1_td2" and "OMAP_MUX_MODE2" are defined. If I misspell "rgmii1_td2"
will the pin have OMAP_MUX_MODE2 or not?
Best regards,
Yegor
On Mon, Jun 11, 2012 at 17:49:52, Yegor Yefremov wrote:
quoted
I'm working with Koen's repo (https://github.com/koenkooi/linux.git) and have a question. There are two places, where pin's function is defined:
arch/arm/mach-omap2/mux33xx.c:
static struct omap_mux __initdata am33xx_muxmodes[] = {
/**/ _AM33XX_MUXENTRY(GPMC_AD0, 0,
"gpmc_ad0", "mmc1_dat0", NULL, NULL,
NULL, NULL, NULL, "gpio1_0"),
This is the big AM33XX pin mux super set table. Here, Entire Mux entries for AM335x SOC
are defined.
Please note that we're moving to the generic pinctrl framework,
and using device tree and pinctrl-single driver. So the old style
pinmux data or board-*.c files will not get merged upstream.
O.K. Where can I see examples?
Best regards,
Yegor
On Mon, Jun 11, 2012 at 17:49:52, Yegor Yefremov wrote:
quoted
I'm working with Koen's repo (https://github.com/koenkooi/linux.git) and have a question. There are two places, where pin's function is defined:
arch/arm/mach-omap2/mux33xx.c:
static struct omap_mux __initdata am33xx_muxmodes[] = {
/**/ _AM33XX_MUXENTRY(GPMC_AD0, 0,
"gpmc_ad0", "mmc1_dat0", NULL, NULL,
NULL, NULL, NULL, "gpio1_0"),
This is the big AM33XX pin mux super set table. Here, Entire Mux entries for AM335x SOC
are defined.
Please note that we're moving to the generic pinctrl framework,
and using device tree and pinctrl-single driver. So the old style
pinmux data or board-*.c files will not get merged upstream.
O.K. Where can I see examples?
I posted the latest version of the driver yesterday, then the
documentation part has an example.
Here's also a little patch to make the old mux framework dump out
new format DT entries using debugfs when you examine debugfs with
cat /sys/kernel/debug/omap_mux/board/core or wkup. You probably need
to also add a call for omap3_mux_init into board-generic.c to also
initialize the old mux fwk if you want them both at the same time
for debugging. From the output you can grep for pins for each device.
Note that omap3 old mux fwk is not setting up separate core + wkup
domains in the old mux framework, so it only shows core.
Regards,
Tony