Skip to content

Commit

Permalink
mibox3: add support
Browse files Browse the repository at this point in the history
  • Loading branch information
7Ji committed Feb 7, 2023
1 parent 9173b32 commit b788cfd
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
32 changes: 32 additions & 0 deletions arch/arm/dts/meson-gxbb-mibox3.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2022 Guoxin "7Ji" Pu
*/

/dts-v1/;

#include "meson-gxbb-p20x.dtsi"

/ {
compatible = "xiaomi,mdz-16-aa", "xiaomi,mibox3/3c","amlogic,p201", "amlogic,meson-gxbb";
model = "Xiaomi MiBox 3/3C (CN ver. MDZ-16-AA)";
};

/* Wireless SDIO Module, not needed during early boot */
&sd_emmc_a {
status = "disabled";
};

/* SD card */
&sd_emmc_b {
status = "disabled";
};

/* Only USB0 is wired out, USB1 is not wired at all */
&usb1_phy {
status = "disabled";
};

&usb1 {
status = "disabled";
};
49 changes: 49 additions & 0 deletions configs/mibox3_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
CONFIG_ARM=y
CONFIG_SYS_BOARD="p201"
CONFIG_ARCH_MESON=y
CONFIG_TEXT_BASE=0x01000000
CONFIG_NR_DRAM_BANKS=1
CONFIG_ENV_SIZE=0x2000
CONFIG_DM_GPIO=y
CONFIG_DEFAULT_DEVICE_TREE="meson-gxbb-mibox3"
CONFIG_DEBUG_UART_BASE=0xc81004c0
CONFIG_DEBUG_UART_CLOCK=24000000
CONFIG_IDENT_STRING=" mibox3"
CONFIG_SYS_LOAD_ADDR=0x1000000
CONFIG_DEBUG_UART=y
CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x20000000
CONFIG_REMAKE_ELF=y
CONFIG_OF_BOARD_SETUP=y
# CONFIG_DISPLAY_CPUINFO is not set
CONFIG_MISC_INIT_R=y
CONFIG_SYS_MAXARGS=32
# CONFIG_CMD_BDI is not set
# CONFIG_CMD_IMI is not set
CONFIG_CMD_GPIO=y
CONFIG_CMD_I2C=y
# CONFIG_CMD_LOADS is not set
CONFIG_CMD_MMC=y
CONFIG_CMD_USB=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_REGULATOR=y
CONFIG_OF_CONTROL=y
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_DM_I2C=y
CONFIG_SYS_I2C_MESON=y
CONFIG_MMC_MESON_GX=y
CONFIG_PHY=y
CONFIG_MESON_GXBB_USB_PHY=y
CONFIG_PINCTRL=y
CONFIG_PINCTRL_MESON_GXBB=y
CONFIG_DM_REGULATOR=y
CONFIG_DM_REGULATOR_FIXED=y
CONFIG_DM_REGULATOR_GPIO=y
CONFIG_DM_RESET=y
CONFIG_DEBUG_UART_ANNOUNCE=y
CONFIG_DEBUG_UART_SKIP_INIT=y
CONFIG_MESON_SERIAL=y
CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_USB_DWC2=y
CONFIG_OF_LIBFDT_OVERLAY=y

0 comments on commit b788cfd

Please sign in to comment.