Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to get the clock value of rk3288-cru?

Featured Replies

Hi all,

 

I am new to kernel development, and I found an old ASUS tinkerboard. I want to give it a second life with some fun projects.

The project I am building is another IP KVM, so I bought an HDMI to CSI module. After tinkering around for a while, I found I supplied the wrong clock for that module:

 

[    8.469299] tc358743 2-000f: unsupported refclk rate: 50000000 Hz
[    8.483069] kernel BUG at drivers/media/i2c/tc358743.c:593!

 

I have no idea about the clock value to put in the dts file, so I just copied some values from the ASUS kernel source.

 

From the driver code drivers/media/i2c/tc358743.c, it shows that there are only 3 valid clocks:

 

switch (state->pdata.refclk_hz) {
case 26000000:
case 27000000:
case 42000000:
...
default:
    dev_err(dev, "unsupported refclk rate: %u Hz\n",
        state->pdata.refclk_hz);
...

 

However, the clock values used in the dts file are some pre-defined macros:

# dts configuration
clocks = <&cru SCLK_VIP_OUT>;
  
# include/dt-bindings/clock/rk3288-cru.h that contains the `SCLK_VIP_OUT`
...
#define SCLK_CRYPTO      125
#define SCLK_MIPIDSI_24M 126
#define SCLK_VIP_OUT     127
...
  

 

I wonder if some folks have experience with the clock setting and can help me pick the correct value. Thank you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.