The Lontium LT8912 MIPI-DSI to LVDS and HDMI/MHL bridge features a
single-channel MIPI D-PHY receiver front-end configuration with 4 data
lanes per channel operating at 1.5Gbps per data lane and a maximum
input bandwidth of 6Gbps.
Change-Id: I7733ea5f33094151bb62e62406561cc0025cf900
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Currently the protection #ifdef CONFIG_DEVFREQ_THERMAL cuts the needed
structures devfreq_cooling_ops and devfreq_cooling_device.
The functions which are supposed to provide the empty implementation complain
about unknown structures.
Similar solution is present in include/linux/devfreq.h.
Change-Id: I4ed7161734944799443fd43c56394e62eb3c499f
Reviewed-by: Ørjan Eide <orjan.eide@arm.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 1cea4e7776)
Here the -ENOTSUPP is not an error if there is no set_sysclk
implement in codec_dai and cpu_dai, we need to return 0 that
it's correct.
Change-Id: I969e3eacba39ac8d6c94ddcc27c60cc110d66156
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Add the 'regulator-always-on' property for vdd_gpu on rk3399-tve1030g/
rk3399-tve1205g/rk3399-mid-818-android
Change-Id: I22938c7041bc56b53983447a00e83144411b4cca
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
We need to clear previous residual configuration for
ADC/DAC digital registers before enable them, otherwise,
the acodec maybe abnormal.
Change-Id: I2eeb6ccf1508cf10d214d97c29273d70d16f3417
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Show a accumulation of wfi time of every suspend sate
since system bootup:
$ cat /sys/kernel/wakeup_reasons/total_suspend_wfi_time
Change-Id: I2856faabe2e883a7120931ed49bc0c4f0776600d
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
To reduce the uart interrupts, which may cause:
serial8250: too much work for irq xx
Change-Id: I89e0d990677e4cffae431e60521b3e16e8381f05
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
config reset registers only for rk817 and rk809.
Change-Id: I761fdc891b24812de43251538b1c2af8b7c92d68
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
The pwm clk parent is GPLL,PWM clk not allowed to change freq,
so the GPLL not allowed change mode and freq when pwm is used.
If have trust is need't rk3288_clk_suspend and rk3288_clk_resume.
Change-Id: I4845fda89d7ae7713e8c0e94747c3f4dfd140c6a
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
modify the rk808 max steps for increase voltage of Buck1/2,
equal 25mv.
Change-Id: Ic6c016e99ce67f5773d5f5df0b65fa1de10f557a
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
There is still the issue that loud and small on some
EVBs. For mass production consistency, we need to
increase and put more delay in enable DAC steps.
The suggest from vendor, we need to use 50 us instead
of 20 us for the key step 2 and step 4, insert 20 us
in other every steps.
Therefore, the total delay in enable DAC is about:
50 * 2 + 20 * 16 = 420us
It looks okay.
Change-Id: Ibc02930271a8a21bc279ee4323e66852f2d58086
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Sometimes the regulator is shared between several devices, if target rate
and target voltage are equal to initial rate and iniital voltage , the
min_uV and max_uV of regulator will be always equal to zero, other devices
may set a low voltage.
Change-Id: I561971844296ffcada823d741710aba808167e3f
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Sometimes the regulator is shared between several devices, if target rate
and target voltage are equal to initial rate and iniital voltage , the
min_uV and max_uV of regulator will be always equal to zero, other devices
may set a low voltage.
Change-Id: Ibf82f335ce0739776286e3733be5415f84bf035b
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
If initial rate is greater than opp rate and initial voltage isn't qeual
to opp volatge, the opp voltage may too low for initial rate, so it's
inappropriate to update voltage when initial voltage isn't qeual to
opp volatge.
In order to solve this problem and consider that the regulator is shared
between several devices on some platforms, make the following two changes.
If the driver doesn't support to change frequency, the opp table should
contain an opp whose rate is geater than or equal to initial rate, so that
the voltage is enough for initial rate and the min_uV and max_uV of
regulator aren't equal to zero after update voltage.
If the driver supports to change frequency, let devfreq framework update
rate and voltage.
Change-Id: I4004f55f2cfd3b87f734844a0cdf8e9619d785d2
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
pmu_io_domains voltage is 1.8V for rk3399-tve1030g board
Change-Id: Iffba406ca1e88f346fc9e436b7b4ea4878b19e92
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Move rockchip_dmcfreq_vop_bandwidth_request and
rockchip_dmcfreq_vop_bandwidth_update from rockchip_drm_fb.h
to rockchip_dmc.h.
Change-Id: I5b023e44b46a6c613af71452a940d31feb9b2d97
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
remove rockchip_pm_register_notify_to_dmc from rockchip_dmc.h
Change-Id: I9e78eaec2a88cfc06ac3d24f01870cd39c9d05ad
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
The function rk8xx_is_enabled_wmsk_regmap is local to the source
and does not need to be in global scope, so make it static.
drivers/regulator/rk808-regulator.c:714:5: warning: no previous prototype for 'rk8xx_is_enabled_wmsk_regmap' [-Wmissing-prototypes]
Change-Id: Iad140bc1acba548caee1a333a9ed1f846ec06b27
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
The regulator is shared between several devices on some platforms,
if cpu target rate is equal to initial rate, the min_uV and max_uV
of cpu regulator will be always equal to zero, other devices may
set a low voltage which can't meet cpu initial rate.
Change-Id: I97e4815a2422417cd9bd605c93138f5ffda9cc86
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
We need to separate the DAC and ADC configuaration independently.
Change-Id: If8a6673e1489fd34235510d51c8ab34fc91fac01
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
fix the main warning:
drivers/video/rockchip/vpu/mpp_dev_h265e.c:501:5: warning: no
previous prototype for ‘rockchip_mpp_h265e_get_stream_header’
[-Wmissing-prototypes]
Change-Id: If6b0a23bb94d1827134270af107f0f8ac1ac30ac
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com>
Fix the following warning(s):
drivers/rk_nand/rk_nand_base.c:105:15: warning: no previous prototype for ‘rknad_dma_map_single’ [-Wmissing-prototypes]
drivers/rk_nand/rk_nand_base.c:117:6: warning: no previous prototype for ‘rknan_dma_unmap_single’ [-Wmissing-prototypes]
drivers/rk_nand/rk_nand_base.c:128:5: warning: no previous prototype for ‘rknan_flash_cs_init’ [-Wmissing-prototypes]
drivers/rk_nand/rk_nand_base.c:142:5: warning: no previous prototype for ‘rknand_get_boot_media’ [-Wmissing-prototypes
......
Change-Id: Iacd769790f97bb89f44fee7f4d24d315d0179399
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
Fix the following warning(s):
drivers/soc/rockchip/rk_vendor_storage.c:15:5: warning: no previous prototype for ‘rk_vendor_read’ [-Wmissing-prototypes]
drivers/soc/rockchip/rk_vendor_storage.c:23:5: warning: no previous prototype for ‘rk_vendor_write’ [-Wmissing-prototypes]
drivers/soc/rockchip/rk_vendor_storage.c:31:5: warning: no previous prototype for ‘rk_vendor_register’ [-Wmissing-prototypes]
drivers/soc/rockchip/rk_vendor_storage.c:42:6: warning: no previous prototype for ‘is_rk_vendor_ready’ [-Wmissing-prototype
Change-Id: Ia264c96adac27ff1e639532b7bdfde464f54e637
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
below code would cause endless loop when regulator is set 'always-on':
while (regulator_is_enabled(ldo_18) > 0)
regulator_disable(ldo_18);
Change-Id: Ia3b6f72969ada774a1cf6a46a20ec9b3efb841a0
Signed-off-by: Zhang Yunlong <dalon.zhang@rock-chips.com>
fix the warning:
drivers/video/rockchip/iep/hw_iep_reg.c:1284:6: warning: no
previous prototype for ‘iep_config_misc’ [-Wmissing-prototypes]
Change-Id: I56d0b775cdb62e4566d81b288fe373299b9bbc4c
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com>
Fix the following warning(s):
drivers/soc/rockchip/rockchip-system-status.c:24:5: warning: no previous prototype for rockchip_register_system_status_notifier [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip-system-status.c:31:5: warning: no previous prototype for rockchip_unregister_system_status_notifier [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip-system-status.c:46:6: warning: no previous prototype for rockchip_set_system_status [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip-system-status.c:70:6: warning: no previous prototype for rockchip_clear_system_status [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip-system-status.c:98:15: warning: no previous prototype for rockchip_get_system_status [-Wmissing-prototypes]
Change-Id: Ic3fb19a4a23f8f6c6833a7ebc573617c372d51bd
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
We need unreigster device when we remove platform or
probe failed.
Change-Id: Ic43a9fcc540b404cee119c17c543d509b121e126
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>