Commit Graph

84 Commits

Author SHA1 Message Date
Ren Jianing 19111912c0 rockchip: rk3568: add dwc3 board init
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Change-Id: Ie1c642019fa5eb19c9698aaee01d0a27d50c3478
2020-11-02 18:17:26 +08:00
Joseph Chen 7e26af3867 rockchip: add rk3568 SoC support
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I2e163b93d4ec5a60f1ff9c589626d3ccd994f854
2020-10-22 19:39:19 +08:00
Joseph Chen c637f2321b Merge branch 'next-dev' into thunder-boot
Change-Id: I22ac688008080eac49169d752a94b66668f890fc

Conflicts:
	drivers/phy/Kconfig
	drivers/phy/Makefile
2020-04-16 15:48:00 +08:00
Frank Wang 1b23c040f7 board: rockchip: add dwc3 gadget support for rk3328
Add DWC3 device data and gadget download support for RK3328 SoCs.

Change-Id: I034e9838f0f44f24ebb9b9e372039a19e089f3be
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2020-04-15 15:44:22 +08:00
Ren Jianing 7422c37211 rockchip: rv1126: add dwc3 board init
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Change-Id: I4c5eeeedc240197ec0fda2b236890b53b916dfb6
2020-03-27 11:12:34 +08:00
Joseph Chen 1633e8d278 board: rockchip: rename rv1109 to rv1126
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ie5cec1508ec54e15b24909eafab275609de5adea
2020-02-21 10:34:48 +08:00
Joseph Chen b18d7a540c board: rockchip: add rv1109 evb support
Add basic support for rv1109 evb.

Change-Id: I88bd871880feffbe745e0d5ed22ec7f02e9caa75
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-11-19 16:27:41 +08:00
Kever Yang 68fff71bb3 rockchip: evb-rk3128: enable rk818 current limit early
Some rk3128 board like fireprime is using rk818, and it may limit
the current before change the pmic setting, the normal process
need to enable the fuelguage and its dts which is too late,
the U-Boot may HANG at regulator_power_on_init() in board_init().

Change-Id: I7bd058d8bd8fac01377c3cef6b3681c1c6110ee7
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2019-08-06 10:28:41 +08:00
Heinrich Schuchardt 5aae54de78 UPSTREAM: rockchip: evb-rk3399: correct README for board bring up
%s/rkflashtool/rkdeveloptool/

We are using rkdeveloptool not rkflashtool.

Change-Id: Icca82ca411f06d3ec5f578d8e4ac53fbbc486868
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 19ee1fae097325c7af4f18956c903d3ad15b43b7)
2019-01-21 18:00:33 +08:00
Joseph Chen eee2651354 rockchip: rk3308: detect adc key by uboot fdt info
fixes: bcf84996f0
(rockchip: rk3308: fix adc key read failed when kernel dtb is enabled)

Change-Id: I46071bf516cc9ee81f4e33cf884ba7baaa5f2d89
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-11-30 17:21:44 +08:00
Joseph Chen bcf84996f0 rockchip: rk3308: fix adc key read failed when kernel dtb is enabled
return negative erro num makes board_r.c bootflow abort, so that
the adc key driver can not be probe.

Change-Id: I815b16427dc4bf1fdeaab3b75077ed40f5a2beab
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-10-24 20:30:06 +08:00
William Wu 706cec9061 rockchip: rk1808: add dwc3 board init
Change-Id: I52953d7d1b84b4841d494c68bb79074b394811ca
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-10-06 21:01:35 +08:00
Joseph Chen 8870d6b7ed rockchip: rk1808: add evb board support
Change-Id: Id2beac9acc5b4b96fe480b3b2bea88e2f3c158aa
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-04 10:36:14 +08:00
Joseph Chen 9a7ebf3105 rockchip: rk3368: add evb rk3368 support
Change-Id: Icd49c20a25e19eb66d797e17df5e128d7572fe73
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-08-17 09:57:39 +08:00
Kever Yang 7a39aeb5cd rockchip: rk3399: update doc for u-boot.itb write position
u-boot.itb will use the same position as uboot.img

Change-Id: I839c947a0221d347e5810d1fc8bbae655aba429b
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-07-12 10:22:48 +08:00
William Wu 2878d5a3aa usb: dwc3: init phy utmi width in platform data
On rk3399 board, we need to configure phy interface UTMI+ width
to 16 bits via the property "snps,phyif-utmi-bits" of dwc3 node.
But we can't the get the property from kernel dtb. So this patch
initialize the phy interface UTMI+ width in dwc3 platform data,
and not dependent on the property in dtb.

Change-Id: I3f6b05e0d72806242a128c85f82b260f61ac4f95
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-06-28 16:24:34 +08:00
Kever Yang 55a83ed534 rockchip: gva-rk3229: add fastboot key detect
Since the common board init do not detect the fastboot key,
we need to add it in gva board init.

Change-Id: I7f5ea5df740e855c1ec4f64092450d028321200b
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-06-04 12:24:52 +08:00
Andy Yan 7a5fbf5e5e board: evb-rk3308: compatible different adc key channle on board
The RK3308 EVB has two variants: V10 & V11, and V10 bind the
Recovery key on adc channel 0, but V11 bind to channel 1.
Fortunately, the two variants use adc channel 3 to identify
one from another as board id information. So we identify
the board id by adc channel 3, then get the Recovery key
status according to it's corresponding adc channel.

Change-Id: Ib04fb1aad08f69fcdb493258e25c748fb45468d4
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-05-24 16:43:06 +08:00
David Wu 5f601e7c0e rockchip: kylin-rk3036: add README file for OP-TEE support
Detail of step by step to bring up the board with OP-TEE support.

Change-Id: I0d0a1ab8cbe720e35959d6611519f4dfcb51b349
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-03-29 16:27:44 +08:00
Andy Yan c1e43163e9 board: rockchip: add rk3308 evb support
Add basic support for rk3308 evb.

Change-Id: I35aecc6747c222327a12b7583f84f971ab253fa3
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-03-22 08:55:19 +08:00
Andy Yan 53cb838439 board: rockchip: update README of rv1108 evb
The RV1108 EVB switch to spl now, so we need
to update the README.

Change-Id: I1c300a53a8a5c76aafa4857f55956e0203df8634
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-02-06 12:50:39 +08:00
Zhihuan He d14f7e1ef9 rockchip: updata the style of reporting sdram cap
updata the style of reporting sdram capacity to uboot

Change-Id: I6a652f233d8d26e842398edcc184cbbe89099401
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2018-02-05 21:05:36 +08:00
Kever Yang 448a4b3860 rockchip: px30: add evb_px30 board support
PX30 is a rockchip evb for px30, including all harware interface
from px30.

Change-Id: I5bac5a7ebf23b5c51b3a01f51fe0404db0a1b5fc
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-02-05 20:55:54 +08:00
Kever Yang db48fc9697 rockchip: rk3399: use common board file
Use common board file and move SoC spec setting into rk3399.c

Change-Id: Ic674cef566b16c33978a1430eadfa9438b2de1db
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-01-23 08:45:27 +08:00
Kever Yang 9814e89b69 rockchip: rk3368: use common board file
Use common board file and move SoC spec setting into rk3368.c

Change-Id: I1d5a2b0bae03f89092cc0daf1c52622b3884cc43
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-01-23 08:45:26 +08:00
Kever Yang 73d952acc8 rockchip: rk3328: use common board file
Use common board file and move SoC spec setting into rk3328.c

Change-Id: Ia7cf43e0096da980d744260caa61456ddc6b24eb
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-01-23 08:45:26 +08:00
Kever Yang 27dbe19836 rockchip: rv1108: use common board file
Use common board file.

Change-Id: I5fefdfad9a2acdb837ffe15f93518dc26e08b9e7
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-01-23 08:45:26 +08:00
Kever Yang fc9839356c rockchip: rk3288: use common board file
Use common board file and move SoC spec setting into rk3288.c

Change-Id: Ie17232dd60d2b185b635631ce9373eb59b11c89c
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-01-23 08:45:26 +08:00
Kever Yang b99d793163 rockchip: remove no use script
We have move these script to common folder.

Change-Id: Ieacd1d49fc481435602fec3de0747873df22c2b5
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-01-17 15:49:29 +08:00
Tom Rini aee63dc84c MAINTAINERS: Add missing boards and config entries
As part of my usual round of build testing, output about missing
MAINTAINERS information was not logged, and thus often overlooked.
Correct that mistake by ensuring that I log the output of
genboardscfg.py every time.  As part of that, address a number of
missing MAINTAINERS entires.  In the case of a missing file, I have put
the original submitter down.  In the rest of the cases I have added the
config (and sometimes relevant header file) to the existing set of file
globs.

Change-Id: Ic4524445489daba323d638470c369ad914d5bfef
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 79df00fdb40b4584919c8bcef42d323a8d38d0f1)
2018-01-17 15:27:28 +08:00
Philipp Tomsich c8c978c955 rockchip: rk3399: make spl_board_init board-specific
The later-stage spl_board_init (as opposed to board_init_f) should set
up board-specific details: these differ between the EVB-RK3399 and the
RK3399-Q7 (Puma).

This moves spl_board_init back into the individual boards and removes
the unneeded functionality from Puma.

Change-Id: I36b72844fbd0fd45665608f11e1a9a46168490ab
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
(cherry picked from commit fb7406469c012092d652741f103b0993103cf8e3)
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-01-17 15:27:28 +08:00
Andy Yan f1e236acd5 UPSTREAM: rockchip: board: evb_rv1108: update README
After commit d962e5dadc2c("rockchip: mkimage: use spl_boot0 for all Rockchip SoCs"),
the mkimage will not pad the Tag memroy, so we shoud
pass a Taged ddr.bin/spl.bin to it.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
(cherry picked from commit dca4740930c77c465b9645e0a6928c3710b21cdd)

Change-Id: I83e99669e90fda662d176f8f687785609e364312
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2017-12-08 15:18:01 +08:00
Xing Zheng 2d1049f50b board: rockchip: add rk3288-evb-rk1608 board support
The rk3288-evb-rk1608 is a development/evaluation for RK3288
and RK1608. The RK3288 as Host AP, and the RK1608 as a
Dual-cores DSP coprocessor, it provides high-performance
professional computing capabilities to Host AP.

They communicate with each other through MIPI and SPI. There
is a good host environment on host RK3288, we can easily debug
RK1608.

Also, the rk3288-evb-rk1608 is different with rk3288-evb, so
we need to add a independent BSP configuration for rk3288-evb-rk1608.

Change-Id: I75ec0e14ee88acd9de7f809d7e88bca97a77a5c2
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2017-12-08 11:00:43 +08:00
Cody Xie 54fcf04fb5 gva_rk3229: Update README document.
Change-Id: I423d625f4f92e4762a32162772f3858f8069723a
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2017-11-20 10:32:34 +08:00
Francis Fan 00412ace71 gva_rk3229: add serialno init
Change-Id: I6fc41b5480adfbd8456032e844d4f22f30c413a5
Signed-off-by: Francis Fan <francis.fan@rock-chips.com>
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2017-11-20 10:29:58 +08:00
Cody Xie c9d8141cc6 gva_rk3229: Modify to bringup Android Things.
Change-Id: Ie13341380f3526478ca35643e52ebbee741f9269
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2017-11-20 10:29:57 +08:00
Cody Xie 1df1c8728f gva-rk3229: Enable rockchip efuse driver.
Change-Id: Icc10ec157c9c86ecb909d71766f0d16ae920b451
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2017-11-20 10:29:56 +08:00
Kever Yang b4a5485919 rockchip: rk3229: add gva som board support
gva-rk3229 is a som based board design for Android Things project.

Change-Id: I2e054407231a2549573d2302855c09b9795fdddd
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2017-11-14 11:11:45 +08:00
Kever Yang 0d85fb9b23 rockchip: rk3328-evb: add script for atf fit
Add a script to generate binaries from bl31.elf, and generate
u-boot.its file for FIT image including u-boot, dtb and atf
binaries.

Change-Id: Ife016da5468b3c618c619354fb280b6951aed94b
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2017-11-07 11:06:48 +08:00
Kever Yang 5e5397cbae rockchip: rk3128: add evb-rk3128 support
evb-rk3128 is an evb from Rockchip based on rk3128 SoC:
- 2 USB2.0 Host port;
- 1 HDMI port;
- 2 10/100M eth port;
- 2GB ddr;
- 16GB eMMC;
- UART to USB debug port;

Change-Id: Icfc8b74449678e0e2488f7bf394ec217e52c15b6
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2017-10-11 15:55:15 +08:00
Kever Yang afbbd4f78e rockchip: evb-rk3229: add README file for OP-TEE support
Detail of step by step to bring up the board with OP-TEE support.

Change-Id: If3156fa3fb3ede6270f871dcf0e518aced202443
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2017-09-12 16:04:33 +08:00
Kever Yang 3e3311d94f rockchip: evb-rk3229: add fit source file for itb
We package U-Boot and OP-TEE into one itb file for SPL,
so that we can support OP-TEE in SPL.

Change-Id: I2c20333d6f3bb11ac1ec4bbb32c901028fb15d64
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2017-09-12 16:04:32 +08:00
Kever Yang 80275b831b rockchip: evb-rk3399: update document for board bring up
Since we support ATF in SPL and add script for it, let's make the
document up to date.

Change-Id: Ic6468825c61a8729ca38f7580dc728f0a753560a
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2017-09-12 16:04:31 +08:00
Kever Yang 8f1e1356e1 rockchip: rk3399-evb: add script for atf fit
Add a script to generate binaries from bl31.elf, and generate
u-boot.its file for FIT image including u-boot, dtb and atf binaries.

Change-Id: Iad47682119a8e1b382da913069a0771e32f9295d
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2017-09-12 16:04:30 +08:00
Kever Yang 0c294d0696 rockchip: evb-rk3399: add ethaddr and serial# init
Sync the code from puma-rk3399:
8adc9d1 rockchip: board: puma_rk3399: derive ethaddr from cpuid
9415b9a rockchip: board: puma_rk3399: add support for serial# and cpuid#
via efuses

Change-Id: Ib5528d0742b56a0e57431adaa01f411eee7e1ca1
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2017-09-12 16:04:27 +08:00
Kever Yang 01637644e2 rockchip: evb-rk3328: set uart2 and sdmmc io routing
In rk3328, some function pin may have more than one choice, and muxed
with more than one IO, for example, the UART2 controller IO,
TX and RX, have 3 choice(setting in com_iomux):
- M0 which mux with GPIO1A0/GPIO1A1
- M1 which mux with GPIO2A0/GPIO2A1
- usb2phy which mux with USB2.0 DP/DM pin.

We should set these IO routing in board file.

Change-Id: If6f6fd890d8e225cdb584a4025aac578198764e6
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2017-09-12 16:04:20 +08:00
Kever Yang da65ef61af FROMLIST: board: evb-rk3399: add api to support dwc3 gadget
This patch add board_usb_init() and interrupt callback
for dwc3 gadget.

Change-Id: I1ea19c0ec7d3fd14904e7fcc97c6d19221206762
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2017-09-12 16:04:19 +08:00
Simon Glass fd1e959e91 env: Rename eth_setenv_enetaddr() to eth_env_set_enetaddr()
Rename this function for consistency with env_set().

Signed-off-by: Simon Glass <sjg@chromium.org>
2017-08-16 08:23:56 -04:00
Simon Glass 382bee57f1 env: Rename setenv() to env_set()
We are now using an env_ prefix for environment functions. Rename setenv()
for consistency. Also add function comments in common.h.

Suggested-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Simon Glass <sjg@chromium.org>
2017-08-16 08:22:18 -04:00
Andy Yan c72c161bc0 rockchip: remove the hard coded uart iomux setting for px5 evb
As the debug uart is marked as dm-pre-reloc, the pinctrl driver
will handle the correct iomux setting.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-08-13 17:12:37 +02:00