Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>master
parent
3483f28ebf
commit
664ec31db7
@ -0,0 +1,85 @@ |
||||
/* |
||||
* Copyright (C) 2018 Álvaro Fernández Rojas <noltari@gmail.com> |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
/dts-v1/; |
||||
|
||||
#include "brcm,bcm6318.dtsi" |
||||
|
||||
/ { |
||||
model = "Comtrend AR-5315u"; |
||||
compatible = "comtrend,ar5315-un", "brcm,bcm6318"; |
||||
|
||||
aliases { |
||||
serial0 = &uart0; |
||||
}; |
||||
|
||||
chosen { |
||||
stdout-path = "serial0:115200n8"; |
||||
}; |
||||
}; |
||||
|
||||
&leds { |
||||
status = "okay"; |
||||
|
||||
led@0 { |
||||
reg = <0>; |
||||
active-low; |
||||
label = "AR-5315u:green:wps"; |
||||
}; |
||||
|
||||
led@1 { |
||||
reg = <1>; |
||||
active-low; |
||||
label = "AR-5315u:green:power"; |
||||
}; |
||||
|
||||
led@2 { |
||||
reg = <2>; |
||||
active-low; |
||||
label = "AR-5315u:green:usb"; |
||||
}; |
||||
|
||||
led@8 { |
||||
reg = <8>; |
||||
active-low; |
||||
label = "AR-5315u:green:inet"; |
||||
}; |
||||
|
||||
led@9 { |
||||
reg = <9>; |
||||
active-low; |
||||
label = "AR-5315u:red:inet"; |
||||
}; |
||||
|
||||
led@10 { |
||||
reg = <10>; |
||||
active-low; |
||||
label = "AR-5315u:green:dsl"; |
||||
}; |
||||
|
||||
led@11 { |
||||
reg = <11>; |
||||
active-low; |
||||
label = "AR-5315u:red:power"; |
||||
}; |
||||
}; |
||||
|
||||
&spi { |
||||
status = "okay"; |
||||
|
||||
spi-flash@0 { |
||||
compatible = "spi-flash"; |
||||
reg = <0>; |
||||
#address-cells = <1>; |
||||
#size-cells = <1>; |
||||
spi-max-frequency = <62500000>; |
||||
}; |
||||
}; |
||||
|
||||
&uart0 { |
||||
u-boot,dm-pre-reloc; |
||||
status = "okay"; |
||||
}; |
@ -0,0 +1,12 @@ |
||||
if BOARD_COMTREND_AR5315U |
||||
|
||||
config SYS_BOARD |
||||
default "ar5315u" |
||||
|
||||
config SYS_VENDOR |
||||
default "comtrend" |
||||
|
||||
config SYS_CONFIG_NAME |
||||
default "comtrend_ar5315u" |
||||
|
||||
endif |
@ -0,0 +1,6 @@ |
||||
COMTREND AR-5315U BOARD |
||||
M: Álvaro Fernández Rojas <noltari@gmail.com> |
||||
S: Maintained |
||||
F: board/comtrend/ar-5315u/ |
||||
F: include/configs/comtrend_ar5315u.h |
||||
F: configs/comtrend_ar5315u_ram_defconfig |
@ -0,0 +1,5 @@ |
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
obj-y += ar-5315u.o
|
@ -0,0 +1,7 @@ |
||||
/*
|
||||
* Copyright (C) 2018 Álvaro Fernández Rojas <noltari@gmail.com> |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
#include <common.h> |
@ -0,0 +1,51 @@ |
||||
CONFIG_MIPS=y |
||||
CONFIG_SYS_TEXT_BASE=0x80010000 |
||||
CONFIG_ARCH_BMIPS=y |
||||
CONFIG_SOC_BMIPS_BCM6318=y |
||||
# CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set |
||||
# CONFIG_MIPS_BOOT_ENV_LEGACY is not set |
||||
CONFIG_MIPS_BOOT_FDT=y |
||||
CONFIG_DEFAULT_DEVICE_TREE="comtrend,ar-5315u" |
||||
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set |
||||
CONFIG_OF_STDOUT_VIA_ALIAS=y |
||||
CONFIG_DISPLAY_CPUINFO=y |
||||
CONFIG_HUSH_PARSER=y |
||||
CONFIG_SYS_PROMPT="AR-5315un # " |
||||
CONFIG_CMD_CPU=y |
||||
CONFIG_CMD_LICENSE=y |
||||
# CONFIG_CMD_BOOTD is not set |
||||
# CONFIG_CMD_ELF is not set |
||||
# CONFIG_CMD_XIMG is not set |
||||
# CONFIG_CMD_EXPORTENV is not set |
||||
# CONFIG_CMD_IMPORTENV is not set |
||||
# CONFIG_CMD_EDITENV is not set |
||||
# CONFIG_CMD_SAVEENV is not set |
||||
# CONFIG_CMD_ENV_EXISTS is not set |
||||
# CONFIG_CMD_CRC32 is not set |
||||
CONFIG_CMD_MEMINFO=y |
||||
# CONFIG_CMD_FLASH is not set |
||||
# CONFIG_CMD_FPGA is not set |
||||
# CONFIG_CMD_LOADS is not set |
||||
CONFIG_CMD_SF=y |
||||
CONFIG_CMD_SPI=y |
||||
# CONFIG_CMD_NET is not set |
||||
# CONFIG_CMD_NFS is not set |
||||
# CONFIG_CMD_MISC is not set |
||||
# CONFIG_DM_DEVICE_REMOVE is not set |
||||
CONFIG_DM_GPIO=y |
||||
CONFIG_LED=y |
||||
CONFIG_LED_BCM6328=y |
||||
CONFIG_LED_BLINK=y |
||||
CONFIG_DM_SPI_FLASH=y |
||||
CONFIG_SPI_FLASH=y |
||||
CONFIG_SPI_FLASH_WINBOND=y |
||||
CONFIG_SPI_FLASH_MTD=y |
||||
CONFIG_POWER_DOMAIN=y |
||||
CONFIG_BCM6328_POWER_DOMAIN=y |
||||
CONFIG_DM_RESET=y |
||||
CONFIG_RESET_BCM6345=y |
||||
# CONFIG_SPL_SERIAL_PRESENT is not set |
||||
CONFIG_DM_SERIAL=y |
||||
CONFIG_BCM6345_SERIAL=y |
||||
CONFIG_DM_SPI=y |
||||
CONFIG_BCM63XX_HSSPI=y |
@ -0,0 +1,16 @@ |
||||
/*
|
||||
* Copyright (C) 2018 Álvaro Fernández Rojas <noltari@gmail.com> |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
#include <configs/bmips_common.h> |
||||
#include <configs/bmips_bcm6318.h> |
||||
|
||||
#define CONFIG_REMAKE_ELF |
||||
|
||||
#define CONFIG_ENV_SIZE (8 * 1024) |
||||
|
||||
#define CONFIG_AUTO_COMPLETE |
||||
#define CONFIG_CMDLINE_EDITING |
||||
#define CONFIG_SYS_LONGHELP |
Loading…
Reference in new issue