zhangjun [Sun, 9 Oct 2016 11:54:43 +0000 (19:54 +0800)]
rk_headset: add micbias logic to compatible with es8316
Change-Id: I1aefdf1dc1975a95c2b746d7385c991f99e058bf
Signed-off-by: zhangjun <zhangjun@rock-chips.com>
zhangjun [Sun, 9 Oct 2016 06:41:45 +0000 (14:41 +0800)]
ASoC: es8316: add interface for rk_headset
Change-Id: I62f7e78ca4003f6ab90c943a187babd274acc1de
Signed-off-by: zhangjun <zhangjun@rock-chips.com>
Zhou weixin [Sun, 9 Oct 2016 00:44:17 +0000 (08:44 +0800)]
arm64: dts: rockchip: remove cpufreq 1.5G on rk3399-sapphire
Change-Id: I1d8919424fd8047bcf077f6f8cbbb18e5a25d553
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
Elaine Zhang [Mon, 10 Oct 2016 09:07:48 +0000 (17:07 +0800)]
ARM64: dts: rk3399: add regulator-ramp-delay for dcdc
used to calculate the delay time for change dcdc voltage.
Change-Id: I6bb462ef087b9ce6aa98991a1b961ed5f57bb3c8
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Ulf Hansson [Wed, 6 Apr 2016 14:12:08 +0000 (16:12 +0200)]
UPSTREAM: mmc: block: Use the mmc host device index as the mmcblk device index
Commit
520bd7a8b415 ("mmc: core: Optimize boot time by detecting cards
simultaneously") causes regressions for some platforms.
These platforms relies on fixed mmcblk device indexes, instead of
deploying the defacto standard with UUID/PARTUUID. In other words their
rootfs needs to be available at hardcoded paths, like /dev/mmcblk0p2.
Such guarantees have never been made by the kernel, but clearly the above
commit changes the behaviour. More precisely, because of that the order
changes of how cards becomes detected, so do their corresponding mmcblk
device indexes.
As the above commit significantly improves boot time for some platforms
(magnitude of seconds), let's avoid reverting this change but instead
restore the behaviour of how mmcblk device indexes becomes picked.
By using the same index for the mmcblk device as for the corresponding mmc
host device, the probe order of mmc host devices decides the index we get
for the mmcblk device.
For those platforms that suffers from a regression, one could expect that
this updated behaviour should be sufficient to meet their expectations of
"fixed" mmcblk device indexes.
Another side effect from this change, is that the same index is used for
the mmc host device, the mmcblk device and the mmc block queue. That
should clarify their relationship.
Reported-by: Peter Hurley <peter@hurleysoftware.com>
Reported-by: Laszlo Fiat <laszlo.fiat@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Fixes: 520bd7a8b415 ("mmc: core: Optimize boot time by detecting cards
simultaneously")
Cc: <stable@vger.kernel.org>
Change-Id: I8fe12a3858f3e2ace8fcc785befbae588108e2db
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
(cherry picked from commit
9aaf3437aa72ed5370bf32c99580a3fa2c330e3d)
xiaoyao [Sat, 8 Oct 2016 03:39:21 +0000 (11:39 +0800)]
ARM64: dts: rk3399-box: add card-detect-delay property
Practice shows :
The sd cards are easier to be identified after increase delay
Change-Id: I48912e2d184902fab8b27edba70281f0bf19b9ab
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
xiaoyao [Sat, 8 Oct 2016 03:03:56 +0000 (11:03 +0800)]
HACK: mmc: core: fixes not send_status after switch timing
Fixes
3527e5709 (HACK: mmc: core: fix switching ... ...)
Change-Id: Id46840452e4bc87efb93e785cd8bbac5f708552d
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
Elaine Zhang [Mon, 10 Oct 2016 09:17:38 +0000 (17:17 +0800)]
clk: rk3399: add 2016M for clk_cpub
Change-Id: I8ce32102a76b3acf45073a8b7d9538ee521b1315
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Elaine Zhang [Mon, 10 Oct 2016 07:03:38 +0000 (15:03 +0800)]
regulator: mp8865: add set_voltage_time_sel func
support delay time in microseconds required to
rise or fall to this new voltage
Change-Id: I8d096500a3dcb376785285d08228961cf6b26ce0
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Elaine Zhang [Mon, 10 Oct 2016 06:58:03 +0000 (14:58 +0800)]
regulator: lp8752: add set_voltage_time_sel func
support delay time in microseconds required to
rise or fall to this new voltage
Change-Id: I1f7c77356e650b9ff01ad0e63fd384e25f774eac
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
wenping.zhang [Thu, 29 Sep 2016 09:48:50 +0000 (17:48 +0800)]
mfd: fusb302: add usb super speed property support.
The meaning of the property value is as below:
The value of the property EXTCON_PROP_USB_SS is 0: USB1.0 or USB2.0
The value of the property EXTCON_PROP_USB_SS is 1: USB3.0
we change the logic of fusb302 notification , if dp sink device is connected, dfp is set to 1,
and use pin assignment value to define if sink device support usb3.0.
Change-Id: Ib7afaf9b754b4585b0ef211dd246059b8ab72904
Signed-off-by: wenping.zhang <wenping.zhang@rock-chips.com>
wjh [Tue, 27 Sep 2016 09:33:53 +0000 (17:33 +0800)]
drivers: sound: usb: fix disvr usb Audio bug
The disvr usb audio sampling rate is through nanoc reported to
the kernel, so don't need the kernel again set the sampling rate.
Change-Id: I60409fc579952a196c4fe40f678e87d505a7508d
Signed-off-by: wjh <wjh@rock-chips.com>
Huang Jiachai [Sun, 9 Oct 2016 02:28:03 +0000 (10:28 +0800)]
video: rockchip: rk fb: add hot plug state indicate extent screen state
Change-Id: If7dea36a420ef21763c309d12d64d95574b3dcf3
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
Xubilv [Sat, 8 Oct 2016 12:01:42 +0000 (20:01 +0800)]
video: rockchip: edp: add support connect to vopl
Change-Id: I13347beed5548b073f616fe94d3b900c19c50c5d
Signed-off-by: Xubilv <xbl@rock-chips.com>
Huang Jiachai [Sun, 9 Oct 2016 06:16:05 +0000 (14:16 +0800)]
video: rockchip: vop: 3399: fix vop little win1/3 property error
Change-Id: I32580745f0b4ad252225756d793ec7c0247be452
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
Binyuan Lan [Thu, 29 Sep 2016 12:01:55 +0000 (20:01 +0800)]
usb: phy-rockchip-inno-usb2: fix wrong charging state when otg host connect
No need notify charging-external-connector state when otg host connect.
Change-Id: I1d5c6e4fb2ad504f169ef0fd5b82b06f31783922
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Bin Yang [Sun, 9 Oct 2016 09:21:58 +0000 (17:21 +0800)]
power: rk818: use EXTCON_USB_VBUS_EN to notify rk818 enable otg
Change-Id: Ica0a28f07d5ca474fb8a8385748a6b4adf9d4b82
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Bin Yang [Fri, 23 Sep 2016 07:22:34 +0000 (15:22 +0800)]
mfd: fusb302: Add EXTCON_USB_VBUS_EN for fusb302
Some rk3399 board(rk3399 MID or rk3399 VR) is use rk81x generated vbus.
So need fusb302 send a extcon to notify rk818 when OTG or DP cable plugin.
If use EXTCON_USB_HOST, the extcon will notify dwc3 and rk818_charger at
the same time,so need to add a new extcon EXTCON_USB_VBUS_EN.
Change-Id: Ib019ed7c2d4343c50dcef739ab3076f592979ea0
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Xubilv [Sat, 8 Oct 2016 07:46:46 +0000 (15:46 +0800)]
video: rockchip: edp: read/write register before pm_runtime_put
Change-Id: I3a6a910857ff4c6921996f625807b4aefc4cd5a1
Signed-off-by: Xubilv <xbl@rock-chips.com>
Kishon Vijay Abraham I [Tue, 28 Jun 2016 06:32:08 +0000 (12:02 +0530)]
UPSTREAM: phy: xgene: rename "enum phy_mode" to "enum xgene_phy_mode"
No functional change. Rename "enum phy_mode" to
"enum xgene_phy_mode" in xgene phy driver in
preparation for adding set_mode callback in
phy core.
Change-Id: I7e569e1fb82a308e79d30a80323e0c3c338dd68c
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Loc Ho <lho@apm.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit
65048f4dd9fae7335b48ab23a879119c0e7fa105)
Wu Liang feng [Sat, 8 Oct 2016 03:26:40 +0000 (11:26 +0800)]
arm64: dts: rockchip: set dwc3 dr_mode as otg for rk3399-box
rk3399-box Type-C0 USB needs to support peripheral mode
and host mode, so we set dr_mode as otg.
Change-Id: If94cdca3ec1d018c3f9aad14bb2c1e15e10e9c51
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Wu Liang feng [Fri, 30 Sep 2016 11:19:40 +0000 (19:19 +0800)]
usb: dwc3: gadget: fix trb ring full bug
The upstream commit
5e8ec28765 (usb: dwc3: gadget: Handle TRB
index 0 when full or empty) only use the HWO = 1 to check if
the TRB ring is full. But refer to DWC3 databook Version 3.00a,
8.2.3.2 TRB Control Bit Rules: When an OUT endpoint receives a
short packet, some TRBs in a chain may still have their HWO bit
set to 1 while belonging to software.
So if HWO=1 and CSP=1 on OUT endpoint, it also means that TRB
ring is empty, software may reclaim those TRBs even though HWO=1.
TEST=use MTP to transfer big data, and then cancel the transition,
check if it can transfer again.
Change-Id: I45cc683dc733ff7a642cfcd3ebc20455ef677753
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
David Lechner [Mon, 9 May 2016 23:39:59 +0000 (18:39 -0500)]
UPSTREAM: phy: Add set_mode callback
The initial use for this is for PHYs that have a mode related to USB OTG.
There are several SoCs (e.g. TI OMAP and DA8xx) that have a mode setting
in the USB PHY to override OTG VBUS and ID signals.
Of course, the enum can be expaned in the future to include modes for
other types of PHYs as well.
Change-Id: Iebc730d7e41c2910fa1be98cbf275d2c73358050
Suggested-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit
300eb0139cf27044c67f6005ff17b8434c7843f0)
Bin Yang [Fri, 7 Oct 2016 06:54:27 +0000 (14:54 +0800)]
arm64: dts: rockchip: enable ldo5 and ldo6 in suspend for rk3399 mid
Hall-sensor must keep power on in suspend.
Change-Id: I149e6434f793a6686693f2dabe5959814d134c5e
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Bin Yang [Fri, 23 Sep 2016 02:51:58 +0000 (10:51 +0800)]
extcon: Add EXTCON_USB_VBUS_EN for USB Type-C
Add the new extcon EXTCON_USB_VBUS_EN to enable
vbus output.
Change-Id: I83fb75b2a82ad617dc292967bb4917bbfbcb84cb
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Guenter Roeck [Mon, 15 Aug 2016 13:15:35 +0000 (06:15 -0700)]
UPSTREAM: extcon: Introduce EXTCON_PROP_USB_SS property for SuperSpeed mode
EXTCON_PROP_USB_SS (SuperSpeed)[1] is necessary to distinguish
between USB/USB2 and USB3 connections on USB Type-C cables.
[1] https://en.wikipedia.org/wiki/USB#Overview
Change-Id: Iae845b7e2125291bba0646c7219f485299e7d375
Cc: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit
8df0cfe6c6c4a9355989baa8de9f166b2bc51f76)
Huang, Tao [Fri, 7 Oct 2016 03:59:39 +0000 (11:59 +0800)]
extcon: remove EXTCON_PROP_USB_ID property
Fix commit
536277d5500a ("FROMLIST: extcon: Add the support for
extcon property according to extcon type"), which introduce
EXTCON_PROP_USB_ID property, but upstream don't have such property.
Remove it make merge easy.
Change-Id: I7905049629aa85158b7e705b40018f83fa85a9ac
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
Bin Yang [Fri, 23 Sep 2016 07:27:01 +0000 (15:27 +0800)]
arm64: dts: rockchip: enable cdn_dp_fb node for rk3399-mid
Change-Id: I2f2dd5758f449749e5b25dc1c8bb36aa829401f3
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Jacob Chen [Fri, 7 Oct 2016 01:10:45 +0000 (09:10 +0800)]
UPSTREAM: Bluetooth: hci_ldisc: Fix null pointer derefence in case of early data
HCI_UART_PROTO_SET flag is set before hci_uart_set_proto call. If we
receive data from tty layer during this procedure, proto pointer may
not be assigned yet, leading to null pointer dereference in rx method
hci_uart_tty_receive.
This patch fixes this issue by introducing HCI_UART_PROTO_READY flag in
order to avoid any proto operation before proto opening and assignment.
Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Change-Id: Ibe366f3222cbe7a093cd08aaecbc0de1004088c8
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
(cherry picked from commit
84cb3df02aea4b00405521e67c4c67c2d525c364)
Huang Jiachai [Thu, 29 Sep 2016 02:54:37 +0000 (10:54 +0800)]
video: rockchip: vop: 3399: vop lite lut and edp output is 8 bit
Change-Id: Icb333d92713cba2dda14b977ea9c6a1617e88bbf
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
Binyuan Lan [Fri, 30 Sep 2016 03:40:20 +0000 (11:40 +0800)]
mfd: rk808: close rtc int when power off
Change-Id: I1f1bfe3d6c106632c45b51bec3c18361572df865
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Huang Jiachai [Tue, 27 Sep 2016 08:24:18 +0000 (16:24 +0800)]
video: rockchip: vop: 3399: update for cabc
If enable cabc function, close auto gating, because cabc and auto gating
can't enable at the same time, in addition cabc open and close will lead
to splash screen, so when close cabc, we just set stage up and down to 0.
Change-Id: Ia4561d6adafa956c26d1921caecc7eed97dd218a
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
zhangjun [Tue, 27 Sep 2016 03:10:53 +0000 (11:10 +0800)]
arm64: rockchip_defconfig: enable rk_headset
Change-Id: I6644e71b9a1fc5a10a711b55fab3056c4152105c
Signed-off-by: zhangjun <zhangjun@rock-chips.com>
Jianhong Chen [Fri, 23 Sep 2016 06:42:20 +0000 (14:42 +0800)]
power: rk818 charger: fix otg supply on/off error
As we register regmap irq to manage rk818 irqs, it should
not enable/disable irq by modifying register directly. And
check otg on/off line state before setting new state.
Change-Id: I45d45d62bea05b1c489337ac7f3334fbafcd4166
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Jianhong Chen [Fri, 23 Sep 2016 06:39:48 +0000 (14:39 +0800)]
power: rk818 charger: remove suspend and resume callback
CHG_CVTLIM_INT is default disabled yet
Change-Id: I07123ad023322e7a88a3b992988980498256b284
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Jianhong Chen [Fri, 23 Sep 2016 06:34:35 +0000 (14:34 +0800)]
mfd: rk808: add RK818_IRQ_CHG_CVTLIM into rk818 regmap irq
Change-Id: Iae2bf8e6aa86c0fd82b6905c9f37fffe2c719479
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Elaine Zhang [Thu, 29 Sep 2016 07:29:37 +0000 (15:29 +0800)]
clk: rockchip: rk3399: fix up the spi softrst ID
fix up the spi3 and spi5 softrst ID.
Change-Id: Ib8870ef765284e04674ce80acf0b4702ed77cebc
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
chenzhen [Thu, 29 Sep 2016 01:01:12 +0000 (09:01 +0800)]
MALI: midgard: RK: not to power off all the pm cores
This is a workaround for the issue that
"400M, 500M and 600M of clk_gpu needs high vdd_gpu",
according to "6.1" of Mali Application Note
"Potential glitches on Power Domain interfaces".
Change-Id: I58daa3cf796802f073f67bacb62734516be76205
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
Zorro Liu [Wed, 28 Sep 2016 09:26:49 +0000 (17:26 +0800)]
dt-bindings: screen-timing: Add RAYKEN RK055AUWI5003 single channel MIPI screen dts
Change-Id: I2e2e9b30bdb19be765cecd38f31e651872d03e82
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Zorro Liu [Wed, 28 Sep 2016 09:34:07 +0000 (17:34 +0800)]
dt-bindings: screen-timing: set h381dln01 75fps, add screen-width and screen-hight
Change-Id: I88166845112a2c17c86a44a6c43bdea4ac26347f
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Elaine Zhang [Mon, 26 Sep 2016 08:31:30 +0000 (16:31 +0800)]
clk: rockchip: rk3399: fix up the dclk_vop1_div parents
if the dclk_vop0_div allow CLK_SET_RATE_PARENT for VPLL,
the dclk_vop1_div parent is not allowed in vpll.
Change-Id: I9973014e8ed2fcf1c351e3f62c00040677391ff7
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
zhangjun [Tue, 27 Sep 2016 02:04:45 +0000 (10:04 +0800)]
rk_headset: re-enable driver/headset_observe/
Change-Id: I84a05b94894b0240d8dd6fbd9ef7bc693b933da9
Signed-off-by: zhangjun <zhangjun@rock-chips.com>
Jacob Chen [Thu, 22 Sep 2016 03:20:29 +0000 (11:20 +0800)]
arm64: dts: rk3399: add power-domain property for edp
Change-Id: Ic6df7a80cbb1572725d4b8cbb7b3074bcd28d13c
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
Huibin Hong [Mon, 26 Sep 2016 07:56:38 +0000 (15:56 +0800)]
ARM64: dts: rk3399-android: Set ramoops_mem size to 0xf0000
Change-Id: I3c0c4a51ed2ff19e4baad17349e3e87efc43a2f6
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Huibin Hong [Mon, 26 Sep 2016 07:54:13 +0000 (15:54 +0800)]
ARM64: dts: rk3399-android-next: Set ramoops_mem size to 0xf0000
Change-Id: I69c2416fb07b4364f1e02fe21be351771b1b6c6b
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
lanshh [Mon, 26 Sep 2016 08:14:08 +0000 (16:14 +0800)]
drivers: iio: imu: fix initial screen offset when switch app
Change-Id: Ia65b4b5e03b712d0c69546d69ea7b4364f30b05b
Signed-off-by: lanshh <lsh@rock-chips.com>
Huibin Hong [Mon, 26 Sep 2016 08:09:10 +0000 (16:09 +0800)]
rk_fiq_debugger: Reset and set uart to loopback mode before init
The uart may be reinitialized when resume, if uart is in busy
state, which would fail to configure the baud rate. So reset
and set uart to loopback mode can make sure uart is in idle
state.
Change-Id: I54d9ac8de1531cd06da8c223583cd2e330178eff
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Bin Yang [Fri, 23 Sep 2016 08:05:33 +0000 (16:05 +0800)]
arm64: rockchip_defconfig: enable hall sensor mh248
Change-Id: Id2818a07865e114f45f57b2bb5a70bb886d7fc38
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Huang, Tao [Mon, 26 Sep 2016 08:03:13 +0000 (16:03 +0800)]
input: sensors: hall: do not enable hall default
Change-Id: I773b1cd05b8cf5aef26035f356732b3a487fc6e0
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
Meng Dongyang [Sun, 25 Sep 2016 07:48:29 +0000 (15:48 +0800)]
usb: dwc3: unregister extcon notify if probe fail
When the pointer of hcd is NULL, dwc3 driver will probe again. In this
case the notify sync function will issue "Bad mode in Synchronous Abort
handler detected" error if the extcon notify is not unregisted before
next probe. This patch add unregister extcon notify function and
unregister extcon notify when hcd is NULL.
Change-Id: Id55ce4280518e0c7e36a64133e38189bb4a7d29e
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
David Wu [Fri, 23 Sep 2016 06:08:11 +0000 (14:08 +0800)]
input: keyboard: rk_keys: Add support for configuring adc drift value from DT
If the adc drift value is 70, some keys maybe report twice, because
the range of adc_value +/-70 is overlapping other keys' adc range.
So it is better configuring adc drift value from DT, that also can
support more keys at a adc channel. The default adc drift value is
70, if it does not get the drift value from DT.
Change-Id: I46cef235094116d4f03af5e5c0cd3a6dfe7e8b0d
Signed-off-by: David Wu <david.wu@rock-chips.com>
Meng Dongyang [Sun, 11 Sep 2016 08:30:04 +0000 (16:30 +0800)]
usb: u2phy: add support for otg function
In the case of platform designed in usb2.0 only mode, which
the dwc3 controller connect without fusb302 and type-c phy
does not work, the u2phy need to support hot plug and detect
otg mode, this patch add support of otg function in this mode.
Change-Id: I428a4f6d17d847c6114d124733e62c0a6236b94e
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
Meng Dongyang [Sun, 11 Sep 2016 08:27:57 +0000 (16:27 +0800)]
usb: dwc3: fix logical error during controller probe
The probe function of usb controller will remove hcd struct in host
or otg mode, while the hcd is alloced after xhci driver registed. So
there is a logical error if xhci driver is registed after usb
controller and it results in the pointer of hcd point to NULL. This
patch make usb controller probe again if hcd point to NULL.
Change-Id: I659f86decac59fca610b355356fc971b3a86d4be
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
zain wang [Thu, 22 Sep 2016 12:18:55 +0000 (20:18 +0800)]
mfd: fusb302: correct the wrong pointer type used in regmap_read
used unsigned int pointer that regmap_read wanted instead of unsigned char
pointer
Change-Id: I89f838144a4d27a3bf695232acc4dbbe920863bf
Signed-off-by: zain wang <wzz@rock-chips.com>
xiaoyao [Thu, 22 Sep 2016 10:01:56 +0000 (18:01 +0800)]
HACK: mmc: core: fix switching clk 400K to 52/200M status error
Change-Id: I56285d306e8e3a52039a7612fae666ed40117a4a
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
xiaoyao [Thu, 22 Sep 2016 09:24:59 +0000 (17:24 +0800)]
mmc: sdhci-of-arasan: add sdhci_arasan_voltage_switch for arasan,5.1
Per the vendor's requirement, we shouldn't do any setting for
1.8V Signaling Enable, otherwise the interaction/behaviour between
phy and controller will be undefined. Mostly it works fine if we do
that, but we still see failures. Anyway, let's fix it to meet the
vendor's requirement. The error log looks like:
[ 93.405085] mmc1: unexpected status 0x800900 after switch
[ 93.408474] mmc1: switch to bus width 1 failed
[ 93.408482] mmc1: mmc_select_hs200 failed, error -110
[ 93.408492] mmc1: error -110 during resume (card was removed?)
[ 93.408705] PM: resume of devices complete after 213.453 msecs
Change-Id: Icc5457355c3f57b84bd6073f0c4e01350bcc9ee6
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
xiaoyao [Thu, 22 Sep 2016 09:21:24 +0000 (17:21 +0800)]
mmc: core: changes frequency to hs_max_dtr when selecting hs400es
Per JESD84-B51 P69, Host need to change frequency to <=52MHz after
setting HS_TIMING to 0x1, and host may changes frequency to <= 200MHz
after setting HS_TIMING to 0x3. It seems there is no difference if
we don't change frequency to <= 52MHz as f_init is already less than
52MHz. But actually it does make difference. When doing compatibility
test we see failures for some eMMC devices without changing the
frequency to hs_max_dtr. And let's read the spec again, we could see
that "Host may changes frequency to 200MHz" implies that it's not
mandatory. But the "Host need to change frequency to <= 52MHz" implies
that we should do this.
Change-Id: I1dc9f5fa8dc217e033fc4b1689ca1b0204c294c0
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
xiaoyao [Thu, 22 Sep 2016 09:20:31 +0000 (17:20 +0800)]
mmc: core: switch to 1V8 or 1V2 for hs400es mode
When introducing hs400es, I didn't notice that we haven't
switched voltage to 1V2 or 1V8 for it. That happens to work
as the first controller claiming to support hs400es, arasan(5.1),
which is designed to only support 1V8. So the voltage is fixed to 1V8.
But it actually is wrong, and will not fit for other host controllers.
Let's fix it.
Change-Id: I982bf34b3d305123ab7debd858e60f2454123c24
Fixes: commit 81ac2af65793ecf ("mmc: core: implement enhanced strobe support")
Cc: <stable@vger.kernel.org> 4.4# +
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
Ziyuan Xu [Thu, 22 Sep 2016 09:19:21 +0000 (17:19 +0800)]
mmc: core: don't try to switch block size for dual rate mode
Per spec, block size should always be 512 bytes for dual rate mode,
so any attempts to switch the block size under dual rate mode should
be neglected.
Change-Id: I6ede0d8fd6c7b8e4903a51c1c2a1b96d350bd2e2
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
xiaoyao [Thu, 22 Sep 2016 09:33:47 +0000 (17:33 +0800)]
UPSTREAM: ARM64: dts: rockchip: update rk3399.dtsi for emmc&phy
Change-Id: I97948c250f63423c5a7f305cfaa3a10b190f736f
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
xiaoyao [Thu, 22 Sep 2016 09:31:14 +0000 (17:31 +0800)]
UPSTREAM: phy: update phy-rockchip-emmc.c upstream version
Change-Id: I9f582f28492a301fb281a3dce92421abb782c822
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
xiaoyao [Thu, 22 Sep 2016 09:30:25 +0000 (17:30 +0800)]
UPSTREAM: mmc: update sdhci-of-arasan.c upstream version
Change-Id: I72285f9d962f7399428102db483ad3c3ed19f998
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
xiaoyao [Thu, 22 Sep 2016 09:29:19 +0000 (17:29 +0800)]
UPSTREAM: mmc: core: update mmc.c upstream version
Change-Id: Ie67d23ca74708467d5af01b4ca801efa5dcd2f51
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
Zhou weixin [Fri, 23 Sep 2016 02:10:17 +0000 (10:10 +0800)]
arm64: dts: rockchip: adjust the backlight level table on rk3399 mid
Change-Id: Ia5a7ca623d4db8b4fbd32fab45d5c4b924413bee
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
zhangjun [Fri, 23 Sep 2016 02:12:12 +0000 (10:12 +0800)]
arm64: dts: rk3399-sapphire-excavator-edp: disable hdmi audio
due to
ff8a0000.i2s can't bound to card "rockchip,hdmi" and
"rockchip,cdn-dp-fb" at the same time
Change-Id: Ie43bf882f0eacb6e87d10ba5eba0fd38dbb5462e
Signed-off-by: zhangjun <zhangjun@rock-chips.com>
wuliangqing [Fri, 23 Sep 2016 02:15:18 +0000 (10:15 +0800)]
ARM64: dts: rk3399-mid: update for emmc&phy
Change-Id: I4dffff1475a6e05344ef1ea4cb9bd662e32e53fc
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
wuliangqing [Fri, 23 Sep 2016 02:13:08 +0000 (10:13 +0800)]
ARM64: dts: rk3399-vr: update for emmc&phy
Change-Id: I59c767a37ef072132c3b81fe1029763202420593
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Wu Liang feng [Sat, 10 Sep 2016 05:37:08 +0000 (13:37 +0800)]
usb: dwc3: fix logical errors and improve stability for rockchip platform
1. put clks err handle at the end of probe.
2. register extcon notifier after dwc3 core initialized successfully.
3. try to get extcon cable state in probe, this can avoid to
lose the first extcon state notifier.
4. fix pm runtime handle and disable clks in remove operation
Change-Id: I0bea71206801139efb37a835b65562c051a2072e
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Nikita Yushchenko [Thu, 22 Sep 2016 09:02:25 +0000 (12:02 +0300)]
UPSTREAM: regmap: fix deadlock on _regmap_raw_write() error path
Commit
815806e39bf6 ("regmap: drop cache if the bus transfer error")
added a call to regcache_drop_region() to error path in
_regmap_raw_write(). However that path runs with regmap lock taken,
and regcache_drop_region() tries to re-take it, causing a deadlock.
Fix that by calling map->cache_ops->drop() directly.
Change-Id: I55c6d3ed490c47e8b3f5ca774d051a700f707b6e
Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from git.kernel.org broonie/regmap.git for-next
commit
f0aa1ce6259eb65f53f969b3250c1d0aac84f30b)
Mark Yao [Tue, 6 Sep 2016 09:26:29 +0000 (17:26 +0800)]
drm/rockchip: vop: support interlace display
Change-Id: I39c66ff90d85c2ee7bc8495ed313c359f0d457d6
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
wuliangqing [Wed, 21 Sep 2016 10:00:45 +0000 (18:00 +0800)]
ARM64: dts: rk3399-vr: add n-key for return
Change-Id: I06654319d61d57eabe7556d45501cf081cdd6b39
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
David Wu [Thu, 22 Sep 2016 11:29:24 +0000 (19:29 +0800)]
i2c: rk3x: Fix variable 'min_total_ns' unused warning
This patch fixs the following warning:
drivers/i2c/busses/i2c-rk3x.c: In function 'rk3x_i2c_v1_calc_timings':
drivers/i2c/busses/i2c-rk3x.c:745:41: warning: variable 'min_total_ns' set but not used [-Wunused-but-set-variable]
Change-Id: I99da5c5dc80da040eb5333bdf204a71de472a332
Reported-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
David Wu [Thu, 22 Sep 2016 11:29:23 +0000 (19:29 +0800)]
i2c: rk3x: Fix sparse warning
This patch fixes the following sparse warning:
drivers/i2c/busses/i2c-rk3x.c:888:17: warning: cast truncates bits from constant value (
ffffffffff00 becomes
ffffff00)
Change-Id: If4ffda2f57ce967a6824765093823bd7ff75ebe3
Reported-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Jacob Chen [Thu, 22 Sep 2016 03:08:20 +0000 (11:08 +0800)]
arm64: configs: add COMPAT configuration
I don't know why it was removed by former savedefconfig.
Maybe I make mistakes..
Change-Id: I4d852320c5b57ba9c72b7ef2981b6b66d76ba0b8
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
Jacob Chen [Thu, 22 Sep 2016 07:06:10 +0000 (15:06 +0800)]
arm: dts: add ramp delay to vdd_gpu for rk3288
for mali devfreq
Change-Id: I561fe2db1a38bafcf56db7e8991172d6031da41a
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
Mark Yao [Tue, 6 Sep 2016 09:18:38 +0000 (17:18 +0800)]
drm/rockchip: vop: support csc convert for win0/1
Change-Id: I7be5dfb7d2711de5a5aeed730aea0ffd9e080945
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Mark Yao [Thu, 22 Sep 2016 06:23:24 +0000 (14:23 +0800)]
drm/rockchip: vop: init vskiplines on scale calculate
Here is a Bug on scale calculate:
int vskiplines = 0;
maybe vskiplines = 2 on yrgb scl_vop_cal_scale
maybe vskiplines not update on cbcr scl_vop_cal_scale.
Then cbcr path would get vskiplines = 2, that is unexpect.
Change-Id: Iaeb0d125c7bbcfb95fe32005ef5c938703d03ed4
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Tero Kristo [Mon, 18 Apr 2016 11:49:53 +0000 (14:49 +0300)]
UPSTREAM: regulator: core: remove lockdep assert from suspend_prepare
suspend_prepare can be called during regulator init time also, where
the mutex is not locked yet. This causes a false lockdep warning.
To avoid the problem, remove the lockdep assertion from the function
causing the issue. An alternative would be to lock the mutex during
init, but this would cause other problems (some APIs used during init
will attempt to lock the mutex also, causing deadlock.)
Change-Id: I4a4367f3ebc9c7a00d6a08b547f2cebecd600483
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reported-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit
07c5c3ad98926dc15d31aa86de62fd4170f2a745)
Huang, Tao [Thu, 22 Sep 2016 03:24:36 +0000 (11:24 +0800)]
pinctrl: rockchip: better show irq chip name
When call irq_alloc_domain_generic_chips, pass the name of the irq
chip with bank name instead of just rockchip_gpio_irq.
So we can know the irq belong to which gpio by read /proc/interrupts.
cat /proc/interrupts
before:
56: 435 rockchip_gpio_irq 3 Level bcmsdh_sdmmc
58: 0 rockchip_gpio_irq 5 Edge power
87: 2 rockchip_gpio_irq 2 Level fusb302
105: 36 rockchip_gpio_irq 20 Level gt9xx
106: 0 rockchip_gpio_irq 21 Level rk808
109: 0 rockchip_gpio_irq 24 Level fusb302
209: 42 rockchip_gpio_irq 28 Edge es8316_interrupt
after:
56: 401 gpio0 3 Level bcmsdh_sdmmc
58: 0 gpio0 5 Edge power
87: 2 gpio1 2 Level fusb302
105: 39 gpio1 20 Level gt9xx
106: 0 gpio1 21 Level rk808
109: 0 gpio1 24 Level fusb302
209: 37 gpio4 28 Edge es8316_interrupt
Change-Id: Iff7afda770e8493dc4c105c1d251aeae0f69f639
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
Huang, Tao [Thu, 22 Sep 2016 07:07:38 +0000 (15:07 +0800)]
arm64: configs: update rockchip config by savedefconfig
Change-Id: Ib70a45ed0a7207705ca5cb3609831a93af5510e9
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
Jianhong Chen [Wed, 31 Aug 2016 12:15:18 +0000 (20:15 +0800)]
power: rk818-battery: update to v7.1
1. ajust zero algorithm to smooth low power area;
2. set two level speed for finish charging;
3. check divisor to avoid to be zero;
4. add timeout times for finish adc cablibration;
5. fix some logic error and add more debug info.
Change-Id: I248dc6792304b91473af895d549d2f40bcb7a6e2
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
dalong.zhang [Mon, 19 Sep 2016 06:09:45 +0000 (14:09 +0800)]
camsys_head: 0.0xd.0
Change-Id: Iba577aeda613a7383d1ea0ef05b1a27e3d251f95
Signed-off-by: dalong.zhang <dalon.zhang@rock-chips.com>
Mark Yao [Tue, 6 Sep 2016 08:54:47 +0000 (16:54 +0800)]
drm/rockchip: vop: optimize register take effect check
Previous version check all the win, check its yrgb_mst and
enable bit, it wastes too manys times.
We can simple check the vop cfg_done register to sure vop register
take effect. when we have a new config, set cfg_done to 1, then the
cfg_done would auto clear at frame start event. So when cfg_done is
zero, means that there is no pending configs.
Change-Id: Ib87114cdaea4d3bbc23fd9e0bd9b49d02f4ae1e3
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Wu Liang feng [Mon, 19 Sep 2016 10:43:54 +0000 (18:43 +0800)]
phy: rockchip-inno-usb2: release mutex lock if otg in host mode
We add a mutex lock in rockchip_usb2phy_init(), but foget to
release it if otg port work in host only mode.
Change-Id: I45abf173097be4463b668b51eece99a72047fb18
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Jianqun Xu [Tue, 20 Sep 2016 07:47:48 +0000 (15:47 +0800)]
ARM64: dts: rk3399-evb: disable dmc
Since ddr initalize codes have some update, so ddr dmc driver
needs to update.
Disable the dmc currently for evb to boot success.
Change-Id: Ica259a81f5412da31d41b68c841dfda7d8c2e3b2
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Frank Wang [Mon, 19 Sep 2016 09:22:58 +0000 (17:22 +0800)]
arm64: dts: rockchip: add usb2 phy-phandle for ohci on rk3366
This adds support usb2.0 phy-phandle for ohci controller on rk3366.
Change-Id: I9b5e27636e7574669ba01e4302c741d8895c68ff
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Frank Wang [Mon, 19 Sep 2016 08:14:25 +0000 (16:14 +0800)]
arm64: dts: rockchip: correct usb-controler reference clk for rk3366
We found that the system on rk3366-sdk will crash at the first time
after updating the whole firmware, the root cause is the 480m clock
from usb-phy has some issues.
Since the new usb-phy driver have taken over the 480m clock's
maintenance, the clock tree have a bit changes, so related
reference clock for usb-controler also need to correct.
Change-Id: I54dcc6f416adf61c34df2b9b897e5b58f3b6fed8
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Jianhong Chen [Tue, 20 Sep 2016 01:51:55 +0000 (09:51 +0800)]
ARM64: dts: rk3366-tb: add rk818 battery node
Change-Id: I03c2668f157b33bdfeff36c474104dd337632aa0
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
smj [Mon, 19 Sep 2016 03:08:35 +0000 (11:08 +0800)]
video: rockchip: hdmi: v2: improved the hdmi nlpcm_mode for bitstream output
- Add the corresponding to samplerate for bitstream
- Add the audio type judgement when open the mode
Change-Id: Ic5bbd2ee214e707fd3695f1a1f359cd43fed9618
Signed-off-by: smj <smj@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Yakir Yang [Tue, 2 Aug 2016 02:10:18 +0000 (10:10 +0800)]
ARM: dts: add 'support-emmcs' flag for RK3228 EVB board
Private flag of our downstream kernel.
Change-Id: I6dbfcb04748e9d54492df6df20382367ce1218b2
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Nickey Yang [Mon, 5 Sep 2016 10:41:14 +0000 (18:41 +0800)]
ARM: configs: rockchip: enable es8323 support
Default enable es8323 codec in rockchip defconfig
Change-Id: I9a080fa72069d15bfe188d4b33c1fd06358f4839
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Nickey Yang [Thu, 28 Jul 2016 03:06:51 +0000 (11:06 +0800)]
ARM: dts: rockchip: add codec es8323 for rk3288 fennec
This patch makes es8323 work well on the RK3288-Fennec boards.
Change-Id: Ia71101363c5cc4a9650c21c5dbebcad4d785ebf8
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Nickey Yang [Thu, 28 Jul 2016 01:56:14 +0000 (09:56 +0800)]
ASoC: es8323: update codec es8323 driver
This patch update the es8323 codec drivers as follows:
o Remove snd_soc_control_type:
Now that upstream remove definition of snd_soc_control_type.
o Replace SOC_DAPM_VALUE_ENUM:
SOC_DAPM_VALUE_ENUM is replaced by SOC_DAPM_ENUM.
o Remove codec->dapm.bias_level = level:
The line at the end of the set_bias_level callback to update the bias_level state. Now that upstream move this update into snd_soc_dapm_force_bias_level().
o Remove .owner = THIS_MODULE:
No need to set .owner here.The i2c_driver core will do.
o module_i2c_driver:
Convert to use module_i2c_driver is simple.
o Add match table:
Add a device tree match table for es8323 codec driver.
o Add mclk:
The I2S block provide the output clock as the mclk,so add it.
o Adjust code format:
Adjust some problems of code format.
Change-Id: I8e0647310eb11325c39ebb408f75cc9ed28df71d
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
wjh [Sun, 18 Sep 2016 07:44:22 +0000 (15:44 +0800)]
video: rockchip: dp: add sharp2.89" and AUO3.81" lcd for rockchip discrete vr device.
Change-Id: I6a43bb7da3feeb2a96df56b09aa4e77a9c4d8812
Signed-off-by: wjh <wjh@rock-chips.com>
Elaine Zhang [Fri, 9 Sep 2016 01:17:22 +0000 (09:17 +0800)]
ARM64: dts: rockchip: rk3399: add edp power domain
add pd_edp node.
add the edp needed power domain node for rk3399.
Change-Id: Ie1a4a7013b0d5cfc2b0180f701341a6b977a637a
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
xubilv [Sun, 18 Sep 2016 07:46:03 +0000 (15:46 +0800)]
video: rockchip: edp: runtime get sync in probe if support uboot display
Change-Id: I0373ef165cf7e21410b05159d4ed25c69bf05d5e
Signed-off-by: xubilv <xbl@rock-chips.com>
Jacob Chen [Sun, 18 Sep 2016 08:02:23 +0000 (16:02 +0800)]
ARM64: configs: remove btsdio in linux defconfig
It will cause conflict if we are using other vendor driver.
Change-Id: Ia5f6ccc22c1f733abc1569486d5a864e41d4f4a5
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
Jacob Chen [Sun, 18 Sep 2016 08:02:13 +0000 (16:02 +0800)]
arm: configs: remove btsdio in linux defconfig
It will cause conflict if we are using other vendor driver.
Change-Id: I269c253fae874acf1b0290f5f16ca1433cf33b15
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
Bin Yang [Mon, 12 Sep 2016 13:25:28 +0000 (21:25 +0800)]
arm64: dts: rockchip: add hall-sensor device node for rk3399-mid
Change-Id: Iaf9c8aebc1006fe6058536689c1561c66ddde162
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Bin Yang [Mon, 12 Sep 2016 13:14:45 +0000 (21:14 +0800)]
sensor: add hall sensor mh248 driver support
Change-Id: Idc8a068af8de06c058a2553d174b75166436a5ed
Signed-off-by: Bin Yang <yangbin@rock-chips.com>