Commit Graph

126109 Commits

Author SHA1 Message Date
Douglas Anderson
eca81b43d0 ARM64: dts: rockchip: Remove default sample phase from gru
It looks like the addition of default-sample-phase to the GRU dts is
what was causing my periodic boot failures.  After removing it I found
that I could get 25+ reboots with no failures.  Calling it good.

BUG=None
TEST=Reboot many times; see successful boot each time.

Change-Id: Id200957da9d9a2eb81ce63dcb57c4f0f5e94e72d
Signed-off-by: Douglas Anderson <dianders@chromium.org>
2016-04-14 09:26:12 +08:00
roger
ede46ce02b ARM64: dts: rk3399-tb: adjust tx & rx delayline for 1000BT ethernet
Change-Id: I36dfc4d1289e388c7a955f3ba0e7f974b39d28fd
Signed-off-by: roger <roger.chen@rock-chips.com>
2016-04-13 19:52:31 +08:00
Brian Norris
613b5c4470 ARM64: rockchip_cros_defconfig: enable /proc/config.gz
This helps to be absolutely sure of what CONFIG_* switches are enabled
for your build.

Change-Id: Ic1043d78b01502af9f5a2d4776672c66fc152f5c
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-on: https://chrome-internal-review.googlesource.com/254936
Commit-Queue: Brian Norris <briannorris@google.com>
Tested-by: Brian Norris <briannorris@google.com>
Reviewed-by: Stephen Barber <smbarber@google.com>
2016-04-13 17:40:59 +08:00
Brian Norris
17f486bee1 ARM64: dts: rockchip: Force pp3300_disp regulator to stay on
Normally, the display regulator would be kept powered on by the
display/backlight driver, but we don't yet have a DT representation or
driver for this, as the PWM is controlled by the EC. Just force the
regulator on for now.

This wasn't needed on some boards yet, since they were forcing this
regulator "on." But for those where we might be controlling it, we need
this. (And it's harmless otherwise.)

This is necessary but not sufficient for getting UI up on my board.

Change-Id: I30650c178dd42d76542f8f2491e22d9bf548363e
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-on: https://chrome-internal-review.googlesource.com/254935
Commit-Queue: Brian Norris <briannorris@google.com>
Tested-by: Brian Norris <briannorris@google.com>
Reviewed-by: Stephen Barber <smbarber@google.com>
2016-04-13 17:40:26 +08:00
Xing Zheng
7bba395216 ARM64: rockchip_cros_defcofnig: enable DA7219 manchine driver and codec
Change-Id: Iaf0f1f63b6f1b8f0e3f391b1d900b201d59b9660
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2016-04-13 15:42:59 +08:00
Xing Zheng
05f656c184 ARM64: dts: gru: Add support machine driver for DA7219
Now, we can playback and capture via DA7219 machine driver call the
da7219_aad_jack_det (simple-card can not do this).

Change-Id: I8b1be189031f875b1c5328e9357115761a5f4da3
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2016-04-13 15:42:58 +08:00
Douglas Anderson
86fc316162 ARM64: dts: rockchip: Change PWM regulators to 300kHz for gru base
Apparently the time constant for for the PWM regulator circuit on
gru-based devices is different than EVB.  Let's run at 300kHz which
should make us work well.

BUG=None
TEST=None

Change-Id: I0973f416d026de27908c3ef527c1e9274b967fc8
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-on: https://chrome-internal-review.googlesource.com/254648
Reviewed-by: Stephen Barber <smbarber@google.com>
Tested-by: Doug Anderson <dianders@google.com>
2016-04-13 10:28:55 +08:00
Sugar Zhang
e5c82e6300 ARM64: dts: rk3399: add "rockchip,grf" for i2s0
Change-Id: I8f275e960db8fe180d769fd7f081a379f8ace1a2
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2016-04-12 18:13:24 +08:00
Xing Zheng
a92fad535f ARM64: dts: rk3399: assign VOP parent and rate for ACLK/HCLK
Change-Id: Ifcce7764eb709386e40140c58299468ea835fd8c
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2016-04-11 19:55:17 +08:00
Huang Jiachai
d7e09d875c ARM64: dts: rk3399-fb: make sure vop big probe first
Change-Id: I16f966aeadbc6a97c128c0c750863495d0fa46c0
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
2016-04-11 10:54:23 +08:00
Huibin Hong
62c7055af0 ARM64: dts: rk3399-monkey: add pstore node
Change-Id: Ie4e3a3c390807c5d0559eee3d0627a5dae2bd9b3
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2016-04-08 19:07:57 +08:00
Huibin Hong
616a37acca ARM64: rockchip_defconfig: enable pstore
Change-Id: Ieda4ab0d02287c24c3c346ddefdbcf12c03eaf43
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2016-04-08 18:57:41 +08:00
ZhengShunQian
f2be573199 ARM64: CrOS: defconfig: update defconfig for chromeos
The CONFIG_ANDROID_PARANOID_NETWORK will block network access on ChromeOS.
Disable it on CrOS.

CONFIG_DRM_DMA_SYNC can be used to synchronize CPU/GPU access to a buffer.

Change-Id: Ia979af42b8693161c854e1987122d49c8737b51c
Signed-off-by: ZhengShunQian <zhengsq@rock-chips.com>
2016-04-08 11:41:36 +08:00
Caesar Wang
3f2d0cb56f ARM64: config: enable the REGULATOR_PWM for rockchip
That's useful for every PWM controlled to adjust the voltage
regulators.

In the moment. We make savedefconfig to cleanup the rockchuip_cros_defconfig.

Change-Id: I33d68d6cd48310b2da0ea2c3331380e71fc51eee
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2016-04-07 21:49:52 +08:00
Douglas Anderson
66fd42ba64 ARM64: dts: gru: fix up the pwm regulator node
This attempts to model commit 063e65397a ("ARM64: dts: rk3399-tb: fix
up the pwm regulator node").

Note that instead of putting a duty cycle of 25000 ns (40 kHz) I've set
a duty cycle of 1667 ns (600 kHz) because I think that's what the TRM
says.

Change-Id: Ifc209eddb20122feec96c5e86f7a14da7d74eb3f
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2016-04-07 21:49:51 +08:00
Caesar Wang
7a2cde0816 ARM64: dts: rk3399-chrome: delete unused code in dts
We shouldn't need them in here if you are using the coreboot/firmware.
In general, the cmdline/memory/logic_center will be overwrited
since the coreboot will do that.

Change-Id: I3902ff4eb71891b5c6320bed4355992e699e4835
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2016-04-07 21:49:29 +08:00
alpha.lin
4b51c867dd ARM64: dts: rk3399-monkey: add iep dts resource for android
Add the iep dts resource for android platform.

Change-Id: Ibb624fe0ad5253fb026d3470b52f76bc61cdb960
Signed-off-by: alpha.lin <alpha.lin@rock-chips.com>
2016-04-07 18:54:29 +08:00
Yakir Yang
afa22c6877 ARM64: dts: rk3399: gru: enable eDP display nodes
Change-Id: I1548fdebfb9bb3ac98e309a3becfa16216e94ede
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
2016-04-07 18:51:38 +08:00
Wu Liang feng
abb8612a9f ARM64: dts: rk3399: remove aclk_usb3_noc which is ignored unused
Change-Id: Ie864933514db3f1117ea67bd06549ad145514bef
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
2016-04-07 14:44:49 +08:00
Yakir Yang
da771ed410 ARM64: dts: rk3399: add eDP device node
Change-Id: I0b1bb874b51f45d71f63445cb30c43f94b022c20
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
2016-04-07 12:14:12 +08:00
roger
0c6edb9721 ARM64: dts: rk3399-tb: change "ext_gmac" to "clkin_gmac" according to clk-rk3399.c
Change-Id: Ic0ea696408493aae97099d579d34ae33f30cc41a
Signed-off-by: roger <roger.chen@rock-chips.com>
2016-04-06 18:19:49 +08:00
roger
a71426fe3e ARM64: dts: rk3399: fix drive strength to 13mA for GMAC TXD pins
Change-Id: Ia5a45864d2f71bd7548cc5b897c33265a20c4fea
Signed-off-by: roger <roger.chen@rock-chips.com>
2016-04-06 18:19:23 +08:00
Huang, Tao
094993e23c ARM64: rockchip_defconfig: enable IPA and CPU_THERMAL
Change-Id: Ia70704b3e77041231f02246ad1a230a45d4b930f
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
2016-04-06 14:47:17 +08:00
Douglas Anderson
374fbd6b03 ARM64: dts: gru: Put back in TODO comments + recent SD work
This DTS purposely has some comments in "//" style to indicate bringup
work that needs to be done.  Don't remove them unless the issues have
been addressed.

The DTS that landed in Rockchip's tree also lost some recent SD work.

Change-Id: I388cfe855b52aa160c1e8d1b468d7e8f35207790
Signed-off-by: Douglas Anderson <dianders@chromium.org>
2016-04-05 14:10:48 +08:00
Huang Jiachai
8781498a28 ARM64: dts: rk3399-monkey: enable iommu and vop lite
Change-Id: I6cb75f09c99ffe76691ceb61d60774256663e72e
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
2016-04-05 14:08:39 +08:00
Douglas Anderson
3fbafa3e99 ARM64: dts: rk3399: the USB 2.0 vbus GPIO is board specific
A GPIO was put in rk3399.dtsi that doesn't belong there.  Specifically
this GPIO isn't the same for all rk3399 boards.  I presume it belongs in
rk3399-tb.dts, so move it there.

Change-Id: I0b3272655da565eb6b348a33401f7517224db5fa
Fixes: 3ed499f07c ("ARM64: dts: rockchip: rk3399: add usb2.0 phy node")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
2016-04-05 13:55:19 +08:00
Xing Zheng
2d30b20671 ARM64: rockchip_cros_defconfig: Add support DRM for cros
And removed:
----
-CONFIG_FB=y
-CONFIG_LCDC_RK3368=y
-CONFIG_LCDC_LITE_RK3X=y
-CONFIG_RK_IOMMU=y
-CONFIG_RK_IOVMM=y
----
which are unused on the chromeos.

Change-Id: Icd521b56b6285099d72d3bf25575466792b6d353
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2016-04-05 10:56:47 +08:00
Elaine Zhang
063e65397a ARM64: dts: rk3399-tb: fix up the pwm regulator node
add pwm init voltage and id for uboot.
fix up the pwms node and add pwm polarity.

Change-Id: I4159c97ae498411ab958c2b1e1223139ac670452
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2016-04-01 15:34:54 +08:00
Caesar Wang
7208f5d6c5 ARM64: rockchip_cros_defcofnig: turn on the chrome platform
This config should be opened since the config used for chromeos.

Change-Id: I52dd22b1c1a707e6d27311337a5be6f0041cb7f9
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2016-04-01 15:14:27 +08:00
Xing Zheng
bdbe26d286 ARM64: dts: rk3399: remove clk_ignore_unused
Change-Id: I48874e2b82487d5e9ae6e83c954ea2bd06960c8f
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2016-04-01 14:58:43 +08:00
Mark Yao
3f7dfb2216 ARM64: dts: rk3399: chrome: enable mipi node
Change-Id: Icc169b97ec985b5e7332ed1ed5ed78d20c717062
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-04-01 14:26:59 +08:00
alpha lin
3caf545c35 ARM64/cros_defconfig: remove IEP and RK_VCODEC
Remove CONFIG_IEP and CONFIG_RK_VCODEC definition for
they aren't required in rockchip chromeos.

Change-Id: I3a0bce0943931a7546378fb7c7e663e1317b93da
Signed-off-by: alpha lin <alpha.lin@rock-chips.com>
2016-04-01 14:10:16 +08:00
Mark Yao
0421f89b20 ARM64: config: enable DRM relevant config
Change-Id: Id86ee59190b4f45d5e0e3e8e114920ec28b3fa8e
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-04-01 10:34:18 +08:00
Chris Zhong
553b1a8a0a ARM64: dts: rk3399: add mipi node
Change-Id: I06562ff3b62efa38f84ac892513725dcf4559471
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-04-01 10:29:59 +08:00
xiaoyao
d5e50a127f ARM64: dts: rk3399-tb: add wifi/sdio/sdcard support
Change-Id: Id5b97f2eb3b1bd2eeb42882743a3e64f59d45128
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
2016-04-01 09:14:25 +08:00
Mark Yao
336e59db27 ARM64: dts: rk3399: chrome: enable vop and vop iommu node
Change-Id: I0a92ac277c76d086703fe844bc0fa34a68a428c3
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-03-31 15:17:21 +08:00
Caesar Wang
4755671414 ARM64: dts: rockchip: enable the gt9xx touchscreen on rk3399-tb dts
The gt9xx touchscreen should be used by rk3399 evb board.
The rk3399-monkey.dtsi and rk3399-chrome.dtsi just run the different OS.
So... we should move the touchscreen node into the rk3399-tb.dtsi.

Change-Id: Ida8203e045e0fc0eb49e8a37e4ad609c230e040f
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2016-03-31 14:31:10 +08:00
Caesar Wang
1289573067 ARM64: rockchip_cros_defconfig: add the gpio regulator
The gru/kevin board works the iodomain with gpio regulator.
That's useful for rk3399 kevin/gru board.

Change-Id: I70b6185e3a21a038347b9f8ccd679908817184dd
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2016-03-31 14:29:26 +08:00
Douglas Anderson
9ea6b731ce ARM64: rockchip_cros_defconfig: Turn on kgdb
Technically emerging the kernel with USE=kgdb is supposed to get most of
this.  ...and the kernel command line is supposed to come from
elsewhere.  Until we get that happier, maybe this CL is useful.

Change-Id: Idd0100b623eb88b4a4a26922754b71f5cbcd602a
Signed-off-by: Douglas Anderson <dianders@chromium.org>
2016-03-31 14:29:02 +08:00
Douglas Anderson
e128144f62 ARM64: rockchip_cros_defconfig: turn on dwc3 / XHCI
Because USB is important.

Change-Id: I8131a57277922bf13b215fef56e23f3e06cb20d2
Signed-off-by: Douglas Anderson <dianders@chromium.org>
2016-03-31 14:28:15 +08:00
Douglas Anderson
d31c773232 ARM64: rockchip_cros_defconfig: turn on REGULATOR_DEBUG
It's useful. Might be something we can leave on even in a real kernel.
We'll have to see. We have common clock debugging...

Change-Id: I3c1cb55b067a4c54bb425d23664c5f1474016c92
Signed-off-by: Douglas Anderson <dianders@chromium.org>
2016-03-31 12:12:30 +08:00
Xing Zheng
bb8afdc338 ARM64: configs: rockchip_cros_defconfig: enable es8316 codec
Change-Id: Iea0fa47a1072a4193ade1e87da68d7cc58c59ece
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2016-03-31 11:23:00 +08:00
Mark Yao
65a2e6a2d0 ARM64: dts: rk3399: add VOP and VOP iommu node
Change-Id: I65a9a8797408cf0a77238971852f3b8ebba217b0
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-03-31 11:07:38 +08:00
Douglas Anderson
dddba82ea5 ARM64: dts: rockchip: support the gru/kevin boards for rk3399 SoCs
This initial patch adds to support the gru/kevin board for rk3399 SoCs.

It builds at least:
  make -j32 ARCH=arm64 CROSS_COMPILE=aarch64-cros-linux-gnu- dtbs

Change-Id: I7f3841513da130c107aca0d6b393b2bf269a5396
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2016-03-31 08:34:13 +08:00
Elaine Zhang
5210cee9ed ARM64: dts: rk336x: fix enable incorrect HCLK_I2Sx when startup
This patch like below:
----
commit 3860aa1ccf
Author: Heiko Stuebner <heiko@sntech.de>
Date:   Sat Jan 9 03:18:51 2016 +0100

    ARM: dts: rockchip: swap i2s clock ordering on rk3036

    For sound setups using the simple-card mechanism, the main clock
    (sysclk) is expected to be the first element. For the i2s-driver
    itself it doesn't matter, as it uses named clocks, so we can just
    swap them.
----
If we set HCLK_I2Sx at first, rockchip_i2s_set_sysclk will set the
HCLK_I2S freq (from example is 100MHz) to set the i2s_div, it is
incorrect.

Change-Id: Iab69d541c47d1293a784ebffc23f6c1ceaf9c0b1
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2016-03-30 17:08:00 +08:00
Xing Zheng
fb8302a252 ARM64: dts: rk3399: fix enable incorrect HCLK_I2Sx when startup
This patch like below:
----
commit 3860aa1ccf
Author: Heiko Stuebner <heiko@sntech.de>
Date:   Sat Jan 9 03:18:51 2016 +0100

    ARM: dts: rockchip: swap i2s clock ordering on rk3036

    For sound setups using the simple-card mechanism, the main clock
    (sysclk) is expected to be the first element. For the i2s-driver
    itself it doesn't matter, as it uses named clocks, so we can just
    swap them.
----
If we set HCLK_I2Sx at first, rockchip_i2s_set_sysclk will set the
HCLK_I2S freq (from example is 100MHz) to set the i2s_div, it is
incorrect.

Change-Id: I2b424ded3845b8ccd3ef233e43c5f9f915544547
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2016-03-30 15:19:07 +08:00
David Wu
4edc13b905 arm64: dts: set right backlight pwm polarity for rk3399-tb
Change-Id: Icaf5a12d3979ec6e31b8dbeaa5df46c6128f62c6
Signed-off-by: David Wu <david.wu@rock-chips.com>
2016-03-30 14:15:12 +08:00
Simon
eba29296f5 iommu/rockchip: enable upstream iommu on ARM64 platform
Change-Id: I8470750d63b890322d48bc47c07c516f2e3ba270
Signed-off-by: Simon <xxm@rock-chips.com>
2016-03-30 11:14:41 +08:00
alpha.lin
0d1b8e77be ARM64: dts: rk3399: Add vpu and rkvdec resource node
Add vpu and rkvdec resource node to enable video codec
supporting for rk3399 android.

Change-Id: I1689955858355b6061957dc43eea17f9b8d71096
Signed-off-by: alpha.lin <alpha.lin@rock-chips.com>
2016-03-30 10:36:04 +08:00
David Wu
34e4bb36be arm64: dts: add i2c0, i2c1, i2c4 rise and fall time for rk3399-tb
Change-Id: Ibbd7d7ee7bfce25fe104b03ea742c0bab2b4b586
Signed-off-by: David Wu <david.wu@rock-chips.com>
2016-03-30 09:36:08 +08:00