Commit Graph

839391 Commits

Author SHA1 Message Date
Liang Chen
5f6e24b4f5 arm64: dts: rockchip: add gpu in thermal control for rk3328
add gpu as a cooling device in thermal control

Change-Id: Ia9db5df7b2d5d9ed19672f64f8924877016732c2
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
2019-02-27 20:22:30 +08:00
algea.cao
4b7a934f4d ARM64: dts: rk3328: add tve display node
support rk3328 cvbs.Some display parameter can be configured,
such as saturation.For more information, please check
Documentation/devicetree/bindings/display/rockchip/rockchip_drm_tve.txt

Change-Id: Ifcc074a34910b58a26fc309fc601494562851025
Signed-off-by: algea.cao <algea.cao@rock-chips.com>
2019-02-27 20:22:30 +08:00
Zheng Yang
1add4a9219 ARM64: dts: rk3328-evb: set hdmi ddc clock rate to 50KHz
Change-Id: I59bc54a17d697e742a3753baba692f3541f742e4
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2019-02-27 20:22:30 +08:00
Jung Zhao
a77e3758de ARM64: dts: rk3328-evb: enable vepu & h265e default
Change-Id: I94685dbeea3ceffa106593ff597f50404f58f34a
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
2019-02-27 20:22:30 +08:00
Liang Chen
a2fa1f20b4 arm64: dts: rk3328: dmac: add peripherals-req-type-burst
Change-Id: I097e13f3e9e88c5624bcd67eaaf66d773465939b
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2019-02-27 20:22:30 +08:00
Randy Li
61f4e7a339 arm64: dts: rockchip: enable video decoder for RK3328 EVB
This commit would enable the VDPU and RKVDEC devices.
The VDPU works in the non combo mode.

Change-Id: I643350d5a2ac17759984fda2e95fb2b82701e7cf
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2019-02-27 20:22:30 +08:00
Randy Li
1d45a19b37 arm64: dts: rockchip: add video decoder nodes on rk3328
Jung and I meet some problem the video decoder, so
we just release the VDPU standalone this time.

It seems that the iommu can't attach to two different
IP at the same time.

Change-Id: I24d73cd5ab2c3d32da6ef29661061c7fda9186f2
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2019-02-27 20:22:30 +08:00
Sugar Zhang
b594c9c7bd arm64: dts: rk3328-evb: enable hdmi audio
Change-Id: Ic67744ac5554b90b6d9f85eeedf4721562f8155f
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2019-02-27 20:22:30 +08:00
Liang Chen
699b04e5d1 ARM64: dts: rockchip: add cpu version in cpuinfo for rk3328
Change-Id: Ief9dd80db35b7b55285b6773f270893a66da5f9d
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-02-27 20:22:30 +08:00
William Wu
9776c45afe arm64: dts: rockchip: add linestate check dis quirk for rk3328 dwc3
rk3328 dwc3 has a problem that USB 2.0 MAC lineState not
reflect the expected line state (J) during transmission.
Add this quirk to add the ipgap between (tkn to tkn/data)
with 40 bit times of TXENDDELAY, and linestate is ignored
during this 40 bit times delay.

Change-Id: I76895476bff94c2198a5d8df7e73b9d54fbb96ed
Signed-off-by: William Wu <william.wu@rock-chips.com>
2019-02-27 20:22:30 +08:00
Chen Liang
eca0e02603 ARM64: dts: rockchip: add cpuinfo support for rk3328
Change-Id: Iaaa400c09c2fb7c0d5e96fa4217065fa14066fc1
Signed-off-by: Chen Liang <cl@rock-chips.com>
2019-02-27 20:22:30 +08:00
chenjh
7e4f68a7e8 arm64: dts: rk3328-evb: enable fiq mode
Change-Id: Ic0f6f95488b6575ebb9c4466fd43bf14f7214210
Signed-off-by: chenjh <chenjh@rock-chips.com>
2019-02-27 20:22:30 +08:00
chenzhen
6344328d01 ARM64: dts: rk3328-evb: enable gpu device
And set its regulator.

Change-Id: I0703ee39059a5d63a5bc259cfc66ca6203819015
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
2019-02-27 20:22:30 +08:00
Hans Yang
724a943135 arm64: dts: rockchip: disable gmac support for rk3328-evb
Change-Id: I723bf633087713c3ebcfd92eb42e8c7005ecbe38
Signed-off-by: Hans Yang <yhx@rock-chips.com>
2019-02-27 20:22:30 +08:00
Xu Xuehui
8f8f869f93 arm64: dts add Rockchip RK3328 EVB board for wifi
Change-Id: Ia6588ebd31e34230ff137edc60cb7ffc433391e5
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2019-02-27 20:22:30 +08:00
William Wu
af703238fd arm64: dts: rockchip: add grf handle for rk3328 u3phy
The USB 3.0 PHY need to config grf when change between
USB 2.0 only and USB 2.0/3.0 mode, so we add grf property
for u3phy node.

Change-Id: I4ff2670d0637e9d0cbae06f5e9efbde9a8513bb3
Signed-off-by: William Wu <wulf@rock-chips.com>
2019-02-27 20:22:30 +08:00
William Wu
6b3b2f8d2d arm64: dts: rockchip: add u3 autosuspend quirk for rk3328
This patch adds a quirk to disable rk3328 xHCI controller
USB3 port autosuspend function, and USB2 port autosuspend
function is still enabled.

Change-Id: Ie5e6883811b09a9a0d839ce59d8f9c4ad8ad3378
Signed-off-by: William Wu <wulf@rock-chips.com>
2019-02-27 20:22:30 +08:00
Liang Chen
fabb757c66 arm64: dts: rockchip: add gmac support for rk3328-evb
Change-Id: I05e4eb2d904809a310b12f0de8ae274b90dd583a
Signed-off-by: david.wu <david.wu@rock-chips.com>
2019-02-27 20:22:30 +08:00
david.wu
73f1562a58 arm64: dts: rockchip: add io-domain support for rk3328-evb
Change-Id: I15fb97655419e723ce001b8900b413dac3e291e8
Signed-off-by: david.wu <david.wu@rock-chips.com>
2019-02-27 20:22:30 +08:00
William Wu
a6278a1a85 arm64: dts: rockchip: enable usb3 controller for rk3328-evb
Change-Id: I49c152476f6c87195e6b68a9477d84d8bfcc1a70
Signed-off-by: William Wu <wulf@rock-chips.com>
2019-02-27 20:22:30 +08:00
William Wu
0393720444 arm64: dts: rockchip: add usb3 controller node for rk3328
Change-Id: I350f46a839ec2266a129c8902aebe3a0480c074d
Signed-off-by: William Wu <wulf@rock-chips.com>
2019-02-27 20:22:30 +08:00
William Wu
86d36dee6a arm64: dts: rockchip: enable usb3 phy for rk3328-evb
Change-Id: I5ab06e9db355575e828ce004c1d3ce65e4717c95
Signed-off-by: William Wu <wulf@rock-chips.com>
2019-02-27 20:22:30 +08:00
William Wu
a4be5e465b arm64: dts: rockchip: add usb3 phy nodes for rk3328
This patch adds USB 3.0 PHY grf node and apb node
for rk3328 USB 3.0 module.

Change-Id: I9d4e6c6d6792ac5fd6c2a4d7cc902f1ff0cf4ef1
Signed-off-by: William Wu <wulf@rock-chips.com>
2019-02-27 20:22:30 +08:00
Jung Zhao
998234d929 ARM64: dts: rk3328: add vepu & h265e dts node
Change-Id: I2990ac7e43d4b2d2efbf5e9cf3abe124e8767648
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
2019-02-27 20:12:04 +08:00
Zheng Yang
2421ee1a93 arm64: dts: rockchip: rk3328-evb: enable hdmiphy
Change-Id: I173ec8ec759a1404f31718c8647cf6eb6315061f
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2019-02-27 20:12:04 +08:00
Zheng Yang
f7bcd83fcb arm64: dts: rockchip: rk3328: hdmi enable inno-hdmi-phy driver
Change-Id: I3d4c6dfcaffeb6679666fcedf58e645d26205efa
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2019-02-27 20:12:04 +08:00
Zheng Yang
44846699b9 ARM64: dts: rk3328-evb: enable hdmi
Change-Id: I42b74009d0ddded9afc10b24e453ca26808bd18e
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2019-02-27 20:12:04 +08:00
xuhuicong
be9c12ae54 ARM64: dts: rk3328: add hdmi display node
Change-Id: Ie4821b0c5e49c7b4ee083a2250a71f8ee3edb4e1
Signed-off-by: xuhuicong <xhc@rock-chips.com>
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2019-02-27 20:12:04 +08:00
Hecanyang
ca19affb32 arm64: dts: rockchip: add rk3328 ddr relate node
except add note to existing dts file, also add ddr timing and de-skew's
dts file.

Change-Id: I92b7e9c2c6572babd4be00beadbbb75aae431707
Signed-off-by: CanYang He <hcy@rock-chips.com>
2019-02-27 20:12:04 +08:00
Sugar Zhang
64409f25ab ARM64: dts: rk3328-evb: add spdif sound
Change-Id: I76adc6286d831f513da3f5547975d7fcd3c392e9
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2019-02-27 20:12:04 +08:00
Sugar Zhang
226d880fbd ARM64: dts: rk3328-evb: add support for internal codec sound
Change-Id: I8b1705f592d42e2f1d351ce5a7880993f7757b94
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2019-02-27 20:12:04 +08:00
Sugar Zhang
cbc4a4a938 ARM64: dts: rk3328: add acodec node
Change-Id: I5d564066fa1d399c2c4fabf753eb6f698136a52c
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2019-02-27 20:12:04 +08:00
Sugar Zhang
fea0843ea0 dt-bindings: clock: rk3328: add pclk_acodec id
Change-Id: I3b0e2d2da5f919ed88f599823784aefa5e9a330c
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2019-02-27 20:12:04 +08:00
Mark Yao
1756c09343 ARM64: dts: rk3328: add vop display node
Change-Id: I60322993b782a6d04ca7e46fdc114a0fbc43778a
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2019-02-27 20:12:04 +08:00
Liang Chen
32f2ed509e dt-bindings: clock: rk3328: add hclk_vio id
Change-Id: Ib8b5e0ce098da5921ca88d4d8543f555c943ad27
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-02-27 20:12:04 +08:00
Wu Liang feng
7bc005a300 ARM64: dts: rk3399: add reg address for dwc3
This patch doesn't fix any issue, but conforms
to linux coding style.

Change-Id: I87326a21594b905ea5791f73efc1cea0299abe4d
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2019-02-27 19:22:42 +08:00
Huibin Hong
cec8f2f9f3 arm64: dts: rockchip: add burst mode for rk3399
Rk3399 support single and burst mode, and flushp instruction.
But burst mode improve transfer efficiency.

Please refer to:
Commit 8e770f371c
"dmaengine: pl330: add burst mode according to dts config"

Change-Id: I2eb36723697cf548dc75aca0e5a276a86cd2419d
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2019-02-27 19:20:23 +08:00
Elaine Zhang
4e1e903581 ARM64: dts: rk3399: clk: set armclkb 816M when clk init
set armclkb 816M to slove the crash,which reset core voltage below 0.85V.
So make sure the 0.8V voltage is enough for the init clk freq.

Change-Id: I4dba25fdfd610c0751f50ce09283c32a9b3f420f
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-02-27 19:18:11 +08:00
Jianqun Xu
78f76cf2f6 ARM64: dts: rk3399: add node support for reboot-mode
Rockchip RK3399 SoCs support reboot with modes, such as recovery mode,
loader mode and normal mode.

Change-Id: I96ed872f849c2b3b06d236248995db18be070960
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2019-02-27 19:11:25 +08:00
Yakir Yang
4799336d8e arm64: dts: rockchip: add HDMI DDC pinctrl for RK3399 HDMI
Default to enable the HDMI DDC internal module.

Change-Id: I14e4e3f0b5abb37eb0bb4451e2fcf48bceb3e3b2
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
2019-02-27 19:10:47 +08:00
xuhuicong
99ff4f887c ARM64: dts: rk3399: add HDMI DDC/CEC pinctrl
Change-Id: Ic3417a5153ceabad3f9c69ffe5b6fa542e7a84c1
Signed-off-by: xuhuicong <xhc@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2019-02-27 19:09:21 +08:00
Tony Xie
3cb35d5493 ARM64: dts: rk3399: support arm64 cpuidle-dt
Change-Id: I5506a6647985f44de352f097cf809b31f1917e6a
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2019-02-27 19:08:33 +08:00
Shawn Lin
e944f54685 ARM64: dts: rk3399: assign clk parent and rate for SCLK_EMMC
Let's assign clk parent and rate for SCLK_EMMC to meet the
requiremen.

Change-Id: I3730a2124494da51717b1756f488f9df5bcd6423
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2019-02-27 19:07:28 +08:00
Xing Zheng
861969884f ARM64: dts: rk3399: assign VOP parent and rate for ACLK/HCLK
Change-Id: Ifcce7764eb709386e40140c58299468ea835fd8c
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2019-02-27 19:07:28 +08:00
chenzhen
24eae037d6 ARM64: dts: rk3399: gpu: add subnode for mali-simple-power-model
Change-Id: I0bd03634631ed30556cc45455582b075692cceba
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
2019-02-27 19:07:28 +08:00
Tao Huang
1691499f75 soc: rockchip: add CPU_XXX config
For build kernel only support the given CPU.

Change-Id: I3d4790779d0ad0ecff6661ffb0b70e2df287fd5a
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-02-26 18:32:23 +08:00
Caesar Wang
3d4b748dd7 soc: rockchip: power-domain: export idle request
We need to put the power status of HEVC IP into IDLE unless
we can't reset that IP or the SoC would crash down.
rockchip_pmu_idle_request(dev, true)---> enter idle
rockchip_pmu_idle_request(dev, false)---> exit idle

Change-Id: I76733efd2de4f7ee183c1b6bd1545d60038ee31b
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Randy Li <randy.li@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-02-26 18:27:48 +08:00
Tao Huang
54c9a317b4 soc: rockchip: power-domain: add pm_domains.h
Change-Id: I889a7da10605e70af635e8b7fac26bf26fe6506f
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-02-26 18:21:40 +08:00
Elaine Zhang
4ed1dc1021 regulator: fan53555: fix up the dcdc is disabled when reboot
Before reboot if the DCDC is disabled,
the DCDC is still disabled after restart.
We have an method to workaround:
Use vsel pin to switch the voltage between value in FAN53555_VSEL0
and FAN53555_VSEL1. If VSEL pin is inactive, the voltage of DCDC
are controlled by FAN53555_VSEL0, when we pull vsel pin to active,
they would be controlled by FAN53555_VSEL1.
In this case, we can set FAN53555_VSEL1 to disable dcdc,
So we can make vsel pin to active to disable dcdc,
VSEL pin is inactive to enable DCDC.

Change-Id: I14c823ed11dc3369044ad2ed0b53a6027acbccd0
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-02-26 18:18:05 +08:00
Elaine Zhang
57fa46b868 regulator: fan53555: add regulator-initial-mode to set default mode
regulator-initial-mode: default mode to set on startup
regulator-initial-mode is set as:
        REGULATOR_MODE_FAST                     0x1
        REGULATOR_MODE_NORMAL                   0x2
Example:
 vdd_cpu_b: syr827@40 {
                compatible = "silergy,syr827";
                reg = <0x40>;
                vin-supply = <&vcc5v0_sys>;
                regulator-compatible = "fan53555-reg";
                regulator-name = "vdd_cpu_b";
                regulator-min-microvolt = <712500>;
                regulator-max-microvolt = <1500000>;
                regulator-ramp-delay = <1000>;
                fcs,suspend-voltage-selector = <1>;
                regulator-always-on;
                regulator-boot-on;
                regulator-initial-state = <3>;
                regulator-initial-mode = <1>;/*1:pwm 2: auto mode*/
                        regulator-state-mem {
                        regulator-off-in-suspend;
                };
        };

Change-Id: I4d3bbd50fd40531113f2cc6fe63905e24888a752
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-02-26 18:18:05 +08:00