u-boot/board
Chen-Yu Tsai bab972948e rockchip: rk3328: Add support for ROC-RK3328-CC board
The ROC-RK3328-CC from Firefly and Libre Computer Project is a credit
card size development board based on the Rockchip RK3328 SoC, with:

  - 1/2/4 GB DDR4 DRAM
  - eMMC connector for optional module
  - micro SD card slot
  - 1 x USB 3.0 host port
  - 2 x USB 2.0 host port
  - 1 x USB 2.0 OTG port
  - HDMI video output
  - TRRS connector with audio and composite video output
  - gigabit Ethernet
  - consumer IR receiver
  - debug UART pins

The ROC-RK3328-CC has the enable pin of the SD card power switch tied
to GPIO_0_D6. This pin also has the function SDMMC0_PWREN, which is
muxed by default. SDMMC0_PWREN is an active high signal controlled by
the MMC controller, however the switch enable is active low, and
pulled low (enabled) by default to make things work on boot.

As such, we need to mux away from SDMMC0_PWREN and use GPIO to enable
power to the card. The default GPIO state for the pin is pull-down and
input, which doesn't require extra configuration when paired with the
external pull-down and active low switch.

Deal with this by enabling regulator support in SPL, and setting
"u-boot,dm-spl" for the regulator and other device nodes needed for
muxing the pin.

The device tree file is synced from the Linux kernel next-20200324.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2020-05-01 18:32:56 +08:00
..
abilis/tb100 ARC: rework setting of ARC CPU specific compiler options 2020-02-12 21:11:12 +03:00
advantech doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
alliedtelesis ddr: marvell: a38x: Allow boards to specify CK_DELAY parameter 2020-04-14 08:59:44 +02:00
altera ARM: socfpga: Add default FPGA bitstream fitImage for Arria10 SoCDK 2019-05-10 22:48:10 +02:00
amarula/vyasa-rk3288 common: Move serial functions out of common.h 2019-12-02 18:23:11 -05:00
amazon/kc1 env: Move env_set() to env.h 2019-08-11 16:43:41 -04:00
amlogic arm64: dts: meson: add libretech-pc support 2020-04-06 09:56:35 +02:00
AndesTech common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
Arcturus/ucp1020 common: Move clock functions into a new file 2020-01-24 23:06:48 +05:30
aries/mcvevk arm: socfpga: Re-add support for Aries MCV SoM and MCVEV[KP] board 2019-05-14 19:52:39 +02:00
aristainetos doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
armadeus Kconfig: Remove redundant variable sets 2020-03-16 16:42:50 -04:00
armltd common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
aspeed/evb_ast2500 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
astro/mcf5373l common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
atmark-techno/armadillo-800eva common: Move reset_cpu() to the CPU header 2020-01-24 23:06:49 +05:30
atmel common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
avionic-design SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bachmann/ot1200 doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
barco doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
beckhoff/mx53cx9020 imx: cx9020: migrate cx9020 to CONFIG_DM_USB 2020-01-07 10:26:56 +01:00
birdland/bav335x mtd: rename CONFIG_NAND -> CONFIG_MTD_RAW_NAND 2019-12-03 23:04:10 -05:00
bitmain/antminer_s9 arm: zynq: Add support for Bitmain Antminer S9 control board 2018-05-31 13:50:39 +02:00
bluegiga/apx4devkit env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
bluewater common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
bosch am335x, guardian: boot stage feedback in headless mode 2020-04-14 15:44:48 +05:30
boundary/nitrogen6x doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
broadcom common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
bticino/mamoj common: Move serial functions out of common.h 2019-12-02 18:23:11 -05:00
buffalo/lsxl env: Rename environment.h to env_internal.h 2019-08-11 19:27:31 -04:00
BuR board: brxre1: fix building errors 2020-03-03 13:08:14 +05:30
BuS/eb_cpu5282 common: Move testdram() into init.h 2020-01-24 23:06:49 +05:30
cadence/xtfpga common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
calao/usb_a9263 common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
CarMediaLab/flea3 common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
cavium/thunderx common: Move reset_cpu() to the CPU header 2020-01-24 23:06:49 +05:30
ccv/xpress doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
cei/cei-tk1-som SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
chipspark/popmetal_rk3288 common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
cirrus/edb93xx common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
cloudengines/pogo_e02 common: Move reset_phy() to net.h 2020-01-24 23:06:48 +05:30
cobra5272 doc: update reference to README.board 2020-04-16 23:06:54 -04:00
compal/paz00 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
compulab dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
comtrend SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
congatec common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
coreboot common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
corscience/tricorder dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
cortina board: presidio-asic: Add basic G3 engr. development board support 2020-02-07 16:16:01 -05:00
creative/xfi3 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cssi common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
CZ.NIC arm: mvebu: turris_mox: fix PCIe ranges in device tree 2020-04-14 13:16:42 +02:00
d-link/dns325 common: Move reset_phy() to net.h 2020-01-24 23:06:48 +05:30
davinci/da8xxevm board: davinci: Update OMAPL138_LCDK maintainer 2019-12-26 09:06:54 -05:00
devboards/dbm-soc1 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dfi common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
dhelectronics ARM: imx6: DHCOM i.MX6 PDK: Convert to DM_ETH 2020-04-18 13:00:07 +02:00
ea/mx7ulp_com mx7ulp: Add support for Embedded Artists COM board 2020-01-07 10:26:56 +01:00
ebv/socrates arm: socfpga: socrates: make rtc work 2019-04-25 00:00:49 +02:00
eets/pdu001 common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
efi common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
egnite/ethernut5 common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
el/el6x common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
elgin/elgin_rv1108 elgin-rv1108: Use rk_board_late_init() for GPIO settings 2020-03-26 22:58:46 +08:00
embest/mx6boards common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
emulation Revert "riscv: qemu: clear kernel-start/-end in device tree as workaround for BBL" 2020-04-23 10:13:35 +08:00
engicam common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
esd common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
firefly rockchip: board: roc-pc-rk3399: Remove support for push button 2020-04-29 10:30:55 +08:00
freescale Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq 2020-04-21 15:20:42 -04:00
gardena dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
gateworks/gw_ventana common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
gdsys common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
ge doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
geekbuying/geekbox rockchip: rk3368: Migrate to use common board file 2019-07-29 10:27:48 +08:00
google dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
grinn common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
gumstix common: Move serial functions out of common.h 2019-12-02 18:23:11 -05:00
highbank common: Move some cache and MMU functions out of common.h 2019-12-02 18:23:55 -05:00
hisilicon dm: core: Drop the inclusion of linux/compat.h in dm.h 2020-02-05 21:48:22 -07:00
huawei/hg556a SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ids/ids8313 common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
imgtec mtd: rename CONFIG_NAND -> CONFIG_MTD_RAW_NAND 2019-12-03 23:04:10 -05:00
intel board: intel: agilex: Add socdk board support for Intel Agilex SoC 2020-01-07 14:38:33 +01:00
inversepath/usbarmory common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
iomega/iconnect SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
is1 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
isee dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
k+p imx: pmic: Set proper pmic name for iMX53 HSC|DDC boards 2020-04-18 13:08:34 +02:00
keymile ARM: socfpga: Add initial support for the ABB SECU board 2020-03-03 22:11:36 +01:00
kmc/kzm9g common: Move reset_cpu() to the CPU header 2020-01-24 23:06:49 +05:30
kobol/helios4 board: mvebu: drop unused ETH_PHY macro definitions 2019-01-21 11:39:50 +01:00
kosagi/novena common: Move clock functions into a new file 2020-01-24 23:06:48 +05:30
l+g/vinco common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
LaCie common: Move reset_phy() to net.h 2020-01-24 23:06:48 +05:30
laird common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
lego/ev3 ARM: legoev3: convert to driver model 2019-07-13 11:11:28 -04:00
lg/sniper env: Move env_set() to env.h 2019-08-11 16:43:41 -04:00
liebherr arm: xea: spl: Add GPIO0_0 setup on spl_board_init 2020-02-09 14:59:16 +01:00
logicpd ARM: imx6q_logic: Cleanup boot sequence check 2019-12-27 14:30:52 +01:00
Marvell common: Move reset_phy() to net.h 2020-01-24 23:06:48 +05:30
maxbcm arm: mvebu: AXP: Enhance PCIe port capability configuration 2019-04-12 07:04:18 +02:00
mediatek ARM: Mediatek: Add board_late_init to init usb gadget driver 2020-01-25 12:04:36 -05:00
menlo/m53menlo doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
microchip dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mikrotik/crs305-1g-4s arm: mvebu: Avoid generating kwbimage.cfg in the source tree 2019-10-29 16:17:36 -04:00
mini-box/picosam9g45 common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
mpc8308_p1m common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
mqmaker/miqi_rk3288 rockchip: board: rk3288: remove board_boot_order() 2019-07-20 23:59:44 +08:00
mscc common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
netgear bmips: correct name characters 2019-10-25 17:20:43 +02:00
nokia/rx51 env: Move env_set() to env.h 2019-08-11 16:43:41 -04:00
novtech/meerkat96 meerkat96: fix typo in MAINTAINERS email address 2020-01-25 12:04:36 -05:00
nvidia ARM: tegra: Add NVIDIA Jetson Nano Developer Kit support 2020-04-02 14:30:02 -07:00
olimex/mx23_olinuxino SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
opalkelly/zynq arm: zynq: Remove low level UART setting 2020-01-14 09:05:53 +01:00
overo dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
pandora omap3: pandora: Enable DM_SERIAL 2018-09-10 21:19:31 -04:00
phytec doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
phytium/durian common: Move reset_cpu() to the CPU header 2020-01-24 23:06:49 +05:30
pine64/rockpro64_rk3399 rockchip: rk3399: split rockpro64 out of evb_rk3399 2019-11-17 17:22:53 +08:00
ppcag/bg0900 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
qca mips: add initial support for qca956x referenced board 2019-04-12 17:32:50 +02:00
qemu-mips SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
qualcomm MAINTAINERS: board: qcom: db820c: update email 2020-01-30 13:30:35 -05:00
quipos/cairo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
radxa SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
raidsonic/ib62x0 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
raspberrypi/rpi rpi: Enable DRAM bank initialization on arm64 2019-12-11 10:14:12 +01:00
renesas ARM: rmobile: Only register ethernet on V2H Blanche if not DM_ETH 2020-03-30 11:35:23 +02:00
rockchip rockchip: rk3328: Add support for ROC-RK3328-CC board 2020-05-01 18:32:56 +08:00
ronetix common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
sagem/f@st1704 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
samsung arm: exynos: Read default MMC device from XOM[7:5] pins 2020-01-28 09:54:05 +09:00
sandbox sandbox: implement ft_board_setup() 2020-04-16 08:07:58 -06:00
sandisk/sansa_fuze_plus SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sbc8349 common: Move device-tree setup functions to fdt_support.h 2020-01-24 23:06:48 +05:30
sbc8548 common: Move pci_init_board() out of common.h 2019-12-02 18:25:25 -05:00
sbc8641d common: Move testdram() into init.h 2020-01-24 23:06:49 +05:30
schulercontrol/sc_sps_1 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Seagate common: Move reset_phy() to net.h 2020-01-24 23:06:48 +05:30
seco doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
seeed/linkit-smart-7688 mips: mt76xx: linkit-smart-7688: Use ioremap_nocache to get address 2018-11-18 16:02:23 +01:00
sfr/nb4_ser SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
siemens doc: update reference to README.imx8image 2020-04-16 23:06:54 -04:00
sifive/fu540 configs: fu540: enable gpio driver 2019-10-18 09:04:08 +08:00
silica/pengwyn common: Move serial functions out of common.h 2019-12-02 18:23:11 -05:00
sks-kinkel/sksimx6 Convert to use fsl_esdhc_imx for i.MX platforms 2019-06-23 14:18:34 +08:00
socrates common: Move testdram() into init.h 2020-01-24 23:06:49 +05:30
softing ARM: imx: vining2000: Properly discern PFUZE100 and PFUZE200 2020-01-20 15:37:23 +01:00
solidrun arm: mvebu: clearfog: Use Pro DT by default 2020-04-14 13:16:42 +02:00
somlabs/visionsom-6ull ARM: imx: mx6ull: Add iMX6ULL VisionSOM SoM and EVK 2020-01-20 15:38:16 +01:00
spear common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
sr1500 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
st board: stm32mp1: correct CONFIG_IS_ENABLED usage for LED 2020-04-15 09:10:12 +02:00
ste/stemmy board: Add new Samsung "stemmy" board based on ST-Ericsson U8500 2020-01-22 17:47:57 -05:00
sunxi sunxi: Add Libre Computer ALL-H5-CC H5 board 2020-01-24 23:13:55 +05:30
Synology common: Move reset_phy() to net.h 2020-01-24 23:06:48 +05:30
synopsys ARC: rework setting of ARC CPU specific compiler options 2020-02-12 21:11:12 +03:00
sysam common: Move testdram() into init.h 2020-01-24 23:06:49 +05:30
syteco/zmx25 common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
tbs/tbs2910 board: tbs2910: Convert eth to driver model 2019-10-13 22:49:11 +02:00
tcl/sl50 common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
technexion doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
technologic common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
terasic SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
theadorable common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
theobroma-systems dm: core: Rename ofnode_get_chosen_prop() 2020-02-05 19:33:45 -07:00
ti board: ti: README: Update OP-TEE binary name 2020-03-06 12:53:08 +05:30
timll dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
topic/zynq arm: zynq: Remove low level UART setting 2020-01-14 09:05:53 +01:00
toradex Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx 2020-04-20 08:45:27 -04:00
tplink/wdr4300 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tqc Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx 2020-04-20 08:45:27 -04:00
udoo common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
vamrs/rock960_rk3399 rockchip: rk3399: Migrate to use common board file 2019-07-29 10:27:48 +08:00
variscite/dart_6ul Convert to use fsl_esdhc_imx for i.MX platforms 2019-06-23 14:18:34 +08:00
varisys common: Move device-tree setup functions to fdt_support.h 2020-01-24 23:06:48 +05:30
ve8313 common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
vscom/baltos mtd: rename CONFIG_NAND -> CONFIG_MTD_RAW_NAND 2019-12-03 23:04:10 -05:00
wandboard wandboard: Print the board version in board_late_init() 2020-04-18 12:59:59 +02:00
warp doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
warp7 doc: update reference to README.imximage 2020-04-16 23:06:54 -04:00
work-microwave/work_92105 common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
xes common: Move pci_init_board() out of common.h 2019-12-02 18:25:25 -05:00
xilinx arm64: xilinx: Never touch DDR if system has no DDR 2020-04-06 12:52:45 +02:00
zyxel/nsa310s common: Move reset_phy() to net.h 2020-01-24 23:06:48 +05:30