Commit Graph

608208 Commits

Author SHA1 Message Date
Huibin Hong
ea426efeac arm64: dts: rockchip: enable uart dma of rk3308
Change-Id: Icdaf0adda5a01f5c48ffeb93e0f4908bbccd9cdc
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-03-29 16:27:05 +08:00
Huibin Hong
5c158748ad soc: rockchip: grf: unmask uart dma request for RK3308 Soc
Change-Id: I06d955d92d04785bea3248b82fe99c515d471467
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-03-29 16:25:15 +08:00
Huibin Hong
9a3a19f563 arm64: dts: rockchip: add ramoops node of rk3308
Change-Id: I0b2e4ab39670b20532100a932bf75cd422fc9628
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-03-29 16:20:49 +08:00
Huibin Hong
49f0d85158 arm64: rk3308_linux_defconfig: enable pstore
Change-Id: I3cdd1df111ffd049becb6aeb3347b8fe09fa67a6
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-03-29 16:20:49 +08:00
Ziyuan Xu
487ade98b7 arm64: dts: rockchip: exclude rk3308-evb-ext-v10 from rk3308 evb boards
Exclude rk3308-evb-ext-v10.dtsi from rk3308 evb boards, that it's only
used for IP functional verification.

Change-Id: Ic679da54e16134e6326b50fd7de4fbafab57ac8f
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2018-03-29 14:22:04 +08:00
William Wu
199fae2be8 usb: dwc3: rockchip: support type-c data role swap
This patch supports fusb302 to do data role swap for
Type-C Dongle with PD adapter.

The test case is:

- Use a Type-C Dongle (PD adapter & USB & HDMI)
- Plug a PD adapter into Type-C Dongle first, then
  connect the Dongle with RK3399 Type-C0 port.
- Check if Type-C Dongle can fetch 5V with the following log:
  "fusb302 4-0022: PD connected as UFP, fetching 5V"
- Wait for the data role swap completion (hundreds of
  milliseconds), then check if the Type-C USB can work
  in DFP mode.

Without this patch, the DWC3 can't switch to DFP mode
after the data role swap completion. It's because that
when the fusb302 do data role swap, it only sends extcon
notifier with EXTCON_USB true or EXTCON_USB_HOST true.
Generally, the sequence of the extcon notifier sent from
fusb302 is:

- send "EXTCON_USB = true" and "EXTCON_USB_HOST=false"
  to DWC3 driver, then DWC3 switch to UFP, and set the
  connected flag to true.

- After swap completion, send "EXTCON_USB = false" and
  "EXTCON_USB_HOST = true" to DWC3 driver. Because the
  connected flag is true, the DWC3 is unable to switch
  to DFP mode.

This patch forces DWC3 to do disconnection if it detects
the connected flag is true and the DWC3 mode is UFP.

Change-Id: I470187823708e6fb8bb8869bca3b475850a8c2e7
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-03-29 11:14:05 +08:00
Tao Huang
cde0be2ecb ARM: dts: rockchip: fix dtc warnings of rk3288-firefly
Change-Id: If2f4b029bd964be7d2983d1eec78be9e032555d6
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 20:12:03 +08:00
Tao Huang
1079fa97eb scripts/gcc-wrapper.py: ignore some warnings when W=1
Change-Id: I9d9651c077ee025d2f4fbe8faf22f8bed19b0cdd
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-28 19:51:34 +08:00
Rob Herring
2783b7940e UPSTREAM: scripts/dtc: Update to upstream version v1.4.5-6-gc1e55a5513e9
Pickup the fix for handling unresolved phandles in overlays.

This adds the following commits from upstream:

c1e55a5513e9 checks: fix handling of unresolved phandles for dts plugins
f8872e29ce06 tests: Avoid 64-bit arithmetic in assembler
48c91c08bcfa libfdt: add stringlist functions to linker script

Change-Id: I81a0cc9a936f8d1da810460ea5df4472fa27dd5c
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit e45fe7f788)
2018-03-28 19:51:34 +08:00
Rob Herring
057c7706cb UPSTREAM: scripts/dtc: Update to upstream version v1.4.5-3-gb1a60033c110
This adds the following commits from upstream:

b1a60033c110 tests: Add a test for overlays syntactic sugar
737b2df39cc8 overlay: Add syntactic sugar version of overlays
497432fd2131 checks: Use proper format modifier for size_t
22a65c5331c2 dtc: Bump version to v1.4.5
c575d8059fff Add fdtoverlay to .gitignore
b6a6f9490d19 fdtoverlay: Sanity check blob size
8c1eb1526d2d pylibfdt: Use Python2 explicitly
ee3d26f6960b checks: add interrupts property check
c1e7738988f5 checks: add gpio binding properties check
b3bbac02d5e3 checks: add phandle with arg property checks
fe50bd1ecc1d fdtget: Split out cell list display into a new function
62d812308d11 README: Add a note about test_tree1.dts
5bed86aee9e8 pylibfdt: Add support for fdt_subnode_offset()
46f31b65b3b3 pylibfdt: Add support for fdt_node_offset_by_phandle()
a3ae43723687 pylibfdt: Add support for fdt_parent_offset()
a198af80344c pylibfdt: Add support for fdt_get_phandle()
b9eba92ea50f tests: Return a failure code when any tests fail
155faf6cc209 pylibfdt: Use local pylibfdt module
50e5cd07f325 pylibfdt: Add a test for use of uint32_t
ab78860f09f5 pylibfdt: Add stdint include to fix uint32_t
36f511fb1113 tests: Add stacked overlay tests on fdtoverlay
1bb00655d3e5 fdt: Allow stacked overlays phandle references
a33c2247ac8d Introduce fdt_setprop_placeholder() method
0016f8c2aa32 dtc: change default phandles to ePAPR style instead of both
e3b9a9588a35 tests: fdtoverlay unit test
42409146f2db fdtoverlay: A tool that applies overlays
aae22722fc8d manual: Document missing options
13ce6e1c2fc4 dtc: fix sprintf() format string error, again
d990b8013889 Makefile: Fix build on MSYS2 and Cygwin
51f56dedf8ea Clean up shared library compile/link options
21a2bc896e3d Suppress expected error message in fdtdump test
2a42b14d0d03 dtc: check.c fix compile error
a10cb3c818d3 Fix get_node_by_path string equality check
548aea2c436a fdtdump: Discourage use of fdtdump
c2258841a785 fdtdump: Fix over-zealous version check
9067ee4be0e6 Fix a few whitespace and style nits
e56f2b07be38 pylibfdt: Use setup.py to build the swig file
896f1c133265 pylibfdt: Use Makefile constructs to implement NO_PYTHON
90db6d9989ca pylibfdt: Allow setup.py to operate stand-alone
e20d9658cd8f Add Coverity Scan support
b04a2cf08862 pylibfdt: Fix code style in setup.py
1c5170d3a466 pylibfdt: Rename libfdt.swig to libfdt.i
580a9f6c2880 Add a libfdt function to write a property placeholder
ab15256d8d02 pylibfdt: Use the call function to simplify the Makefile
9f2e3a3a1f19 pylibfdt: Use the correct libfdt version in the module
e91c652af215 pylibfdt: Enable installation of Python module
8a892fd85d94 pylibfdt: Allow building to be disabled
741cdff85d3e .travis.yml: Add builds with and without Python library prerequisites
14c4171f4f9a pylibfdt: Use package_dir to set the package directory
89a5062ab231 pylibfdt: Use environment to pass C flags and files
4e0e0d049757 pylibfdt: Allow pkg-config to be supplied in the environment
6afd7d9688f5 Correct typo: s/pylibgfdt/pylibfdt/

Change-Id: I0591bb1fe4e76051deae3318011927b350271f6c
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 4201d057ea)
2018-03-28 19:51:34 +08:00
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