Enable following network config:
- Enable Bridge function
- Enable ptp1588 function
- Enable motorcomm PHY for Rk3506
Change-Id: I167fd678c23ffef9905c5cb655473056f31b754f
Signed-off-by: David Wu <david.wu@rock-chips.com>
Support rk3506-evb1.
CONFIG_SND_SOC_ROCKCHIP_MULTICODEC sepends on INPUT and EXTCON.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Id5516a3c5f829d7d443a4642ead95897f3e65f4d
before:
text data bss dec hex filename
3605674 1582076 97992 5285742 50a76e vmlinux
after:
text data bss dec hex filename
3606058 1582340 97992 5286390 50a9f6 vmlinux
Change-Id: I34defe68829b16fcce24477137eed6b8bd92b4cc
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This patch adds "rockchip,gpio-vbus-det" and ""rockchip,gpio-id-det"
property for otg port when using GPIO for USB vbus and id detection.
Change-Id: Id3cb58aea41b6b8807b364db932f42021e2853a8
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
This patch register gpio id notifier to support USB2PHY to get extcon
message from extcon-usb-gpio.c driver. The extcon-gpio-usb.c driver
returns the state based on the ID and Vbus pin values as shown below.
State | ID | VBUS
----------------------------------------
[1] USB | H | H
[2] none | H | L
[3] USB-HOST | L | H
[4] USB-HOST | L | L
There is no need to control usb bvalid when USB_HOST state is true.
When USB_HOST state is true, we need to configure the iddig related
registers to trigger the controller's ID interrupt and set the
controller to HOST mode. When USB_HOST state is false, we need to
restore the register configuration.
Change-Id: Ia17fa67f5a26b2e5d989ede23ee6243cdc52f05f
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
The dsp_h/dsp_sty calculation for rk3506 is the same as
rk3576 vopl. The dsp_h/dest->y1 must be halved to ensure
display correctly.
Change-Id: Ia041489bd2795325519907b8a07f69fc1b3f0680
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
rk3506 SOC has two versions, which are rk3506g and rk3506b. They both
have two otg ports and uses one USB PHY with two ports. The OTG0 port
support BC1.2 detect.
They are different in that rk3506g don't have vbus and id detect pin
and use gpio to replace it. We use the extcon-usb-gpio.c driver to
manage the interrupts. If we get the EXTCON_USB state, it means that
the vbus is high and iddig is high, we enable the bvalid_phy_con to
trigger bvalid interrupt.
Change-Id: Iac0d0a992ee2d2f9664bea36d06f6b060a5bfb99
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
The process of sending commands through mcu display interface
in rk3506 is the same as rk3576 vop lite.
Change-Id: Id2d1a072befb5f13a6073ec854dab193c318f1b4
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
The version read from reg VOP_LITE_VERSION is VOP_VERSION(2, 0xc),
which is the same as RV1106. But there are many differences
between RV1106 vop and RK3506 vop, we set the version to
VOP_VERSION(2, 0xe) on the software.
Change-Id: I3f6e1e24d839aaab73b728d87cfa0738c23d540b
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Since the pdm gain ctrl is moved to new register.
Change-Id: I794cba30256b011816a0894928c9377ceb90f381
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
enable dsiphy of lane0 and lane1 for rk3506
Change-Id: I939794c765d56f49a4cc91097d7174a6a3396654
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com>
This adds the necessary data for handling otp on the rk3506.
Change-Id: I370c60b768674dfcda3942a511a120a56d250bb6
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
It is needed to enable both dclk_bypass and data_bypass
in mcu mode.
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I019a2242a6566fa5cfad0d9b981f020dc755c241
Add the clock tree definition for the new RK3506 SoC.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ib5e47bd03620cb7540fa827e29425c243f633a82
Add the dt-bindings header for the rk3506, that gets shared between
the clock controller and the clock references in the dts.
Add softreset ID for rk3506.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Id92261ad2a6cd68d192f2159f0f7f5edffa60a2d