Commit Graph

13700 Commits

Author SHA1 Message Date
shengfei Xu 465b1b6c16 power: pmic: rk8xx: SYS shut down voltage select 3100mV
Let the CPU stop working earlier so that the last operation
of spinand can be maintained at a better power supply level.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I5bb008abaa6d5da3431f2edcee50579f7ab14eff
2021-02-24 11:14:56 +08:00
Sandy Huang feffd38e6d drm/rockchip: vop2: enable OTP en for rk3566
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ia44c3dec6b6d5b2f66b87d80a6f209138af05c40
2021-02-24 11:09:59 +08:00
Sandy Huang 11f5319074 drm/rockchip: vop2: add support lvds
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I6814be4bcb8764cb9a6d75022760506ecba0f6c0
2021-02-24 11:09:59 +08:00
Sandy Huang aeb5dd225d drm/rockchip: lvds: Add support RK356X LVDS
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Id7f31ae8a7090aa0f6f4983facaa798ab73f0b3e
2021-02-24 11:09:59 +08:00
Sandy Huang 22dd40273d video/drm: combo_phy: Add support RK356X LVDS
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ieb7cf88e00201540388599b063e9c77dd019d8e8
2021-02-24 11:09:59 +08:00
Sandy Huang 5f0cde7958 video/drm: display: add compatible rk356x lvds dts config
after this commit, can support parse the following two config:

1.
panel {
    ...

    display-timings {
        ...
    };

    port@0 {
	reg = <0>;
	panel_in_lvds: endpoint {
	    remote-endpoint = <&lvds_out_panel>;
	};
    };
};

2.
panel {
    ...

    display-timings {
        ...
    };

    ports {
        #address-cells = <1>;
	#size-cells = <0>;

	port@0 {
	    reg = <0>;
	    panel_in_lvds: endpoint {
		remote-endpoint = <&lvds_out_panel>;
	    };
	};
    };
};

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Idbcc31bbe29d00fe5ceea1f5041543cdfe9bc34e
2021-02-24 11:09:59 +08:00
shengfei Xu b9e9168c08 power: pmic: rk8xx: add not_save_power_en
add not_save_power_en to judge whether save the PMIC_POWER_EN register.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I6e2117ca947dacee41eead631a5c877bd6be3e7a
2021-02-23 11:26:28 +08:00
Jon Lin 8d4402d317 mtd: spinand: Support new devices
XT26G04C

Change-Id: I9004728fc1dfd03a54578fbf344171c4bdc3d69d
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-02-22 14:53:05 +08:00
Sandy Huang 7bdd0eb669 drm/rockchip: vop2: only port0 support RGB 10BIT output
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I51c5a25705d2cf7ecd05f9ae5e82b98f4536a698
2021-02-21 17:24:41 +08:00
Guochun Huang 10bd57236c video/drm: display: add support swap two channel data of MIPI
Change-Id: I44630143c7d59a0a7deff4d7b9ee690b621d1a0f
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2021-02-21 17:03:11 +08:00
Jason Zhu c90ee5c73d rockchip: spl: support low power detect
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ibcb5996369348d31248596dcdb5018ad6526786e
2021-02-21 15:41:23 +08:00
shengfei Xu c056ffb327 fuel gauge: rk817/rk809: add for spl
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I700d796d2b506c7defad416feba1074de185441c
2021-02-21 15:41:23 +08:00
Joseph Chen dd3fa9997d drivers: Makefile: use more strict name to add modules
Allow modules to be omitted from CONFIG_SPL_POWER_SUPPORT.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Iaa3291d8bfc99c24ac01897fccb9ea7d6677927d
2021-02-21 15:41:23 +08:00
Joseph Chen 743acd001a power: pmic: add config SPL_DM_PMIC
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I43251c3802d7f3284b64ff9da728741d8d587255
2021-02-21 15:41:23 +08:00
Sandy Huang 2b2e3d7041 drm/rockchip: vop2: add support rk3566
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Iab0e2f626a0a6ce765bf584a7b815268a338cb85
2021-02-21 15:39:27 +08:00
Guochun Huang b014c5e23f video/drm: display: rk356x series drive mipi pixdata on posedge
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: I4494ca32618be93aa53907800ce08780f966e137
2021-02-21 15:17:44 +08:00
Wenping Zhang 9876686da0 video/rk_eink: add virtual width and height support.
Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
Change-Id: I60f026b0aa2ac62b6827675a7e780418d0928386
2021-02-21 14:22:49 +08:00
Guochun Huang 20618a45d9 video/drm: display: fix display route for compatibility
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: I70e237967d2074d5a341d86f69c2791b5ba183ff
2021-02-21 14:22:13 +08:00
Guochun Huang 63f3640c3a video/drm:: dsi: the max bit rate is 1.2Gbps per lane in rk3568
Change-Id: I7a9c7fe6eeb57a23694761b4a6ad61d05e52dd07
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2021-02-21 10:44:44 +08:00
Jon Lin 1f161166c6 mtd: spinand: Support GD5F4GQ6UExxG
Change-Id: Ib72399ca0166ec82fdaf900ac51059076c155de3
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-02-06 12:07:57 +08:00
Joseph Chen f06413e433 cpu: rockchip amp: support set PE state
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I6b5eb621af1472983cdfbaebfdaa61a4c85b1856
2021-02-05 17:57:00 +08:00
Sandy Huang 52ee18acb8 drm/rockchip: vop2: add support port1 to mipi dsi
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Iee86d5da9df9ae185b261a46e3919375f8f0fd2d
2021-02-05 11:21:55 +08:00
Yifeng Zhao 0bcaecc8ee drivers: dfu: add DFU to read and write to MTD base storage
Add DFU to read and write to MTD base storage.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I84cb160b182c31d7f84ed700896a4970845a3ca8
2021-02-04 17:24:07 +08:00
Yifeng Zhao ca42250799 drivers: usb: add usb pid for dfu
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Id823187c0b74fe99c4fdff7fdb85f6d995ed9d28
2021-02-04 17:19:48 +08:00
Joseph Chen 3f0522ce8f rng: rockchip: add hardware rand library
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Id22c5725158d86cc8a2ff80fdf09b0146d04be41
2021-02-03 17:47:51 +08:00
Jason Zhu 6221c090c7 dm: mmc: add more conditions to judge whether print the info
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I94f60c9102c8708d7fa84e729762bfe2956d4fd5
2021-02-01 10:21:45 +08:00
Jon Lin cc7b616de8 mtd: spinand: Enable FM25S02A QE bits
Change-Id: I247212779443f0166a633968203824e6552d669e
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-02-01 10:21:30 +08:00
Lin Jinhan a3341e9017 drivers: crypto: drop rng api from crypto driver
rng module is not belongs to crypto driver anymore.

Change-Id: I6d837397621267edb586034ff87b82fc33a30d5b
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2021-01-30 09:02:02 +08:00
Lin Jinhan 3ebc872de9 UPSTREAM: rockchip: rng: Add a driver for random number generator(rng) device
Add a driver for the rng device found on rockchip platforms.
Support rng module of crypto v1 and crypto v2.

Change-Id: I5be779aa08452977965d032e366f4e36c930b12e
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
(cherry picked from commit b072d00c225e5b8147ed7444ebeae4ddd336870b)
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2021-01-29 17:50:52 +08:00
Sughosh Ganu 28507ac336 UPSTREAM: dm: rng: Add random number generator(rng) uclass
Add a uclass for reading a random number seed from a random number
generator device.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
(cherry picked from commit a2487684003b0bc380955e1a38cdd71da3ca4366)

Change-Id: Ife2287132db695181d663653f2ceaab0e343b41f
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2021-01-29 17:50:52 +08:00
William Wu 631619a42f usb: dwc3-generic: support host mode if dr_mode is otg
The Rockchip DWC3 controller only support DRD mode (Dual Role
Device), but not support OTG mode. So if the dr_mode in DTS is
configured to OTG, then we force it to Host mode. This patch
does not affect the device function of OTG, such as rockusb.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I806623aa9b0bb8b595417755db7d9c6b6c4f38f1
2021-01-29 14:57:09 +08:00
Wenping Zhang 074c7ac45f video/rk_eink: Don't read image from emmc to ddr if it's already loaded.
Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
Change-Id: I02b141e5adb8391bf85ce77c6a7e280f645c96d5
2021-01-28 09:33:56 +08:00
Joseph Chen b978e52ca5 power: pmic: rk8xx: inactive pmic_sleep by default
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ia5729341c5a94d0109a8a28e48ad8eb79b80962e
2021-01-27 17:11:30 +08:00
Joseph Chen 06b61291ba power: charge animation: add pmic suspend/resume
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ia1b6d232b0a9c0d0ce2e8ee47ae84aaa6d40bfac
2021-01-27 17:11:30 +08:00
Joseph Chen 40db74046c power: pmic: rk8xx: implement suspend/resume callback
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I46b13886fcb3e7733155cd6f5fce15473c439da3
2021-01-27 17:11:30 +08:00
Joseph Chen 2a7051be6c dm: pmic: add suspend/resume callback
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Iaa3b0b7f7b3a0563370baace876e095deb64c28f
2021-01-27 17:11:30 +08:00
Jason Zhu 327b5d5723 dm: mmc: print the cmd index when sending cmd error occur
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I08aab678c5e539000fadccf4a8ad9e97e3693894
2021-01-21 18:12:47 +08:00
Jason Zhu 34d21c9ad8 UPSTREAM: mmc: dw_mmc: Calculate timeout from transfer length
The current 4-minute data transfer timeout is misleading and broken.
Instead of such a long wait, calculate the timeout duration based on
the length of the data transfer. The current formula is the transfer
length in bits, divided by a multiplication of bus frequency in Hz,
bus width, DDR mode and converted the mSec. The value is bounded from
the bottom to 10000 mSec.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I168b6ceba917d3e621559a92a63fac78abca6bff
(cherry picked from commit 4e16f0a67d80b4ce11995b870b5d9c8d11266d0d)
2021-01-19 16:57:34 +08:00
Jianqun Xu 7862d7bff3 UPSTREAM: core: uclass: fix to u32 for phandle of fdt
The function has a little fix during upstream review, do fix to sync
with upstream.

Change-Id: I9e1c43a660b2f83395d1639aa962988ca04494e5
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-01-19 10:01:24 +08:00
Jon Lin 2a2a073c3c mtd: spinor: mx25u25635f enable quad read
Change-Id: I66ef7cf13b58b1a3c2a4e8ea78c1c3a8090c57df
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-01-19 10:00:57 +08:00
Jon Lin 8c4105cc49 mtd: spinand: Support BWJX08K
Change-Id: Iddcc569cb4865bc73d0829fd5e6a33c7c85632b5
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-01-19 10:00:49 +08:00
Jon Lin 69bb6ffab4 mtd: mtd_blk: Only reserve for last partition with grow tag
Change-Id: Icd3bd87b45bdb3af6688269a2332463f570f4d46
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-01-18 09:03:19 +08:00
Jon Lin ce9d2743ba mtd: mtd_blk: spinor reserved area aligned to 64KB
1.reserve for GPT
2.kernel spinor erasesize is 64KB

Change-Id: I32a5b26f8f39b4b226ec54342ce5d8d3d71f1c4d
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-01-18 09:03:19 +08:00
Wyon Bi d63e2d24c5 video/drm: analogix_dp: Fix voltage_swing/pre_emphasis level calculation
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I07a071b77a254cbe940b4df4dd6b52b069339076
2021-01-15 15:58:04 +08:00
Tang Yun ping c69667e0e2 drivers: ram: sdram_common: add os reg v3 define
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: I2cedcddcebdfd32da113edd1e18d2498b5813e22
2021-01-14 11:39:53 +08:00
Tang Yun ping 1a6462e18b drivers: ram: sdram_common: add 4rank support for sdram_cap_info
Signed-off-by: Tang Yun ping <typ@rock-chips.com>
Change-Id: Icda7bdc73e6c36c1351f0671b374a9d906dafec8
2021-01-13 16:36:10 +08:00
Weixin Zhou 39c952ae4e video/rk_eink: add poweren for tps65185
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Icc6059a723f9e5d0b90c623497f0b03adea9e726
2021-01-13 11:40:59 +08:00
Finley Xiao fd7b518283 rockchip: otp: Add support for rk3568
This adds the necessary data for handling otp on the rk3568.

Change-Id: Id5e8a3a1561604bb307ef17e06d11d7e62d8a840
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2021-01-13 09:32:47 +08:00
Wyon Bi 8d52d662b5 clk: rockchip: rk3288: Fix i2c clk rate calc
Change-Id: I083e2b8ceaa3eee7729174aa2e17b8a08cec9c05
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-01-13 09:00:50 +08:00
Jason Zhu a2875f15a8 dm: blk: fix spi flash uclass different error when use mtd block
Add more condition to decide which dev is "mtd 2".
More info seen in 82ee425415.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Iea84b5a7307969dad785f3136b0af8b9f45e94f6
2021-01-11 11:12:58 +08:00