Commit Graph

1272169 Commits

Author SHA1 Message Date
Finley Xiao
ea489c07b8 ARM: rk3506_defconfig: Enable CONFIG_NVMEM_SYSFS
Change-Id: Id0d8b371f80a054006b7283f24ecd7362bc28b46
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-07-18 10:11:45 +08:00
Jianwei Zheng
37df3b45c5 ARM: rk3506_defconfig: Enable Dwc2 Config
Change-Id: Ic2b42cccc09781816624e84fffd8266f86cd2dd5
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
2024-07-18 10:11:45 +08:00
Tao Huang
6f3fe0486f ARM: rk3506_defconfig: Enable CONFIG_DEBUG_USER
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>
2024-07-18 10:11:45 +08:00
Finley Xiao
2266ce5d46 ARM: rk3506_defconfig: Enable CONFIG_ROCKCHIP_CPUINFO
Change-Id: I526f32818e194074aa1dcafb9c42ea3cc5ad8d45
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-07-18 10:11:45 +08:00
Jason Zhu
67413649cd ARM: rk3506_defconfig: enable CONFIG_SND_SOC_ROCKCHIP_PDM_V2
Change-Id: Ib19b3af705d025d5a4fd56207f563bd3103345fd
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-07-18 10:11:45 +08:00
Hans Yang
d6ca723ac9 ARM: rk3506_defconfig: add configs for drm and adb
Change-Id: I7f1f2790e4b9b6b46caf1729f0c660ae57b77752
Signed-off-by: Hans Yang <yhx@rock-chips.com>
2024-07-18 10:11:45 +08:00
Jon Lin
3a0515b9af ARM: rk3506_defconfig: Enable SPI Nand support
Change-Id: Ib75006a6dc1feb8f1c54d08bc4c7e7ab8e931fc4
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-07-18 10:11:45 +08:00
Huibin Hong
279bf9a70e ARM: configs: rk3506: add rk3506_defconfig
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I455bb3d3857b33c3fd35750b15b15c52a3a09130
2024-07-18 10:11:45 +08:00
Jianwei Zheng
6d7bf252c8 dt-bindings: phy: rockchip-inno-usb2: add gpio-vbus-det and gpio-id-det property
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>
2024-07-18 10:11:45 +08:00
Jianwei Zheng
0f69a9b1be phy: rockchip: inno-usb2: Support GPIO ID detect for USB2PHY
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>
2024-07-18 10:09:42 +08:00
Zefa Chen
66cce2b659 media: rockchip: flexbus cif add support for rk3506
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I2b299246e7392e4b27ddd5aa00d9f49ede3014cb
2024-07-18 10:09:42 +08:00
Zefa Chen
f32ebe0492 media: rockchip: flexbus cif fixes error of memops
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I27d479a9d80ae2df788e3166d4ac2ed8f71d5fd2
2024-07-18 10:09:42 +08:00
Wesley Yao
773eba05b5 mfd: rockchip-flexbus: Adjust register macro
Change-Id: I8564dce3566c0afb91d5fbdedafc27468f7d4fce
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2024-07-18 10:09:42 +08:00
Damon Ding
28c5eb68a5 drm/rockchip: vop: fix the dsp_h/dsp_sty calculation for rk3506
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>
2024-07-18 10:09:42 +08:00
Jianwei Zheng
92512bbb18 phy: rockchip: inno-usb2: add usb2 phy support for rk3506
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>
2024-07-18 10:09:42 +08:00
Jon Lin
7dcfe10dc4 spi: rockchip-flexbus-fspi: Support FLEXBUS version 0x010D0844
Change-Id: Ibe3f7ce0ac25b207f66ff9712c1e4c96b7687027
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-07-18 10:09:41 +08:00
Jon Lin
6487d8f101 mfd: rockchip-flexbus: Support RK3506 fspi mode
Change-Id: I3ab60263033c0b0a650ac123c958f0665ec3b089
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-07-18 10:09:41 +08:00
Jason Zhu
006610d33d ASoC: codecs: support rk3506 acodec
Change-Id: Ieaab0511bebfc0cfdda4cd4b05848adb8f87ac5c
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-07-18 10:09:41 +08:00
Damon Ding
e15a9b2119 drm/rockchip: vop: add mcu display support for rk3506
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>
2024-07-18 10:08:45 +08:00
Damon Ding
1e8819482b drm/rockchip: vop: fix vop version to VOP_VERSION(2, 0xe) for rk3506
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>
2024-07-18 10:08:45 +08:00
Hongming Zou
f9b44b9420 phy/rockchip: inno-dsidphy: add support rk3506
Change-Id: I128c62bb7393de6cd301e5ad159df2f1854778be
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com>
2024-07-18 10:08:45 +08:00
Jason Zhu
08a7064ac5 ASoC: rockchip: pdm_v2: support pdm gain ctrl in rk3506
Since the pdm gain ctrl is moved to new register.

Change-Id: I794cba30256b011816a0894928c9377ceb90f381
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-07-18 10:08:45 +08:00
Hongming Zou
35cee86e0b drm/rockchip: dsi: Add support for rk3506
enable dsiphy of lane0 and lane1 for rk3506

Change-Id: I939794c765d56f49a4cc91097d7174a6a3396654
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com>
2024-07-18 10:08:45 +08:00
Wesley Yao
9c318483fa iio: dac: rockchip-flexbus-dac: Support RK3506
Change-Id: I85d46dc49b6dffc987c154725d6afbea7e1aa3e7
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2024-07-18 10:08:45 +08:00
Wesley Yao
4ba43fe12d iio: adc: rockchip-flexbus-adc: Support RK3506
Change-Id: I2c0b2c61b2ecd11781f3493268dfaa22e560ea49
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2024-07-18 10:08:45 +08:00
Wesley Yao
17ba1d1825 mfd: rockchip-flexbus: Support RK3506
Change-Id: Ie33e497abdbdd7e614ddcaa9c2056eb06de705bf
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2024-07-18 10:08:45 +08:00
Ye Zhang
f492da7b07 thermal: rockchip: Support RK3506 SoC in the thermal driver
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I006c0fae994ffa00557a62b8da8355cefc96f53a
2024-07-18 10:08:45 +08:00
Lin Jinhan
84fe01e06e crypto: rockchip: Kconfig: select crypto v3 if RK3506
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I4e617eaac045d111bdd09bfedbd086cf5857df49
2024-07-18 10:08:45 +08:00
Finley Xiao
76642536d5 nvmem: rockchip-otp: Add support for rk3506
This adds the necessary data for handling otp on the rk3506.

Change-Id: I370c60b768674dfcda3942a511a120a56d250bb6
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-07-18 10:08:45 +08:00
David Wu
f0e2691515 ethernet: stmmac: dwmac-rk: Add RK3506 GMAC support
Change-Id: I1fbb1adbc09f6575b304975b934954d5e603faeb
Signed-off-by: David Wu <david.wu@rock-chips.com>
2024-07-18 10:08:45 +08:00
Jason Zhu
76d1edc652 ASoC: codecs: rk_dsm: support rk3506
Change-Id: I7962f87ebece05e444d86e79605521421124ced8
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-07-18 10:08:45 +08:00
Yu Qiaowei
8962a64e90 video: rockchip: rga3: support RK3506
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Idc97b31050002130cb2ce07b53f8e42e9acaaa76
2024-07-18 10:08:45 +08:00
Yu Qiaowei
0d6962db93 video: rockchip: rga3: add support guass3x3
Change-Id: I75f6d899986f9ced6beabaa9b4e67d53b5d266d6
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-07-18 10:08:45 +08:00
Ye Zhang
7bcacad517 pinctrl: rockchip: add rk3506 rmio support
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I1de1e16f0780a34c72e69262914ba8073375db02
2024-07-18 10:08:45 +08:00
Ye Zhang
0ac32f541e pinctrl: rockchip: add rk3506 support
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I7df8bb9b94908c7773258bf363684768a9387be0
2024-07-18 10:08:45 +08:00
Tao Huang
c95d3b236d drm/rockchip: ROCKCHIP_VOP depends on CPU_RK3506
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I406b3842c7adcdb4dd8bc7478bbcec02cb140e5c
2024-07-18 10:08:45 +08:00
Damon Ding
08fbbdb571 drm/rockchip: vop: add support for rk3506
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I7a22f0cc3a3830d23d009213048c44db57854250
2024-07-18 10:08:45 +08:00
Damon Ding
3e6bcbb063 drm/rockchip: rgb: add support for rk3506
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
2024-07-18 10:08:45 +08:00
Huibin Hong
5844aebe0f soc: rockchip: Adds CPU_RK3506 config
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ia4b66dabe6a582cf0a581a7d753d20381d571eca
2024-07-18 10:08:45 +08:00
Finley Xiao
b78cc5271c clk: rockchip: Add clock controller for the RK3506
Add the clock tree definition for the new RK3506 SoC.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ib5e47bd03620cb7540fa827e29425c243f633a82
2024-07-18 10:08:45 +08:00
Finley Xiao
37685f392a clk: rockchip: add dt-binding header for rk3506
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
2024-07-18 10:08:45 +08:00
Finley Xiao
898db17b55 dt-bindings: clock: add rk3506 cru bindings
Document the device tree bindings of the rockchip rk3506 SoC
clock and reset unit.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: If8c0e19fab9687d488ffce1607b8555f3e7cda35
2024-07-18 10:08:45 +08:00
Liang Chen
3226dac8ef clk: rockchip: clk-pvtpll: add support for rk3506
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: Ie5f7e94a716ce2e2483cfd8f1604b6007c4d8c0d
2024-07-18 10:08:45 +08:00
Elaine Zhang
9ecb622e08 clk: rockchip: add support for pvtpll clk
add pvtpll_out internal clock setting.

Change-Id: I9d9273d0720166043b2f11e180715646be908d8f
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2024-07-18 10:08:45 +08:00
Damon Ding
d7d83d87f9 drm/bridge: Kconfig: DRM_SII0902X select HDMI if ROCKCHIP_MINI_KERNEL
Fixes: 7c7517b5c1 ("drm: Kconfig: CONFIG_DRM select CONFIG_HDMI if !ROCKCHIP_MINI_KERNEL")
Change-Id: I3146435048c242c053697e183fd4e3cf87d3592d
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-18 10:08:45 +08:00
XiaoDong Huang
f056cfd8cd firmware: rockchip_sip: support access mem_os_reg
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Ic28ea22e37a03dcc4e930320ac59992affd5e765
2024-07-17 19:48:11 +08:00
Zefa Chen
14a361a75b media: rockchip: vicap fixes error of clean intr mask when stop stream
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I5678f52e8a527b38eaa96ad4ae35e94addee525d
2024-07-17 19:12:30 +08:00
Zefa Chen
27568f1756 media: rockchip: vicap fixes scale intr error
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Icd8f6dae6563c6ee7082e4ff158403faf80a37a0
2024-07-17 19:12:30 +08:00
Troy Lin
b21ab65f3a crypto: rockchip: Configure reserve block size based on CRYPTO version
CRYPTO_V2    : rk_hash_reserve_block = 128

CRYPTO_V3/V4 : rk_hash_reserve_block = 64

Signed-off-by: Troy Lin <troy.lin@rock-chips.com>
Change-Id: I2a22d6084cb0f111f54c73939180fa7bbed29ef0
2024-07-17 17:33:38 +08:00
Troy Lin
ec81e6557e crypto: rockchip: v2/v3: drop unused struct rk_ahash_expt_ctx
Signed-off-by: Troy Lin <troy.lin@rock-chips.com>
Change-Id: I5da997756902ba90da3393a085b08e2d903dc180
2024-07-17 17:33:38 +08:00