Commit Graph

84494 Commits

Author SHA1 Message Date
Tao Huang
5b43c3279e drivers/input/touchscreen: remove unused atmel mxt1386/mxt224 drivers
Change-Id: Iadf4f95de2238b57e25eca6199403c02b22c1856
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-03 16:11:29 +08:00
Tao Huang
0039514fc6 drivers/input/touchscreen: remove unused ct36x drivers
Change-Id: Iaab79b3a681c693caa948bd9acd49096f87b0bf9
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-03 15:18:42 +08:00
Tao Huang
fb14148ef4 include/linux: remove unused board-id*.h
Change-Id: If3ab0c853e9c2e42697c5110149c3aa14cad4302
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-03 15:13:37 +08:00
Tao Huang
6acdc20027 include/linux: remove unused power/ricoh61x_battery_init.h
Change-Id: I1fdb306ce0efee902762f3bfc95db801f54812e4
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-03 14:53:29 +08:00
Tao Huang
8257a402ab drivers/input/misc: remove unused rk_board_id driver
Change-Id: I9f2db733e8929a1020e2085d615d81ded91b5299
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-03 14:51:29 +08:00
Tao Huang
e77e726674 drivers/mfd: remove unused twl6030 driver
Change-Id: I1edeb3c4cce065bce8efa578b6b118cdd1d286a3
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-03 14:48:02 +08:00
Tao Huang
f86bd58c98 drivers/input/misc: remove unused capella_cm3602 driver
Change-Id: I7a56dff0ddaa73a43f50f34f9d2f0d0db2f98baf
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-03 14:43:11 +08:00
Tao Huang
495446cde6 drivers/mfd: remove unused ricoh619 driver
Change-Id: I8e2be84e4356399b32816b829c5e07614717f848
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-03 13:37:26 +08:00
Tao Huang
ff7b94b829 drivers/misc: remove unused mtk23d driver
Change-Id: I32bf26f0e50a2e9b35067c4273df754e989357c1
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-03 13:19:15 +08:00
Tao Huang
6debc070cc drivers/misc: remove unused akm8963 driver
Change-Id: I02f5827ae72ec307df363345a8971c2cd6bc8447
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-03 13:10:57 +08:00
Tao Huang
7fe22b566c drivers/misc: remove unused scaler drivers
Change-Id: I9238ec677203a69ff9eecae66bac38f555824276
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-03 13:03:06 +08:00
Tao Huang
a742ea8f7b drivers/misc: remove unused bp drivers
Change-Id: I5a38a82e9d64d84e98935376f76591ed00d8e2f8
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-03 12:46:43 +08:00
Tao Huang
58093caf0b drivers/misc: remove unused 3g_module drivers
Change-Id: I63152f2bbd9383bbbc5dffdcb0a2bfccb26cbabd
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-03 12:42:07 +08:00
Tao Huang
fbadf313ef drivers/input: remove unused auto touchscreen support
Change-Id: Idc012f66abfcad6e5d601f97bded60f230b6fdcc
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 19:54:37 +08:00
Tao Huang
aed3a95a80 drivers/regulator: remove unused act8931
Change-Id: I5da894423bbc343585b0229d128480e11b9ed9fe
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 15:51:34 +08:00
Tao Huang
bac174c4fb include/linux: remove unused power/rockchip-general-bat.h
Change-Id: I872898d6b06fd6b2dac9005185ba523a59a0fa41
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 15:42:46 +08:00
Tao Huang
c999d5e7d4 drivers: remove unused rt5036 drivers
Change-Id: I1410d73a055153f4af39487798adccfc0e721bf1
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 15:40:29 +08:00
Tao Huang
cf0099827e drivers: remove unused rt5025 drivers
Change-Id: Iee99365df115f30399737705d3c6b773a0f2cb34
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 15:31:20 +08:00
Tao Huang
df782c6a00 drivers/regulator: remove unused rk2818_lp8725
Change-Id: I6f17d33865af1646ebdf5c91805f06ff9ff7f314
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 14:29:56 +08:00
Tao Huang
f40a2ab91d include/linux: remove unused usb/android_composite.h
Change-Id: Icb2766d87cea6f6ee5fdd1a3da2048133c9b7cfa
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 11:58:48 +08:00
Tao Huang
2b525bdc42 include/linux: remove unused ste.h
Change-Id: I9dc176ba74f647b1c856a96b1152aaeb82723cb5
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 11:57:44 +08:00
Tao Huang
bbc09ddb5b include/linux: remove unused sc6610.h
Change-Id: I8688b9ba614bb2cf12b587476dc78473d04c5a46
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 11:56:32 +08:00
Tao Huang
93cf3a463e include/linux: remove unused regulator/rockchip-pwm-regulator.h
Change-Id: I1d07db1e3a258ee20e2eb896e014a882302e9ccd
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 11:55:36 +08:00
Tao Huang
790fbc4fc8 include/linux: remove unused mpu6000.h
Change-Id: If12d3aeca3733e16449c560e930ce4181766b45d
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 11:50:40 +08:00
Tao Huang
e24f7b43a5 include/linux: remove unused mpu3050.h
Change-Id: Ifec236f9be23f00fa38e5b3b7c70f64fa1c9ec5f
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 11:50:40 +08:00
Tao Huang
a6ddd4ce8b include/linux: remove unused mmc/rk_mmc.h
Change-Id: I5e263c4964d12c52f6862552982bb91f97bdaf98
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 11:50:40 +08:00
Tao Huang
c77b9b04de include/linux: remove unused mi700.h
Change-Id: I9c5c961bea91b206b6abe4e9ed0963e6b9393a24
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 11:50:40 +08:00
Tao Huang
3073846c4f include/linux: remove unused kxtik.h
Change-Id: I728d0a0e13ac7244c6571b0492f9c9e1ef6c631b
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 11:50:40 +08:00
Tao Huang
1a8f59b345 include/linux: remove unused power/rockchip-adc-battery.h
Change-Id: I5f399528921fcc483775b4587c4e1d84d5e93f28
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 11:50:40 +08:00
Tao Huang
a1ed3255a3 include/linux: remove unused power/rockchip-6200ma-bat.h
Change-Id: I91f17ed0888767074ad4bad94f6a042d1cdf07bf
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-02 11:50:40 +08:00
Joseph Chen
23b4e1ec00 dt-bindings: suspend: rk3308: add gpio/pwm global 1st reset hold
add descriptions for these control definitions.

Change-Id: I212729e9ecba211c7e57f73cd5f437620284d1e9
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-11-01 15:33:56 +08:00
Tao Huang
e8f64bc63e drivers: remove unused adc driver
Change-Id: I71a79cf4372d2645537e3b8d19253487eb9039a2
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-11-01 15:11:58 +08:00
Shawn Lin
77b7a28fbf phy: add PCIE_EP and PCIE_RC modes
Innosilicon combophy for PCIe still need different
configuration between EP and RC mode.

Change-Id: Ie1f14e63785f44d84a2b3a154990c6a54eb1156e
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2018-10-31 18:23:06 +08:00
Shunqian Zheng
80de9b19d9 devfreq_cooling: inline the of_devfreq_cooling_register_power()
Make of_devfreq_cooling_register_power() as static inline.
This fixes the building error when CONFIG_THERMAL is disabled.

Change-Id: I3d88a3679de279a7ee7eadae7243b9661fdddf75
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2018-10-22 11:28:10 +08:00
Sandy Huang
670d74a8a5 drm/rockchip: csi tx: define mipi csi tx raw format
Change-Id: Ib3e1202d91a46db88616edfe70be4ba46eb5a721
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-10-11 20:57:05 +08:00
Tao Huang
d376ad8f23 Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git
* linux-linaro-lsk-v4.4-android: (1212 commits)
  ANDROID: sdcardfs: Change current->fs under lock
  ANDROID: sdcardfs: Don't use OVERRIDE_CRED macro
  ANDROID: restrict store of prefer_idle as boolean
  BACKPORT: arm/syscalls: Optimize address limit check
  UPSTREAM: syscalls: Use CHECK_DATA_CORRUPTION for addr_limit_user_check
  BACKPORT: arm64/syscalls: Check address limit on user-mode return
  BACKPORT: x86/syscalls: Check address limit on user-mode return
  BACKPORT: lkdtm: add bad USER_DS test
  UPSTREAM: bug: switch data corruption check to __must_check
  BACKPORT: lkdtm: Add tests for struct list corruption
  UPSTREAM: bug: Provide toggle for BUG on data corruption
  UPSTREAM: list: Split list_del() debug checking into separate function
  UPSTREAM: rculist: Consolidate DEBUG_LIST for list_add_rcu()
  BACKPORT: list: Split list_add() debug checking into separate function
  FROMLIST: ANDROID: binder: Add BINDER_GET_NODE_INFO_FOR_REF ioctl.
  BACKPORT: arm64/vdso: Fix nsec handling for CLOCK_MONOTONIC_RAW
  ANDROID: arm64: mm: fix 4.4.154 merge
  BACKPORT: zsmalloc: introduce zs_huge_class_size()
  BACKPORT: zram: drop max_zpage_size and use zs_huge_class_size()
  ANDROID: tracing: fix race condition reading saved tgids
  ...

Change-Id: I9f23db35eb926b6fa0d7af7dbbb55c9a37d536fc
2018-10-10 19:37:13 +08:00
Elaine Zhang
54e75c20ac clk: rockchip: rk1808: add clk ID for clk_rtc32k_frac
Change-Id: Iecde141adbee536285155c64267580bde2ce5b13
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-10-10 11:32:20 +08:00
Elaine Zhang
1c450a8082 clk: rockchip: rk1808: rename SCLK_GPIO to DBCLK_GPIO
Change-Id: I1ed6fe175fb2e640a7a61e1a2e799e94e76b435f
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-10-09 14:59:04 +08:00
Elaine Zhang
fb4fc53dc8 dt-bindings: clock: rk1808-cru: fix up the ID number repetition
HCLK_ISP and HCLK_CIF ID num are all 205.

Change-Id: Ia43cf6a8cd65e43673b4ebfe63bd92a3115740ab
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-10-09 09:27:51 +08:00
vkorjani
2a45f7557a UPSTREAM: drm: Add support for pps and compression mode command packet
After enabling DSC we need to send compression mode command packet
and pps data packet, for which 2 new data types are added
07h  Compression Mode Data Type Write , short write, 2 parameters
0Ah  PPS Long Write (word count determines number of bytes)
This patch adds support to send these packets.

Cc: David Airlie <airlied@linux.ie>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org

Changes in v3:
- None

Signed-off-by: vkorjani <vikas.korjani@intel.com>
[seanpaul removed pps_write_buffer fn, added types to packet_format helpers]
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>

Change-Id: I5597a4ca8fdf128faa52d87e7513a5be1e7a87da
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit ea107a183b)
2018-10-08 16:32:59 +08:00
Vinay Simha BN
98d6838916 UPSTREAM: drm/dsi: Implement DCS set/get display brightness
Provide a small convenience wrapper that set/get the display brightness.

Cc: John Stultz <john.stultz@linaro.org>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Archit Taneja <archit.taneja@gmail.com>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Vinay Simha BN <simhavcs@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>

Change-Id: I501ffb4b31ab2c8950ed1c4b84fb241d4b6aaae0
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 1a9d759331)
2018-10-08 16:32:58 +08:00
Thierry Reding
6f75206dd7 UPSTREAM: drm/dsi: Order DCS helpers by command code
Most of these helpers had been introduced in the correct order, but some
were simply appended, which wasn't detected when they were applied.

Signed-off-by: Thierry Reding <treding@nvidia.com>

Change-Id: Ic540fb4d541b32c21f9f2348aba3f4cae5c99fa6
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit bbdcf516a6)
2018-10-08 16:32:58 +08:00
Thierry Reding
53db5bc1ac UPSTREAM: drm/dsi: Make set_tear_scanline command consistent
Use a consistent name for the function that implements set_tear_scanline
and reword and reformat the kerneldoc slightly.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20160613133327.7630-1-thierry.reding@gmail.com

Change-Id: I67354ce8ff2bccfd9cd51a573d3007952057230c
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 6308c983d7)
2018-10-08 16:32:58 +08:00
Thierry Reding
62f4efb216 UPSTREAM: drm/dsi: Add uevent callback
Implement a uevent callback for devices on the MIPI DSI bus. This
callback will append MODALIAS information to the uevent and allow
modules to be loaded when devices are added to the bus.

Reviewed-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>

Change-Id: I580c1fb721330a5088f8ddf233a635c607277729
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit babb24fec1)
2018-10-08 16:32:57 +08:00
Vinay Simha BN
bf8bc184f3 UPSTREAM: drm/dsi: Implement set tear scanline
Provide a small convenience wrapper that transmits
a set_tear_scanline command.

v2:
  * helper function suggested by Thierry
    for set_tear_scanline
  * Also includes small build fixes from Sumit Semwal.

v3: one scanline parameter suggested by jani

v4: passing the payload properly as suggested by jani

Cc: Archit Taneja <archit.taneja@gmail.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Vinay Simha BN <simhavcs@gmail.com>
Reviewed-by: Sumit Semwal <sumit.semwal@linaro.org>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1465285532-12676-1-git-send-email-simhavcs@gmail.com

Change-Id: Ic20f27190dd048ecd16b01a23ccd815156ee9512
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit e839508163)
2018-10-08 16:32:57 +08:00
Archit Taneja
84beccf97f UPSTREAM: drm/dsi: Get DSI host by DT device node
MIPI DSI devices are inherently aware of their host because they share a
parent-child hierarchy in the device tree.

Non-DSI drivers that create DSI device don't have this data. In order to
get this information, they require to a phandle to the DSI host in the
device tree.

Maintain a list of all the DSI hosts that are currently registered. This
list will be used to find the struct mipi_dsi_host corresponding to the
device tree node passed to of_find_mipi_dsi_host_by_node().

Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>

Change-Id: I9d1a42c45707ec4b22e67e6b4aad058b3a5254df
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 97b6ae50e0)
2018-10-08 16:32:57 +08:00
Archit Taneja
8f107f3db3 UPSTREAM: drm/dsi: Add routine to unregister a DSI device
A driver calling mipi_dsi_device_register_full() might want to remove
the device once it's done. It might also require it in an error handling
path in case something went wrong.

Create mipi_dsi_device_unregister() for this purpose and use it within
mipi_dsi_remove_device_fn() as it does the same thing.

Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>

Change-Id: I538bd028851bb27dbf7c93d459b8276d7271dae8
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 509e42ce04)
2018-10-08 16:32:57 +08:00
Archit Taneja
c853fbcafc UPSTREAM: drm/dsi: Try to match non-DT DSI devices
Add a device name field in struct mipi_dsi_device. This name is not the
same as the device name (which is of the format "hostname.reg"). When
the device is created via DT, this name is set to the modalias string.
In the non-DT case, the driver creating the DSI device provides the
name by populating a field in struct mipi_dsi_device_info.

Matching for DT case would be as it was before. For the non-DT case, we
compare the device and driver names. Other buses (like I2C/SPI) perform
a non-DT match by comparing the device name and entries in the driver's
id_table. Such a mechanism isn't used for the DSI bus.

Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>

Change-Id: I68d4e46fb82ccce4e578256c031d6ee329d5eb1b
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit bf4363ce3a)
2018-10-08 16:32:56 +08:00
Archit Taneja
fe98b92275 UPSTREAM: drm/dsi: Use mipi_dsi_device_register_full() for DSI device creation
Use mipi_dsi_device_register_full() for device creation. This takes in
a struct mipi_dsi_device_info as a template to populate the DSI device
information.

The reason to introduce this is to have a way to create DSI devices not
available via DT. Drivers that want to create a DSI device can populate
a struct mipi_dsi_device_info and call this function. For DSI devices
available via DT, of_mipi_dsi_device_add() is used as before, but this
now calls mipi_dsi_device_register_full() internally.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>

Change-Id: I0fc26d2bbffd9368ceb50c1660ff74c4ab808b6b
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit c63ae8a968)
2018-10-08 16:32:56 +08:00
Deepak M
f549a90fc4 UPSTREAM: drm: Add new DCS commands in the enum list
Adding new DCS commands which are specified in the
DCS 1.3 spec related to CABC.

v2: Sorted the Macro`s by value (Andrzej)

v3 by Jani: sort all of enum, refer to MIPI DCS 1.3

Cc: Andrzej Hajda <a.hajda@samsung.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: <dri-devel@lists.freedesktop.org>
Suggested-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Deepak M <m.deepak@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1459346623-30752-1-git-send-email-jani.nikula@intel.com

Change-Id: I7efe6989d3c10b26d21137bfab7e933b00859a20
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 249c4f538b)
2018-10-08 16:32:55 +08:00