Commit Graph

148 Commits

Author SHA1 Message Date
Jianqun Xu d23b7df185 dt-bindings: pinctrl: rockchip support RK_FUNC_{5,15}
Change-Id: I3fc8f58e033520f5211814bec84bd3142fd41760
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2020-03-30 18:20:04 +08:00
Jon Lin fd25a27f53 clk: rockchip: rk3036: add HCLK_sfc
Change-Id: I18ce656c79e2a62190f356d889f39bb561659023
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2019-12-20 10:03:21 +08:00
Yu YongZhen f992fe3334 clk: rockchip: rk3308: Make DCLK_VOP clock id consistent with kernel
Change-Id: I3e5b042a5e7b4bd4a7724451b30cfa9601955541
Signed-off-by: Yu YongZhen <yuyz@rock-chips.com>
2019-04-16 09:06:52 +08:00
Elaine Zhang 6b5ade5a57 clk: rockchip: rk1808: fix up the clk_set_default failed
Change-Id: If49d6def0e16b93238311885217f30a4b7a2e7c3
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-04-10 12:04:10 +08:00
Elaine Zhang 5561190119 clk: rockchip: rk3288: add clk_set_default
support aclk_vio\hclk_vio clk setting.

Change-Id: Ie826c770670598161f22208f504d8762b8597811
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-02-01 16:17:34 +08:00
Elaine Zhang 2e8ea5b0f6 clk: rockchip: rk3288: support crypto clk setting
Change-Id: I066ec163d959b95d0928e07716e3370715aa9898
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-01-21 09:11:01 +08:00
Nickey Yang 0fd7e0574c rockchip: dt-bindings: clk: rk3288: add SCLK_MIPIDSI_24M
Change-Id: I268aadd6065f93f17e5a48e9b5acf63d2e5132a1
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
2018-12-17 14:20:08 +08:00
Elaine Zhang 1631bee789 rockchip: dtsi: rk3128: sync from kernel
base on commit 4d46be090:
	(clk: rockchip: rk3128: add hclk_sfc)

Change-Id: Ied6584460fa5243abd26efa5602b2312222898a1
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-11-06 14:28:51 +08:00
Elaine Zhang 8fd483da84 rockchip: dtsi: rk1808: sync from kernel
base on commit 54e75c20:
    (clk: rockchip: rk1808: add clk ID for clk_rtc32k_frac)

Change-Id: Iac1db11af0e6c9d54e66a1d634d890ef6999c7d9
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-10-16 09:16:31 +08:00
Joseph Chen 16e939f905 rockchip: dtsi: rk1808: sync from kernel
base on commit dabd2ea:
(arm64: dts: rockchip: fix mapping address for rk1808 pmugrf)

Change-Id: I6536c03fc2c90ddf1dd8eeb626b7d03f33fdbcc9
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-29 10:33:04 +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
Elaine Zhang 3204d7c4a3 rockchip: clk: rk1808: Add binding header for rk1808
files origin from kernel.

Change-Id: Ie19bf329f00bf1c502db5d91978f89de3771eff2
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-08-29 11:17:54 +08:00
Elaine Zhang 7150785e44 rockchip: clk: rk3368: support more clks to set and get rate
Make clock ids consistent with kernel.
Support more clks to set and get rate.
Add clk dump.

Change-Id: I348c98ce81ce76af9c492a30480fcb495da7ed79
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-08-06 11:20:24 +08:00
Elaine Zhang efb944b698 rockchip: clk: rk3128: support more clks to set and get rate
Make clock ids consistent with kernel.
support more clks to set and get rate.
add clk init.

Change-Id: I1e6b5734887e0bd5d845f1286f10eb0e3e42bc08
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-08-02 17:03:55 +08:00
Elaine Zhang 809e91fd38 rockchip: clk: rk322x: support more clks to set and get rate
Change-Id: Ibed40f1826469263a8015d8af2dea4d3567a08e6
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-08-02 17:03:55 +08:00
Elaine Zhang 0b7db90f19 rockchip: clk: rk3328: support more clks to set and get rate
Change-Id: Ic231b7701c6eb23b0e9db21c1d28fb4d08c4debf
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-08-02 17:03:55 +08:00
Elaine Zhang 6bfdfc4f06 clk: rockchip: rk3399: support dual pll for vop
set the vop's parent just vpll and cpll,
set vop parent in dts node,the same as kernel setting.
i.e:
&vopb {
	status = "okay";
	assigned-clocks = <&cru DCLK_VOP0_DIV>;
	assigned-clock-parents = <&cru PLL_VPLL>;
};
&vopl {
	status = "okay";
	assigned-clocks = <&cru DCLK_VOP1_DIV>;
	assigned-clock-parents = <&cru PLL_CPLL>;
};

Change-Id: I07ab4e2837cf7fc0860e8b4d14adb8936f5cb27a
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-06-28 16:35:33 +08:00
Elaine Zhang 1636e7c2d4 clk: rockchip: rv1108: Make clock ids consistent with kernel
Change-Id: Idd295c633dffbe2ed6c3f5b6e115b0fd5b040251
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-06-06 17:56:31 +08:00
Finley Xiao 4af5b92cfb clk: rockchip: rk3308: Make clock ids consistent with kernel
Change-Id: I79db3bd2faa4f296efab68d15cae5548314b446f
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-06-05 08:56:08 +08:00
Elaine Zhang 5cb579f13b rockchip: clk: rv1108: Add some frequency setting interfaces
support PLL freq setting,
support bus and peri clk freq setting,
support aclk vio and dclk vop freq setting.

Change-Id: I894552c1e1bb1bd13a143e200edf289234a53c1d
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-06-01 11:55:11 +08:00
Andy Yan 54d254fe97 clk: rockchip: add clk driver for rk3308
Add basic clock for px30 which including cpu, bus, emmc, i2c,
spi, pwm, saradc clock init.

Change-Id: Idd8542d7833e4997378bce99e0a464d5d16890fd
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-21 16:49:40 +08:00
David Wu b0b6870835 clk: rockchip: clk_rk3288: Implement "assign-clock-parent" and "assign-clock-rate"
The RK3288 CRU-node assigns rates to a number of clocks that are not
implemented in the RK3288 clock-driver (but which have been
sufficiently initialised from rkclk_init()): for these clocks, we
implement the gmac clock set parent, but simply ignore the
others' set_rate() operation and return 0 to signal success.

Change-Id: Ic1a41634aba674001beb0e7e5ca3f7f2fa008e51
Signed-off-by: David Wu <david.wu@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2018-02-24 19:02:43 +08:00
David Wu 07a48b3e0c clk: rockchip: Add rk3328 gamc clock support
The rk3328 soc has two gmac controllers, one is gmac2io,
the other is gmac2phy. We use the gmac2io rgmii interface
for 1000M phy here.

Change-Id: I4963f03f6aea2c7196f33dae0bca38a432c80690
Signed-off-by: David Wu <david.wu@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2018-02-24 19:02:43 +08:00
Kever Yang 744ba6c65f rockchip: dts: px30: add px30-evb dts
Add the dts and header file from kernel.

Change-Id: Iafd91528deffd14f5b59cc3d7cabe9d0dbb576d5
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2018-02-05 20:55:54 +08:00
Jerry Xu 7d46341ee4 rockchip: include: rk3128-cru: add same clk define for mipi dsi
Change-Id: I045ad0101c152648de2a0c53d160b2398367a6e4
Signed-off-by: Jerry Xu <xbl@rock-chips.com>
2017-11-29 16:20:19 +08:00
Jerry Xu de2eadf240 rockchip: include: add some define for mipi dsi
Change-Id: Ia125dff2293d4b41a26265ad46236f0429633753
Signed-off-by: Jerry Xu <xbl@rock-chips.com>
2017-11-29 16:19:00 +08:00
Francis Fan cd99aa8213 rockchip: rk322x: add PCLK_EFUSE_256 for dts file
Change-Id: I46c4f0f80b54a72acdba107ea290a45c231c3dda
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:56 +08:00
Elaine Zhang 3e3a3170d1 clk: rockchip: rk3128: support dclk_lcdc and aclk_vio setting
support vop clk setting freq, for uboot logo display.

Change-Id: I766bdc2c3a13d0ee92f81fbd7a30b7cc87c2dceb
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2017-10-23 15:38:07 +08:00
David Wu c95ecb1990 rockchip: dts: rk3128: Add SARADC at dtsi level
Change-Id: Ifcbda377d5b0eff50bd41cfc6141eb1f76211dc2
Signed-off-by: David Wu <david.wu@rock-chips.com>
2017-10-17 17:27:34 +08:00
Mark Yao 186f85721a drm/rockhcip: add drm rockchip display support
Change-Id: I5ef0e29d1e0855a7aa47bd0737835b79c53bf25a
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-10-17 15:04:16 +08:00
David Wu befbd723c2 rockchip: clk: Add rv1108 SARADC clock support
The clk_saradc is dividing from the 24M, clk_saradc=24MHz/(saradc_div_con+1).
SARADC integer divider control register is 10-bits width.

Change-Id: I1ff152b72a75680601f22c5b621de8b2198a6778
Signed-off-by: David Wu <david.wu@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 2e4ce50d1aca35d13944f48a7e15d0b63e86eb38)
2017-10-12 11:44:56 +08:00
Kever Yang 40d96d0bb5 rockchip: rk3128: add device tree file
Add dts binding header for rk3128, files origin from kernel.

Change-Id: I56042f44f131aecee9d91bf381c74be0da6d5064
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2017-09-29 09:36:13 +08:00
Philipp Tomsich 403e9cbcd5 rockchip: rk3368: add DRAM controller driver with DRAM initialisation
This adds a DRAM controller driver for the RK3368 and places it in
drivers/ram/rockchip (where the other DM-enabled DRAM controller
drivers for rockchip devices should also be moved eventually).

At this stage, only the following feature-set is supported:
 - DDR3
 - 32-bit configuration (i.e. fully populated)
 - dual-rank (i.e. no auto-detection of ranks)
 - DDR3-1600K speed-bin

This driver expects to run from a TPL stage that will later return to
the RK3368 BROM.  It communicates with later stages through the
os_reg2 in the pmugrf (i.e. using the same mechanism as Rockchip's DDR
init code).

Unlike other DMC drivers for RK32xx and RK33xx parts, the required
timings are calculated within the driver based on a target frequency
and a DDR3 speed-bin (only the DDR3-1600K speed-bin is support at this
time).

The RK3368 also has the DDRC0_CON0 (DDR ch. 0, control-register 0)
register for controlling the operation of its (single-channel) DRAM
controller in the GRF block.  This provides for selecting DDR3, mobile
DDR modes, and control low-power operation.
As part of this change, DDRC0_CON0 is also added to the GRF structure
definition (at offset 0x600).

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-08-13 17:12:33 +02:00
Marek Vasut 4157c472c3 ARM: dts: rmobile: Import DTS from Linux 4.12
Import the RCar Gen3 DTS and headers from upstream Linux kernel v4.12-rc6,
commit 6f7da290413ba713f0cdd9ff1a2a9bb129ef4f6c . This includes both M3
and H3 ULCB and Salvator-X boards.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2017-08-03 03:50:03 +09:00
Patrice Chotard fa87abb6b6 ARM: DTS: stm32: align DT clock declaration with kernel
Use the same clocks macro than the one used by kernel DT.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Vikas MANOCHA <vikas.manocha@st.com>
2017-07-26 11:26:52 -04:00
Beniamino Galvani 4a63a75c83 arm: dts: meson: import dts files from Linux 4.12
Import Amlogic Meson DTS files from Linux kernel version 4.12

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-07-26 11:26:48 -04:00
Tom Rini d43ef73bf2 Merge branch 'master' of git://git.denx.de/u-boot-rockchip 2017-07-11 14:21:50 -04:00
Kever Yang b647442ce8 rockchip: rk322x: add dts file
The dts files are from kernel and with modify to adapt U-Boot.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2017-07-11 12:13:46 +02:00
Jorge Ramirez-Ortiz ccaa83f802 ARM64: dts: hi3798cv200-poplar: add device tree bindings
Pulled from Linux 4.12-rc3

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-07-10 14:26:02 -04:00
Andy Yan bae2f282a9 rockchip: clk: Add rv1108 clock driver
Add clock driver support for Rockchip rv1108 soc

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-06-07 07:29:25 -06:00
Andreas Färber 37a0c60085 rockchip: rk3368: Add core start-up code for RK3368
The RK3368 is an octa-core Cortex-A53 SoC from Rockchip.
This adds basic support to chain-load U-Boot from Rockchip's
miniloader.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-06-07 07:29:19 -06:00
Tom Rini b07d044d5b Merge git://git.denx.de/u-boot-sunxi 2017-06-03 18:04:54 -04:00
Andre Przywara f98852bfa9 sunxi: A64/Pine64: update device tree from Linux
The Linux device tree for the Allwinner A64 SoC has changed a lot since
the U-Boot version was merged.
Let's replace the current DT with a exact copy of the Linux one as of:
commit c6778ff813d2ca3e3c8733c87dc8b6831a64578b
Merge: 0ff4c01 3c0e3abd
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Tue May 9 10:07:33 2017 -0700

This is the DT used in Linux 4.12-rc1.

Since U-Boot has an Ethernet driver (while Linux does not yet), we
provide the required DT nodes for it in an ...-u-boot.dtsi file, to both
mark them as U-Boot specific and to allow easier upgrading once Linux gets
the driver and its own binding later.
Compared to the existing Ethernet DT nodes we just slightly tweak the clock
and reset nodes in there to match the new bindings used by Linux for those.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com>
2017-06-01 09:25:30 +00:00
Álvaro Fernández Rojas 07661e7f50 MIPS: add support for Broadcom MIPS BCM6338 SoC family
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-05-31 14:49:55 +02:00
Álvaro Fernández Rojas 23a2168398 MIPS: add support for Broadcom MIPS BCM3380 SoC family
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-05-31 14:49:55 +02:00
Álvaro Fernández Rojas bf9012b808 MIPS: add support for Broadcom MIPS BCM6348 SoC family
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-05-31 14:49:55 +02:00
Tom Rini a375ff8e14 Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2017-05-18 17:17:45 -04:00
Ley Foon Tan 827e6a7e0d arm: socfpga: Add reset driver support for Arria 10
Add reset driver support for Arria 10.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
2017-05-18 11:33:17 +02:00
Peng Fan 993274f485 arm: dts: imx7: sync with Linux
Sync with Linux commit 308ac756("Merge tag 'gpio-v4.11-3'").

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefan Agner <stefan.agner@toradex.com>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: Stefano Babic <sbabic@denx.de>
2017-05-18 11:24:33 +02:00
Tom Rini 1f5541c881 Merge git://git.denx.de/u-boot-rockchip
This adds a new firefly-rk3399 board, MIPI support for rk3399 and
rk3288, rk818 pmic support, mkimage improvements for rockchip and a few
other things.
2017-05-10 17:40:11 -04:00