firefly-linux-kernel-4.4.55.git
8 years agoARM64: rockchip_cros_defconfig: enable Rockchip Inno usb2phy driver
Chris Zhong [Thu, 28 Jul 2016 03:12:08 +0000 (11:12 +0800)]
ARM64: rockchip_cros_defconfig: enable Rockchip Inno usb2phy driver

Change-Id: I5d3a87aec065b5a3af2cc17888047a2506e8573b
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
8 years agoarm64: dts: rockchip: add more reboot mode on rk3399
Huang, Tao [Thu, 28 Jul 2016 03:04:52 +0000 (11:04 +0800)]
arm64: dts: rockchip: add more reboot mode on rk3399

Add charging and fastboot mode support.

Change-Id: Ib66c0d8c36ae33eeef2672b2bb31f075f833dd87
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
8 years agopower: reset: reboot-mode: fix normal mode setup
Huang, Tao [Thu, 28 Jul 2016 02:59:22 +0000 (10:59 +0800)]
power: reset: reboot-mode: fix normal mode setup

If cmd is empty in get_reboot_mode_magic, we should return normal magic.

Change-Id: I10931adc49e33f72ae73d9471159f82cc02ff0c0
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
8 years agodt-bindings: soc: rockchip_boot-mode: add charging mode support
Huang, Tao [Thu, 28 Jul 2016 02:56:35 +0000 (10:56 +0800)]
dt-bindings: soc: rockchip_boot-mode: add charging mode support

Change-Id: I66d5eb1813583aae37b2d19a2cf18dd9bbaf7125
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
8 years agoarm64: dts: rockchip: rk3399-box-rev1: increase drive strength for sd/sdio pin
xiaoyao [Thu, 28 Jul 2016 02:03:43 +0000 (10:03 +0800)]
arm64: dts: rockchip: rk3399-box-rev1: increase drive strength for sd/sdio pin

Change-Id: I6566a7ea6e6e91160f4f456f4f402f2b06c63b56
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
8 years agoarm64: dts: rockchip: Add some drive strength properties for rk3399
xiaoyao [Thu, 28 Jul 2016 02:01:21 +0000 (10:01 +0800)]
arm64: dts: rockchip: Add some drive strength properties for rk3399

Change-Id: I8e838901729142dabff3703c52103daf28945edb
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
8 years agoFROMLIST: arm64: dts: rockchip: support the pmu node for rk3399
Caesar Wang [Thu, 30 Jun 2016 10:47:02 +0000 (18:47 +0800)]
FROMLIST: arm64: dts: rockchip: support the pmu node for rk3399

This patch add to enable the ARM Performance Monitor Units for rk3399.
ARM cores often have a PMU for counting cpu and cache events like cache
misses and hits.

Also, as the Marc posted the patches [0] to support Partitioning per-cpu
interrupts. Let's add this patch to match it on rk3399 SoCs.

[0]:
https://lkml.org/lkml/2016/4/11/182
https://patchwork.kernel.org/patch/9209369/

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
CC: linux-arm-kernel@lists.infradead.org
Acked-by: Mark Rutland <mark.rutland@arm.com>
(Remove the original dts PMU)
Change-Id: I7e06c479bff7a431b0dc03309df08a640060bafd
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
(am https://patchwork.kernel.org/patch/9215663/)

8 years agoFROMLIST: arm64: dts: rockchip: change all interrupts cells for 4 on rk3399 SoCs
Caesar Wang [Thu, 30 Jun 2016 11:11:08 +0000 (19:11 +0800)]
FROMLIST: arm64: dts: rockchip: change all interrupts cells for 4 on rk3399 SoCs

Add the interrupts cells value for 4, and the 4th cell is zero.

Due to the doc[0] said:" the system requires describing PPI affinity,
then the value must be at least 4"
The 4th cell is a phandle to a node describing a set of CPUs this
interrupt is affine to. The interrupt must be a PPI, and the node
pointed must be a subnode of the "ppi-partitions" subnode. For
interrupt types other than PPI or PPIs that are not partitionned,
this cell must be zero. See the "ppi-partitions" node description
below.

[0]:
Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.txt

Change-Id: I80d459b746aea40027a7eacfcc7aa764a57fdc9f
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
(am https://patchwork.kernel.org/patch/9215659/)
(Note: fixes some no sync upstream node)

8 years agoFROMLIST: drivers/perf: arm-pmu: Handle per-interrupt affinity mask
Marc Zyngier [Wed, 6 Jul 2016 14:33:47 +0000 (15:33 +0100)]
FROMLIST: drivers/perf: arm-pmu: Handle per-interrupt affinity mask

On a big-little system, PMUs can be wired to CPUs using per CPU
interrups (PPI). In this case, it is important to make sure that
the enable/disable do happen on the right set of CPUs.

So instead of relying on the interrupt-affinity property, we can
use the actual percpu affinity that DT exposes as part of the
interrupt specifier. The DT binding is also updated to reflect
the fact that the interrupt-affinity property shouldn't be used
in that case.

Change-Id: I4a48e116cfa84d74985f44ed30d6e664ce3cfa5f
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
(am from https://patchwork.kernel.org/patch/9216445/)

8 years agoARM: rockchip_linux_defconfig: enable driver for mali400(utgard) GPU
chenzhen [Wed, 27 Jul 2016 07:02:03 +0000 (15:02 +0800)]
ARM: rockchip_linux_defconfig: enable driver for mali400(utgard) GPU

Change-Id: I2f89c53cd6eba49c7a6d8439cb94e1d3a2f95f0a
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
8 years agowifi: power save: turn off the reset pin when wifi is closed
xiaoyao [Wed, 27 Jul 2016 02:39:47 +0000 (10:39 +0800)]
wifi: power save: turn off the reset pin when wifi is closed

Change-Id: I06b188d9a67319d2508f016595e73b2f1d97fa99
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
8 years agoarm64: dts: rockchip: rk3399-evb: add utmi-avalid for evb1/evb2
Wu Liang feng [Tue, 26 Jul 2016 12:25:09 +0000 (20:25 +0800)]
arm64: dts: rockchip: rk3399-evb: add utmi-avalid for evb1/evb2

The usb2 phy utmi bvalid status is invalid for ES1 evb1/evb2
board, so check vbus status by utmi avalid status.

Change-Id: Iae369183cd15034eb35818c63988150f3aad6374
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
8 years agophy: rockchip-inno-usb2: make utmi vbus configurable in DT
Wu Liang feng [Tue, 26 Jul 2016 12:05:09 +0000 (20:05 +0800)]
phy: rockchip-inno-usb2: make utmi vbus configurable in DT

Rockchip USB2 phy provides utmi_avalid and utmi_bvalid for
user to check UTMI vbus status. Generally, both of them can
reflect the vbus status correctly, and the utmi_bvalid has
higher sensitivity, so we select the utmi_bvalid to get vbus
status by default.

But some special SoCs may not provide utmi_bvalid, so we
need to select utmi_avalid in this case.

Change-Id: I0d47c2237f852cb67ebd82fe2673b2bd2e6ccce6
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
8 years agoMALI: utgard: rockchip: walk around 'Understanding page domain faults'
chenzhen [Tue, 14 Jun 2016 06:21:00 +0000 (14:21 +0800)]
MALI: utgard: rockchip: walk around 'Understanding page domain faults'

Change-Id: I89c935f9b309393b16fcb848ded6e665f525bd1c
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
8 years agoMALI: utgard: rockchip: avoid crash when CONFIG_GPU_TRACEPOINTS enabled
chenzhen [Wed, 27 Jul 2016 03:22:30 +0000 (11:22 +0800)]
MALI: utgard: rockchip: avoid crash when CONFIG_GPU_TRACEPOINTS enabled

Change-Id: Icbb4f9e1b56a9a23cd7041c589e9814743fe562b
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
8 years agoMALI: utgard: rockchip: fix a compile error when GPU_TRACEPOINTS enabled
chenzhen [Wed, 27 Jul 2016 06:52:49 +0000 (14:52 +0800)]
MALI: utgard: rockchip: fix a compile error when GPU_TRACEPOINTS enabled

Change-Id: Ib8dafc9116b1b1a95dfe687faeb9889e0ab66d3c
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
8 years agoARM64: dts: rk3399: vr: add support compass ak8963
Zorro Liu [Wed, 27 Jul 2016 09:43:44 +0000 (17:43 +0800)]
ARM64: dts: rk3399: vr: add support compass ak8963

Change-Id: I095e9af7e2e007e042ff35a6a92425707465bc08
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
8 years agoARM: dts: rockchip: add rk3288-miniarm board
Nickey Yang [Fri, 8 Jul 2016 10:03:44 +0000 (18:03 +0800)]
ARM: dts: rockchip: add rk3288-miniarm board

This adds support for rk3288-miniarm board,
Rockchip RK3288 based development boards.

Change-Id: I3db8f16ae7fa5e18675eefb29684f6ef07434683
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
8 years agoarm64: dts: rk3399: ajust ipa parameters
Rocky Hao [Wed, 27 Jul 2016 08:46:31 +0000 (16:46 +0800)]
arm64: dts: rk3399: ajust ipa parameters

Big cores' power consumption and gpu's are greatly reduced, ipa parameters
are ajusted accordingly.

Change-Id: Ibfdae1856c2f1c2cf80a0a2f963ec878053c6ef0
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
8 years agoARM64: dts: rk3399-evb3: ajust gpu opp table
Jianqun Xu [Wed, 27 Jul 2016 09:23:08 +0000 (17:23 +0800)]
ARM64: dts: rk3399-evb3: ajust gpu opp table

Some evb3 need 1v for 800M.
We remove 700M currently since havn't a good opinion of it.

Change-Id: I7083857f5bb8a09efe0369a6bdd49e28c67da8b7
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
8 years agoarm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399
Frank Wang [Wed, 27 Jul 2016 08:03:04 +0000 (16:03 +0800)]
arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399

We found that the suspend process was blocked when it run into
ehci/ohci module due to clk-480m of usb2-phy was disabled.

The root cause is that usb2-phy suspended earlier than ehci/ohci
(usb2-phy will be auto suspended if no devices plug-in). and the
clk-480m provided by it was diabled if no module used. However,
some suspend process related ehci/ohci are base on this clock,
so we should refer it into ehci/ohci driver to prevent this case.

Change-Id: Ic5e70a4234382e5cd1e1690e5174891e89360741
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
8 years agoclk: rockchip: rk3399: export 480M_SRC clock id for usbphy0/usbphy1
Xing Zheng [Wed, 27 Jul 2016 02:50:12 +0000 (10:50 +0800)]
clk: rockchip: rk3399: export 480M_SRC clock id for usbphy0/usbphy1

Change-Id: Icd566864d3651e7b64ee8209b66e8a326011422f
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
8 years agoARM64: configs: rockchip support CONFIG_F2FS_FS
Jianqun Xu [Tue, 26 Jul 2016 08:19:15 +0000 (16:19 +0800)]
ARM64: configs: rockchip support CONFIG_F2FS_FS

Select CONFIG_F2FS_FS and CONFIG_F2FS_FS_SECURITY.

Change-Id: I0380977d3593fccf6b417f8e72f118b7fc2c2b9b
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
8 years agopower: rk818: support rk818 charger driver
Jianhong Chen [Tue, 5 Jul 2016 07:20:19 +0000 (15:20 +0800)]
power: rk818: support rk818 charger driver

Change-Id: Ica9a517723d10ea75baddd3f16e3ee0aa07dfb8b
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
8 years agopower: rk818: support rk818 battery driver
Jianhong Chen [Fri, 17 Jun 2016 07:35:47 +0000 (15:35 +0800)]
power: rk818: support rk818 battery driver

Update version to v7.0, main features:
    1. new algorithm which is independent of time calculation in almost case,
    2. remove charger detect to driver: rk818-charger.c;
    3. save algorithm calculation rest value for next system power on calculation;
    4. recognize system halt and reset dsoc as rsoc;
    5. support hardware sample resistor selected as 10mR or 20mR;
    6. optimize zero algorithm to make discharge figure more smooth;
    7. fix some logic bugs.

Change-Id: I789d070693ac16102ecbe813d878a2a3c256c030
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
8 years agoiommu/rockchip: active and inactive count should be in pairs if attach failed
Simon [Wed, 27 Jul 2016 06:27:43 +0000 (14:27 +0800)]
iommu/rockchip: active and inactive count should be in pairs if attach failed

Change-Id: Ic2362814695d135c68ce2db1aec7b71bfcb28dd0
Signed-off-by: Simon <xxm@rock-chips.com>
8 years agoARM64: dts: rk3399-box: rename files for box-rev1
Jianqun Xu [Wed, 27 Jul 2016 03:18:28 +0000 (11:18 +0800)]
ARM64: dts: rk3399-box: rename files for box-rev1

Make dts files in order as follows:
rk3399.dtsi
rk3399-box.dtsi
rk3399-box-rev1.dts
rk3399-box-rev2.dts
...

Change-Id: I93d1fb4380d0c84a14fc3476b7435b1abe4989d2
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
8 years agoMALI: utgard: rockchip: fix_mali_hang_on_windows
Jacob Chen [Wed, 27 Jul 2016 03:02:32 +0000 (11:02 +0800)]
MALI: utgard: rockchip: fix_mali_hang_on_windows

Change-Id: I9a03f2427cbe0653821a1671c1f3758bc8e891fe
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agodrm/rockchip: add rk3036_alpha_support
Jacob Chen [Mon, 18 Jul 2016 05:30:31 +0000 (13:30 +0800)]
drm/rockchip: add rk3036_alpha_support

Change-Id: Ife16fb36502e70dfffc80d31d7f33235d63366eb
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoclk: rockchip: rk3399: fix up the make warning
Elaine Zhang [Wed, 27 Jul 2016 02:09:09 +0000 (10:09 +0800)]
clk: rockchip: rk3399: fix up the make warning

fix up the warning:
Line 246:  rate_table->nf = nf_out;
drivers/clk/rockchip/clk-pll.c:246:19: warning: 'nf_out' may be used uninitialized in this function [-Wmaybe-uninitialized]

Change-Id: I6c11bf91a280f324c21214cb7839e36f9ffa0da3
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
8 years agoARM64: dts: rk3399: vr: add support for new hardware
wlq [Tue, 26 Jul 2016 01:11:31 +0000 (09:11 +0800)]
ARM64: dts: rk3399: vr: add support for new hardware

Change-Id: I50d71c7e3b66013b7e8f65fdee662911c586a0bd
Signed-off-by: Liangqing Wu <wlq@rock-chips.com>
8 years agoclk: rockchip: rk3399: fix the incorrect bit
Xing Zheng [Tue, 26 Jul 2016 08:24:19 +0000 (16:24 +0800)]
clk: rockchip: rk3399: fix the incorrect bit

Due to refer to incorrect diagram, the bits of theXpll_aclk_perihp_src
and Xpll_aclk_emmc_src are incorrect, let's fix them.

Change-Id: I1054d172c8a1897da16287a01bfc5d83126d9666
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
8 years agoARM64: dts: rk3399: add support for box rev2
Zhangbin Tong [Tue, 19 Jul 2016 06:29:25 +0000 (14:29 +0800)]
ARM64: dts: rk3399: add support for box rev2

Change-Id: I77be7d3373696cb45aa4580fbb9a836dc2ff7ed0
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
8 years agoarm64: rockchip_defconfig: enable modules
Huang, Tao [Tue, 26 Jul 2016 09:32:35 +0000 (17:32 +0800)]
arm64: rockchip_defconfig: enable modules

Change-Id: I1dd9a7f8672144ad0994913a99560f4cee7045bd
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
8 years agoarm64/dma-mapping: __generic_dma_ops always call swiotlb_dma_ops
Jianqun Xu [Tue, 26 Jul 2016 09:21:25 +0000 (17:21 +0800)]
arm64/dma-mapping: __generic_dma_ops always call swiotlb_dma_ops

Arm64 dma-mapping will return dummy_dma_ops if none call arch_setup_dma_ops
at device creation time.

For ion APIS, ion_pages_sync_for_device and ion_pages_sync_for_cpu always
pass "NULL" as device, then dma-mapping return dummy_dma_ops, which cause
ion pages fail to sync.

This patch fixs __generic_dma_ops to return swiotlb_dma_ops instead of
dummy_dma_ops.

Change-Id: Ic00db5d4547bcd5f74e5fd155133fde408a05cdb
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
8 years agoMALI: utgard: rockchip: remove code depending on rk_dvfs_module
Jacob Chen [Fri, 22 Jul 2016 04:41:25 +0000 (12:41 +0800)]
MALI: utgard: rockchip: remove code depending on rk_dvfs_module

Set clk_gpu to 200M when initializing.
vdd_gpu isn't initialized explicitly.
DVFS isn't implemented.

Change-Id: I82c242d7929d55b7e40277a24b5c2b06a3121a3c
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agodriver, sensors, sensor-dev: add COMPAT ioctl for userspace
Zorro Liu [Tue, 26 Jul 2016 06:19:27 +0000 (14:19 +0800)]
driver, sensors, sensor-dev: add COMPAT ioctl for userspace

Change-Id: Id9340f8cca57f98c1b29e28e4d6aa566365b37e2
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
8 years agoinclude, linux, sensor-dev: add COMPAT ioctl define for sensors
Zorro Liu [Tue, 26 Jul 2016 06:18:03 +0000 (14:18 +0800)]
include, linux, sensor-dev: add COMPAT ioctl define for sensors

Change-Id: If59601bf08586f8a507ce3513b52e839327af59d
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
8 years agoARM64: dts: rk3399-evb-rev3: correct the es8316 codec i2c addr
Sugar Zhang [Tue, 26 Jul 2016 03:08:23 +0000 (11:08 +0800)]
ARM64: dts: rk3399-evb-rev3: correct the es8316 codec i2c addr

Change-Id: I5d329ae57d1059f464327f481d3db6525f5dbd64
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
8 years agoARM64: dts: rk3399: ajust gpu opp table for ES2 on evb3
Jianqun Xu [Tue, 26 Jul 2016 00:41:58 +0000 (08:41 +0800)]
ARM64: dts: rk3399: ajust gpu opp table for ES2 on evb3

Change-Id: Ia7283e2b4ddd2c008327024afbd89b2b176796e0
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
8 years agoclk: rockchip: rk3399: add pll up and down when change pll freq
Elaine Zhang [Mon, 25 Jul 2016 02:31:58 +0000 (10:31 +0800)]
clk: rockchip: rk3399: add pll up and down when change pll freq

set pll sequence:
->set pll to slow mode or other plls
->set pll down
->set pll params
->set pll up
->wait pll lock status
->set pll to normal mode

To slove the system error:
rockchip_rk3399_wait_pll_lock: timeout waiting for pll to lock
rockchip_rk3399_pll_set_params: pll update unsucessful,
trying to restore old params

Change-Id: I62aecd9f292de5a3c7bcd8a87231785bf115159d
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
8 years agoclk: rockchip: rk3399: support pll setting by auto
Elaine Zhang [Tue, 5 Jul 2016 09:20:33 +0000 (17:20 +0800)]
clk: rockchip: rk3399: support pll setting by auto

If setting freq is not support in rockchip_pll_rate_table rk3399_pll_rates[],
It can set pll params by auto.

Change-Id: I5016cece64dca4c2efec18d552ee6be426f6b95a
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
8 years agoarm64: rockchip_defconfig: merge android config
Huang, Tao [Mon, 25 Jul 2016 11:40:03 +0000 (19:40 +0800)]
arm64: rockchip_defconfig: merge android config

enable CONFIG_NETFILTER_XT_MATCH_QUOTA2_LOG and CONFIG_UID_CPUTIME

Change-Id: I1db112c2ead7fdffaefe5e0e6dfa5800574d6f13
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
8 years agoMerge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux...
Huang, Tao [Mon, 25 Jul 2016 11:37:09 +0000 (19:37 +0800)]
Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git

* linux-linaro-lsk-v4.4-android:
  Linux 4.4.15
  usb: dwc3: exynos: Fix deferred probing storm.
  usb: host: ehci-tegra: Grab the correct UTMI pads reset
  usb: gadget: fix spinlock dead lock in gadgetfs
  USB: mos7720: delete parport
  xhci: Fix handling timeouted commands on hosts in weird states.
  USB: xhci: Add broken streams quirk for Frescologic device id 1009
  usb: xhci-plat: properly handle probe deferral for devm_clk_get()
  xhci: Cleanup only when releasing primary hcd
  usb: musb: host: correct cppi dma channel for isoch transfer
  usb: musb: Ensure rx reinit occurs for shared_fifo endpoints
  usb: musb: Stop bulk endpoint while queue is rotated
  usb: musb: only restore devctl when session was set in backup
  usb: quirks: Add no-lpm quirk for Acer C120 LED Projector
  usb: quirks: Fix sorting
  USB: uas: Fix slave queue_depth not being set
  crypto: user - re-add size check for CRYPTO_MSG_GETALG
  crypto: ux500 - memmove the right size
  crypto: vmx - Increase priority of aes-cbc cipher
  AX.25: Close socket connection on session completion
  bpf: try harder on clones when writing into skb
  net: alx: Work around the DMA RX overflow issue
  net: macb: fix default configuration for GMAC on AT91
  neigh: Explicitly declare RCU-bh read side critical section in neigh_xmit()
  bpf, perf: delay release of BPF prog after grace period
  sock_diag: do not broadcast raw socket destruction
  Bridge: Fix ipv6 mc snooping if bridge has no ipv6 address
  ipmr/ip6mr: Initialize the last assert time of mfc entries.
  netem: fix a use after free
  esp: Fix ESN generation under UDP encapsulation
  sit: correct IP protocol used in ipip6_err
  net: Don't forget pr_fmt on net_dbg_ratelimited for CONFIG_DYNAMIC_DEBUG
  net_sched: fix pfifo_head_drop behavior vs backlog
  sdcardfs: Truncate packages_gid.list on overflow
  UPSTREAM: cdc_ncm: do not call usbnet_link_change from cdc_ncm_bind
  BACKPORT: proc: add /proc/<pid>/timerslack_ns interface
  BACKPORT: timer: convert timer_slack_ns from unsigned long to u64
  netfilter: xt_quota2: make quota2_log work well
  Revert "usb: gadget: prevent change of Host MAC address of 'usb0' interface"
  BACKPORT: PM / sleep: Go direct_complete if driver has no callbacks
  ANDROID: base-cfg: enable UID_CPUTIME
  UPSTREAM: USB: usbfs: fix potential infoleak in devio
  UPSTREAM: ALSA: timer: Fix leak in events via snd_timer_user_ccallback
  UPSTREAM: ALSA: timer: Fix leak in events via snd_timer_user_tinterrupt
  UPSTREAM: ALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS
  ANDROID: configs: remove unused configs
  ANDROID: cpu: send KOBJ_ONLINE event when enabling cpus
  ANDROID: dm verity fec: initialize recursion level
  ANDROID: dm verity fec: fix RS block calculation

8 years agomfd: rk8xx: add pm_shutdown callback in rk8xx_power_data
Shengfei xu [Tue, 19 Jul 2016 09:34:43 +0000 (17:34 +0800)]
mfd: rk8xx: add pm_shutdown callback in rk8xx_power_data

The rk818 and rk808 have different way to shutdown.
Add callback(pm_shutdown) to fulfill the individual action for
each PMIC.

Change-Id: I05dc7015ffd0f82c0ab761a380865338fe1adefe
Signed-off-by: Shengfei xu <xsf@rock-chips.com>
8 years agorockchip/vcodec: set HW mode to none when hw quit work
Alpha Lin [Mon, 18 Jul 2016 12:04:10 +0000 (20:04 +0800)]
rockchip/vcodec: set HW mode to none when hw quit work

Before this revision, if IOMMU isn't enable, driver don't
set the HW running mode to none, it will effect next task
to select its required mode properly.

Change-Id: Ib4e7f23b2014813226bef994aee10b1be8a06634
Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
8 years agoregulator: lp8752: set dcdc mode as auto mode
Elaine Zhang [Mon, 25 Jul 2016 01:50:12 +0000 (09:50 +0800)]
regulator: lp8752: set dcdc mode as auto mode

lp8752 static power is too high when in foce pwm mode,
change it's mode to auto.

Change-Id: I6b1342cc8b63d240d90194b52f5926501ea7babf
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
8 years agoARM64: dts: rk3399: fixup android next backlight gpio
Mark Yao [Fri, 22 Jul 2016 08:59:44 +0000 (16:59 +0800)]
ARM64: dts: rk3399: fixup android next backlight gpio

since the commit (878fd85 ARM64: dts: rk3399: lcd_en control in vop),
the panel should enable the backlight gpio by itself.

Change-Id: Ia4128aee0dac4283d359714859662a86667efa27
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
8 years agoarm64: dts: rockchip: update usb2phy config for rk3399
Frank Wang [Fri, 22 Jul 2016 01:42:31 +0000 (09:42 +0800)]
arm64: dts: rockchip: update usb2phy config for rk3399

Add host-port dt config and remove the old ones to support the
new usb2phy driver. Plus, Add vcc5v0_host regulator for usb2phy
and enable host-port config for all rk3399 board.

Change-Id: Ia9d00525f53e5a6f52ca6681b4b6b98235822940
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
8 years agoFROMLIST: phy: rockchip-inno-usb2: support for rk3399 host-port
Frank Wang [Fri, 22 Jul 2016 01:37:32 +0000 (09:37 +0800)]
FROMLIST: phy: rockchip-inno-usb2: support for rk3399 host-port

This patch just sync the new adds v8 from patchwork list,
the others we have already merged before.

Change-Id: Iad0eb9002d7c8228fdbe6082bf3166a2dec418ba
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
(am from https://patchwork.kernel.org/patch/9236143/)

8 years agophy: rockchip-usb: remove the support of rk3366 and rk3399
Frank Wang [Fri, 22 Jul 2016 01:29:31 +0000 (09:29 +0800)]
phy: rockchip-usb: remove the support of rk3366 and rk3399

For rk3366 and rk3399, the usb-phy IP block is different than
previous chips, so we should use a new driver to handle them.

Change-Id: I44ebe883664e9fb2fce8707bab2d9159c546e51f
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
8 years agoARM64: dts: rk3399: add support for evb3
Jianqun Xu [Thu, 7 Jul 2016 07:35:11 +0000 (15:35 +0800)]
ARM64: dts: rk3399: add support for evb3

Add to support RK3399 evb reversion 3, with ES2.

Change-Id: Ia07a19d600a6acc1e503e9e56c78d2f60f4ef9be
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
8 years agoARM64: dts: rk3399: lcd_en control in vop
xubilv [Wed, 29 Jun 2016 10:05:51 +0000 (18:05 +0800)]
ARM64: dts: rk3399: lcd_en control in vop

Change-Id: I94f514ecc3367b11838910b1cdd0d0f3b29a24c3
Signed-off-by: xubilv <xbl@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
8 years agoARM: dts: rockchip: add mali400 GPU on rk3036 kylin board
chenzhen [Sun, 12 Jun 2016 07:49:29 +0000 (15:49 +0800)]
ARM: dts: rockchip: add mali400 GPU on rk3036 kylin board

Change-Id: Ieda2fcb919151d504b22feb4b5b55f0caac8eeda
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
8 years agoARM: dts: rockchip: enable usb_host and usb_otg for rk3288 Fennec
Nickey Yang [Wed, 20 Jul 2016 08:36:45 +0000 (16:36 +0800)]
ARM: dts: rockchip: enable usb_host and usb_otg for rk3288 Fennec

This makes both the usb_otg and usb_host port work well on the RK3288-Fennec board.

Change-Id: I08d2f8916ee1efafdab519513df7cc8e587be2f2
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
8 years agoCHROMIUM: v4l2-ctrls: fix s_ext_ctrls error when passing non-zero ctrl_class
Jeffy Chen [Thu, 21 Jul 2016 02:38:51 +0000 (10:38 +0800)]
CHROMIUM: v4l2-ctrls: fix s_ext_ctrls error when passing non-zero ctrl_class

due to a merge mistake in I3b80a31681765836a134812ebc56686324ca5194.

Change-Id: Iad2914518997b664704f2c2933c8327fc4252bbb
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
8 years agoclk: rockchip: rk3399: add cru regs dump for panic
Elaine Zhang [Wed, 20 Jul 2016 07:08:27 +0000 (15:08 +0800)]
clk: rockchip: rk3399: add cru regs dump for panic

Add cru and pmucru regs dump when system panic.
It's just for debug.

Change-Id: I3f837f2941054129d20c2355d86f575d6ee84665
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
8 years agophy: rockchip-inno-usb2: support otg-port for rk3399
Wu Liang feng [Wed, 6 Jul 2016 02:47:56 +0000 (10:47 +0800)]
phy: rockchip-inno-usb2: support otg-port for rk3399

This patch add otg-port support. For now, however,
it only support BC1.2 charger detect, power management,
and hold a wakelock when work as SDP(e.g. connect to PC),
and it need to implement otg device/host switch in future.

Change-Id: Ib58aef748211f947da439ebe59fa5cf8dc1fa010
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
8 years agoFROMLIST: dt-bindings: add simple-panel-dsi and simple-panel
Mark Yao [Wed, 20 Jul 2016 03:18:50 +0000 (11:18 +0800)]
FROMLIST: dt-bindings: add simple-panel-dsi and simple-panel

Allow user add display timing on device tree with simple-panel-dsi
or simple-panel.

Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Change-Id: I95cdd8634ccd7dc2861a1ed93bcc625f0552c3a3
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
(am from https://patchwork.kernel.org/patch/9238725)

8 years agoFROMLIST: drm/panel: add of display timing support
Mark Yao [Wed, 20 Jul 2016 03:18:49 +0000 (11:18 +0800)]
FROMLIST: drm/panel: add of display timing support

We want add display support on loader, share the same timing
with kernel side, but the timing is hide into kernel code,
can't be share, avoid config twice display timing, add device-tree
display timing support would be good idea.

With this patch, loader and kernel can share same timing from
device node.

Cc: Thierry Reding <thierry.reding@gmail.com>
Change-Id: I6c1ee6ad0194e242035e2f11589d86fdb363b80a
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
(am from https://patchwork.kernel.org/patch/9238727)

8 years agoARM: dts: rockchip: merge the hdmi-audio card with rt5640-codec card
Jacob Chen [Tue, 19 Jul 2016 09:10:02 +0000 (17:10 +0800)]
ARM: dts: rockchip: merge the hdmi-audio card with rt5640-codec card

Change-Id: Ibe3f218f9b3283c82329500486fd73298fc3b0d6
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoARM: configs: rockchip: enable RT5640 support for linux defconfig
Jacob Chen [Tue, 19 Jul 2016 09:08:18 +0000 (17:08 +0800)]
ARM: configs: rockchip: enable RT5640 support for linux defconfig

Change-Id: Iec3cf4edf2981e2077069ffb1cf3991f373ec75e
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoARM: dts: rk3288: Enable high speed on sd card on rk3288-evb
Jacob Chen [Fri, 15 Jul 2016 07:50:53 +0000 (15:50 +0800)]
ARM: dts: rk3288: Enable high speed on sd card on rk3288-evb

Change-Id: Idd855fb565dde2e47891f6676175c6573c245fcd
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoARM: dts: rk3288: add missing regulator-ramp-delay for act8846
Jacob Chen [Thu, 14 Jul 2016 08:27:04 +0000 (16:27 +0800)]
ARM: dts: rk3288: add missing regulator-ramp-delay for act8846

Change-Id: I587baf113846aaede89121c739e6edc869623c2d
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoARM: configs: enable dw-hdmi audio with i2s interface
Yakir Yang [Mon, 18 Jul 2016 03:34:22 +0000 (11:34 +0800)]
ARM: configs: enable dw-hdmi audio with i2s interface

Default enable CONFIG_DRM_DW_HDMI_I2S_AUDIO.

Change-Id: I317f90e622ab65aaf66c9199e070a14fd1877f13
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
8 years agoARM: dts: rk3288: add asoc simple card for DW-HDMI audio for EVB board
Yakir Yang [Sat, 16 Jul 2016 09:17:15 +0000 (17:17 +0800)]
ARM: dts: rk3288: add asoc simple card for DW-HDMI audio for EVB board

HDMI use the I2S0 as the audio input source, and DW-HDMI audio function
is based on generic hdmi-codec driver.

Change-Id: I6c85ffe7c214b17a3b5b319e4cd20e95a1b46398
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
8 years agoFROMLIST: drm: bridge: add DesignWare HDMI I2S audio support
Kuninori Morimoto [Fri, 24 Jun 2016 02:40:44 +0000 (11:40 +0900)]
FROMLIST: drm: bridge: add DesignWare HDMI I2S audio support

Current dw-hdmi is supporting sound via AHB bus, but it has
I2S audio feature too. This patch adds I2S audio support to dw-hdmi.
This HDMI I2S is supported by using ALSA SoC common HDMI encoder
driver.

Change-Id: I32e95f66838883ac44a45f95c55583184a0a1b46
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
(am form https://patchwork.kernel.org/patch/9196453/)

8 years agodrm/rockchip: inno_hdmi: add the missing parameter in struct hdmi_codec_ops
Yakir Yang [Sat, 16 Jul 2016 08:46:50 +0000 (16:46 +0800)]
drm/rockchip: inno_hdmi: add the missing parameter in struct hdmi_codec_ops

Commit b360d3748e ("ASoC: hdmi-codec: callback function will be called
with private data") have introduced an external parameter in struct
hdmi_codec_ops, so need to fix the old interfaces.

Change-Id: Iaebd49ba7eb7fc0d857ff8aa8f9af39ea4678143
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
8 years agoFROMLIST: ASoC: hdmi-codec: callback function will be called with private data
Kuninori Morimoto [Fri, 24 Jun 2016 02:47:55 +0000 (02:47 +0000)]
FROMLIST: ASoC: hdmi-codec: callback function will be called with private data

Current hdmi-codec driver is assuming that it will be registered
from HDMI driver. Because of this assumption, each callback function
has struct device pointer which is parent device (= HDMI).
Then, it can use dev_get_drvdata() to get private data.

OTOH, on some SoC/HDMI case, SoC has VIDEO/SOUND and HDMI IPs.
This case, it needs SoC VIDEO, SoC SOUND and HDMI video, HDMI codec
driver. In DesignWare HDMI IP case, SoC VIDEO (= DRM/KMS) driver tries
to bind DesignWare HDMI video driver, and HDMI codec driver
(= hdmi-codec). This case, above "parent device" of HDMI codec driver
is DRM/KMS driver and its "device" already has private data.

And, from DT and ASoC CPU/Codec/Card binding point of view, HDMI codec
(= hdmi-codec) needs to have "parent device" (= DRM/KMS), otherwise,
it never detect sound card.

Because of these reasons, some driver can't use dev_get_drvdata() to
get private data on hdmi-codec driver. This patch add new void pointer
on hdmi_codec_pdata for private data, and callback function will be
called with it.

Change-Id: Ic7f4bb6cc06b5f7ce9a5a60f54566a780ddf1f65
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
(am form https://patchwork.kernel.org/patch/9196459/)

8 years agoARM64: dts: rk3399: move hdmi-sound nodes to rk3399-evb.dtsi
Jianqun Xu [Wed, 13 Jul 2016 08:13:16 +0000 (16:13 +0800)]
ARM64: dts: rk3399: move hdmi-sound nodes to rk3399-evb.dtsi

Change-Id: I63f1c8b6c2bbdcb78ec6f5324f6b02105063832a
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
8 years agoarm64: dts: rockchip: support use drm on android
Mark Yao [Thu, 7 Jul 2016 03:57:03 +0000 (11:57 +0800)]
arm64: dts: rockchip: support use drm on android

Change-Id: Ibc89e731c6eceac05cd3b013a5b05d7be5396efb
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
8 years agoMALI: rockchip: upgrade midgard DDK to r12p0-04rel0
chenzhen [Mon, 20 Jun 2016 02:03:27 +0000 (10:03 +0800)]
MALI: rockchip: upgrade midgard DDK to r12p0-04rel0

Signed-off-by: chenzhen <chenzhen@rock-chips.com>
Conflicts:

drivers/gpu/arm/midgard/mali_kbase_core_linux.c

Change-Id: I17d67d066f6e029c2d8f1711002c347002a48399
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
8 years agoarm64: dts: rockchip: add touch panel gslx680 for 3399 vr board
jerry.zhang [Tue, 19 Jul 2016 06:09:27 +0000 (14:09 +0800)]
arm64: dts: rockchip: add touch panel gslx680 for 3399 vr board

Change-Id: I8d106b2146c01371bae8952e3926e44d86df464a
Signed-off-by: jerry.zhang <jerry.zhang@rock-chips.com>
8 years agoarm64: rockchip_defconfig: add CONFIG_TOUCHSCREEN_GSLX680_VR=y
jerry.zhang [Tue, 19 Jul 2016 05:56:37 +0000 (13:56 +0800)]
arm64: rockchip_defconfig: add CONFIG_TOUCHSCREEN_GSLX680_VR=y

Change-Id: I9f34d60eec83ab6a8480caa5142805e5ae1f92f0
Signed-off-by: jerry.zhang <jerry.zhang@rock-chips.com>
8 years agoInput: add gslx680 touch panel for 3399 VR
jerry.zhang [Mon, 18 Jul 2016 09:35:52 +0000 (17:35 +0800)]
Input: add gslx680 touch panel for 3399 VR

Change-Id: I89c3dd181324f6b39e50c40fd404743eab43fe52
Signed-off-by: jerry.zhang <jerry.zhang@rock-chips.com>
8 years agoarm64: dts: rockchip: add saradc and key for 3399 VR board
jerry.zhang [Tue, 19 Jul 2016 02:40:47 +0000 (10:40 +0800)]
arm64: dts: rockchip: add saradc and key for 3399 VR board

Change-Id: I8f331ffc30fe900afbe669c504b96350dd4de79e
Signed-off-by: jerry.zhang <jerry.zhang@rock-chips.com>
8 years agothermal: rockchip: rk3399: enhance the tsadc's bandgap feature
Rocky Hao [Mon, 18 Jul 2016 09:52:43 +0000 (17:52 +0800)]
thermal: rockchip: rk3399: enhance the tsadc's bandgap feature

Due to the voltage ripple, the sensing data of the tsadc is not accurate.
And in this patch, the bandgap feature is enhanced to remove the voltage
ripple, and then the tsadc can sense the temperature more precisely.

Obsolete codes are removed as well.

Change-Id: Ifdd98def63212bc13306e7d5befee5eb32dbbc2f
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
8 years agoCHROMIUM: drm: rockchip/dw_hdmi: introduce werid audio tmds_n table
Yakir Yang [Sun, 6 Dec 2015 11:26:52 +0000 (19:26 +0800)]
CHROMIUM: drm: rockchip/dw_hdmi: introduce werid audio tmds_n table

There are some rates that would be ranged for better clock jitter at
Chrome OS tree, like 25.175Mhz would range to 25.170732Mhz.

But due to the clock is aglined to KHz in struct drm_display_mode,
this would bring some inaccurate error if we still run the compute_n
math, so let's just code an const table for it until we can actually
get the right clock rate.

Change-Id: Ief14b7c9bffa95ff3b173925f3e1bd795625320d
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/316280
Commit-Ready: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
8 years agoCHROMIUM: drm: bridge/dw_hdmi: improved the hdmi audio N/CTS cacluate math
Yakir Yang [Wed, 2 Dec 2015 09:50:56 +0000 (17:50 +0800)]
CHROMIUM: drm: bridge/dw_hdmi: improved the hdmi audio N/CTS cacluate math

The original math would bring some inaccurate to N/CTS that would
caused those magic number won't fit the HDMI 1.4 Spec request:
128 * SampleRate = Tmds * N / CTS;

So this time we try to improved to math of N that would find the
minimal inaccurate with the HDMI 1.4 Spec.

Change-Id: Ied3cde3c352d955ae6f15d5e7fb172e92316c2a5
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/315424
Reviewed-by: Douglas Anderson <dianders@chromium.org>
8 years agoCHROMIUM: drm: rockchip/dw_hdmi-rockchip: Fixup the clock to be what we expect
Yakir Yang [Sat, 16 Jul 2016 08:44:26 +0000 (16:44 +0800)]
CHROMIUM: drm: rockchip/dw_hdmi-rockchip: Fixup the clock to be what we expect

We allow some amount of slop in dw_hdmi_rockchip_mode_valid().  That's
a good thing since allowing a little bit of slop lets us support a
bunch of extra resolutions.

Originally, we also made a change to the VOP code to add the concept
of slop in there.  That was reasonable, but there was a problem: it
would tend to request clock rates that weren't _exactly_ clock rates
that we thought about.  It's possible that the common clock framework
would map these to PLL rates that we haven't thought about and we
haven't tested for jitter.

Instead of changing VOP, we should probably adjust the clock ourselves
in the mode_fixup function.  That way we'll request the exact clock we
tested and we'll know how the common clock framework will map it.

Change-Id: I56c2b046f76d554aab5eaed7a6b171ea074d6a62
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/284376
Reviewed-by: Alexandru Stan <amstan@chromium.org>
8 years agoCHROMIUM: drm: rockchip/dw_hdmi-rockchip: Protect against > 2GHz pixel clocks
Yakir Yang [Sat, 16 Jul 2016 08:42:32 +0000 (16:42 +0800)]
CHROMIUM: drm: rockchip/dw_hdmi-rockchip: Protect against > 2GHz pixel clocks

Add a check just to make sure that someone doesn't try to give us a
pixel clock that is > 2GHz.  If they did that, some of our math might
overflow, so it's good to make sure we don't do it.

Change-Id: I451602f0d771bb16b399b43e376e1054b7ee060f
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/284642
Reviewed-by: Alexandru Stan <amstan@chromium.org>
8 years agoCHROMIUM: drm: rockchip/dw_hdmi-rockchip: refactor the mode table
Yakir Yang [Sat, 16 Jul 2016 08:39:04 +0000 (16:39 +0800)]
CHROMIUM: drm: rockchip/dw_hdmi-rockchip: refactor the mode table

This cleanup will allow the following patch to implement slop easier.

25175000-40000000 and a few other ranges use the same settings.
And the rest of the driver already snaps to the next highest
frequency when it gets the settings. So this patch removes
a lot of the duplicates. It should be a noop change.

And frequencies within 0.1% should be close enough, let's redo
rockchip hdmi to allow slop.

Change-Id: Ic4865b2825de9b6c3b3e8d029066a8964e8ede6b
Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Alexandru M Stan <amstan@chromium.org>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
8 years agomedia: rockchip-vpu: fix compiled warning about uninitialized 'ret'
Yakir Yang [Sat, 16 Jul 2016 08:29:32 +0000 (16:29 +0800)]
media: rockchip-vpu: fix compiled warning about uninitialized 'ret'

rockchip_vpu_hw.c:251:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized]

Change-Id: Ia5564c2da345c5922341b818961b18d2b1419013
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
8 years agoARM64: dts: rk3399: modify i2s node in rk3399-evb.dtsi
Jianqun Xu [Wed, 13 Jul 2016 08:11:52 +0000 (16:11 +0800)]
ARM64: dts: rk3399: modify i2s node in rk3399-evb.dtsi

Change-Id: I2c96c537792d5981afcbdc88d8d5dcf57155b977
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
8 years agophy: rockchip-emmc: enable internal pull-down for strobe line
Shawn Lin [Tue, 19 Jul 2016 02:16:26 +0000 (10:16 +0800)]
phy: rockchip-emmc: enable internal pull-down for strobe line

We enable it by default as we could see the usage of PCB layout
will not stuff this registor. For currently boards which soldered
it already, there should be no harmful.

Change-Id: Idc05c244dbaeebb1028e4828aa7a7d655899beb8
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
8 years agoUPSTREAM: ASoC: rt5616: add missing mute control for HPVOL
Jacob Chen [Fri, 15 Jul 2016 01:43:59 +0000 (09:43 +0800)]
UPSTREAM: ASoC: rt5616: add missing mute control for HPVOL

Add missing kcontrol for HPVOL mute control.

Signed-off-by: John Lin <john.lin@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Bug: 25923642

(cherry picked from git.kernel.org broonie/sound.git for-next
 commit d7fcd13663fe43ad938fec1acd46ff196dddf914)
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I75951c4b67474951e6c033e0dece5134c51dc233
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoUPSTREAM: ASoC: rt5616: Add support sample rate to 192KHz
Jacob Chen [Fri, 15 Jul 2016 01:43:49 +0000 (09:43 +0800)]
UPSTREAM: ASoC: rt5616: Add support sample rate to 192KHz

Reference the TRM, the ALC5616 support one 24bit/8KHz ~ 192KHz
I2S/PCM Interface for stereo DAC and stereo ADC.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Bug: 27307957
Patchset: fetch the upstream ASoC for rk3036 kylin board.

(cherry picked from git.kernel.org broonie/sound.git for-next
 commit 4e26ad80cbd3a6b0d606201892e81a9a9c6864ce)
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I1751e2c663689d4a45cd94d609c0b61d1ac9237b
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoUPSTREAM: ASoC: rt5616: add the mclk for the codec driver
Jacob Chen [Fri, 15 Jul 2016 01:43:39 +0000 (09:43 +0800)]
UPSTREAM: ASoC: rt5616: add the mclk for the codec driver

This patch adds the code to enable the clock to the CODEC driver
if it needs the clock enabled.

In some case, We need to claim the clock which is driving the codec
so that when we enable clock gating, we continue to clock the codec
when needed.

if mclk provided, to enable and disable the clock source.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Bug: 27307957
Patchset: fetch the upstream ASoC for rk3036 kylin board.

(cherry picked from git.kernel.org broonie/sound.git for-next
 commit 76d3204eaa9364a662f0fe0f075dfe61e6bd14fe)
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Iaa1b07a1ff729f3b84c1e32cd0fdd0f36d9a8889
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoUPSTREAM: ASoC: rt5616: trivial: fix the typo
Jacob Chen [Fri, 15 Jul 2016 01:43:28 +0000 (09:43 +0800)]
UPSTREAM: ASoC: rt5616: trivial: fix the typo

This patch try to fix the trivial typo.

Run "scripts/checkpatch.pl -f --subjective xxx"
The enable more subjective tests.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Bug: 27307957
Patchset: fetch the upstream ASoC for rk3036 kylin board.
(Note: match the Kconfig for rt5616)

(cherry picked friom git.kernel.org broonie/sound.git for-next
 commit 99081589c5ad590e9828ae9febc384612f241164)
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Ied09a6f69a7364daa68309fa9a0a4cd2e4a368e6
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoUPSTREAM: ASoC: rt5616: rename some alsa control names
Jacob Chen [Fri, 15 Jul 2016 01:43:16 +0000 (09:43 +0800)]
UPSTREAM: ASoC: rt5616: rename some alsa control names

Rename some alsa control name as what they should be.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Bug: 25923642
Patchset: rt5616 audio

(cherry picked from broonie/sound.git#for-next e2133b64820df302a8e3d00c7531018470cd63a9)
Signed-off-by: Kees Cook <keescook@chromium.org>
Change-Id: I1d81031ddbe7ce5c38602c38ab643f893f436ef0
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoUPSTREAM: ASoC: rt5616: add an of_match table
Jacob Chen [Fri, 15 Jul 2016 01:43:06 +0000 (09:43 +0800)]
UPSTREAM: ASoC: rt5616: add an of_match table

Add a device tree match table. This serves to make the driver's support
of device tree more explicit.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Bug: 25923642
Patchset: rt5616 audio

(cherry picked from broonie/sound.git#for-next e17ff2de826f8c2153cf23c8bbd9097219a84fa9)
Signed-off-by: Kees Cook <keescook@chromium.org>
Change-Id: I7ee1967a3cdf9583942c0d75b5e4d0125d31cd0c
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoUPSTREAM: ASoC: rt5616: Return error if device ID mismatch
Jacob Chen [Fri, 15 Jul 2016 01:42:51 +0000 (09:42 +0800)]
UPSTREAM: ASoC: rt5616: Return error if device ID mismatch

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Bug: 25923642
Patchset: rt5616 audio

(cherry picked from broonie/sound.git#for-next 36ddd489b0669f8913c8eda192507f8267749917)
Signed-off-by: Kees Cook <keescook@chromium.org>
Change-Id: I55e15dfb42bf5022a976451311214980c4897aa5
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoUPSTREAM: ASoC: rt5616: add rt5616 codec driver
Jacob Chen [Fri, 15 Jul 2016 01:42:16 +0000 (09:42 +0800)]
UPSTREAM: ASoC: rt5616: add rt5616 codec driver

This is the initial codec driver for rt5616.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Bug: 25923642
Patchset: rt5616 audio

(cherry picked from broonie/sound.git#for-next b1d15059957d33d111e0ed38724a6b2c5caac790)
Signed-off-by: Kees Cook <keescook@chromium.org>
Change-Id: I17f99e549cb59a3788b257f63e51a84b3e9d4162
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agosound: rockchip: remove rk's 5616 code
Jacob Chen [Fri, 15 Jul 2016 01:40:28 +0000 (09:40 +0800)]
sound: rockchip: remove rk's 5616 code

Change-Id: Ie48539c64500509ed19b6f13e8e30e864b8c6072
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoARM: configs: rokchip: enable RT5616 support for linux defconfig
Jacob Chen [Fri, 15 Jul 2016 09:20:30 +0000 (17:20 +0800)]
ARM: configs: rokchip: enable RT5616 support for linux defconfig

Quick way to test rt5616 on RK3036 Kylin board, you need bellow
commands:
  tinymix "HP Playback Switch" 1
  tinymix "HPVOL Playback Switch" 1
  tinymix "HP Playback Volume" 10
  tinymix "HPO MIX HPVOL Switch" 1
  tinymix "OUT MIXR DAC R1 Switch" 1
  tinymix "OUT MIXL DAC L1 Switch" 1
  tinymix "Stereo DAC MIXR DAC R1 Switch" 1
  tinymix "Stereo DAC MIXL DAC L1 Switch" 1

Test command:
root@linaro-alip:~#  aplay -D plughw:CARD=rockchiprt5616c,DEV=0 /opt/Third_Eye.wav

Change-Id: Ic4d44ed1a373869d5e0e670701b06f58f0e6399c
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoARM: dts: rockchip: merge the hdmi-audio card with rt5616-codec card
Jacob Chen [Fri, 15 Jul 2016 01:39:29 +0000 (09:39 +0800)]
ARM: dts: rockchip: merge the hdmi-audio card with rt5616-codec card

Change-Id: I2888cbb7df9d4cd9d270f7fd81f34b27b40997cc
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agodrm/rockchip: select hdmi codec when enable inno_hdmi
Jacob Chen [Fri, 15 Jul 2016 09:05:19 +0000 (17:05 +0800)]
drm/rockchip: select hdmi codec when enable inno_hdmi

Change-Id: I33462d7677cec7e774f6901b5af3f25e402c3358
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
8 years agoMerge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android
Alex Shi [Sun, 17 Jul 2016 04:18:15 +0000 (12:18 +0800)]
Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android

8 years ago Merge tag 'v4.4.15' into linux-linaro-lsk-v4.4
Alex Shi [Sun, 17 Jul 2016 04:18:11 +0000 (12:18 +0800)]
 Merge tag 'v4.4.15' into linux-linaro-lsk-v4.4

 This is the 4.4.15 stable release

8 years agoarm64: dts: rockchip: add usb typec phy node for rk3399
Kever Yang [Fri, 1 Apr 2016 08:38:14 +0000 (16:38 +0800)]
arm64: dts: rockchip: add usb typec phy node for rk3399

Change-Id: I0313f7812bad02136abbd8868a201cf4409620d6
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>