Commit Graph

650136 Commits

Author SHA1 Message Date
charles.park
8401a3b2cc ODROID-N2: ODROID-3.5" I2C Touch screen driver added.
Change-Id: I1e8973f8d25b75319b641616e40e4d5cc8694b2c
2020-03-13 18:08:44 +09:00
charles.park
a1fbb9f287 ODROID-N2: modified for ODROID 3.2" SPI Touch Screen
Change-Id: I3b63a9c5529519626e4be738a88bca607c0c044c
2020-03-13 18:08:44 +09:00
Dongjin Kim
3234c9de70 ODROID-COMMON: efuse: reset the efuse map for ODROID boards
Change-Id: Ic594aa3b8e6e5d52f0ca3fdbc9ae6117e7a1bb9c
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-03-13 18:08:44 +09:00
Joy Cho
59f28cd835 ODROID-N2: thermal: fix power to freq table generation bug
Change-Id: Icb25b389c8f2f88c367eef0b296300aca878bd0f
2020-03-13 18:08:44 +09:00
Kevin Kim
4b3407093c ODROID-COMMON:Modified Internal-DAC output gain.(near to 0dB)
Change-Id: I036b534ed0299d228e3d96b6419c7e515140e5c8
2020-03-13 18:08:44 +09:00
Kevin Kim
151fd16b64 ODROID-COMMON: Support for emmc HS400 mode.
Change-Id: I4dfcb28e9c93ba09214436190b82c025d3527f31
2020-03-13 18:08:44 +09:00
Joy Cho
5a6c77166c ODROID-COMMON: add gator driver
- gator driver version : 670
- default disabled

Change-Id: Ibc67cfe17cb8d94ab8aa82c2bd2a16ba045be010
2020-03-13 18:08:44 +09:00
Kevin Kim
e39773368b ODROID-COMMON: adjust sound card dai link for spdif_out.
hw:0,0 -> tdmc <-> internal DAC
hw:0,1 -> spdif_b <-> hdmitx
hw:0,2 -> spdif_a <-> spdif_out(GPIOA_11)

Change-Id: I2d31ec832d6cb82e2363977cbcbc5bc96fa3f993
2020-03-13 18:08:44 +09:00
Joy Cho
3c00eb8e16 ODROID-N2: thermal: add an exeception logic to control max cpu level
Change-Id: I880b89d828034b029e306bda7c8be9004c3ec913
FIXME: find a better way not to modify thermal core drivers
2020-03-13 18:08:44 +09:00
charles.park
48b7396014 ODROID-N2: staging/fbtft: add 3.2" SPI TFT Driver
Change-Id: I85b2915cece7ac97b9ad2919440cdbfb3542cbfb
2020-03-13 18:08:44 +09:00
charles.park
f989381a39 ODROID-N2: spi/spidev: comaptible name added (linux,spidev)
Change-Id: I1559c4f3c8425f469147fe54134d5fab2fd3e33c
2020-03-13 18:08:44 +09:00
charles.park
04c4363293 ODROID-N2: spi: add alias for spidev bus-number
Change-Id: I14d5f6286e235926bd12096f225b2c8f0b785f4b
2020-03-13 18:08:44 +09:00
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