Commit Graph

650124 Commits

Author SHA1 Message Date
Joy Cho
6e10071c6d ODROID-N2: dts: adjust default cpu opp table
Change-Id: I42ed48f07936c6bb92416a666cb472d7da144c81
2020-03-13 18:08:44 +09:00
Kevin Kim
cc860d5f16 ODROID-COMMON:Add /dev/gpiomem device for rootless user GPIO access
Change-Id: I559e9155294144372d64a8b79044ea53318c4e0a
2020-03-13 18:08:44 +09:00
Kevin Kim
c99869fc13 ODROID-COMMON: arch/arm64: Add device information to /proc/cpuinfo
Change-Id: I1148522b11733bfa05a1f74ecb756cf78a0b4fe4
2020-03-13 18:08:44 +09:00
Mauro (mdrjr) Ribeiro
ab89581b43 ODROID-N2: Prepare defconfig for release
Change-Id: I4a2e44848753aae3e2acb219943c479bc5b7a52c
2020-03-13 18:08:44 +09:00
Mauro (mdrjr) Ribeiro
05b07525f4 ODROID-COMMON: Support for Wifi Modules
Change-Id: Id44c28078722efb0cbda44f8ccb5b953572235ce
2020-03-13 18:08:44 +09:00
Mauro (mdrjr) Ribeiro
38db0b9f08 ODROID-COMMON: media_modules: fix amlogic driver build on GCC 7
Change-Id: Ifd530ad7e9f147aad040d5bc3abbbf4f7ed03ec2
2020-03-13 18:08:44 +09:00
Mauro (mdrjr) Ribeiro
3aa94c86bf ODROID-COMMON: lock gpu frequency to its maximum
Change-Id: Ic967f79a1bff001336a5e41a2bc644d5108ecb6a
2020-03-13 18:08:44 +09:00
Mauro (mdrjr) Ribeiro
fecbe2dcd3 ODROID-COMMON: osd/fb: set default color format for Linux
Change-Id: I1d95d63215d5567673380740528eff65562bc6df
2020-03-13 18:08:44 +09:00
Mauro (mdrjr) Ribeiro
35373b7678 ODROID-COMMON: fix build on GCC 7
Change-Id: I858c8d4de03e4609b9e14fa4bb0daa3f9cd9d1bb
2020-03-13 18:08:44 +09:00
Mauro (mdrjr) Ribeiro
ba1f45e2a4 ODROID-N2: slipstream Mali Dvalin Kernel Driver 2020-03-13 18:08:44 +09:00
Kevin Kim
de6a0fdd08 ODROID-COMMON:USB hub enable/reset control && Unused i2c0 disabled.
Change-Id: Ib66ca11cdad3d65187ff06fe3ac981300c894bc3
2020-03-13 18:08:44 +09:00
Joy Cho
fc4cf9afa5 ODROID: dts: add hardkernel remote IR table
Change-Id: I0f02af4becf3059e25062f3e6525b6ad475a1ea7
2020-03-13 18:08:44 +09:00
Joy Cho
8b2dadfabb ODROID-N2: clk: add overclocking freq sets
Change-Id: I82b691007a48b8f24ea7686205a464d54e3277c7

Conflicts:
	drivers/amlogic/clk/g12a/g12a.h
2020-03-13 18:08:44 +09:00
Joy Cho
d987e4810a ODROID: dts: adjust thermal throttling rules
Change-Id: Iec2c134e2996ea57b7c7fcae394e66d3b7d56593
2020-03-13 18:08:44 +09:00
Dongjin Kim
cda1eb5d34 ODROID-N2: arm64/config: removing CONFIG_PCI
Change-Id: I949d7a05cebf2786afe513fa67c0614a4ef2ebea
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Kevin Kim
604464dc87 ODROID-COMMON: sound/soc: support up to 384KHz sample rate.
Change-Id: Iad8a1337637b5f09d444c632935a1326123a04d8
2020-03-13 18:08:44 +09:00
Joy Cho
c297dc57b5 ODROID-N2: cpufreq: Add setup routine to set max cpu freq using boot.ini
setenv bootargs ${bootargs}
	max_freq_a53=${a53_cpufreq_in_mhz} max_freq_a73=${a73_cpufreq_in_mhz}

ex) setenv bootargs ${bootargs} max_freq_a53=1512 max_freq_a73=1896

Change-Id: I2a9e90c57fe94f43b17dd6408d0a5ab4533a8443
2020-03-13 18:08:44 +09:00
Dongjin Kim
2ed1794a9a ODROID-COMMON: arch/arm64: fix to run 'dtbs_install'
Change-Id: I3e2249c444aa407712a133837dc3b1d84cdc5682
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Joy Cho
9468bc12f8 ODROID-N2: dts: remove usable-memory that overrides memory config as a fixed one
Change-Id: I0ea7eba3d59deb3ee89a032b138e0c552f89630e
2020-03-13 18:08:44 +09:00
Joy Cho
d88beb3308 ODROID-COMMON: clk: add a new higher cpu frequency, 2GHz for ODROID-N2
Change-Id: I28496cd7d93c1ccc8770fa010e9ba6f7d2995ed6

Conflicts:
	drivers/amlogic/clk/g12a/g12a.h
2020-03-13 18:08:44 +09:00
Joy Cho
366eb2ba05 ODROID-N2: clk: add cpu overclocking frequency sets
Change-Id: I47c38143e051faa97234cf05a0b53ac10e404734
2020-03-13 18:08:44 +09:00
Kevin Kim
fa2a6fe934 ODROID-COMMON: This driver allows GPIO lines to be used as reset signals.
It has two main use cases:

1) Allow drivers to reset their hardware via a GPIO line in a standard fashion
as supplied by the reset framework.
This allows adhoc driver code requesting GPIOs etc to be replaced with a
single call to device_reset().

2) Allow hardware on discoverable busses to be rest via a GPIO line
without driver modifications.

Examples of the second use case include:
* SDIO wifi modules
* USB hub chips with a reset line

In this second use case the reset has to be done externally to the driver
managing the hardware since resetting the device from the driver's probe()
method will either do nothing (if the device needs to be reset before
ennumeration will work) or cause racy beahviour (when the device disappears
from the bus during probe()).

So, in addition to providing a gpio based  reset controller implementation
it is also possible to reset devices at boot via a DT property or from
userspace on request via sysfs attributes.

Change-Id: I316f9e622d99cff7167b57e8fd5ff73a34dc2a81
Signed-off-by: Martin Fuzzey <mfuzzey@parkeon.com>
Signed-off-by: Kevin Kim <ckkim@hardkernel.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
4f709b697f ODROID-N2: arch/arm64: add new board platform 'ODROID-N2'
Change-Id: I92d70879831321c21095cba5e507a6defc5dba11
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Robert Richter
73749eab8d ODROID-COMMON: dts, kbuild: Implement support for dtb vendor subdirs
This patch adds support of vendor sub directories for dtb files.
Subdirectories can be specified in $(dts-dirs). Kbuild traverses over
all directories while building and installing dtb files. The directory
tree is also reflected in the install path.

Change-Id: Iab8d4cf4b76f7122892e87137fd0ec60565e1db0
Tested-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Robert Richter
e7a987818a ODROID-COMMON: dts, arm64: Add dtbs_install make target
This adds the dtbs_install make target to arm64. The target has been
introduced already to arch/arm with the following commit:

 f4d4ffc03e kbuild: dtbs_install: new make target

Implementation for arm64 is the same as for arm.

With 'dtbs_install' all config enabled dtb files are installed to
either the INSTALL_DTBS_PATH directory or the default location:

 $INSTALL_PATH/dtbs/$KERNELRELEASE

Change-Id: I5605ea7d723e2a658f7d85177d1221b83d612bcb
Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
cce54a1f6b ODROID-COMMON: mmc: read MPT partition from a certain sector
Change-Id: Ibac5bb733270583f1a3a2ee7a24091c453261753
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Dongjin Kim
7349c4c74b ODROID-COMMON: slipstream from Amlogic Buildroot BSP (201911)
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I393ae25d3e29e2765df80e2d4841ce998df25979
2020-03-13 18:08:33 +09:00
MingLiang Dong
a6ec7c8b04 hdr: default disable hdr hist module [1/1]
PD#SWPL-16107

Problem:
tm2 default hdr hist module enable,
it cause power consumption is high.

Solution:
1. default disable hdr hist module
2. if enable hdr2sdr, enable hist module

Verify:
verify on TM2

Change-Id: I648e9d5ac6739c1b6ef04db5ac3aec6e8f695cf7
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-11-06 20:48:21 -07:00
qi duan
236db30d4c DTS: TL1/TM2 internal phy led is H0/H1. [1/1]
PD#SWPL-16192

Problem:
ab301 ethernet can not link

Solution:
LED GPIO is GPIOH_0 and GPIOH_1
TL1 is the same gpio

Verify:
ab301

Change-Id: Id4e0a94a021d72d3b952d2dd15a86caf45a16ca0
Signed-off-by: qi duan <qi.duan@amlogic.com>
2019-11-06 18:59:28 -07:00
xianjun.liu
48127f7fce mtd: nand: support new slc nand [2/2]
PD#SWPL-14719

Problem:
4Gb SLC nand MT29F4G08ABAFAWP,MX30LF4G28AD requsted by Market

Solution:
add the nand id into amlogic nand flash id table

Verify:
AXG-S400

Change-Id: If2bd3cc90585b2a3cbcd500a9354cde4c65bc355
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
2019-11-06 18:55:44 -07:00
Zhengrong.Zhu
ee01dc30c3 hdmirx: Coverity defect cleanup:hdmi rx [1/1]
PD#SWPL-15167

Problem:
Coverity defect cleanup:hdmi rx

Solution:
Modify code according to coverity

Verify:
verify on the board of x3011

Change-Id: I1f8bac51101a5ae1a8a27ffd14e899b75ab99c04
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
2019-11-06 05:20:15 -07:00
Mingyen Hung
f5badaa803 dts: km3: add attestationdevidbox to more platforms [1/1]
PD#SWPL-12224

Problem:
Support Device ID attestation on multiple platforms

Solution:
1. Add new key slot, attestationdevidbox, to unify keys

Verify:
1. Android P + all android platforms
2. run cts -m CtsKeystoreTestCases -t \
android.keystore.cts.KeyAttestationTest#testDeviceIdAttestation

Change-Id: I95ba42b2df808a4aec5ad47d00ec9684c36e4ad3
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2019-11-06 03:51:39 -07:00
yicheng shen
f698b3c413 hdmirx: fix hdcp2.2 error after resume [1/1]
PD#SWPL-15872

Problem:
ESM init failed after boot-up twice

Solution:
Use the correct HPI address when request_mem_region called.

Verify:
TL1 4g ddr

Change-Id: I5fd30166b3a36e5f4a12b8b6b893df9c9f20ddaf
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2019-11-06 03:43:55 -07:00
Ao Xu
fd4b1f532d drm: solve debug node write string issue [1/1]
PD#SWPL-15143

Problem:
userspace program use the write() syscall to write the node.
when write the strlen() length content, it will fail.

Solution:
use the buf[size] to instead of buf[size-1]

Verify:
U200

Change-Id: I886d9a1cbf3da459476bca76c9a5708ecbc20afe
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2019-11-06 03:26:29 -07:00
Zhengrong.Zhu
cf6bdda300 hdmitx: Coverity defect cleanup: VOUT [1/1]
PD#SWPL-13989

Problem:
Coverity defect cleanup: VOUT

Solution:
Modify code according to coverity

Verify:
verify on the board of U212

Change-Id: I787429350be37da84ccd85332e97d472f45d3826
Signed-off-by: Zhengrong Zhu <zhengrong.zhu@amlogic.com>
2019-11-05 19:50:23 -07:00
renjiang.han
a88d3b210c amlvideo2: Screen capture adds support for decoder data. [1/1]
PD#SWPL-16197

Problem:
The data from the decoder is not equipped with a canvas.

Solution:
screenshot adds support for vframes without canvas.

Verify:
on X301

Change-Id: I706b87d6f59da27ffda7ace0d3486d6d978a292a
Signed-off-by: renjiang.han <renjiang.han@amlogic.com>
2019-11-05 19:49:59 -07:00
nengwen.chen
3671939cf8 atv_demod: fix atv audio no output when line frequency offset over default [1/1]
PD#SWPL-16188, PD#TV-11641, PD#TV-10181, PD#TV-9714

Problem:
fix atv audio no output when line frequency offset over 200Hz.

Solution:
1.fix atv audio no output when line frequency offset over 200Hz.
2.atv demod version: [V2.15].

Verify:
verified by tl1.

Change-Id: Ic43c707d3401ea93909856ff83a6842e14f0fc61
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-11-05 18:58:53 -07:00
Tao Zeng
be5814a0af Merge "Revert "io: make register access in amvecm simple [1/1]"" into amlogic-4.9-dev 2019-11-05 03:59:41 -08:00
Jianxin Pan
8f2983fb44 Revert "io: make register access in amvecm simple [1/1]"
This reverts commit 7436b7dc4a.

revert this now, print_vpp_lut() stack is 1840, when this applied,
it will bigger than 1880. werror will be triggerd.

Change-Id: Ia7b084ee800081a75c70f4e6ea6ce739f113f2b8
2019-11-05 04:56:35 -07:00
Yong Qin
ea5ce3ec54 vdin: vdin add dolby vision de-scramble & scramble
PD#SWPL-14888

Problem:
New feature, dolby source vdin have de-scramble,
scrable function

Solution:
add feature for dv de scramble function

Verify:
tm2 ab301

Change-Id: Ib7c10fcf53232c84411ae366618b2ddcd9948527
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-11-05 03:25:28 -07:00
Shuai Li
a9e5f5eefd audio: fix might_sleep warning at bootup [1/1]
PD#SWPL-16123

Problem:
might_sleep() is triggered by regmap_read().

[    3.106894@0] Workqueue: events tl1_acodec_release_fast_mode_work_func
[    3.106903@0] [bc059af4+  16][<c020e3a8>] show_stack+0x20/0x24
[    3.106910@0] [bc059b1c+  40][<c05dff94>] dump_stack+0xb8/0xf4
[    3.106917@0] [bc059b44+  40][<c0258138>] ___might_sleep+0x1c8/0x208
[    3.106922@0] [bc059b6c+  40][<c02581ec>] __might_sleep+0x74/0xac
[    3.106928@0] [bc059bb4+  72][<c0393a80>] kmem_cache_alloc_trace+0x12c/0x2c0
[    3.106935@0] [bc059bfc+  72][<c06bd03c>] regcache_rbtree_write+0x2dc/0x4f0
[    3.106941@0] [bc059c1c+  32][<c06bbbd8>] regcache_write+0x64/0x6c
[    3.106945@0] [bc059c44+  40][<c06b9260>] _regmap_write+0x144/0x16c
[    3.106948@0] [bc059c64+  32][<c06bab4c>] regmap_write+0x4c/0x6c
[    3.106953@0] [bc059c74+  16][<c0c79088>] snd_soc_component_write+0x28/0x48
[    3.106958@0] [bc059c84+  16][<c0c790c4>] snd_soc_write+0x1c/0x20
[    3.106962@0] [bc059c9c+  24][<c0c7c0b0>] tl1_acodec_start_up+0x24/0x44
[    3.106967@0] [bc059cbc+  32][<c0c7c1b8>]
tl1_acodec_release_fast_mode_work_func+0x54/0xe4
[    3.106973@0] [bc059cfc+  64][<c0245dc8>] process_one_work+0x200/0x624
[    3.106977@0] [bc059d3c+  64][<c0246dc4>] worker_thread+0x58/0x5c4
[    3.106982@0] [bc059d94+  88][<c024c5c0>] kthread+0x128/0x144
[    3.106987@0] [00000000+   0][<c020885c>] ret_from_fork+0x14/0x38

Solution:
This is a mmio regmap constrain using spinlock_irq to protect the
critical read and write.
But if the default reg cache is not allocated, the read routine will
malloc() buffer which is non-atomic. That is the root cause of this warning.
So we add num_reg_defaults_raw to tell regmap to malloc the buffer at
initializing stage.

Verify:
TL1.

Change-Id: I42f87fa89bbe99762ada36337b5ed6565b06b891
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2019-11-05 02:32:46 -07:00
Jianxin Pan
7436b7dc4a io: make register access in amvecm simple [1/1]
PD#SWPL-15713

Problem:
There are too many register access in vsync isr from pq

Solution:
Make register access quicker

Verify:
TL1

Change-Id: I72972ccb8f2cf1bd53eda7fc40697cb5df4f5ede
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2019-11-05 02:14:39 -07:00
Yong Qin
b911d464ba cec: finetune cecb ARB rising time [1/1]
PD#SWPL-15616

Problem:
when cec bus conect other cec connector, may lose cec ARB

Solution:
finetune ARB rising time.

Verify:
tl1

Change-Id: Icf422505602f75307f0b91c7841f0aae5e09c22d
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-11-05 02:09:42 -07:00
qianqian.cai
db6ee17007 deintlace: register setting default disable hdr2 [1/1]
PD#SWPL-16107

Problem:
cpu_after_eq(MESON_CPU_MAJOR_ID_TM2)default disable hdr2

Solution:
default disable hdr2,from VLSI feijun
DI_HDR2_HIST_CTRL, 0x5510
DI_HDR2_HIST_H_START_END, 0x10000
DI_HDR2_HIST_V_START_END, 0x0

Verify:
verify on x301_t96x2

Change-Id: Ib646111fb866570a75775534e446807f1e3b4a91
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2019-11-05 01:31:25 -07:00
MingLiang Dong
238dc24e90 hdr: correct hdr10+ process path [1/1]
PD#SWPL-16139

Problem:
1. hdr10+ gen ebz curve error
2. hdr10+ process error

Solution:
1. fix hdr10+ ebz gen
2. correct hdr10+ process path

Verify:
verify on TL1

Change-Id: Ia33488ada2e0ebfe9b156f9f667188cf02164089
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2019-11-04 23:25:02 -07:00
Luan Yuan
da505d95b8 dts: add support s805y config. [2/3]
PD#SWPL-16193

Problem:
add support s805y config for anning.

Solution:
add support s805y config for anning.
Anning(P244) copy from P215, and change soc with s805y

Verify:
verify by anning.

Change-Id: I4e09521833f37d96066bf0643b0e99077cd0c7be
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2019-11-04 22:57:13 -07:00
Evoke Zhang
7be0e55421 backlight: add bl policy support [1/1]
PD#TV-11347

Problem:
sometimes need power on from uboot state in kernel

Solution:
add bl policy to support different power on mode

Verify:
x301

Change-Id: I13c289523c6a77d713b3a770a5cdaf02afd01a11
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-11-04 22:54:28 -07:00
Zongdong Jiao
254c7a75da hdmitx: add hdr_priority [1/1]
PD#SWPL-14089

Problem:
Need add 'hdr_priority' to mask sysfs 'dv_cap'

Solution:
Parse the variable 'hdr_priority' from uboot environment

Verify:
G12/U212

Change-Id: I6fca18669c068ac793ca9230c6497b0ef2cbe07c
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-11-04 06:26:34 -07:00
Nan Li
4ee9cb927f sdio: optimize sdio suspend/resume [1/1]
PD#SWPL-16036

Problem:
When the system starts up, wifi is turned on.
When we manually turn off wifi and start the
suspend & resume operation, we will find that
the sdio error is reported when we wake up

Solution:
Add the sdio_notify() interface to notify the
sdio controller when wifi is on/off, enabling
the keep_power standard to be configured when suspend.

Verify:
TL1

Change-Id: I48e0c31bf7ea80d3efd4b0d41b4af378e859dc15
Signed-off-by: Nan Li <nan.li@amlogic.com>
2019-11-04 04:29:40 -07:00
Brian Zhu
b4c35287a5 dv: do not reset the tv core when resolution changed [1/1]
PD#SWPL-5167

Problem:
Reset tv core will cause the display flashing.

Solution:
remove the reset operation

Verify:
Verified on R311

Change-Id: Id9aa97dd0462d04bb2d83e5f0247acf3bcaabcd7
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2019-11-04 03:38:10 -07:00