Commit Graph

607226 Commits

Author SHA1 Message Date
Laxman Dewangan
84f76e7c4b UPSTREAM: pinctrl: rockchip: Use devm_pinctrl_register() for pinctrl registration
Use devm_pinctrl_register() for pin control registration.

Change-Id: Id474b9b0020cef9ed56e5fa1f0e477c2f5dee99a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: linux-rockchip@lists.infradead.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 0085a2b47b)
2018-02-28 14:55:00 +08:00
Brian Norris
108a463671 UPSTREAM: pinctrl: rockchip: enable clock when reading pin direction register
We generally leave the GPIO clock disabled, unless an interrupt is
requested or we're accessing IO registers. We forgot to do this for the
->get_direction() callback, which means we can sometimes [1] get
incorrect results [2] from, e.g., /sys/kernel/debug/gpio.

Enable the clock, so we get the right results!

[1] Sometimes, because many systems have 1 or mor interrupt requested on
each GPIO bank, so they always leave their clock on.

[2] Incorrect, meaning the register returns 0, and so we interpret that
as "input".

Change-Id: I8c98cb41719d0666845d0ff893a7de05ce04128f
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 5c9d8c4f6b)
2018-02-28 14:55:00 +08:00
Caesar Wang
6fc772255b UPSTREAM: pinctrl: rockchip: add support the get_direction
This patch adds the get_direction to support the gpio
interface.

The gpio direction is not used on rockchip platform when use the gpio
debugfs.

Tested on kylin board. (RK3036 SoCs)
The repro steps:
$/sys/class/gpio/
echo 53 > export
$/sys/class/gpio/gpio53# cat direction
in
In general, the gpio53 should be out value, but the direction is the
default value 'in',  since the get_direction didn't supported in rockchip
pinctrl.

So, we should add this patch to support it.

Change-Id: I5510f3e60fdcae16b01a8dff1efbe31960dfcc1d
Cc: linux-gpio@vger.kernel.org
Cc: linux-rockchip@lists.infradead.org
Reported-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
(cherry picked from commit 6ba20a00a3)
2018-02-28 14:55:00 +08:00
Irina Tirdea
87bd37c8c8 UPSTREAM: pinctrl: Rename pinctrl_utils_dt_free_map to pinctrl_utils_free_map
Rename pinctrl_utils_dt_free_map to pinctrl_utils_free_map, since
it does not depend on device tree despite the current name. This
will enforce a consistent naming in pinctr-utils.c and will make
it clear it can be called from outside device tree (e.g. from
ACPI handling code).

Change-Id: I442cea04967997ed29d6e7a3cfe35f2ec2e9c95f
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit d32f7fd3bb)
2018-02-28 14:55:00 +08:00
Julia Lawall
5e8693fe05 UPSTREAM: pinctrl: mediatek: add missing of_node_put
for_each_child_of_node performs an of_node_get on each iteration, so a
return from the loop requires an of_node_put.

A simplified version of the semantic patch that fixes this problem is as
follows (http://coccinelle.lip6.fr):

// <smpl>
@@
local idexpression n;
expression e,e1;
@@

 for_each_child_of_node(e1,n) {
   ...
(
   of_node_put(n);
|
   e = n
|
   return n;
|
+  of_node_put(n);
?  return ...;
)
   ...
 }
// </smpl>

Change-Id: Ifa715e7d1c475d3f33cfff3ce8b7f32636447a7c
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 4fc8a4b2a4)
2018-02-28 14:55:00 +08:00
Laxman Dewangan
5a4d5e6dcb UPSTREAM: pinctrl: Add devm_ apis for pinctrl_{register, unregister}
Add device managed APIs devm_pinctrl_register() and
devm_pinctrl_unregister() for the APIs pinctrl_register()
and pinctrl_unregister().

This helps in reducing code in error path and sometimes
removal of .remove callback for driver unbind.

Change-Id: I6e5f092ed0d830f8fdf357d51ae7d65fe9fb2020
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 80e0f8d94d)
Fix devm_pinctrl_dev_match with commit 3024f920eb
("pinctrl: zynq: Use devm_pinctrl_register() for pinctrl registration")
2018-02-28 14:55:00 +08:00
Laxman Dewangan
6f49ad54ab UPSTREAM: gpio: Add devm_ apis for gpiochip_add_data and gpiochip_remove
Add device managed APIs devm_gpiochip_add_data() and
devm_gpiochip_remove() for the APIs gpiochip_add_data()
and gpiochip_remove().

This helps in reducing code in error path and sometimes
removal of .remove callback for driver unbind.

Change-Id: I84e3336b05d0c0e82170d16cdae8977c9f962942
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 0cf3292cde)
2018-02-28 14:55:00 +08:00
Linus Walleij
0ed8601921 UPSTREAM: pinctrl: rockchip: use gpiochip data pointer
This makes the driver use the data pointer added to the gpio_chip
to store a pointer to the state container instead of relying on
container_of().

Change-Id: I9a9c0b6558e09efa680dfee0777469db62669e6c
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 03bf81f1cb)
2018-02-28 14:55:00 +08:00
Linus Walleij
42ca171815 UPSTREAM: gpio: add a data pointer to gpio_chip
This adds a void * pointer to gpio_chip so that driver can
assign and retrieve some states. This is done to get rid of
container_of() calls for gpio_chips embedded inside state
containers, so we can remove the need to have the gpio_chip
or later (planned) struct gpio_device be dynamically allocated
at registration time, so that its struct device can be properly
reference counted and not bound to its parent device (e.g.
a platform_device) but instead live on after unregistration
if it is opened by e.g. a char device or sysfs.

The data is added with the new function gpiochip_add_data()
and for compatibility we add static inline wrapper function
gpiochip_add() that will call gpiochip_add_data() with
NULL as argument. The latter will be removed once we have
exorcised gpiochip_add() from the kernel.

gpiochip_get_data() is added as a static inline accessor
for drivers to quickly get their data out.

Change-Id: I00f974c6008c7bd36f9bfef30bf1ef162330a6f6
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit b08ea35a32)
2018-02-28 14:55:00 +08:00
Bamvor Jian Zhang
a1c0fa7868 UPSTREAM: gpiolib: make comment consistent with code
Commit f4d566a8a0e6 ("gpio: change member .dev to .parent") changes
member of gpiochip from .dev to .parent. Update the corresponding
comment.

Change-Id: Ib469ecfcd6dc6b97f0a20425c853ac395a0f31d9
Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit c88402c2e6)
2018-02-28 14:55:00 +08:00
Bamvor Jian Zhang
2909c66ccb UPSTREAM: gpiolib: do not allow to insert an empty gpiochip
We need to check if number of gpio is positive if there is no
such check in devicetree or acpi or whatever called before
gpiochip_add.

I suppose that devicetree and acpi do not allow insert gpiochip
with zero number but I do not know if it is enough to ignore
this check in gpiochip_add.

Change-Id: Ie11b24596988a90d03a957979e27e23658785a2f
Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 5ed41cc4ba)
2018-02-28 14:55:00 +08:00
Linus Walleij
8aba7c88ee UPSTREAM: gpio: change member .dev to .parent
The name .dev in a struct is normally reserved for a struct device
that is let us say a superclass to the thing described by the struct.
struct gpio_chip stands out by confusingly using a struct device *dev
to point to the parent device (such as a platform_device) that
represents the hardware. As we want to give gpio_chip:s real devices,
this is not working. We need to rename this member to parent.

This was done by two coccinelle scripts, I guess it is possible to
combine them into one, but I don't know such stuff. They look like
this:

@@
struct gpio_chip *var;
@@
-var->dev
+var->parent

and:

@@
struct gpio_chip var;
@@
-var.dev
+var.parent

and:

@@
struct bgpio_chip *var;
@@
-var->gc.dev
+var->gc.parent

Plus a few instances of bgpio that I couldn't figure out how
to teach Coccinelle to rewrite.

This patch hits all over the place, but I *strongly* prefer this
solution to any piecemal approaches that just exercise patch
mechanics all over the place. It mainly hits drivers/gpio and
drivers/pinctrl which is my own backyard anyway.

Change-Id: Ib178cec5ee519164386cb60ba7f6c3f796e84f0e
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
Cc: Rafał Miłecki <zajec5@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: Alek Du <alek.du@intel.com>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 58383c7842)
2018-02-28 14:55:00 +08:00
Zhaoyifeng
5534a02565 drivers: rk_nand: add nand driver for rk3326 and px30
Change-Id: Ib052507c864e4ef0a09dc036fc0d73fef7c58a3a
Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
2018-02-28 14:20:52 +08:00
Algea Cao
a5784485a3 arm: rockchip_defconfig: Enable drm tve
Change-Id: I585f7b944af030ecb3f14c4b696b21605f910005
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2018-02-28 14:18:56 +08:00
Algea Cao
adf6d2807d ARM: dts: rk322x: rk3229-evb-android: Enable drm tve
Change-Id: Ic62ec0e9069a521b2acfb50a27705ce85db45fa9
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2018-02-28 14:18:27 +08:00
Algea Cao
0fc4f45a52 ARM: dts: rk322x: Add drm tve
Change-Id: I8dcda0558de7a06c72ea706bcf1a54f746ba2ea4
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2018-02-28 14:16:58 +08:00
Algea Cao
07bbb4fe5f drm/rockchip: vop: support rk322x drm cvbs
Change-Id: Ifdaad0cfafb4230d80ff5c27a039839a44fa94d1
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2018-02-28 14:16:58 +08:00
Wyon Bi
920ec4576e arm64: dts: rockchip: rk3326-863-lp3-v10: enable logo display
Change-Id: I54091b5a0becf970623178ce0967579ebbf22f05
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-02-28 11:07:10 +08:00
Finley Xiao
1a36349dcc clk: rockchip: px30: leave cpll for VOP only
We will need a pll to support all kinds of clock rate requirement
for display. In order not to affect other clocks, remove the cpll
from the parent list of other clocks and only DCLK_VOP can select
cpll as parent.

Change-Id: I69e5e3ca1af66eba5b4cc92b792077ec64f67054
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-02-28 11:06:44 +08:00
Finley Xiao
e9c977b797 clk: rockchip: px30: Remove div50 clk
Change-Id: I86bffd8706b501c1f156d52392c445a0dad1e06f
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-02-28 11:06:44 +08:00
Finley Xiao
4951fda4dc clk: rockchip: px30: Remove clk_uartx_np5
Change-Id: I03bfebe4a85c55c93b0bd91c6d1f1b2334fee74f
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-02-28 11:06:44 +08:00
Tao Huang
ef3a197ba6 power: rk817: fix compile warning
drivers/power/rk817_battery.c:2129:4: warning: this if
clause does not guard... [-Wmisleading-indentation]

drivers/power/rk817_battery.c:2920
rk817_bat_pm_resume() error: uninitialized symbol 'time_step'.

Change-Id: I9af73c85192279cc0546a5844da65542806279d5
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-02-28 10:44:28 +08:00
Xiao Yao
63c84030be arm64: dts: rockchip: fix clock name for sdmmc_ext for rk3328 chip
Change-Id: I915aed1122b41c3f766968ea8d74d98aa8bb22ed
Signed-off-by: Xiao Yao <xiaoyao@rock-chips.com>
2018-02-28 10:34:50 +08:00
Zhou weixin
651cd90eaa arm64: dts: rockchip: disable virtual power for rk3326-863-lp3-v10
Change-Id: Ib558805bc8923f8485c36edf51535f17ea997573
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-02-28 10:34:28 +08:00
Liang Chen
385761959c PM / devfreq: rockchip_dmc: protect video_info_list with mutex
When multiple videos are playback at the same time, video_info_list
may be damaged, so we need protect the list with a muxte_lock.

Change-Id: I7f9ab8d9a9cd29b69550b47d1b35b6645357b0b0
Signed-off-by: Liang Chen <cl@rock-chips.com>
2018-02-28 09:36:02 +08:00
shengfei Xu
c19ea2e315 power: rk817: smooth the display soc
Change-Id: I239df7d8812673a1ebc95cea012b18ab0ca3af9b
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
2018-02-28 09:32:26 +08:00
Xinhuang Li
1000befc2d arm64: dts: rockchip: rk3328: add aclk&hclk for h265e_mmu
Change-Id: I46bd3817219f80fddd097ec37e10a3a29209e21f
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com>
2018-02-28 09:32:25 +08:00
Liang Chen
1400bae5b6 arm64: dts: rockchip: add support of gpu opp 550M for rk3326
Change-Id: Ib8722d53bd37374d7ac7458ee861b3f2b154403b
Signed-off-by: Liang Chen <cl@rock-chips.com>
2018-02-28 09:32:25 +08:00
Finley Xiao
090a42caf7 arm64: rockchip: px30: Remove the initial value of PLL_CPLL and BOOST
If show logo in uboot, can't change vop clocks.

Change-Id: I84fc1138b54b1c7b3c798f1bc4fb7d0f332e6895
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-02-27 18:02:53 +08:00
Shawn Lin
94d9c15c89 arm64: dts: rockchip: Add SD(IO) 3.0 support for rk3326-863-lp3-v10
Change-Id: I046c2dadfe20861c45c27b068b4c4dc427a36eee
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2018-02-27 11:31:31 +08:00
Shawn Lin
e61fd89e2f BACKPORT: FROMLIST: mmc: core: Don't try UHS-I mode if 4-bit mode isn't supported
Per SD specification physical layer v4.0, section 3.9.4, it
says "UHS-I supports only 4-bit mode. Host shall select 4-bit
mode by ACMD6. However mmc_sd_init_uhs_card() still go ahead
to initialize the cards anyway, whether card or host won't
support 4-bit mode.

This breaks the platforms which only support 1-bit mode but
with a UHS-I card inserted, as all the tuning process is broken
due to this. Alternatively, we should check the return value from
mmc_set_bus_width to see if host could finish the request to switch
the bus with on its side. But that needs more thing to do than this
patch that just bails out early to try to use high speed mode if 4-bit
mode isn't available for whatever reason. And this patch could also
fix the same problem for sdio since R4_18V_PRESENT won't be set for
ocr when mmc_sdio_init_card() finds mmc_host_uhs() is false.

Note that This patch doesn't keep the checking of card->scr.sda_spec3
and comparing card->scr.bus_widths with SD_SCR_BUS_WIDTH_4 within
mmc_sd_init_uhs_card since if the sd cards response with SD_ROCR_S18A,
it definitely support UHS-I mode, which implicitly means these checks
are always true.

Change-Id: I2e91418b3216d9efac672af604014d7095bf4a1a
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from https://patchwork.kernel.org/patch/10241773/)
2018-02-27 11:31:21 +08:00
Shawn Lin
fcb45dce59 BACKPORT: UPSTREAM: mmc: sdio: don't use rocr to check if the card could support UHS mode
Per SDIO Simplified Specification V3, section 3.1.2, A host that
supports UHS-I sets S18R to 1 in the argument of CMD5 to request a
change of the signal voltage to 1.8V. If the card supports UHS-I and
the current signal voltage is 3.3V, S18A is set to 1 in the R4 response.
If the signal voltage is already 1.8V, the card sets S18A to 0 so that
host maintains the current signal voltage. UHS-I is supported in SD mode
and S18A is always 0 in SPI mode.

For the current code, if the signalingvoltage is fixed 1.8v, so
the card will set S18A to 0 for rocr and thus we would clear the
R4_18V_PRESENT from ocr, which make core won't try to use uhs mode.

To fix it, we expect sdio_read_cccr would fail if the uhs mode won't
work at all. Note that it's interesting that some sdio cards still
response S18A even the voltage is fixed to 1.8v and the CMD11 will
also accepted and finish enabling UHS mode successfully.I guess this
is why folks didn't notice this problem. Anyway, fix it.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Change-Id: I81305f076a663d04c3ff93e78492daf091bc6311
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from 5fc3d80ef4)
2018-02-27 11:29:12 +08:00
Shawn Lin
2ff9b261ab BACKPORT: UPSTREAM: mmc: sdio: Factor out retry init card helper function
Add new helper function, mmc_sdio_resend_if_cond, to be
reused when trying to retry the init sequence.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Change-Id: I3eb7ffdc18ddb49f34e39198ac4a65cdb8cad586
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from 0eb51a58ad)
2018-02-27 10:16:19 +08:00
Zhong Yichong
252aa7dac9 camera: rockchip: camsys_drv: Another solution of isp reset failure for rk3326.
Reset on too high isp_clk rate will result in bus dead, so we reduce the
isp_clk before reset and then restore after reset.

Change-Id: I9e426564f0eb9f900fd5012def1e105d7d697394
Signed-off-by: Zhong Yichong <zyc@rock-chips.com>
2018-02-27 09:24:13 +08:00
Finley Xiao
634f908468 nvmem: rockchip-otp: Fix section mismatch when compile
Change-Id: I571d63a6f3af2b0768b42ede3638d4b0ef2497cd
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-02-26 19:57:25 +08:00
Joseph Chen
2bea544836 UPSTREAM: pinctrl: Add pinctrl driver for the RK805 PMIC
RK805 is one of Rockchip PMICs family, it has 2 output only GPIOs.

This driver is also designed for other Rockchip PMICs to expend.
Different PMIC maybe have different pin features, for example,
RK816 has one pin which can be used for TS or GPIO(input/out).
The mainly difference between PMICs pins are pinmux, direction
and output value, that is 'struct rk805_pin_config'.

Change-Id: Ib1e0ada7e9c60565a720928f6e9f6948dc79194c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
(cherry picked from commit ea479996c7)
2018-02-26 18:16:18 +08:00
Joseph Chen
4e21a59914 UPSTREAM: pinctrl: dt-bindings: Add bindings for Rockchip RK805 PMIC
Change-Id: Ib6f0edc31cb53bff9b297d1d4e919f9f1cd08070
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
(cherry picked from commit 5b0bb001d3)
2018-02-26 18:08:13 +08:00
Tao Huang
94cf234d60 mfd: remove unused rk808-irq
Change-Id: I27138971c78d2ed9dae87e887b8804cdf499a69c
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-02-26 17:30:52 +08:00
Tao Huang
3d73d4ef98 arm64: rockchip_defconfig: remove rkfb config
For new android, these configs is not needed anymore:

CONFIG_FB_ROCKCHIP
CONFIG_LCDC_RK3368
CONFIG_LCDC_RK322X
CONFIG_LCDC_LITE_RK3X
CONFIG_LCD_MIPI
CONFIG_RK_TRSM
CONFIG_RK32_DP
CONFIG_MIPI_DSI
CONFIG_RK32_MIPI_DSI
CONFIG_RK_HDMI
CONFIG_ROCKCHIP_DP
CONFIG_SND_SOC_DW_HDMI_AUDIO

Change-Id: I0023e0455712b00131a90a24837731e4b2cfeb43
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-02-26 17:30:38 +08:00
Algea Cao
262653c976 drm/rockchip: Fix cvbs display err when power off
DPMS status default value should be set according to
whether uboot logo is enabled. If uboot logo is enabled,
DPMS status default value should be set to ON.

Change-Id: I492d76c29687e583771824fcbc5a57455242ec0e
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2018-02-26 17:21:08 +08:00
Huicong Xu
fd1c248b92 arm: dts: rockchip: rk322x: fix uboot find hdmi connector node fail
Change-Id: Ic1747a8d760ff6efd2fa458464f6aab5157d0170
Signed-off-by: Huicong Xu <xhc@rock-chips.com>
2018-02-26 17:20:50 +08:00
William Wu
2ba3b09d6b ARM64: dts: rockchip: use regulator for usb vbus on rk3328 boards
This patch uses otg-vbus and host-vbus fixed-regulators instead
of GPIO pins for usb2 and usb3 vbus power on rk3328-evb boards.

Change-Id: I82433752724be236a821c8629e882d930687d0f7
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-02-26 17:20:05 +08:00
William Wu
26c539146c ARM: dts: rockchip: use regulator for otg vbus on rk3229 boards
This patch uses a fixed-regulator instead of GPIO pin for
otg vbus power on rk3229 boards.

Change-Id: I9b4f37c78a8d112008c3db552150a77bbaeb23fc
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-02-26 17:19:37 +08:00
William Wu
56490c0e85 ARM: dts: rockchip: use regulator for otg vbus on rk3128-fireprime
This patch uses a fixed-regulator instead of GPIO pin for
otg vbus power on rk3128-fireprime board.

Change-Id: I5b1aa112ec8e1f07d9a6c2f7d0b349ab30331913
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-02-26 17:19:04 +08:00
William Wu
12efa9acad phy: rockchip-inno-usb3: use fixed-regulator for vbus power
This patch uses a fixed-regulator instead of GPIO pin for
usb vbus power. It doesn't fix any issue, but it makes more
sense to convert the GPIO code into a fixed-regulator.

Change-Id: I76fb8dc5c8cfdba24ccb3fc24f14850defb83b2e
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-02-26 17:18:33 +08:00
William Wu
a1ca1be8f6 phy: rockchip-inno-usb2: use fixed-regulator for vbus power
This patch uses a fixed-regulator instead of GPIO pin for
usb vbus power. It doesn't fix any issue, but it makes more
sense to convert the GPIO code into a fixed-regulator.

Change-Id: I7196a9cd592dbb3fab3ef8b9e99babc613a42869
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-02-26 17:18:29 +08:00
Liang Chen
da8675c309 arm64: dts: rockchip: adjust cpu and gpu opp table for px30
Change-Id: I8951348731463a7614ac6f320af16222cd7fe212
Signed-off-by: Liang Chen <cl@rock-chips.com>
2018-02-26 17:14:26 +08:00
Shawn Lin
7d65765bf3 arm64: dts: rockchip: Enable SD/SDIO 3.0 for PX30/RK3326 boards
This patch enables SD(IO) 3.0 for all boards by adding correct
vccq and vcc power supplies, as well as properities required by
UHS-I mode.

Change-Id: Iec11e1d1abe7ef9fc17ba08eece3440d7dcaea0b
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2018-02-26 17:13:46 +08:00
Wyon Bi
c57523a0d6 arm64: dts: rockchip: rk3326-evb-lp3-v10: enable logo display
Change-Id: I89d777a8c11d94f8bdd79d67258bf54388bd9e9a
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-02-26 17:12:34 +08:00
Finley Xiao
882c5c7dc7 clk: rockchip: px30: Add support to set parent rate for vopb dclk
Change-Id: I3160abc500be473c6cf4893bd26fd22b3ec95a85
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-02-26 17:08:53 +08:00