xuhuicong [Thu, 4 Aug 2016 03:52:17 +0000 (11:52 +0800)]
arm64: rockchip: rockchip_defconfig enable dp with rk fb
Change-Id: I3208244641cb95fd14c6b814efe2cc6af214affd
Signed-off-by: xuhuicong <xhc@rock-chips.com>
xuhuicong [Wed, 3 Aug 2016 01:11:20 +0000 (09:11 +0800)]
video: rockchip: dp: add cdn DP support for rk3399 with rk fb
Change-Id: Iaa36594e15d19e939f0929e2d6ee2ae99b6ce799
Signed-off-by: xuhuicong <xhc@rock-chips.com>
Lin Huang [Fri, 22 Jul 2016 07:37:17 +0000 (15:37 +0800)]
ARM64: dts: rk3399: add dmc and dfi node
To support ddr frequency scaling function, we need
enable dmc and dfi node.
Change-Id: I84ea6bff679365d86937ff10bcdf466ea31901fb
Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Huibin Hong [Wed, 24 Aug 2016 09:10:57 +0000 (17:10 +0800)]
spi: rockchip: set pinctrl state when suspend and resume
Change-Id: I3bfd641513dc8ad0112cb718383eb458c7659a84
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Jianqun Xu [Fri, 26 Aug 2016 02:25:29 +0000 (10:25 +0800)]
ARM64: dts: rk3399: fix error address for wdt0
The address of wdt0 and wdt1 are swapped, let's fix it.
Change-Id: I715d181b8984a72ad234d4c1389154f15b60738a
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Huang Jiachai [Fri, 5 Aug 2016 08:50:16 +0000 (16:50 +0800)]
video: rockchip: lcdc: add support dmc
Register dmc notify after than dmc driver.
Change-Id: I11c7daee1b4882da87d209854f0bda980c14551b
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
jerry.zhang [Wed, 17 Aug 2016 08:15:18 +0000 (16:15 +0800)]
arm64: dts: rockchip: modify l-sensor node for rk3399 tablet product
Change-Id: I41c90b8d24b79009cbb1320e19de2e4a1a400a97
Signed-off-by: jerry.zhang <jerry.zhang@rock-chips.com>
jerry.zhang [Wed, 3 Aug 2016 09:05:16 +0000 (17:05 +0800)]
arm64: dts: rockchip: change N key to home for rk3399 VR product
Change-Id: Ie173ee9fedec12cc1ef19e90673488d54e887807
Signed-off-by: jerry.zhang <jerry.zhang@rock-chips.com>
Jianqun Xu [Mon, 8 Aug 2016 00:46:28 +0000 (08:46 +0800)]
ARM64: configs: rockchip_defconfig: enable rk3399 dmc
Change-Id: I1e9a35d65d44a5f82c36546e5520ea5072b2231d
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Jianqun Xu [Fri, 19 Aug 2016 07:44:14 +0000 (15:44 +0800)]
PM / devfreq: rockchip-dfi: disable irqs during accessing ddr monitor
Change-Id: Ie4817a77fcb1283f37f41ab097f02ed7dc9cd18c
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Jianqun Xu [Fri, 12 Aug 2016 10:25:39 +0000 (18:25 +0800)]
PM / devfreq: rockchip: rk3399 dmc get opp table from dts
Get opp table from device node for rk3399 dmc table.
Change-Id: I689078d60ebdadf0954b60de70d05bc56a8d6597
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
huang lin [Mon, 22 Aug 2016 03:36:23 +0000 (11:36 +0800)]
FROMLIST: PM / devfreq: rockchip: add devfreq driver for rk3399 dmc
Base on dfi result, we do ddr frequency scaling, register
dmc driver to devfreq framework, and use simple-ondemand
policy.
Change-Id: I4cc6bd9218f6fe0ae09d79c23516c6dbdaa59af2
Signed-off-by: Lin Huang <hl@rock-chips.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
huang lin [Mon, 22 Aug 2016 03:36:22 +0000 (11:36 +0800)]
FROMLIST: Documentation: bindings: add dt documentation for rk3399 dmc
This patch adds the documentation for rockchip rk3399 dmc driver.
Change-Id: Icaff8fa2173ded5c64a08e877d32a8eca1a0c3be
Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
huang lin [Mon, 22 Aug 2016 03:36:21 +0000 (11:36 +0800)]
FROMLIST: PM / devfreq: event: support rockchip dfi controller
on rk3399 platform, there is dfi conroller can monitor
ddr load, base on this result, we can do ddr freqency
scaling.
Change-Id: I85efe7f626e636606508fdd171b14275591c0612
Signed-off-by: Lin Huang <hl@rock-chips.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
huang lin [Mon, 22 Aug 2016 03:36:20 +0000 (11:36 +0800)]
FROMLIST: Documentation: bindings: add dt documentation for dfi controller
This patch adds the documentation for rockchip dfi devfreq-event driver.
Change-Id: Ib5704cdef0c7a53abe3afda126cb1a1adba43b3a
Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
huang lin [Mon, 22 Aug 2016 03:36:19 +0000 (11:36 +0800)]
FROMLIST: clk: rockchip: rk3399: add ddrc clock support
Add ddrc clock setting, so we can do ddr frequency
scaling on rk3399 platform in future.
Change-Id: Ib743ffb642fe0c7c0a3b7db14389803595d868b3
Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
huang lin [Mon, 22 Aug 2016 03:36:17 +0000 (11:36 +0800)]
FROMLIST: clk: rockchip: add new clock-type for the ddrclk
On new rockchip platform(rk3399 etc), there have dcf controller to
do ddr frequency scaling, and this controller will implement in
arm-trust-firmware. We add a special clock-type to handle that.
Change-Id: I9e15dd9e01ab1c51a639a6a59391cd5e0de383b7
Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Zhou weixin [Thu, 25 Aug 2016 06:21:56 +0000 (14:21 +0800)]
arm64: dts: rockchip: disable ldo8 and center in suspend on rk3399 mid
Change-Id: I5e269cc3827a203bc1e11a344557515aa57fe1c2
Signed-off-by: Yankun Zheng <zyk@rock-chips.com>
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
Jianqun Xu [Thu, 25 Aug 2016 06:09:36 +0000 (14:09 +0800)]
ARM64: dts: rk3399-evb2: ajust cpu opp table to make evb2 more stable
Since evb2 couple with ES1, the power consumption is large enough to
shutdown device in some case.
Let's reduce it's support lists to make things simple.
Change-Id: I145aa0c6a21e41b3c8e6ff32fd15839baa15f81e
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Bin Yang [Thu, 25 Aug 2016 01:26:39 +0000 (09:26 +0800)]
arm64: dts: rockchip: remove unused usb node for rk3399 mid
Change-Id: Ie8883d36a829b08d0963cbd7dbe183404b761093
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
David Wu [Mon, 1 Aug 2016 08:38:28 +0000 (16:38 +0800)]
ethernet: rockchip: add pd_gmac support for rk3399
Change-Id: I990e02f585ae9b2ecf99a7e996cd23041ca19a2b
Signed-off-by: David Wu <david.wu@rock-chips.com>
Jacob Chen [Wed, 24 Aug 2016 05:17:39 +0000 (13:17 +0800)]
ARM: dts: rockchip: enable tsadc for fennec
Change-Id: Id177ffb022046e569c23bf46a5546ac64450e801
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
Zhou weixin [Wed, 24 Aug 2016 07:26:46 +0000 (15:26 +0800)]
arm64: dts: rockchip: use vop_pwm on rk3399-mid-818-android
To control backlight for support cabc.
Change-Id: I8f980174e57c91e264f0ddfb754a670196649b62
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
Huang Jiachai [Tue, 23 Aug 2016 12:27:41 +0000 (20:27 +0800)]
video: rockchip: vop: 3399: cabc mode indicate whether cabc enable or not
Change-Id: Ia4911d746c934b91a887881660373e4b4824f314
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
Huang Jiachai [Tue, 23 Aug 2016 03:11:46 +0000 (11:11 +0800)]
video: rockchip: fb: add function for vop pwm config done
Change-Id: I80350293c644fc0db1f613b3de14e34b7f3bc0f2
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
Shawn Lin [Tue, 23 Aug 2016 07:40:49 +0000 (15:40 +0800)]
arm64: dts: rockchip: disable PCIe and PCIe-phy on rk3399-evb
Let's disable it as the auto link training of PCIe
take quite long time without add-in card or M.2
devices available.
Change-Id: I4a48a44574b68da75845a6e614a9970bb5d6685b
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Shawn Lin [Tue, 23 Aug 2016 07:39:42 +0000 (15:39 +0800)]
arm64: dts: rockchip: fix pcie and pcie-phy support for rk3399
Fix them for matching what the new drivers want.
Change-Id: I6ce43379ab9cf3d274b6b414ec014e431db588b7
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Shawn Lin [Tue, 23 Aug 2016 07:35:31 +0000 (15:35 +0800)]
PCI: rockchip: Add Rockchip PCIe controller support
Add support for the Rockchip PCIe controller found on RK3399 SoC platform.
Change-Id: Ic924a0defaef195575beba4dfc92c33b6b5bc3e7
[Shawn: manually backport to 4.4 with some minor changes]
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Bjorn Helgaas [Sat, 28 May 2016 23:09:16 +0000 (18:09 -0500)]
UPSTREAM: PCI: Add devm_request_pci_bus_resources()
Several host bridge drivers iterate through the list of bridge windows to
request resources. Several others don't request the window resources at
all.
Add a devm_request_pci_bus_resources() interface to make it easier for
drivers to request all the window resources. Export to GPL modules (from
Arnd Bergmann <arnd@arndb.de>).
Change-Id: I4b89f0739d66d6027bfd2a01e9e93f5218ade617
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit
950334bcf17a6ab55ce13d3bdf050f7b429320d5)
Shawn Lin [Tue, 23 Aug 2016 07:31:35 +0000 (15:31 +0800)]
phy: add a driver for the Rockchip SoC internal PCIe PHY
This patch to add a generic PHY driver for rockchip PCIe PHY.
Access the PHY via registers provided by GRF (general register
files) module.
Change-Id: Ieba96d9cdf0d96302f38d29789615e2ec93f3440
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Nickey Yang [Tue, 23 Aug 2016 10:38:36 +0000 (18:38 +0800)]
ARM: dts: rockchip: fix i2s&spdif interrupts on rk3288
These must be translated from the values in the TRM by subtracting 32,
which has not been done.
Change-Id: I8d26bd63d39009b60b310e7ccbcd5de814863861
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
buluess.li [Wed, 3 Aug 2016 07:45:56 +0000 (15:45 +0800)]
ARM64: dts: rk3399-evb: add gsl3673 node for rk3399-evb
Change-Id: I8b8232dd280a436e330292794b36f617ae3c0a9d
Signed-off-by: buluess.li <buluess.li@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Meng Dongyang [Mon, 15 Aug 2016 04:25:57 +0000 (12:25 +0800)]
mfd: fusb302: change to host when connect type-c to standard-a cable
When connected with type-c to standard-a cable, inno phy will
generate an interrupt before setting the state of typec to host,
which result in detecting of battery charger. This patch change
the state to host before interrupt happen.
Change-Id: I6a2e15c264bd6729c3b8d23af23ad15145559b20
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
Xu Xuehui [Wed, 17 Aug 2016 09:41:08 +0000 (17:41 +0800)]
bluetooth: rfkill-bt: enalbe 32K for ap6356
Change-Id: I71a14f38ab1d46bbf3bfc991140a20d8c6a27eec
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Shawn Lin [Tue, 23 Aug 2016 07:33:28 +0000 (15:33 +0800)]
dt-bindings: PCI: rockchip: Add DT bindings for Rockchip PCIe controller
Add a binding that describes the Rockchip PCIe controller found on Rockchip
SoCs PCIe interface.
Change-Id: Ifb84320315c06759612f2b3d9b2b6ff3e1e5cb1e
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Acked-by: Rob Herring <robh@kernel.org>
Shawn Lin [Tue, 23 Aug 2016 07:30:51 +0000 (15:30 +0800)]
Documentation: bindings: add dt documentation for Rockchip PCIe PHY
This patch adds a binding that describes the Rockchip PCIe PHY found
on Rockchip SoCs PCIe interface.
Change-Id: I18940e940e0c951d3e2d6bb3b2131a37727a430d
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Zhou weixin [Wed, 17 Aug 2016 02:18:30 +0000 (10:18 +0800)]
pwm: rockchip: Make pwm polarity to be configured correctly
If pwm polarity was configured with different values at uboot,
the enable_conf would not be configured correctly.
Change-Id: I55b9ccc262382951a8a82810f1be74ce9460f266
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
Zorro Liu [Wed, 24 Aug 2016 02:27:45 +0000 (10:27 +0800)]
driver,mpu6500: modify _RATE_DEBUG
Change-Id: Iaa1f9c099db659aa7ef9f05efb99c4279569bcf8
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Zorro Liu [Tue, 23 Aug 2016 07:00:00 +0000 (15:00 +0800)]
driver,mpu6500: improve readfifo
while (fifo_count == 0) && (kfifo_len(&st->timestamps) > 0) then flush fifo
Change-Id: I9b4ab975d708ee1bb02435bca933ce8f3b55e037
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Wu Liang feng [Tue, 23 Aug 2016 09:41:41 +0000 (17:41 +0800)]
arm64: dts: rockchip: optimize clks for rk3399 dwc3
1. modify clock-names, according to Heiko's suggestion, clock names
should always be in the scope of the device block (named after what
it supplies), and clock-names are always meant from the perspective
of the individual ip-block.
2. remove unnecessary clocks, refer to rk3399 TRM, aclk_usb3 is the
parent of aclk_usb3otg0/1 and aclk_usb3_grf, and we will enable
aclk_usb3otg0/1 and aclk_usb3_grf, so don't need to enable aclk_usb3
again. In addition, the aclk_usb3_rksoc_axi_perf clk is used for usb3
performance monitor module which we don't use now, so don't need to
enable it.
Change-Id: I1d50a72d1523b8b70f1e5f388dc357807131dd7c
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Huang, Tao [Tue, 23 Aug 2016 06:10:09 +0000 (14:10 +0800)]
arm64: rockchip_defconfig: update by savedefconfig
Change-Id: Ic222560c0d8ea4af2e9a7a5429f2f49abe7e8a52
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
David Wu [Tue, 23 Aug 2016 09:23:04 +0000 (17:23 +0800)]
ARM64: dts: rockchip: add pinctrl gpio config for rk3399
Change-Id: I84800a35a95d1de61e3ddce6e7db92efb24bbf59
Signed-off-by: David Wu <david.wu@rock-chips.com>
Wu Liang feng [Tue, 23 Aug 2016 06:46:35 +0000 (14:46 +0800)]
Revert "HACK: phy: rockchip-inno-usb2: disable otg phy suspend for rk3399"
This reverts commit
d7d2a689d4b29796018e72eb050bc3d8c61fbf37.
Change-Id: I937498b790c048bcd49269f258bf59b1946e9bbd
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Wu Liang feng [Tue, 23 Aug 2016 01:11:41 +0000 (09:11 +0800)]
phy: phy-rockchip-typec: fix rx eq training fail
When do Rx compliance test, PHY is in loopback mode, we
observed that Rx test failed with long cable, and it was
found that equalizer adaptation is not happening properly.
With rx_eq_training forced from PMA, the equalizer adaptation
working fine and Rx test can pass. The root cause is that
the Rx REE component will be turned off when control data
is being received by default PHY configuration. So we need
to unmask REE control data by setting REE control data mask
register, and with this patch, equalizer training will happen
based on the signal coming from controller only.
Change-Id: Ic4fca1045d92381470588c4afccff0cc7318ab4c
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Huang Jiachai [Thu, 18 Aug 2016 09:57:31 +0000 (17:57 +0800)]
video: rockchip: vop: 3399: fix post empty when enable afbdc after resume
userspace will set several frame after vop suspend, so the kernel back
buffer will be freed and after resume vop will read a freed buffer and lead
to post empty, so we close all win before suspend, after resume vop will
display black until userspace set a new frame.
Change-Id: I6648861d2162f221e7fbf85d2361ad245e7b88aa
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
Huang Jiachai [Tue, 16 Aug 2016 08:22:54 +0000 (16:22 +0800)]
video: rockchip: 3399: close auto gating when enable CABC
Change-Id: Iaeb99bbc1f25998361cd20fc57c97f33fa5ce63a
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
Huang Jiachai [Wed, 17 Aug 2016 09:04:11 +0000 (17:04 +0800)]
video: rockchip: vop: 3399: add win lite supprt afbdc abgr format
Change-Id: I5709c6e06e5e3ca8bd7fe19aa970fa933b178c62
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
wuliangqing [Fri, 19 Aug 2016 03:34:20 +0000 (11:34 +0800)]
arm64: dts: rockchip: vr: modify battery parameters
Change-Id: If3d0c2f85ba4f6dd03e1b0436072199677e1cf77
signed-off-by: Wu Liangqing <wlq@rock-chips.com>
wuliangqing [Thu, 18 Aug 2016 09:04:23 +0000 (17:04 +0800)]
arm64: dts: rockchip: rk3399-vr: support fusb302 and enabled Type-c phy
Change-Id: I117832db612b44b0439a0714743a0d875a2f5897
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
dalon.zhang [Wed, 17 Aug 2016 12:02:06 +0000 (20:02 +0800)]
arm64: dts: rockchip: rk3399-android: isp config add dsi control
Change-Id: I39b3a7a7b03d2255342599d4d8b5482c4f8ac5dc
Signed-off-by: dalon.zhang <dalon.zhang@rock-chips.com>
dalon.zhang [Wed, 17 Aug 2016 12:00:20 +0000 (20:00 +0800)]
camera: rockchip: camsys driver 0.0x21.4
Change-Id: Ieddb355952150d170ee52a5d80d25c9642a2ec8a
Signed-off-by: dalon.zhang <dalon.zhang@rock-chips.com>
Jianhong Chen [Mon, 22 Aug 2016 01:35:12 +0000 (09:35 +0800)]
arm64: dts: rk3399-sapphire-excavator-edp: add test-power
Change-Id: Iaa8632fa7faaefcf05eab96d175deab7329143c3
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Jianhong Chen [Fri, 19 Aug 2016 01:52:48 +0000 (09:52 +0800)]
arm64: dts: rk3399-sapphire-excavator-box: add test-power
Change-Id: I7c26c8050f27e898ae951fc118fc717cd0b10fce
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Jianqun Xu [Mon, 22 Aug 2016 05:03:32 +0000 (13:03 +0800)]
ARM64: dts: rk3399-evb3-edp: disable gt9xx
Since edp screen couple with another type of touchscreen,
so disable gt9xx to reduce i2c errors.
Change-Id: I829ae12039ecaea44c4e0734c18a5ebcd41845f8
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Jianqun Xu [Mon, 22 Aug 2016 01:04:06 +0000 (09:04 +0800)]
ARM64: dts: rk3399-evb-edp: remove pwm3 of vdd_center
Fix the evb-edp error voltage for vdd_center.
Change-Id: I7f60ee233820ca175aa68074c6c2ba946045303d
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Nickey Yang [Thu, 18 Aug 2016 12:01:23 +0000 (20:01 +0800)]
ARM: dts: rk3288: remove emmc node for miniarm
This patch remove emmc node for rk3288-miniarm board.
because the new version of the hardware does not use emmc.
Change-Id: I72914a4e570342e5b0b559b3400e0a9db8aea7eb
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Elaine Zhang [Thu, 18 Aug 2016 09:01:55 +0000 (17:01 +0800)]
UPSTREAM: regmap: drop cache if the bus transfer error
regmap_write
->_regmap_raw_write
-->regcache_write first and than use map->bus->write to write i2c or spi
But if the i2c or spi transfer failed, But the cache is updated, So if I use
regmap_read will get the cache data which is not the real register value.
Change-Id: Iae06edf8a2a50d2561d351a8398bd3140904630c
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git
commit
815806e39bf6f7e7b34875d4a9609dbe76661782)
Bin Yang [Thu, 18 Aug 2016 08:59:39 +0000 (16:59 +0800)]
arm64: dts: rockchip: modify battery parameters for rk3399 mid
Change-Id: Ib77ce93fdd5936059a1ecdc318eebc18e031e1ae
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Bin Yang [Mon, 1 Aug 2016 10:57:04 +0000 (18:57 +0800)]
arm64: rockchip_defconfig: add rk818 charge config
Change-Id: Ib339cfae1035f36d81d64907f4b034bc387f85b3
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
许盛飞 [Mon, 24 Nov 2014 04:00:21 +0000 (12:00 +0800)]
test-power: add testpower dts-config
Change-Id: Ib2c78602f604d610a648397cbf08c56cdbd77eab
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
Jianhong Chen [Fri, 19 Aug 2016 01:28:53 +0000 (09:28 +0800)]
arm64: dts: rk3399-evb: add test-power
Change-Id: I269c4c667ba313d315fa6ee9443bb07f6295127a
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Jianhong Chen [Fri, 19 Aug 2016 01:27:40 +0000 (09:27 +0800)]
arm64: dts: rk3399-box: add test-power
Change-Id: Id06771f84b07c3b943362369269274a41cabb279
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
Lin Huang [Thu, 4 Aug 2016 05:52:00 +0000 (13:52 +0800)]
FROMLIST: PM / devfreq: event: remove duplicate devfreq_event_get_drvdata()
there define two devfreq_event_get_drvdata() function in devfreq-event.h
when disable CONFIG_PM_DEVFREQ_EVENT, it will lead to build fail. So
remove devfreq_event_get_drvdata() function.
Change-Id: I273e91d4aac48ae25af5ef6de2feb37944cf6e39
Signed-off-by: Lin Huang <hl@rock-chips.com>
Lin Huang [Fri, 3 Jun 2016 08:47:22 +0000 (16:47 +0800)]
FROMLIST: clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc
Change-Id: I638d8cd8d6a7a867d10b7595c93c674619b99c30
Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Heiko Stübner [Wed, 29 Jun 2016 06:44:50 +0000 (14:44 +0800)]
FROMLIST: clk: rockchip: add clock flag parameter when register pll
add clock flag parameter so we can pass specific clock flag
(like CLK_GET_RATE_NOCACHE etc..)to pll driver.
Change-Id: I1e076b3efa6b5da082b6e68e2e2a4c9dfd93e3d4
Signed-off-by: Heiko Stübner <heiko@sntech.de>
Signed-off-by: Lin Huang <hl@rock-chips.com>
Jacob Chen [Tue, 16 Aug 2016 01:14:01 +0000 (09:14 +0800)]
UPSTREAM: usb: dwc2: Reorder AHBIDLE and CSFTRST in dwc2_core_reset()
According to the databook, the core soft reset should be done before
checking for AHBIDLE. The gadget version of core reset had it correct
but the hcd version did not. This fixes the hcd version.
Change-Id: I49540085036982e6c496a3b911805f0b67fa79e1
Signed-off-by: John Youn <johnyoun@synopsys.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
(cherry picked from commit
b8ccc593eeeacde0e6794c4dcec0a57eba7356e6)
Jacob Chen [Tue, 16 Aug 2016 01:13:16 +0000 (09:13 +0800)]
UPSTREAM: usb: dwc2: Avoid more calls to dwc2_core_reset()
Calls to dwc2_core_reset() are currently very slow, taking at least
150ms (possibly more). It behooves us to take as many of these calls
out as possible.
It turns out that the calls in dwc2_fs_phy_init() and dwc2_hs_phy_init()
should (as documented in the code) only be needed if we need to do a PHY
SELECT. That means that if we see that we can avoid the PHY SELECT then
we can avoid the reset.
This patch appears to successfully bypass two resets (one per USB
device) on rk3288-based ARM Chromebooks.
Change-Id: If9f7275d61af6fd8558124ff9ebc7c3622c1f4a3
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
(cherry picked from commit
7d56cc2620f523eba7a831daa22186c8ae5bbdfe)
Jacob Chen [Tue, 16 Aug 2016 01:12:26 +0000 (09:12 +0800)]
UPSTREAM: usb: dwc2: reduce dwc2 driver probe time
I found that the probe function of dwc2 driver takes much time
when kernel boot up. There are many long delays in the probe
function these take almost 1 second.
This patch trying to reduce unnecessary delay time.
In dwc2_core_reset() I see it use two at least 20ms delays to
wait AHB idle and core soft reset, but dwc2 data book said that
dwc2 core soft reset and AHB idle just need a few clocks (I think
it refers to AHB clock, and AHB clock run at 150MHz in my RK3288
board), so 20ms is too long, delay 1us for wait AHB idle and soft
reset is enough.
And in dwc2_get_hwparams() it takes 150ms to wait ForceHostMode
and ForceDeviceMode valid but in data book it said software must
wait at least 25ms before the change to take effect, so I reduce
this time to 25ms~50ms. By the way, is there any state bit show
that the force mode take effect ? Could we poll curmod bit for
figuring out if the change take effect ?
It seems that usleep_range() at boot time will pick the longest
value in the range. In dwc2_core_reset() there is a very long
delay takes 200ms, and this function run twice when probe, could
any one tell me is this delay time resonable ?
I have tried this patch in my RK3288-evb board. It works well.
Change-Id: I1f42ab6b6851f0721bf93d516bee895ebcdd994f
Signed-off-by: Yunzhi Li <lyz@rock-chips.com>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
(cherry picked from commit
20bde643434d541bc5f662c5836a05e9e276eca3)
Jacob Chen [Tue, 16 Aug 2016 01:11:25 +0000 (09:11 +0800)]
UPSTREAM: usb: dwc2: Speed dwc2_get_hwparams() on some host-only ports
On some host-only DWC2 ports (like the one in rk3288) when we set
GUSBCFG_FORCEHOSTMODE in GUSBCFG and then read back, we don't see the
bit set. Presumably that's because the port is always forced to HOST
mode so there's no reason to implement these status bits.
Since we know dwc2_core_reset() is always called before
dwc2_get_hwparams() and we know dwc2_core_reset() should have set
GUSBCFG_FORCEHOSTMODE whenever hsotg->dr_mode == USB_DR_MODE_HOST, we
can just check hsotg->dr_mode to decide that we can skip the delays in
dwc2_get_hwparams().
Change-Id: I912ac2dd5e0ff3f8c12b8263ce268296bbed315f
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
(cherry picked from commit
f619473140df4e1a10f4c10f693d214807ebdb03)
Jacob Chen [Tue, 16 Aug 2016 01:10:43 +0000 (09:10 +0800)]
UPSTREAM: usb: dwc2: Avoid double-reset at boot time
In (usb: dwc2: reset dwc2 core before dwc2_get_hwparams()) we added an
extra reset to the probe path for the dwc2 USB controllers. This
allowed proper detection of parameters even if the firmware had already
used the USB part.
Unfortunately, this extra reset is quite slow and is affecting boot
speed. We can avoid the double-reset by skipping the extra reset that
would happen just after the one we added. Logic that explains why this
is safe:
* As of the CL mentioned above, we now always call dwc2_core_reset() in
dwc2_driver_probe() before dwc2_hcd_init().
* The only caller of dwc2_hcd_init() is dwc2_driver_probe(), so we're
guaranteed that dwc2_core_reset() was called before dwc2_hdc_init().
* dwc2_hdc_init() is the only caller that passes an irq other than -1 to
dwc2_core_init(). Thus if dwc2_core_init() is called with an irq
other than -1 we're guaranteed that dwc2_core_reset was called before
dwc2_core_init().
...this allows us to remove the dwc2_core_reset() in dwc2_core_init() if
irq is not < 0.
Note that since "irq" wasn't used in the function dwc2_core_init()
anyway and since select_phy was always set at exactly the same times we
could avoid the reset, we remove "irq" and rename "select_phy" to
"initial_setup" and adjust the callers accordingly.
Change-Id: Id3b085ddc9d35baca140fc8a502fca74dcfd01b5
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
(cherry picked from commit
0fe239bc190453fe82252c6d41a74e685730cd93)
Jacob Chen [Tue, 16 Aug 2016 01:16:17 +0000 (09:16 +0800)]
UPSTREAM: usb: dwc2: reset dwc2 core before dwc2_get_hwparams()
We initiate dwc2 usb controller in BIOS, dwc2_core_reset() should
be called before dwc2_get_hwparams() to reset core registers to
default value. Without this the FIFO setting might be incorrect
because calculating FIFO size need power-on value of
GRXFSIZ/GNPTXFSIZ/HPTXFSIZ registers.
This patch could avoid warnning massage like in rk3288 platform:
[ 2.074764] dwc2
ff580000.usb: 256 invalid for
host_perio_tx_fifo_size. Check HW configuration.
Change-Id: Iab346c005c9f3ea940f4070f3e433e0c7ea89087
Signed-off-by: Yunzhi Li <lyz@rock-chips.com>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
(cherry picked from commit
cebfdbf329ae929ccb71632888a7c2100c3d1eeb)
Jacob Chen [Tue, 16 Aug 2016 01:15:55 +0000 (09:15 +0800)]
UPSTREAM: usb: dwc2: Restore GUSBCFG in dwc2_get_hwparams()
Previously dwc2_get_hwparams() was changing GUSBCFG and not putting it
back the way it was (specifically it set and cleared FORCEHOSTMODE).
Since we want to move dwc2_core_reset() _before_ dwc2_get_hwparams() we
should make sure dwc2_get_hwparams() isn't messing with things in a
permanent way.
Since we're now looking at GUSBCFG, it's obvious that we shouldn't need
all the extra delays if FORCEHOSTMODE was already set. This will avoid
some delays for any ports that have forced host mode.
Change-Id: I514aaaf77a7ee3f0871efb15e659b93b9717c5f1
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
(cherry picked from commit
991824677fe0a555394d8093b64647dbd08b89b0)
Yakir Yang [Wed, 10 Aug 2016 02:27:58 +0000 (10:27 +0800)]
arm64: configs: add Rockchip linux default configure file
This configure file is created for Linux Opensource project, and this
file is based on:
- arch/arm/configs/rockchip_linux_defconfig
Only have some light changes:
+ CONFIG_ARMV8_DEPRECATED=y
+ CONFIG_COMPAT=y
+ CONFIG_WQ_POWER_EFFICIENT_DEFAULT=y
+ CONFIG_CPU_IDLE=y
+ CONFIG_ARM_CPUIDLE=y
+ CONFIG_REGULATOR=y
+ CONFIG_REGULATOR_DEBUG=y
+ CONFIG_MMC_BLOCK_MINORS=32
+ CONFIG_MMC_SDHCI_OF_ARASAN=y
+ CONFIG_PHY_ROCKCHIP_EMMC=y
+ CONFIG_FIQ_DEBUGGER=y
+ CONFIG_FIQ_DEBUGGER_NO_SLEEP=y
+ CONFIG_FIQ_DEBUGGER_CONSOLE=y
+ CONFIG_FIQ_DEBUGGER_CONSOLE_DEFAULT_ENABLE=y
- CONFIG_RT2X00=y
- CONFIG_RT2800USB=y
- CONFIG_VIDEO_ROCKCHIP_VPU=y
- CONFIG_MALI400=y
- CONFIG_MALI_SHARED_INTERRUPTS=y
- CONFIG_MALI_DT=y
Change-Id: I4557ca060647c88fd2de2d1e736f9cb0048e3c9a
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Yakir Yang [Wed, 10 Aug 2016 01:43:46 +0000 (09:43 +0800)]
arm64: dts: rockchip: add RK3399 Excavator Board for Linux Opensource
Add Excavator board dts file for Linux Opensource project
Change-Id: I5e5375814d2a4cfa8ae613115b2cbced47cd56ab
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Yakir Yang [Thu, 11 Aug 2016 06:52:54 +0000 (14:52 +0800)]
arm64: dts: rockchip: disabled the dw-hdmi-audio by default for Sapphire board
The dw-hdmi-audio driver could only work on FB dw-hdmi driver, we can't
use it on DRM display sub-system. So I think it's better to disable the
dw-hdmi-audio by default for Sapphire board, but enable this device node
for excavator-edp and excavator-box boards.
Change-Id: I8c2639d535510f1092a3da02e008986394608998
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Yakir Yang [Thu, 11 Aug 2016 06:48:23 +0000 (14:48 +0800)]
arm64: dts: rockchip: split the backlight device node to Sapphire SoC board
Backlight is the common device node, this would help to reduce
dumplicate code.
Change-Id: If0ee83f0bf929c242ec6dde3808a680f28e408ed
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
xxh [Wed, 17 Aug 2016 09:11:17 +0000 (17:11 +0800)]
arm64: dts: rk3399-box: and 32.768K clk node for BT
Change-Id: I7288d8e7a20aba17dca9cdb699da24af745e5567
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Bin Yang [Thu, 18 Aug 2016 01:39:55 +0000 (09:39 +0800)]
arm64: dts: rockchip: use extcon for usb2/usb3 on rk3399 mid board
Change-Id: I883fb6da8e9b136e6d94213a6675b8de9e131380
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Bin Yang [Wed, 17 Aug 2016 15:09:09 +0000 (23:09 +0800)]
arm64: dts: rockchip: enable Type-C phy for rk3399 mid
Change-Id: I8973725588becb6620ff92da38f09e734e3fc320
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Bin Yang [Wed, 17 Aug 2016 14:58:27 +0000 (22:58 +0800)]
arm64: dts: rockchip: support fusb302 for rk3399 mid
Change-Id: I6eac543d9791e55d3b11b5367ac336c9c2f27296
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Shawn Lin [Tue, 16 Aug 2016 02:41:35 +0000 (10:41 +0800)]
FROMLIST: mmc: core: fall back host->f_init if failing to init mmc card after resume
We observed the failure of initializing card after resume
accidentally. It's hard to reproduce but we did get report from
the suspend/resume test of our RK3399 mp test farm . Unfortunately,
we still fail to figure out what was going wrong at that time.
Also we can't achieve it by retrying the host->f_init without falling
back it. But this patch will solve the problem as we could add some log
there and see that we resume the mmc card successfully after falling
back the host->f_init. There is no obvious side effect found, so it seems
this patch will improve the stability.
[ 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: I5b24cb84a223394392450a1f10d8bbacb9e1006e
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Shawn Lin [Tue, 16 Aug 2016 02:39:10 +0000 (10:39 +0800)]
FROMLIST: mmc: core: move freqs table into core.h
We will reuse it outside the core.c file, so let's
move it to the header file.
Change-Id: Ibc40268d104d503603d59911d71157fcee0e5196
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Christopher Freeman [Tue, 16 Aug 2016 02:37:12 +0000 (10:37 +0800)]
FROMLIST: mmc: sdhci: Do not allow tuning procedure to be interrupted
wait_event_interruptible_timeout() will return early if the blocked
process receives a signal, causing the driver to abort the tuning
procedure and possibly leaving the controller in a bad state. Since the
tuning command is expected to complete quickly (<50ms) and we've set a
timeout, use wait_event_timeout() instead.
Change-Id: Ibd1c5e8076c5fde4b4e9c4ebb0a2733c8d2d4eda
Signed-off-by: Christopher Freeman <cfreeman@nvidia.com>
Tested-by: Robert Foss <robert.foss@collabora.com>
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Shawn Lin [Mon, 15 Aug 2016 03:09:26 +0000 (11:09 +0800)]
mmc: sdhci-of-arasan: wakeup genpd when being in suspend
Let's keep genpd for sdhci alive while entering deep
sleep which gte me out of yapping around.
Change-Id: I0da20b417621d277745bafd53d1ee461aae72e11
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Zorro Liu [Thu, 18 Aug 2016 06:35:00 +0000 (14:35 +0800)]
drivers,inv_mpu: fix reg name err
Change-Id: I965cdb614b2ba28bb8b61af561799fd237d7e50d
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Wu Liang feng [Wed, 17 Aug 2016 06:50:19 +0000 (14:50 +0800)]
arm64: dts: rockchip: use extcon for usb2/usb3 on rk3399 evb/box
Change-Id: I582381af1dfc5c7bb06736d3a92d2636b1523863
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Wu Liang feng [Wed, 17 Aug 2016 06:32:11 +0000 (14:32 +0800)]
arm64: dts: rockchip: change dr_mode for rk3399 dwc3
The DesignWare USB3 integrated in rockchip SoCs is a configurable
IP Core which can be instantiated as Dual-Role Device (DRD), Host
Only (XHCI) and Peripheral Only configurations. For rk3399, it has
two DWC3 controllers, we set DRD for DWC3_0 and Host only for DWC3_1
by default.
Change-Id: Ia0063e04e48770d8d0ec7ec86cb621c5e9979fb9
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Wu Liang feng [Wed, 17 Aug 2016 06:23:10 +0000 (14:23 +0800)]
arm64: dts: rockchip: add usb3 phy for rk3399 dwc3
For now, we have enabled Type-C phy, so we can add
usb3 phy which integrated in Type-C phy for rk3399
dwc3, and support super speed.
Change-Id: I3da984e4f35b35d46e0b84755bcc23deaf97d18f
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Wu Liang feng [Wed, 17 Aug 2016 06:14:03 +0000 (14:14 +0800)]
arm64: dts: rockchip: enable Type-C phy for rk3399 evb/box
Change-Id: Idb2f919e008c37aa030c114c9a11df2d69126e99
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Wu Liang feng [Wed, 17 Aug 2016 04:02:04 +0000 (12:02 +0800)]
arm64: dts: rockchip: add usb3 controller reset for rk3399
We can assert the reset to keep the whole USB3 Controller
in resetting to hold pipe power state in P2 before
initializing Type-C PHY.
Change-Id: Ibb5716bac645ae01ee27fd019a3dfcbd3c0ffd84
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Wu Liang feng [Wed, 17 Aug 2016 03:55:41 +0000 (11:55 +0800)]
arm64: rockchip_cros_defconfig: enable rockchip Type-C phy
Change-Id: I1fe575bd027d4843c4e5c21a4fef5bdb6a9b417a
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Wu Liang feng [Wed, 17 Aug 2016 03:53:47 +0000 (11:53 +0800)]
arm64: rockchip_defconfig: enable rockchip Type-C phy
Change-Id: Ifef876af8f54019d7a72a3953a0b90535df23242
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Wu Liang feng [Tue, 16 Aug 2016 06:20:11 +0000 (14:20 +0800)]
usb: dwc3: fix PM resume error for rockchip platforms
We enable PM runtime auto suspend on rockchip platforms (e.g. rk3399),
it allows DWC3 controller to enter runtime suspend if usb cable detached.
So we don't need to do anything in dwc3_suspend() and dwc3_resume()
which duplicated the same operations as dwc3_runtime_suspend() and
dwc3_runtime_resume().
And if DWC3 controller works on HOST mode, we can't do runtime resume
DWC3 gadget.
Change-Id: I63e734f51b05274251d8a88a664eee768568eb7b
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Wu Liang feng [Mon, 15 Aug 2016 07:47:21 +0000 (15:47 +0800)]
phy: rockchip-inno-usb2: don't cancel otg_sm_work when phy exit
The otg_sm_work is a OTG state machine delay work. It will hold
a wake lock if SDP cable or CDP cable is attached, and release
the wake lock if cable dettached. If usb controller(e.g. DWC3)
call phy exit When USB cable is dettached and cancel otg_sm_work,
it will cause the usb phy keeping hold of wake lock.
Change-Id: Ie6a89e481b8d4999a996083709bacc5be901805a
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Wu Liang feng [Mon, 15 Aug 2016 03:18:37 +0000 (11:18 +0800)]
usb: dwc3: add rockchip specific glue layer
Add rockchip specific glue layer to support USB3 Peripheral mode
and Host mode on rockchip platforms (e.g. rk3399).
The DesignWare USB3 integrated in rockchip SoCs is a configurable
IP Core which can be instantiated as Dual-Role Device (DRD), Host
Only (XHCI) and Peripheral Only configurations.
We use extcon notifier to manage usb cable detection and mode switch.
Enable DWC3 PM runtime auto suspend to allow core enter runtime_suspend
if USB cable is dettached. For host mode, it requires to keep whole
DWC3 controller in reset state to hold pipe power state in P2 before
initializing PHY. And it need to reconfigure USB PHY interface of DWC3
core after deassert DWC3 controller reset.
The current driver supports Host only and Peripheral Only well, for
now, we will add support for OTG after we have it all stabilized.
Change-Id: I821dd19eedec73e6517f0cca184f939a9f313904
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Mathias Nyman [Wed, 1 Jun 2016 15:09:10 +0000 (18:09 +0300)]
UPSTREAM: xhci: fix platform quirks overwrite regression in 4.7-rc1
commit
b1c127ae990b ("usb: host: xhci: plat: make use of new methods in
xhci_plat_priv") sets xhci->quirks before calling xhci_gen_setup(), which
will overwrite them.
Don't overwite the quirks, just add the new ones
Fixes: b1c127ae990b ("usb: host: xhci: plat: make use of new methods in xhci_plat_priv")
Reported-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Change-Id: I7751ccaa1f3c8000ad0d47f9fba84084b2db96da
Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit
757de492f2d5711d4f5b386eb9bdd5cdc99eb30e)
Wu Liang feng [Wed, 10 Aug 2016 13:02:01 +0000 (21:02 +0800)]
arm64: dts: rockchip: modify dwc3 properties for rk3399
We have merged dwc3 driver from upstream, and some properties
need to be modified according to upstream coding style.
Change-Id: I4f8c4b23a941932a08eb29a0282dfb0903193c8a
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Wu Liang feng [Wed, 10 Aug 2016 12:55:53 +0000 (20:55 +0800)]
usb: dwc3: add a quirk xhci_slow_suspend_quirk
On some xHCI controllers (e.g. Rockchip SoCs), which are
integrated in DWC3 IP, need an extraordinary delay to wait
for xHCI enter the Halted state(i.e. HCH in the USBSTS
register is '1'), especially if DWC3 is in DRD mode.
Change-Id: I67c84d4768df95f7616d6716a77cf743e4334122
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
William Wu [Thu, 2 Jun 2016 12:09:23 +0000 (20:09 +0800)]
FROMLIST: usb: dwc3: rockchip: add devicetree bindings documentation
This patch adds the devicetree documentation required for Rockchip
USB3.0 core wrapper consisting of USB3.0 IP from Synopsys.
It supports DRD mode, and could operate in device mode (SS, HS, FS)
and host mode (SS, HS, FS, LS).
Change-Id: I8b45a43a1a2c0399188d601c794015b4305c4795
Signed-off-by: William Wu <william.wu@rock-chips.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
William Wu [Thu, 2 Jun 2016 11:52:27 +0000 (19:52 +0800)]
FROMLIST: usb: dwc3: add dis_del_phy_power_chg_quirk
Add a quirk to clear the GUSB3PIPECTL.DELAYP1TRANS bit,
which specifies whether disable delay PHY power change
from P0 to P1/P2/P3 when link state changing from U0
to U1/U2/U3 respectively.
Change-Id: I84ce14c328aa27c5000cf76c44cbdc1ea7a926b9
Signed-off-by: William Wu <william.wu@rock-chips.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>