[PATCH v2 13/21] dts: mtmips: add alternative pinmux node for uart2
Stefan Roese
sr at denx.de
Mon Jan 20 09:38:26 CET 2020
Hi Weijie,
Hi Mauro,
On 19.01.20 03:26, Weijie Gao wrote:
> On Fri, 2020-01-17 at 15:50 +0100, Stefan Roese wrote:
>> Added Mauro to Cc
>>
>> On 17.01.20 08:46, Weijie Gao wrote:
>>> This patch adds a new pinmux for UART2, which shares the pins with SPIS.
>>>
>>> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>
>>> ---
>>> Changes since v1: newly added
>>> ---
>>> arch/mips/dts/mt7628a.dtsi | 5 +++++
>>> 1 file changed, 5 insertions(+)
>>>
>>> diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi
>>> index 744594c45a..f265cb6ad9 100644
>>> --- a/arch/mips/dts/mt7628a.dtsi
>>> +++ b/arch/mips/dts/mt7628a.dtsi
>>> @@ -93,6 +93,11 @@
>>> function = "uart2";
>>> };
>>>
>>> + uart2_pwm_pins: uart2_pwm_pins {
>>> + groups = "spis";
>>> + function = "pwm_uart2";
>>> + };
>>> +
>>
>> Thanks. AFAIK, this will not be used by any of the currently supported
>> boards. Is this correct?
>
> Yes.
>
>>
>> Mauro is currently trying to port mainline U-Boot to the VoCore2 board
>> which also uses UART2. I did not look to close, but might this pin mux
>> option here be necessary for this VoCore2 board?
>
> Yes. I added this because of your discussions about the pinmux.
> I've tested this pinmux and it worked well. I believe it's necessary for
> the VoCore2.
Thanks Weijie for your assistance here.
I can confirm that your latest patchset works like a charm on the LinkIt
7688 board.
Mauro, please find attached a new binary to flash at offset 0x0 in SPI
NOR based on Weijie's latest patchset with this alternate UART pin mux
setting enabled. I've also attached the defconfig for this. Please give
it a try and let us know, if this works now for you.
Thanks,
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-mtmips.bin
Type: application/octet-stream
Size: 213156 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200120/2a72ed4b/attachment.bin>
-------------- next part --------------
CONFIG_MIPS=y
CONFIG_SPL_LIBCOMMON_SUPPORT=y
CONFIG_SPL_LIBGENERIC_SUPPORT=y
CONFIG_ENV_SIZE=0x4000
CONFIG_ENV_SECT_SIZE=0x10000
CONFIG_ENV_OFFSET=0x80000
CONFIG_SPL_SERIAL_SUPPORT=y
CONFIG_SPL_SYS_MALLOC_F_LEN=0x20000
CONFIG_NR_DRAM_BANKS=1
CONFIG_SPL=y
CONFIG_ARCH_MTMIPS=y
CONFIG_BOARD_LINKIT_SMART_7688=y
CONFIG_SPL_UART2_SPIS_PINMUX=y
CONFIG_RESTORE_EXCEPTION_VECTOR_BASE=y
# CONFIG_MIPS_BOOT_ENV_LEGACY is not set
CONFIG_MIPS_BOOT_FDT=y
CONFIG_FIT=y
CONFIG_FIT_SIGNATURE=y
CONFIG_LEGACY_IMAGE_FORMAT=y
CONFIG_OF_STDOUT_VIA_ALIAS=y
CONFIG_SYS_CONSOLE_INFO_QUIET=y
CONFIG_BOARD_EARLY_INIT_F=y
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
CONFIG_HUSH_PARSER=y
CONFIG_CMD_LICENSE=y
# CONFIG_CMD_ELF is not set
# CONFIG_CMD_XIMG is not set
# CONFIG_CMD_CRC32 is not set
CONFIG_CMD_MEMINFO=y
# CONFIG_CMD_FLASH is not set
CONFIG_CMD_GPIO=y
# CONFIG_CMD_LOADS is not set
CONFIG_CMD_MTD=y
CONFIG_CMD_PART=y
CONFIG_CMD_SPI=y
CONFIG_CMD_USB=y
CONFIG_CMD_DHCP=y
CONFIG_CMD_MII=y
CONFIG_CMD_PING=y
CONFIG_CMD_TIME=y
CONFIG_CMD_FS_GENERIC=y
# CONFIG_DOS_PARTITION is not set
CONFIG_DEFAULT_DEVICE_TREE="linkit-smart-7688"
CONFIG_ENV_IS_IN_SPI_FLASH=y
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_SPL_DM=y
# CONFIG_DM_DEVICE_REMOVE is not set
CONFIG_BLK=y
CONFIG_LED=y
CONFIG_LED_BLINK=y
CONFIG_LED_GPIO=y
CONFIG_MTD=y
CONFIG_SPI_FLASH_GIGADEVICE=y
CONFIG_SPI_FLASH_MACRONIX=y
CONFIG_SPI_FLASH_SPANSION=y
CONFIG_SPI_FLASH_STMICRO=y
CONFIG_SPI_FLASH_WINBOND=y
CONFIG_SPI_FLASH_MTD=y
CONFIG_MT7628_ETH=y
CONFIG_PHY=y
CONFIG_MT76X8_USB_PHY=y
CONFIG_SPI=y
CONFIG_MT7621_SPI=y
CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_GENERIC=y
CONFIG_USB_STORAGE=y
CONFIG_FS_EXT4=y
CONFIG_FS_FAT=y
CONFIG_LZMA=y
CONFIG_LZO=y
More information about the U-Boot
mailing list