Commit 8df378888774862b14e956524c7e4545b2b07411
Committed by
Daniel Schwierzeck
1 parent
07661e7f50
Exists in
smarc_8mq_lf_v2020.04
and in
20 other branches
MIPS: add BMIPS Sagem F@ST1704 board
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Showing 9 changed files with 160 additions and 0 deletions Side-by-side Diff
arch/mips/dts/Makefile
| ... | ... | @@ -13,6 +13,7 @@ |
| 13 | 13 | dtb-$(CONFIG_BOARD_COMTREND_VR3032U) += comtrend,vr-3032u.dtb |
| 14 | 14 | dtb-$(CONFIG_BOARD_HUAWEI_HG556A) += huawei,hg556a.dtb |
| 15 | 15 | dtb-$(CONFIG_BOARD_NETGEAR_CG3100D) += netgear,cg3100d.dtb |
| 16 | +dtb-$(CONFIG_BOARD_SAGEM_FAST1704) += sagem,f@st1704.dtb | |
| 16 | 17 | dtb-$(CONFIG_BOARD_TPLINK_WDR4300) += tplink_wdr4300.dtb |
| 17 | 18 | |
| 18 | 19 | targets += $(dtb-y) |
arch/mips/dts/sagem,f@st1704.dts
| 1 | +/* | |
| 2 | + * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com> | |
| 3 | + * | |
| 4 | + * SPDX-License-Identifier: GPL-2.0+ | |
| 5 | + */ | |
| 6 | + | |
| 7 | +/dts-v1/; | |
| 8 | + | |
| 9 | +#include "brcm,bcm6338.dtsi" | |
| 10 | + | |
| 11 | +/ { | |
| 12 | + model = "Sagem F@ST1704"; | |
| 13 | + compatible = "sagem,f@st1704", "brcm,bcm6338"; | |
| 14 | + | |
| 15 | + aliases { | |
| 16 | + serial0 = &uart0; | |
| 17 | + }; | |
| 18 | + | |
| 19 | + chosen { | |
| 20 | + stdout-path = "serial0:115200n8"; | |
| 21 | + }; | |
| 22 | + | |
| 23 | + gpio-leds { | |
| 24 | + compatible = "gpio-leds"; | |
| 25 | + | |
| 26 | + inet_green { | |
| 27 | + label = "F@ST1704:green:inet"; | |
| 28 | + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; | |
| 29 | + }; | |
| 30 | + | |
| 31 | + power_green { | |
| 32 | + label = "F@ST1704:green:power"; | |
| 33 | + gpios = <&gpio 1 GPIO_ACTIVE_LOW>; | |
| 34 | + }; | |
| 35 | + | |
| 36 | + inet_red { | |
| 37 | + label = "F@ST1704:red:inet"; | |
| 38 | + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; | |
| 39 | + }; | |
| 40 | + }; | |
| 41 | +}; | |
| 42 | + | |
| 43 | +&gpio { | |
| 44 | + status = "okay"; | |
| 45 | +}; | |
| 46 | + | |
| 47 | +&uart0 { | |
| 48 | + u-boot,dm-pre-reloc; | |
| 49 | + status = "okay"; | |
| 50 | +}; |
arch/mips/mach-bmips/Kconfig
| ... | ... | @@ -121,6 +121,17 @@ |
| 121 | 121 | ethernet ports, 1 UART, GPIO buttons and LEDs, and a BCM43225 |
| 122 | 122 | (miniPCIe). |
| 123 | 123 | |
| 124 | +config BOARD_SAGEM_FAST1704 | |
| 125 | + bool "Sagem F@ST1704" | |
| 126 | + depends on SOC_BMIPS_BCM6338 | |
| 127 | + select BMIPS_SUPPORTS_BOOT_RAM | |
| 128 | + help | |
| 129 | + Sagem F@ST1704 boards have a BCM6338 SoC with 16 MB of RAM and 4 MB | |
| 130 | + of flash (SPI). | |
| 131 | + Between its different peripherals there's a BCM5325 switch with 4 | |
| 132 | + ethernet ports, 1 UART, GPIO buttons and LEDs, and a BCM4312 | |
| 133 | + (miniPCI). | |
| 134 | + | |
| 124 | 135 | config BOARD_SFR_NB4_SER |
| 125 | 136 | bool "SFR NeufBox 4 (Sercomm)" |
| 126 | 137 | depends on SOC_BMIPS_BCM6358 |
| ... | ... | @@ -149,6 +160,7 @@ |
| 149 | 160 | source "board/comtrend/vr3032u/Kconfig" |
| 150 | 161 | source "board/huawei/hg556a/Kconfig" |
| 151 | 162 | source "board/netgear/cg3100d/Kconfig" |
| 163 | +source "board/sagem/f@st1704/Kconfig" | |
| 152 | 164 | source "board/sfr/nb4_ser/Kconfig" |
| 153 | 165 | |
| 154 | 166 | endmenu |
board/sagem/f@st1704/Kconfig
board/sagem/f@st1704/MAINTAINERS
board/sagem/f@st1704/Makefile
board/sagem/f@st1704/f@st1704.c
configs/sagem_f@st1704_ram_defconfig
| 1 | +CONFIG_ARCH_BMIPS=y | |
| 2 | +CONFIG_BAUDRATE=115200 | |
| 3 | +CONFIG_BCM6345_CLK=y | |
| 4 | +CONFIG_BCM6345_GPIO=y | |
| 5 | +CONFIG_BCM6345_SERIAL=y | |
| 6 | +CONFIG_BMIPS_BOOT_RAM=y | |
| 7 | +CONFIG_BOARD_SAGEM_FAST1704=y | |
| 8 | +# CONFIG_CMD_BOOTD is not set | |
| 9 | +CONFIG_CMD_BOOTM=y | |
| 10 | +CONFIG_CMD_CPU=y | |
| 11 | +# CONFIG_CMD_CRC32 is not set | |
| 12 | +# CONFIG_CMD_EDITENV is not set | |
| 13 | +# CONFIG_CMD_ELF is not set | |
| 14 | +# CONFIG_CMD_ENV_EXISTS is not set | |
| 15 | +# CONFIG_CMD_EXPORTENV is not set | |
| 16 | +# CONFIG_CMD_FLASH is not set | |
| 17 | +# CONFIG_CMD_FPGA is not set | |
| 18 | +# CONFIG_CMD_GPIO is not set | |
| 19 | +# CONFIG_CMD_IMLS is not set | |
| 20 | +# CONFIG_CMD_IMPORTENV is not set | |
| 21 | +CONFIG_CMD_LED=y | |
| 22 | +CONFIG_CMD_LICENSE=y | |
| 23 | +CONFIG_CMD_LOADB=y | |
| 24 | +# CONFIG_CMD_LOADS is not set | |
| 25 | +CONFIG_CMD_MEMINFO=y | |
| 26 | +# CONFIG_CMD_MISC is not set | |
| 27 | +# CONFIG_CMD_NET is not set | |
| 28 | +# CONFIG_CMD_NFS is not set | |
| 29 | +# CONFIG_CMD_SAVEENV is not set | |
| 30 | +# CONFIG_CMD_XIMG is not set | |
| 31 | +CONFIG_DEFAULT_DEVICE_TREE="sagem,f@st1704" | |
| 32 | +CONFIG_DISPLAY_CPUINFO=y | |
| 33 | +# CONFIG_DM_DEVICE_REMOVE is not set | |
| 34 | +CONFIG_DM_GPIO=y | |
| 35 | +CONFIG_DM_RESET=y | |
| 36 | +CONFIG_DM_SERIAL=y | |
| 37 | +CONFIG_HUSH_PARSER=y | |
| 38 | +CONFIG_LED=y | |
| 39 | +CONFIG_LED_GPIO=y | |
| 40 | +CONFIG_MIPS=y | |
| 41 | +# CONFIG_MIPS_BOOT_CMDLINE_LEGACY is not set | |
| 42 | +# CONFIG_MIPS_BOOT_ENV_LEGACY is not set | |
| 43 | +CONFIG_MIPS_BOOT_FDT=y | |
| 44 | +CONFIG_OF_STDOUT_VIA_ALIAS=y | |
| 45 | +CONFIG_RESET=y | |
| 46 | +CONFIG_RESET_BCM6345=y | |
| 47 | +CONFIG_SOC_BMIPS_BCM6338=y | |
| 48 | +# CONFIG_SPL_SERIAL_PRESENT is not set | |
| 49 | +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set | |
| 50 | +CONFIG_SYS_NO_FLASH=y | |
| 51 | +CONFIG_SYS_PROMPT="F@ST1704 # " | |
| 52 | +CONFIG_SYS_TEXT_BASE=0x80010000 |
include/configs/sagem_f@st1704.h
| 1 | +/* | |
| 2 | + * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com> | |
| 3 | + * | |
| 4 | + * SPDX-License-Identifier: GPL-2.0+ | |
| 5 | + */ | |
| 6 | + | |
| 7 | +#include <configs/bmips_common.h> | |
| 8 | +#include <configs/bmips_bcm6338.h> | |
| 9 | + | |
| 10 | +#define CONFIG_ENV_IS_NOWHERE | |
| 11 | +#define CONFIG_ENV_SIZE (8 * 1024) | |
| 12 | + | |
| 13 | +#define CONFIG_AUTO_COMPLETE | |
| 14 | +#define CONFIG_CMDLINE_EDITING | |
| 15 | +#define CONFIG_SYS_LONGHELP |