Commit Graph

854917 Commits

Author SHA1 Message Date
Finley Xiao
5072177b4d regulator: debugfs: Adding debugfs functions into regulator framework
This change allows the user to read and edit regulator information
in user space through the debugfs file system.

Base on msm work.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I038d2ad43ece4ed927db1ff36c7d1a644c1cf3d1
2020-09-16 15:27:51 +08:00
Finley Xiao
77396ab793 Revert "regulator: debugfs: Adding debugfs functions into regulator framework"
This reverts commit 6b16065afa.

Change-Id: I452cadb8123254be33688ff9cecc08fa4300e604
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2020-09-16 15:25:49 +08:00
Finley Xiao
3343e43b11 Revert "regulator: core: Add support to limit min_uV during system startup"
This reverts commit d7e9e2622d.

Change-Id: I03c9adb98e99764ec9800da5f3745e550bb37304
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2020-09-16 15:22:48 +08:00
Jon Lin
eff0b09319 drivers: rkflash: Check bad block mark in spare 1st and 2nd byte
Change-Id: I7d1b11be4ef8e1b8aa3cf9deba4463f16a970b07
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-09-16 11:37:56 +08:00
William Wu
153905db2e usb: dwc3: gadget: only resize fifo for isoc ep with 1024 maxpacket
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: If28098b07a1d3bf0a35c4ff37ae7f548283191c7
2020-09-16 11:36:56 +08:00
Weiwen Chen
cede220648 ARM: dts: rv1126-38x38-v10-emmc: fix npu frequency
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ib31889c49ba8708f3ff1a44ffdc2c64078841719
2020-09-16 11:31:34 +08:00
Zefa Chen
2bbbb85837 media: i2c: imx415 support DOL3 10bit 1485Mbps/lane
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ibf6ad4beb160083d6daa8e4a13753dea93b0297d
2020-09-16 11:30:04 +08:00
Yu Qiaowei
b4ccced3e0 video/rockchip: rga2: Fix some errors.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I2bc574f6423da23d44a0b5361e216854636d83a0
2020-09-16 11:24:39 +08:00
Wang Jie
c8ebec26c7 input: sensor: sensor supports modularity
The sensor-dev framework and device drivers depend on each other,
causing sensor initialization to fail. eg:
[    2.907011] i2c i2c-4: sensor_probe: mpu6500_acc,000000006539f8ba
[    2.907626] sensors 4-0068: sensor_chip_init:ops is null,sensor name is mpu6500_acc
[    2.908318] i2c i2c-4: sensor_probe failed -1

Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
Change-Id: Ic1f320a7c40bde0c4e3db3dc43542302d9270f42
2020-09-15 20:40:31 +08:00
Kever Yang
4869b05bb7 input: touchscreen: Support gsl3673 build as modular
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I530763b02bb2e1818ade3571e5984d9dce642648
2020-09-15 20:21:22 +08:00
Yiqing Zeng
4a1cccace9 media: i2c: add sc2310 sensor driver
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I240aea1457bf344a1ca6b410433ddf75edb33deb
2020-09-15 20:19:24 +08:00
Zefa Chen
73ac2e5cb6 leds: leds-rgb13h: Intensity can be set in any mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I16f70e812d2b0932f7d1a39d8c819975760c9f6d
2020-09-15 20:18:44 +08:00
Kever Yang
614dbbdcda input: remotectl: Set REMOTECTL driver as tristate
The removectl drivers may be build as driver, set Kconfig to tristate to
support it.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: Id786747e0eb0748644dc0fe76110e2805d4f2500
2020-09-15 20:13:46 +08:00
Sugar Zhang
bfadc5e3c3 rk_headset: Add support for driver to be built as module
Change-Id: Id85bea200c99a08f8a67bd9e3a6d0c929d974ba0
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2020-09-15 20:12:09 +08:00
Joseph Chen
669923d002 power: rk818-battery/charger: Support building as module
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I39bbf5d0d4ea9c296a39267500cb0d46acd5e386
2020-09-15 20:09:56 +08:00
Joseph Chen
2213ba67cc power: rk816-battery: Support building as module
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I3da83ddf51f742daa4fad6540ed4499fa58a6d28
2020-09-15 20:09:50 +08:00
shengfei Xu
3e84048355 power: rk817_charger: Support building as module
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I4f1e7b2250001c04c5964abcf736d68e8f9317e2
2020-09-15 20:04:46 +08:00
shengfei Xu
53524e0241 power: supply: rk817_battery: Support building as module
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: Ic9479fc7358d3953aae5e54b6ae82e9babbce1f9
2020-09-15 20:04:39 +08:00
shengfei Xu
24cdbe2d6b soc: rockchip: suspend config: enable module
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: Icb217f3ebcee418b6f36223865ab631645be2523
2020-09-15 20:03:32 +08:00
Joseph Chen
fd44df1817 video: rockchip: mpp: allow rockchip sip as module
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0fcc27563a5e406b0383c074c68d08bfc7d837af
2020-09-15 19:59:45 +08:00
Joseph Chen
91422abe8b firmware: rockchip_sip: Support building as module
- Export API for other drivers;
- Add a local cpu_logical_map() implementation since
  cpu_logical_map() is not export.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I784dbbbaf76efaca0bbdcf0d183518be88a7f0c7
2020-09-15 19:58:23 +08:00
Finley Xiao
9c086e2acc cpufreq: rockchip: Add support to be build as module
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I63b80d9c19ab73424046567ff08b82ab8f8558fa
2020-09-15 19:54:58 +08:00
Finley Xiao
1890971d65 soc: rockchip: system-monitor: Add support to be built as module
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: If59392732efe0dc1cb20e49115a1a1f65854bd7a
2020-09-15 19:53:27 +08:00
Finley Xiao
f417ab1184 soc: rockchip: opp_select: Add support to be built as module
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ia386fad85df6c7e439ed0d6a0b0a382edb0c6b74
2020-09-15 19:51:32 +08:00
Huibin Hong
4544c0fa4d soc: rockchip: grf: enable module
Change-Id: I8e9a264f41a8b84e559688a3c0980b01ed061031
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2020-09-15 19:41:14 +08:00
Huibin Hong
530734ea06 soc: rockchip: rk_fiq_debugger: add module exit
Change-Id: I9c4b18fe7b5084bceaf71ce2ef8986431a1778da
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2020-09-15 19:36:36 +08:00
Huibin Hong
d756cc25eb soc: rockchip: debug: support module
1.support module
2.export symbol of rockchip_debug_dump_pcsr,
rockchip_debug_dump_pcsr is called by fiq debugger

Change-Id: I28776fa2f6c34042a3771de82d43f1365bd01f4c
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2020-09-15 19:36:36 +08:00
Weiwen Chen
c7def0ae7d ARM: configs: Add rv1126-emmc-drivers-builtin.config
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I495febbbdfd3cb88d7137ba40c0005ecafb3e1a5
2020-09-15 19:35:17 +08:00
Elaine Zhang
37ec01f2b6 soc: rockchip: pm_domain: support driver build as tristate module
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I017a2892863a2c941163a81f34aeb03e2d0e537b
2020-09-15 17:51:57 +08:00
Elaine Zhang
77ff4b7d41 soc: rockchip: modify the config ROCKCHIP_PM_DOMAINS to tristate
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I09a067d6842fb0fef3329c4e3eb0701fa6f41968
2020-09-15 17:44:22 +08:00
Shawn Lin
039589f397 mmc: block: remove emmc_disk
emmc_disk is not used now, so remove it.

Change-Id: I8fb0fa17873bc3289c968db4c98f61040b02572c
Fixes: de208e40d9 ("mmc: porting legacy tactices into 4.19")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2020-09-15 17:38:50 +08:00
Jon Lin
6ee9b2276f drivers: rkflash: Simplify SPI Nand flash table
1.Simplify SPI Nand flash table
2.Support new SPI Nand devices
3.Format coding styles

Change-Id: Iae7b4c65e646aca5122d47dd9aecad67dbf83f7e
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-09-15 11:16:32 +08:00
Jon Lin
e362770348 drivers: rkflash: Remove SFC reset in initial progress
Only when the host work wrong, run SFC reset.

Change-Id: I582d5697e6166591171c71e099942fad522d972c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-09-15 11:16:15 +08:00
Ziyuan Xu
d3164ae64c rtc: pcf8563: make the 32k clock output to be always enabled
The WiFi needs a always-on 32.768k clock on rv1126-battery-v10 board.
The original driver disables the clock whilst registering the
*rtc_clk*, we have to avoid *disable* to make sure WiFi is available.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: Ia612b17a3d9fdef2a3d37ca2862c46b81db9133d
2020-09-15 10:20:00 +08:00
Uma Shankar
b5ae3f0458 UPSTREAM: drm: Drop a redundant unused variable
Drop a redundant and unused variable "hdr_output_metadata" from
drm_connector.

Change-Id: I7c85067ac698223f3db353a795f0cbfdbbce9c89
Suggested-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1559159944-21103-2-git-send-email-uma.shankar@intel.com
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
(cherry picked from commit 848d56ddda)
2020-09-14 19:24:43 +08:00
Cai YiWei
12fea355c8 media: rockchip: isp: set clk depend on resolution for cif input
Change-Id: I0d87a9256863fab2e8412929baa8565ae860d9c9
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-09-14 19:20:52 +08:00
Cai YiWei
b873c8d42f media: rockchip: ispp: fix scl0 format check error
Change-Id: I05cdeb3461d0ce27060d3154159dd4f9f642222a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-09-14 19:20:27 +08:00
Hu Kejun
0b1f30c59f media: rockchip: ispp: fix cannot change some shadow bits by only config function
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ife16d5ec1eab82a3a30288dd91d5390d989b29d0
2020-09-14 19:20:08 +08:00
Hu Kejun
64ec71e36c phy: rockchip: mipi-dphy-rx: print data rate mbps to debug
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I010d4c7c6a78413e29a33b5695402be11ffb25da
2020-09-14 19:19:17 +08:00
Hu Kejun
c99031ad04 media: rockchip: cif: add more error log to debug
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: If0d89b1741dca0a5c6bbeb0ae66a472e3a75dc12
2020-09-14 19:19:17 +08:00
Jon Lin
6ded55882d ARM: dts: rv1126: Set fspi_cs1n pin group
Change-Id: I7bbafd9d798aa1cd050bc00cee13e024520dee6d
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-09-14 18:25:49 +08:00
William Wu
c3a06d3145 usb: dwc3: gadget: avoid repeatedly resizing txfifos
The current code resize the txfifos for all assigned endpoints
when enable ep. If we config the USB function as UVC, the txfifos
will be resized every time when we open UVC. It's safely to resize
the txfifos if only UVC is used. However, if we config the USB
as a composite device (UVC + RNDIS), and if we resize the txfifos
when the RNDIS data transfer in progress, it may make the controller
broken.

To fix this issue, we only resize the txfifos the first time we
enable the isoc eps.

Change-Id: I6b4fa093bff1a9752fbbd7bd4401b998ff02ad23
Signed-off-by: William Wu <william.wu@rock-chips.com>
2020-09-14 16:50:30 +08:00
Wu Liangqing
084b599e12 driver: net: wireless: rtl8821cs fix clang build error
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: I6e3f66ed682ff795697ed7c664b1bf2d96be1031
2020-09-14 16:42:45 +08:00
Yu Qiaowei
e0159849f0 video/rockchip: rga2: invalidate dst page.
When dst needs to write data to the virtual address,
it needs to make the dst page invlaid after rga runs.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I7abf580fbca302dba043bb0f84d32cb0369e4e48
2020-09-14 16:37:31 +08:00
Yu Qiaowei
72fd43ac08 video/rockchip: rga2: Add invalidate cache.
Use dma_map_page/dma_unmap_page to flush cache.Users
need to call rga2_blit_flush_cache() to flush cache
according to their needs.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ic929d3d4e5c1d23fae542481ca90ab6ba1680e0e
2020-09-14 16:37:31 +08:00
Jon Lin
4637222e90 ARM: dts: rockchip: Delete nandc and sfc pinctrl property for rv1126 board
Change-Id: Ib916361353973d8fd195912357e2e9598f420677
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-09-14 16:20:38 +08:00
Jon Lin
23480f0de4 ARM: dts: rv1126-pinctrl.dtsi remove fspi cs1 request
In order to suppot the case probing both EMMC and SFC
with pinctrl enabled, we'd better to set GPIO0_D6 iomux
EMMC pins.

Change-Id: Ia9dccfff3acfae31c153222d191391dbc5e7ac12
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-09-14 16:08:06 +08:00
Weiwen Chen
1e1c087277 ARM: dts: rv1126-38x38-v10-emmc: enable watchdog
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I6096007e5436970955943db7cf8c763ffe6f449e
2020-09-14 10:28:09 +08:00
Weiwen Chen
c003f2240f ARM: configs: rv1126-emmc-drivers-modules.config: add pppoe
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I2843813e6f641446d8ae347b5374d79a51a898af
2020-09-14 10:27:27 +08:00
Weiwen Chen
411afbcea4 ARM: configs: rv1126-emmc-drivers-modules.config: enable rga2 module
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I6ed51ace1c0bb80806ebe2d601128cdaddc8768f
2020-09-14 10:27:27 +08:00