Commit Graph

608198 Commits

Author SHA1 Message Date
Russell King
2c342a2ca4 UPSTREAM: scripts/dtc: fix '%zx' warning
dtc uses an incorrect format specifier for printing a uint64_t value.
uint64_t may be either 'unsigned long' or 'unsigned long long' depending
on the host architecture.

Fix this by using %llx and casting to unsigned long long, which ensures
that we always have a wide enough variable to print 64 bits of hex.

    HOSTCC  scripts/dtc/checks.o
  scripts/dtc/checks.c: In function 'check_simple_bus_reg':
  scripts/dtc/checks.c:876:2: warning: format '%zx' expects argument of type 'size_t', but argument 4 has type 'uint64_t' [-Wformat=]
    snprintf(unit_addr, sizeof(unit_addr), "%zx", reg);
    ^
  scripts/dtc/checks.c:876:2: warning: format '%zx' expects argument of type 'size_t', but argument 4 has type 'uint64_t' [-Wformat=]

Link: http://lkml.kernel.org/r/20170829222034.GJ20805@n2100.armlinux.org.uk
Change-Id: Ic485917e85d7ddab7e7711e5f4e7038ceb6675c0
Fixes: 828d4cdd01 ("dtc: check.c fix compile error")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit e66186920b)
2018-03-28 19:51:34 +08:00
Geert Uytterhoeven
15b8da6906 UPSTREAM: scripts/dtc: dtx_diff - Show real file names in diff header
As the comparison uses process substitution to pass files after
conversion to DTS format, the diff header doesn't show the real
filenames, but the names of the file descriptors used:

    --- /dev/fd/63  2017-06-22 11:21:47.531637188 +0200
    +++ /dev/fd/62  2017-06-22 11:21:47.531637188 +0200

This is especially annoying when comparing a bunch of DT files in a
loop, as the output doesn't show a clue about which files it refers to.

Fix this by explicitly passing the original file names to the diff
command using the --label option, giving e.g.:

    --- arch/arm/boot/dts/r8a7791-koelsch.dtb
    +++ arch/arm/boot/dts/r8a7791-porter.dtb

Change-Id: Ic07c743027d42c04f865e1a79f61cd44103a2d80
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 7782b14446)
2018-03-28 19:51:34 +08:00
Shuah Khan
29b79c4588 UPSTREAM: dtc: check.c fix compile error
Fix the following compile error found on odroid-xu4:

checks.c: In function ‘check_simple_bus_reg’:
checks.c:876:41: error: format ‘%lx’ expects argument of type
‘long unsigned int’, but argument 4 has type
‘uint64_t{aka long long unsigned int}’ [-Werror=format=]
  snprintf(unit_addr, sizeof(unit_addr), "%lx", reg);
                                         ^
checks.c:876:41: error: format ‘%lx’ expects argument of type
‘long unsigned int’, but argument 4 has type
‘uint64_t {aka long long unsigned int}’ [-Werror=format=]
cc1: all warnings being treated as errors
Makefile:304: recipe for target 'checks.o' failed
make: *** [checks.o] Error 1

Change-Id: I08896cc9ecd828822ba9bd8e1b6d382faf7cd95d
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
[dwg: Correct new format to be correct in general]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
[robh: cherry-picked from upstream dtc commit 2a42b14d0d03]
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 828d4cdd01)
2018-03-28 19:51:34 +08:00
Rob Herring
e7448a56d1 UPSTREAM: dtc: update warning settings for new bus and node/property name checks
dtc gained new warnings checking PCI and simple buses, unit address
formatting, and stricter node and property name checking. Disable the
new dtc warnings by default as there are 1000s. As before, warnings are
enabled with W=1 or W=2. The strict node and property name checks are a
bit subjective, so they are only enabled for W=2.

Change-Id: I1928d0fcb0a6fb82ec4a68d092121809cd23c1a0
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 8654cb8d03)
2018-03-28 19:51:34 +08:00
Rob Herring
6a4e8d52a2 UPSTREAM: dtc: turn off dtc unit address warnings by default
The newly added dtc warning to check DT unit-address without reg
property and vice-versa generates lots of warnings. Turn off the check
unless building with W=1 or W=2.

Change-Id: I423d16369f982e7691fb0921133b5e9d673b74c0
Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Michal Marek <mmarek@suse.com>
Cc: linux-kbuild@vger.kernel.org
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit bc553986a2)
2018-03-28 19:51:34 +08:00
Rob Herring
a3b92c0f92 UPSTREAM: scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6
This adds the following commits from upstream:

756ffc4f52f6 Build pylibfdt as part of the normal build process
8cb3896358e9 Adjust libfdt.h to work with swig
b40aa8359aff Mention pylibfdt in the documentation
12cfb740cc76 Add tests for pylibfdt
50f250701631 Add an initial Python library for libfdt
cdbb2b6c7a3a checks: Warn on node name unit-addresses with '0x' or leading 0s
4c15d5da17cc checks: Add bus checks for simple-bus buses
33c3985226d3 checks: Add bus checks for PCI buses
558cd81bdd43 dtc: Bump version to v1.4.4
c17a811c62eb fdtput: Remove star from value_len documentation
194d5caaefcb fdtget: Use @return to document the return value
d922ecdd017b tests: Make realloc_fdt() really allocate *fdt
921cc17fec29 libfdt: overlay: Check the value of the right variable
9ffdf60bf463 dtc: Simplify asm_emit_string() implementation
881012e44386 libfdt: Change names of sparse helper macros
bad5b28049e5 Fix assorted sparse warnings
672ac09ea04d Clean up gcc attributes
49300f2ade6a dtc: Don't abuse struct fdt_reserve_entry
fa8bc7f928ac dtc: Bump version to v1.4.3
34a9886a177f Add printf format attributes
f72508e2b6ca Correct some broken printf() like format mismatches
397d5ef0203c libfdt: Add fdt_setprop_empty()
69a1bd6ad3f9 libfdt: Remove undefined behaviour setting empty properties
acd1b534a592 Print output filename as part of warning messages
120775eb1cf3 dtc: Use streq() in preference to strcmp()
852e9ecbe197 checks: Add Warning for stricter node name character checking
ef0e8f061534 checks: Add Warning for stricter property name character checking
00d7bb1f4b0e dtc: pos parameter to srcpos_string() can't be NULL
95d57726bca4 livetree.c: Fix memory leak
3b9c97093d6e dtc: Fix NULL pointer use in dtlabel + dtref case
43eb551426ea manual: Fix typo it -> in
4baf15f7f13f Makefile: Add tags rule

Change-Id: Ifb54361ee3f13e124e6728a095dc73b0fe2724d5
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 89d123106a)
2018-03-28 19:51:34 +08:00
Rob Herring
210d77e4cd UPSTREAM: scripts/dtc: automate getting dtc version and log in update script
Further automate the dtc update script to fill in the dtc version and
commit log.

Change-Id: Ib52a9d54ffbe57c82cb2aa752e3cdd0f6b564e7a
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 86cef6144d)
2018-03-28 19:51:34 +08:00
Tao Huang
5bf9e8a249 ARM: dts: rockchip: fix dtc warnings of rk3288-firefly-rk808
Change-Id: Id7b4922d4ba1ca239ed41a3ef71be99d99b58b10
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 19:23:24 +08:00
Tao Huang
7e9be8bac3 ARM: dts: rockchip: fix dtc warnings of rk3288
Change-Id: I179a394f83cf75672441db54aede62029eecf799
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 19:23:24 +08:00
Tao Huang
fb39d3f289 ARM: dts: rockchip: fix dtc warnings of rk3229-at-3nod-func
Change-Id: I47f27f8400f1cb26231782689e6315538a10fc72
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 19:23:24 +08:00
Tao Huang
b47525bf90 ARM: dts: rockchip: fix dtc warnings of rk312x
Change-Id: I3647a1b9b0af01f2c7a22421dd59c78c86150301
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 19:23:24 +08:00
Huibin Hong
50714c50fa arm64: rockchip_defconfig: add uart number to 6
Change-Id: Icaf73cdcd2adef2c6979eb79ea2918372cd49045
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-03-28 18:56:02 +08:00
Rocky Hao
ac19e13a57 thermal: rockchip: add shutdown callback function
Tsadc has a tshut pin which is designed to reset the pmic or soc,
when the temperature inside soc is too high. we should switch off
the tshut function and change the pin to gpio function in reboot
process, eg, software reset. If not, the tsadc module will WRONGLY
pull high the tshut pin during its reset process and then WRONGLY
reset the pmic or soc, which incurred a hardware reset. The hardware
reset will reset everything inside soc, even includes the power on
reason flag, which is set by software before reboot process.

we also change over-temperature protection mode to cru mode,
since the tshut pin have be changed to gpio function.

Change-Id: Iac3dacf55a4b5536fccd2eb05a6a9e6923a082c0
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
2018-03-28 18:55:38 +08:00
Sugar Zhang
77eafe1393 pinctrl: rockchip: fix pdm pinctrl for rk3308
Change-Id: Ib01a21f1af70856fc32657dda055fd67587c4068
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-03-28 18:50:36 +08:00
Sugar Zhang
7a74a37dbb arm64: dts: rockchip: rk3308-evb-dmic-pdm-v10: add pdm mic array
Change-Id: I20f87e7f047984276028dcc07749c61158cba274
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-03-28 17:33:21 +08:00
Sugar Zhang
19a1c39e02 ASoC: rockchip: pdm: using left justified store mode
Change-Id: I3a787a1c71b6bbbfad632b1f07b1496fd1e5d9fc
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-03-28 17:27:02 +08:00
Shawn Lin
0d9db566ac arm64: dts: rockchip: add sdmmc support for rk3308-evb
Should disable fiq_debugger if activating sdmmc support

Change-Id: Ib9b24199e3e56015c062f8d2a337bc53ee53e083
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2018-03-28 17:26:44 +08:00
Shawn Lin
8596e8ffc4 BACKPORT: FOMLIST: mmc: dw_mmc: update actual clock for mmc debugfs
Respect the actual clock for mmc debugfs to help better debug
the hardware.

mmc_host mmc0: Bus speed (slot 0) = 135475200Hz (slot req 150000000Hz,
actual 135475200HZ div = 0)

cat /sys/kernel/debug/mmc0/ios
clock:          150000000 Hz
actual clock:   135475200 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      3 (8 bits)
timing spec:    9 (mmc HS200)
signal voltage: 0 (1.80 V)
driver type:    0 (driver type B)

Cc: Xiao Yao <xiaoyao@rock-chips.com>
Cc: Ziyuan <xzy.xu@rock-chips.com>
Change-Id: I957b9cc00aa4a4abde8c1bcc735204d274388145
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from https://patchwork.kernel.org/patch/10307501/)
2018-03-28 17:26:44 +08:00
Tao Huang
29bb520c51 arm64: dts: rockchip: fix dtc warnings of rk3399
Change-Id: I31fbab7d90e35ae47bbc6d54aad5e82b8902af7f
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 17:22:16 +08:00
Tao Huang
3462602408 arm64: dts: rockchip: fix dtc warnings of rk3368
Change-Id: Ic9108590a297efac89da3fd8ce6608bf0b8172a0
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 17:21:30 +08:00
Tao Huang
189f379e52 arm64: dts: rockchip: fix dtc warnings of rk3366
Change-Id: I94be72168765327346587357f2a46515861f6e05
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 17:11:14 +08:00
Tao Huang
1a8d7f02ee arm64: dts: rockchip: fix dtc warnings of rk3328
Change-Id: I946c38d7dafe695b9ba1f73758e2ea8b07787610
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 17:08:38 +08:00
Tao Huang
cd4a2c581e arm64: dts: rockchip: fix dtc warnings of rk3326-evb-lp3-v10
Change-Id: Ic5d7eaa79a61b805bebcd564fc5f37a8ebf391fc
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 17:07:55 +08:00
Tao Huang
f2d735aa97 arm64: dts: rockchip: fix dtc warnings of rk3308
Change-Id: I498c2d5f5a8fdf3cbc5a6b5bda3492a49b9a79e0
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 17:07:38 +08:00
Tao Huang
9d959e8aca arm64: dts: rockchip: fix dtc warnings of px30
Change-Id: Ie01bb2c17ec9ab4310278ace31ad25830847a74b
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 16:57:47 +08:00
Alex Zhao
3ba5ce0c80 net: wireless: rockchip_wlan: fix out of memory when get essid
Change-Id: I226a7349aa955fdcff09acaaa5f2040eaae66a06
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
2018-03-28 14:19:40 +08:00
Tao Huang
e63a7805e9 clk: rockchip: drop severity of 'invalid clk rate' message
These are noisy during boot:
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] rockchip_mmc_get_phase: invalid clk rate
[    0.000000] Architected cp15 timer(s) running at 24.00MHz (phys).

Change-Id: I0a5ca5a1e0b6c6ba9038fa64635dc448bb5c612b
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 12:03:17 +08:00
Huibin Hong
139213e1c6 arm64: dts: rockchip: Add spi aliase of rk3308
Change-Id: I13f2612614b5f8bbaef6c63bf1a55251deccb1cf
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-03-28 11:02:42 +08:00
Huibin Hong
2f376305b7 arm64: dts: rockchip: Remove pinctrl from rk3308 fiq debugger
Change-Id: I8933a66fc1a33780a87cd97b17448e87287add7d
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-03-28 11:01:00 +08:00
Tao Huang
197a2d322a soc: rockchip: opp_select: add missing rcu lock
===============================
[ INFO: suspicious RCU usage. ]
4.4.120 #194 Not tainted
-------------------------------
drivers/base/power/opp/core.c:453 Missing rcu_read_lock() or opp_table_lock protection!

other info that might help us debug this:

rcu_scheduler_active = 1, debug_locks = 1
3 locks held by swapper/0/1:
 #0:  (&dev->mutex){......}, at: [<ffffff80082bf1e0>] __device_attach+0x28/0x104
 #1:  (cpu_hotplug.lock){++++++}, at: [<ffffff800809aac0>] get_online_cpus+0x38/0x9c
 #2:  (subsys mutex#6){+.+.+.}, at: [<ffffff80082be46c>] subsys_interface_register+0x38/0xc4

stack backtrace:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.4.120 #194
Hardware name: Rockchip RK3308 evb digital-pdm mic board (DT)
Call trace:
[<ffffff8008087f08>] dump_backtrace+0x0/0x1b8
[<ffffff80080880d4>] show_stack+0x14/0x1c
[<ffffff800820ac14>] dump_stack+0xa8/0xe8
[<ffffff80080d82d8>] lockdep_rcu_suspicious+0xe4/0x10c
[<ffffff80082ce72c>] dev_pm_opp_find_freq_ceil+0x6c/0x108
[<ffffff800824d84c>] rockchip_adjust_opp_by_irdrop+0xf4/0x1e8
[<ffffff80083a66fc>] cpufreq_init+0x134/0x414
[<ffffff80083a0eec>] cpufreq_online+0x1b4/0x68c
[<ffffff80083a1464>] cpufreq_add_dev+0x3c/0x94
[<ffffff80082be4dc>] subsys_interface_register+0xa8/0xc4
[<ffffff80083a1700>] cpufreq_register_driver+0x10c/0x1a8
[<ffffff80083a6aa8>] dt_cpufreq_probe+0xcc/0xe8
[<ffffff80082c0db4>] platform_drv_probe+0x54/0xa8
[<ffffff80082bf478>] driver_probe_device+0x188/0x26c
[<ffffff80082bf694>] __device_attach_driver+0x60/0x9c
[<ffffff80082bda4c>] bus_for_each_drv+0x84/0x94
[<ffffff80082bf264>] __device_attach+0xac/0x104
[<ffffff80082bf80c>] device_initial_probe+0x10/0x18
[<ffffff80082be8e4>] bus_probe_device+0x2c/0x90
[<ffffff80082bcd48>] device_add+0x434/0x4dc
[<ffffff80082c0ad0>] platform_device_add+0xa0/0x1e4
[<ffffff80082c1520>] platform_device_register_full+0xa0/0xe0
[<ffffff800882512c>] rockchip_cpufreq_driver_init+0xb4/0x360
[<ffffff800808312c>] do_one_initcall+0xe8/0x194
[<ffffff8008810cec>] kernel_init_freeable+0x1d0/0x1d4
[<ffffff80085b8fa4>] kernel_init+0x14/0x148
[<ffffff8008082ee0>] ret_from_fork+0x10/0x30

Note: we should use dev_pm_opp_put on new kernel.

Change-Id: I39e85892f6e7994bbe4816d09e4446de5cd25cad
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-27 19:11:41 +08:00
Tao Huang
dcda0fbc05 arm64: dts: rockchip: Remove clock-frequency from rk3308 cpu timers
Change-Id: I0c63e1c5b6ba350669e27374670572e6a533a688
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-27 16:54:19 +08:00
Finley Xiao
bf586a6af7 clk: rockchip: rk3308: Change pll type to pll_rk3328
The clk_rtc32k is unused for pll on rk3308 and it will
increase the time to change armclk rate.

Change-Id: I4c1afd04693dafb97c5119de012884c997f596ae
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-03-27 16:53:37 +08:00
Xinhuang Li
5f67055561 ASoC: codecs: rk3228: add capture support
Change-Id: Ibad275ec17389885007df1d67fb63e34f794b023
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com>
2018-03-27 14:43:40 +08:00
Xing Zheng
66a10e3037 ASoC: rk3308_codec: fix the incorrect dapm controls
For more clarity, this patch rename channel to group,
and, we can use the amixer or tinymix to change
the gains for ADCs (MIC/ALC/AGC) and DACs.

Change-Id: If362319fee7e926d235e8c0ffce5415027add96d
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-03-27 14:09:40 +08:00
Xing Zheng
033990b5c1 arm64: dts: rockchip: using simple-card for rk3308 amic evb v10
Change-Id: Ieef59251f8a49415b780b93ba6f64fcf246f6c83
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-03-27 14:09:40 +08:00
Xing Zheng
0ff7d089be arm64: dts: rk3308: add the mclk tx/rx and interrupt for acodec
Change-Id: Id80a51668e04ba1c783ae874085600cc058789e5
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-03-27 14:09:40 +08:00
Xing Zheng
5f27110ba7 ASoC: codecs: update rk3308 codec driver
This patch supports work internal codec on RK3308 EVB.
The functions status are:

DAC HEADPHONE 2CH -- OK
DAC SPK 2CH -- OK
ADC AMIC 8CH -- OK
ADC AMIC 8CH LOOPBACK -- OK
ADC AMIC 2CH -- OK
ADC LINEIN 2CH -- OK

Change-Id: I4f9ba3160b88e8c1e15980cf2eec7a1a5a25e7e7
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-03-27 14:09:40 +08:00
Jung Zhao
e8db05ade5 video: rockchip: vpu: add strict cond for vpu_reset
vpu_reset inside try_set_reg must be called after run to done.

Change-Id: Ide396d5c893cfeeea2e6494edc9cd5fd1130974f
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
2018-03-27 14:06:01 +08:00
Jung Zhao
1031912b1b arm: dts: rockchip: rk322x: add irq_enc for vpu_service
Change-Id: I9d003c8c864b5602e53ebe37902acd725ed5725f
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
2018-03-27 14:05:51 +08:00
Zorro Liu
923d3975c8 drivers: input: sensor: correct accel sensor kxtj9 report value
Change-Id: I9eaaaa22a105986955bb7037c8380e7778ddf507
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2018-03-27 11:55:38 +08:00
Binyuan Lan
7482a49a2d ASoC: rockchip: i2s: protect I2S_XFER_TXS/I2S_XFER_RXS with spin lock
fix bug error log: "rockchip-i2s ff070000.i2s: fail to clear".
When the TX/RX have started, can not do 'clear operation'.

Change-Id: Ia156144490a61f4fa9823b1313588e44688f4bce
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2018-03-27 09:21:42 +08:00
Rocky Hao
7c4f5712a0 arm64: dts: rockchip: enable tsadc module for rk3308-evb-10 board
Change-Id: I8e8f0c47c9b68f6c6afb873c5efc11b97eccd403
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
2018-03-26 20:29:24 +08:00
Rocky Hao
47f32937bd arm64: rk3308_linux_defconfig: enable ROCKCHIP_THERMAL
Change-Id: Ia05592f828b87c6e3ed63491b31f03cf31483782
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
2018-03-26 20:29:24 +08:00
William Wu
61afbad657 phy: rockchip-inno-usb2: fix a clang warning
This patch fix the following clang warning:
[clang] drivers/phy/rockchip/phy-rockchip-inno-usb2.c:1458:2:
warning: 3rd function call argument is an uninitialized value

Change-Id: Ia4a556da346323e5bc081ff1bbf267911fcdc645
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-03-26 20:12:52 +08:00
William Wu
893c85ad32 phy: rockchip-inno-usb2: open pre-emphasize for rk3308/rk3328
Open pre-emphasize in non-chirp state for rk3308 and
rk3328 usb otg and host ports to increase HS slew rate.

Change-Id: I16435d67b9994cef0fd5e6edbae00c41cc02c48b
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-03-26 20:09:02 +08:00
Zhen Chen
b1ee4d8307 MALI: rockchip: upgrade bifrost DDK to r11p0-01rel0
in addition,
	resolve all the conflicts;
	rename all the configs and macros that have a same name in midgard/;

Change-Id: I93a7cf42301a3af43d593965a3eac7fc2aa8276c
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2018-03-26 16:32:38 +08:00
Sandy Huang
f948a62d1d drm/rockchip: rk312x vop: add dither config
Change-Id: Ide4fe3d269bbea919d469db91ac83a696988932c
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-03-26 14:29:49 +08:00
Joseph Chen
7c79ab50ae mfd: rk808: provide a dummy callback for pm_power_off
RK8xx PMICs would do real power off in syscore shutdown, if "pm_power_off"
is not assigned(e.g. PSCI is not enabled), we have to provide a dummy
callback for it, otherwise there comes a halt in Reboot system call:

if ((cmd == LINUX_REBOOT_CMD_POWER_OFF) && !pm_power_off)
	cmd = LINUX_REBOOT_CMD_HALT;

This patch fix issue from:
	94a7fc2 mfd: rk808: power off system in syscore shutdown

Change-Id: I099236bbbd7fcb35fe483fb8f08936fd7a75d2db
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-26 14:25:47 +08:00
Joseph Chen
d507330027 power: rk816-battery: judge 'is_initialized' firstly
U-Boot fuel gauge may do ocv calibration which would update
rsoc, and it would lead a wrong halt judgement for kernel
fuel gauge driver. So we judege is_initialized firstly.

Change-Id: Ifed343b85d3f7e7a42545fc57efe460338f30e17
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-26 14:23:13 +08:00
Joseph Chen
53033d6deb power: rk818-battery: judge 'is_initialized' firstly
U-Boot fuel gauge may do ocv calibration which would update
rsoc, and it would lead a wrong halt judgement for kernel
fuel gauge driver. So we judege is_initialized firstly.

Change-Id: I2957c464dfde1dde4b7dd32778d373904209d575
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-03-26 14:23:13 +08:00