Commit Graph

1272387 Commits

Author SHA1 Message Date
Sugar Zhang
ce549629cf ARM: dts: rockchip: rk3506g-test1: Add property 'cpu-supply'
Fix no cpufreq entry.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I65de403ddc229d02e553d248ce906178773a805c
2024-08-08 09:46:53 +08:00
Sugar Zhang
3f4436826e ASoC: rockchip: i2s-tdm: Fix 1-Bit offset case
There is a ASYNC bridge between HCLK and SCLK domain.

On AUPLL case, we found RX data shift ahead 1-Bit on
TRCM-TX sometime (0.00x%), but it success on GPLL(50w+).

The root cause:

HCLK Domain: Config the XFER-3, pull up SIGNAL to HIGH.

SCLK Domain: SCLK_RX/TX samples the HIGH level to start.

Because HCLK Domain is async to SCLK Domain, So, there
is a risk that RX samels the HIGH Level, but RX not.
(at the edge XFER from LOW to HIGH)

Solution:

1, Gate the SCLK
2, Config the XFER-3
3, Ungate the SCLK

Thus, TX/RX Always samples the right Level at the same
time.

After this patch, Test passed over 50w+.

Test Script:

  #!/bin/sh

  count=0

  killall aplay
  sleep 1

  while true
  do
      yes `echo -en "\x11\x11\x22\x22"` | tr -d '\n' | \
      aplay -D hw:2,0 --period-size=1024 --buffer-size=4096 -r 192000 -c 2 -f s16_le &>/dev/null &
      sleep 0.1
      rxd=`io -4 0xfe470028 | awk '{print $2}'`
      echo "[$count]: $rxd"
      if [ "$rxd" != "22221111" ]; then
          echo "FAIL: mismatch: $rxd, expected: 22221111"
          break
      fi
      count=$((count + 1))
      killall aplay
      sleep .1
  done

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I10258b92d2f62ab36b5ccc55e8bcc752f3af9d4f
2024-08-08 09:45:47 +08:00
Sugar Zhang
36730a6e09 ASoC: rockchip: utils: Add rockchip_utils_clk_gate_endisable helper
Similar to the API clk_gate_endisable.

Can be replaced by API clk_gate_endisable directly
once the symbol exported been merged.

It's workaround for GKI.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I91a53734add53b3156afc2b03b25cdc207822331
2024-08-08 09:45:47 +08:00
Sugar Zhang
b6f0f8c611 ASoC: rockchip: i2s-tdm: Add support for comp resume deferred
Slave Resume Situation:
i2s-tdm acts as slave, and the external device, such as dsp
acts as master.

aplay -D hw:0,0 --period-size=1024 --buffer-size=4096 t.wav &

echo mem > /sys/power/state

the aplay was freeze and system go to sleep.

press the power-key to wakeup system, and now the aplay will
resume playback.

But, there is a case the external dev resume too slow to provide
clk to i2s-tdm, so, we need add a delay to make it resume well.

e.g.

&i2s {
	rockchip,resume-deferred-ms = <1000>;
};

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: If9a82c8357cef23bd50305c585ee28794f45d347
2024-08-08 09:45:47 +08:00
Chen Shunqing
61632fe66b media: i2c: rk628: reset hdmirx when HDMI mode change to DVI mode
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: Iee807f52bd2a3a78b51ad7dfec6d4bd010ad8299
2024-08-07 18:43:34 +08:00
Chen Shunqing
dd812e1c19 media: i2c: rk628: set CPLL_REF_CLK to 1194M
Fix CTS HF2-6/HF2-23

Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I90f56fbeb6917841208ac9b6b82ec2fdb3566354
2024-08-07 18:43:25 +08:00
Chen Shunqing
8826fbcc1d media: i2c: rk628: fix no display because clear avmute is not received
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: Iede1b6f196747eea5864b853c28b1cccaa7baa6c
2024-08-07 18:43:25 +08:00
Sandy Huang
d56a729dca drm/rockchip: vop: fix lut_res init error
Fixes: 07bceaca58 ("drm/rockchip: vop: add support write regs")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Icddbba0edff100a09b22724d05afc19461b6e8e8
2024-08-07 16:57:19 +08:00
Sandy Huang
bf023b7cd6 drm/rockchip: vop: add aclk info to dri summary
VOP aclk freq is very important info for our debug, so add it to
drm dri summary.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Iad97b5b81752e970622f55888fcc4327d2bb4c93
2024-08-07 16:53:57 +08:00
Sandy Huang
973c554999 drm/rockchip: vop2: add aclk info to dri summary
VOP aclk freq is very important info for our debug, so add it to
drm dri summary.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I197e64104c49bd62d85d5dba4b0c4e1763fd62e2
2024-08-07 16:53:57 +08:00
Sandy Huang
0ab8cd7ddb drm/rockchip: vop2: add active_display_mask to mask active display
active_vp_mask mask the active vp, and at rk3588 splice mode, vp0 and
vp1 will be mask, it can't indicate display number, so we add the
active_display_mask to record it.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I7bebf21b4d844d92956d6e7427162cdbe694fe7a
2024-08-07 16:53:57 +08:00
Sandy Huang
b675f0608e drm/rockchip: vop2: use new api to calc bandwidth
userspace maybe want to change some property and commit new frame
without any plane, so we use new api to get current plane or bandwidth
info correctly.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I19c471770abba04429c2e8f35d4bcbc8ea2f87b6
2024-08-07 16:53:57 +08:00
Jianwei Zheng
61b5bd9354 phy: rockchip: inno-usb2: support usb2 phy tuning for rk3506
1. Turn off differential receiver in suspend mode for
   the otg0 and otg1 port to save power consumption.

2. Set otg0 and otg1 port HS eye height to 425mv.

3. Choose the Tx fs/ls data as linestate from TX driver
   for otg0 and otg1  port to improve fs/ls devices
   compatibility with long cable.

Change-Id: I60468354b7903016b4f35c6b394035adc077b960
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
2024-08-07 10:56:08 +08:00
Shawn Lin
9150607f78 PCI: rockchip: dw: Use dw_pcie_{read, write} to simplify the code
Change-Id: I290dc233f9cac19a1615c0f949c9ed577cf172e8
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2024-08-06 19:57:33 +08:00
William Wu
0cd06e7ac7 phy: rockchip: usbdp: Disable u3 port if wait rx cdr lock timeout
Test on RK3576 EVB1/Tablet connected with Type-C to HDMI
cable, it is easy to trigger kernel panic during system
enter/exit deep sleep with the following log:

[  100.859203][ T3862] PM: PM: Pending Wakeup Sources: NETLINK
[  100.874736][ T3862] PM: Some devices failed to suspend, or early wake event detected
[  100.984288][ T3862] rockchip-usbdp-phy 2b010000.phy: trsv ln0 mon rx cdr lock timeout
[  100.989921][ T3893] xhci-hcd xhci-hcd.6.auto: xHC error in resume, USBSTS 0x411, Reinit
[  100.989936][ T3893] usb usb1: root hub lost power or was reset
[  100.989946][ T3893] ub usb2: root hub lost power or was reset
[  100.990852][    C3] SError Interrupt on CPU3, code 0x00000000bf000002 -- SError
[  100.990862][    C3] CPU: 3 PID: 3895 Comm: kworker/u16:18 Tainted: G
[  100.990868][    C3] Hardware name: Rockchip RK3576 TABLET V10 Board (DT)
[  100.990871][    C3] Workqueue: events_unbound async_run_entry_fn
[  100.990886][    C3] pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  100.990891][    C3] pc : local_daif_inherit+0xc/0x10
[  100.990898][    C3] lr : el1_abort+0x2c/0x5c
[  100.990905][    C3] sp : ffffffc014973650
......
[  100.990969][    C3] Kernel panic - not syncing: Asynchronous SError Interrupt
[  100.990973][    C3] CPU: 3 PID: 3895 Comm: kworker/u16:18 Tainted: G
[  100.990978][    C3] Hardware name: Rockchip RK3576 TABLET V10 Board (DT)
[  100.990980][    C3] Workqueue: events_unbound async_run_entry_fn
[  100.990988][    C3] Call trace:
[  100.990990][    C3]  dump_backtrace+0xf4/0x118
[  100.990996][    C3]  show_stack+0x18/0x24
[  100.991000][    C3]  dump_stack_lvl+0x60/0x7c
[  100.991005][    C3]  dump_stack+0x18/0x38
[  100.991010][    C3]  panic+0x16c/0x388
[  100.991014][    C3]  nmi_panic+0xa4/0xa8
[  100.991019][    C3]  arm64_serror_panic+0x6c/0x94
[  100.991025][    C3]  do_serror+0xc4/0xd0
[  100.991029][    C3]  el1h_64_error_handler+0x34/0x48
[  100.991034][    C3]  el1h_64_error+0x68/0x6c
[  100.991038][    C3]  local_daif_inherit+0xc/0x10
[  100.991044][    C3]  el1h_64_sync_handler+0x54/0x90
[  100.991049][    C3]  el1h_64_sync+0x68/0x6c
[  100.991053][    C3]  readl+0x44/0x8c
[  100.991059][    C3]  xhci_set_port_power+0x8c/0xcc
[  100.991066][    C3]  xhci_hub_control+0xb7c/0x19b8
[  100.991071][    C3]  usb_hcd_submit_urb+0x688/0x9b8
[  100.991079][    C3]  usb_submit_urb+0x480/0x4f4
[  100.991084][    C3]  usb_start_wait_urb+0x6c/0x110
[  100.991089][    C3]  usb_control_msg+0xc4/0x144
[  100.991093][    C3]  hub_activate+0x374/0xa1c
[  100.991099][    C3]  hub_reset_resume+0x18/0x2c
[  100.991105][    C3]  usb_resume_both+0x218/0x32c
[  100.991110][    C3]  usb_resume+0x28/0x7c
[  100.991115][    C3]  usb_dev_resume+0x14/0x24
[  100.991121][    C3]  dpm_run_callback+0x64/0x230
[  100.991128][    C3]  __device_resume+0x1c8/0x360
[  100.991133][    C3]  async_resume+0x24/0x3c

The root cause is that the source clock of the usb xHCI
maybe changed during system suspend and wakeup.

1. When plug in Type-C to HDMI cable which support DP
   4*lanes + USB2.0, the usbdp phy driver call the
   udphy_u3_port_disable() to disable u3 port and select
   the utmi clock which from usb2 phy for usb xHCI source
   clock.

2. During system wakeup, the Type-C CC state maybe changed
   and the Type-C subsystem will call the udphy_orien_sw_set()
   to reinit the udphy->mode as DP 2*lanes + USB3.0.

3. In the system pm resume process, the usb controller driver
   call the rockchip_u3phy_init() to initialize the usbdp phy.
   Because the udphy->mode has been modified to UDPHY_MODE_USB,
   so it call udphy_u3_port_disable() to enable u3 port and
   select the pipe clock which from usbdp phy for usb xHCI
   source clock.

4. In udphy_init(), it waits for rx cdr lock timeout, which
   means that the usb3 phy and its pipe clock are not ready.

5. Later in the usb_dev_resume(), the xHCI driver trigger
   kernel panic when access the xHCI controller register
   because its source clock isn't ready.

To fixes this issue, the patch disable u3 port and select
the utmi clock for usb controller if wait rx cdr lock timeout.

Change-Id: I3213c59dc9f0bb183037c943c6adaf769def194e
Signed-off-by: William Wu <william.wu@rock-chips.com>
2024-08-06 19:56:07 +08:00
Elaine Zhang
23e29e16f2 clk: rockchip: add fractional divider v2
for 24bit fractional divider.

Change-Id: I83469fb7d021336493b0b4f26ad8f42fd85c556b
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2024-08-06 14:08:26 +08:00
Elaine Zhang
a169eac698 clk: fractional-divider: Fixed check parent rate
Fixes: e6dfeb296d ("Revert "clk: fractional-divider: check parent rate only if flag is set"")
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ia287357af26437f525c74104b4fd5b20f4ec2f16
2024-08-06 09:59:26 +08:00
Tao Huang
1ce843d99c arm64: rk3588_vehicle.config: enable CONFIG_AHCI_DWC
Commit 33629d3509 ("ata: ahci: Add DWC AHCI SATA controller support")
move snps,dwc-ahci support from ahci_platform.c to ahci_dwc.c.
So replace CONFIG_SATA_AHCI_PLATFORM by CONFIG_AHCI_DWC.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I04182b5b98f58457c3784fbca4fc784e3a36e0ee
2024-08-05 19:49:23 +08:00
Tao Huang
4414d745f6 arm64: rk3576_vehicle.config: enable CONFIG_AHCI_DWC
Commit 33629d3509 ("ata: ahci: Add DWC AHCI SATA controller support")
move snps,dwc-ahci support from ahci_platform.c to ahci_dwc.c.
So replace CONFIG_SATA_AHCI_PLATFORM by CONFIG_AHCI_DWC.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I501471934fea6645da3bb7a1a592715856d02fa2
2024-08-05 19:46:51 +08:00
Sandy Huang
07bceaca58 drm/rockchip: vop: add support write regs
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I9029b9d22a96cd490104073ed4c12a02860b52bd
2024-08-05 19:22:36 +08:00
Sandy Huang
a94380efa6 drm/rockchip: vop2: add support write regs
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ibea567b6cca31f7b6fe6b0a00b834b71dc26ec8e
2024-08-05 19:21:57 +08:00
Sandy Huang
20d88dd0fd drm/rockchip: debugfs: add support write regs
We usually need to write vop regs for debug, but this depend on io cmd
and devm,
they are often forget to be enabled, so we add this node to instead of
it:

you can use the following cmd to update VOP regs:
  echo offset val > /sys/kernel/debug/dri/0/video_portx/regs_write

  the video_portx is depend on hardware config, you can get this info
from the cmd:
    cat /sys/kernel/debug/dri/0/summary

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I687ecc44dc638bfdf770983f96ce7b5470ff3691
2024-08-05 19:10:57 +08:00
Sandy Huang
42188e945e drm/rockchip: debugfs: only dump buffer need to depend no gki
rockchp drm debug include dump buffer, show color bar and regs write,
only dump buffer need to depend on no gki, the others can be enabled
at gki firmware.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I715c1000d9dd29c915632d6a54706008440d0cdb
2024-08-05 14:56:02 +08:00
Sandy Huang
9ccda79b71 drm/rockchip: vop: remove NV20 and NV30 depend on CONFIG_NO_GKI
NV20 and NV30 is supported by drm core, so no need to depend on
CONFIG_NO_GKI.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I21c7ed5741ea89da6999f38b37d3a248699385fd
2024-08-05 14:27:46 +08:00
Huibin Hong
21533c2eef ARM: dts: rockchip: rk3506b-evb1: update from rk3506g-evb1
Change-Id: I81f67f73b43284c9039492ac63d7499b00738875
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2024-08-02 17:45:33 +08:00
Sandy Huang
9ad7c6c9ae drm/rockchip: debugfs: delete unused define
since we use fb size to dump buffer directly and no need use this define
to calculations dump size.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ib6915eba2e271ab98212886247ef0540d39032fc
2024-08-02 16:49:29 +08:00
Algea Cao
080fee2488 drm/rockchip: vop2: add support dump rk3576 pq regs
Change-Id: Ic36618950020a28b5c302ef359b8018c60b962e5
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-02 16:17:32 +08:00
Sugar Zhang
03a8cf2702 ASoC: rockchip: sai: Add support slot-width parsed from DT
The slot width should be in range [8, 32].

e.g.

&sai {
	rockchip,slot-width = <16>;
};

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Id0c8a33141c71af189cdc87594e06fdffbd0582e
2024-08-02 15:59:33 +08:00
Jianwei Zheng
422489d507 ARM: dts: rockchip: rk3506b-evb1: Add vbus-supply for u2phy port0 and phy-supply for u2phy port1
Change-Id: I70ad7be0a6fb9e08df1f786b7ee4d699d39de1e6
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
2024-08-02 15:58:39 +08:00
Jiahang Zheng
36d59b3b16 ARM: configs: Add rockchip_amp.config
Change-Id: I57e0a9141404d90d3e4837258fe3c499268cafe3
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com>
2024-08-02 15:47:53 +08:00
Jiahang Zheng
e8aa219e25 ARM: dts: rockchip: rk3506g-evb1-v10-amp: Add reserved-memory for amp
Change-Id: Ib9bba0b2e5b20eac51746fb30e35d82e52b9f0fa
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com>
2024-08-02 15:28:11 +08:00
Tao Huang
dc77dad92c ARM: dts: rockchip: rk3506-amp: Use reserved_memory label
Change-Id: I971e00e43636509d05fb2aeadbfbf54f1bf78ed6
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2024-08-02 15:24:50 +08:00
Huibin Hong
331bd10b15 ARM: dts: rockchip: rk3506-evb1: move reserved-memory to rk3506.dtsi
Change-Id: If5baafb607129d42d5c0f7c82a86215651fe98de
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2024-08-02 14:41:53 +08:00
Huibin Hong
a1f1a2cf32 ARM: dts: rockchip: rk3506: Add reserved-memory
1. Add trust reserved-memory
2. Set new ramoops base address 0xa1000.

Change-Id: I0710d3845c4b3987dbfc2baadf66c555c9304601
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2024-08-02 14:37:26 +08:00
Huibin Hong
a63cc34511 ARM: rockchip: Locate kernel add 0x00108000 if CPU_RK3506
The memory layout of the 0-1MB:
  kernel    PLAT_SHM     TEE       TA       TA_SHM       Pstore
|---------|------------|----------|-------|----------|------------|
|   240K  |     16k    |   376k   |  4kb  |   4kb    |   380k     |
|---------|------------|----------|-------|----------|------------|
@0k	  @240k        @256k              @640k      @644k        @1024k

Change-Id: I9d831c8d2dd5b27efc9519a495c401be259c0e4c
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2024-08-02 14:31:22 +08:00
Cai YiWei
e104bbb1bc media: rockchip: isp: config bls1 and bls2 black level
ob offset not equal to zero will auto enable bls1 and bls2

Change-Id: I1b0099ca1047eb05b12d8bb745646e322e093e90
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-08-01 18:41:18 +08:00
Cai YiWei
074c3535a6 media: rockchip: isp: fix memory leak
if no stream output, kill aiq server will no to free buf

Change-Id: Ie8f98f378251a384effd5d7145a4391fc6e40cb4
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-08-01 18:41:18 +08:00
Wesley Yao
684fd3f7b7 iio: dac: flexbus_dac: Add remove action and function
Change-Id: I46b32bcedf34d635ea1390814c1096af6651b4e9
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2024-08-01 18:35:01 +08:00
Wesley Yao
229cd95d6f iio: adc: flexbus_adc: Add remove action and function
Change-Id: I1816a6d2d776231a9fe08e1e3929173d2fec2e3a
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2024-08-01 18:35:01 +08:00
Wesley Yao
8982f99b24 mfd: rockchip-flexbus: Add set_fb0/1 function
Set fb0/1 data and isr in the function.

Change-Id: Ib7265fb5e3b75b9b92267035e331d94c54873065
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2024-08-01 18:35:01 +08:00
Elaine Zhang
1cfd120ea4 clk: rockchip: rk3576: add CLK_SET_RATE_PARENT for sclk_uart1
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I34bf45a3565a7a72ee0f216e277699b979cd3af0
2024-08-01 09:12:18 +08:00
Wesley Yao
9d0f681ab6 ARM: dts: rockchip: rk3506g-evb1: Add flexbus adc & dac board
Change-Id: I20dd0fdea7fc8269f809da0d5bec851a9a8126d6
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2024-07-31 19:29:27 +08:00
Wesley Yao
0e6bcaa1c2 Revert "ARM: dts: rockchip: rk3506-evb1: Add flexbus related nodes"
This reverts commit 06332253b7.

Change-Id: Id2d17451eb85d02547580103a11418da1c0863b5
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2024-07-31 19:29:16 +08:00
Wesley Yao
53ed9729b7 iio: adc: rockchip-flexbus-adc: Add support for ref_clk
ref_clk is only used for slave-mode.

Change-Id: I1ad0d11efed9ee6b552fa3d7d6f6a5d1b389e98d
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2024-07-31 19:21:51 +08:00
Wesley Yao
06bf21b322 ARM: dts: rockchip: rk3506: Add ref_clk for flexbus_adc
ref_clk is only used for slave-mode

Change-Id: I05094c6552097adc7d14679c3c284f147b49d7f8
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2024-07-31 19:20:49 +08:00
Damon Ding
c6337fce28 arm64: dts: rockchip: rk3576: add osc clk configs for pwm0
For rk3576, pwm1 supports wave generator mode, which
relies on the osc clk.

Change-Id: Icac6a8201aa0370868e0383f2b9daa90919cea9e
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-31 19:00:04 +08:00
Damon Ding
d28c2096be ARM: dts: rockchip: rk3506: add osc clk configs for pwm0
For rk3506, pwm0 supports wave generator mode, which
relies on the osc clk.

Change-Id: I8897595eeda31b0f606c2f2f6a365a1125fceeac
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-31 19:00:04 +08:00
Damon Ding
19b3f8d830 pwm: rockchip: add pwm clk_osc control for wave generator mode
The read/write behavior of wave table relies on the osc clk
by default.

In addition, replace pwmchip_add() by devm_pwmchip_add().

Change-Id: Idfae114cf51e30c4c82ed5255477eef8d969aa2e
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-31 19:00:04 +08:00
Damon Ding
86c6679be9 dt-bindings: display: rockchip: add mcu-panel.yaml
Change-Id: Iae236c1932a12f0ce85917b684f99bed7d052114
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-31 18:57:58 +08:00
Damon Ding
194868ef60 dt-bindings: display: rockchip: rgb: convert to yaml
Change-Id: I2a800dced75aca8eb16e832ef1f2f15ff2ab3745
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-31 18:57:58 +08:00