Commit Graph

649255 Commits

Author SHA1 Message Date
Lei Qian
a3f31cd7da thermal: merge from mainline
PD#SWPL-15312

Change-Id: Icc4841dbb5145c96eca8f54d1358d301b9f6b863
Signed-off-by: Lei Qian <lei.qian@amlogic.com>
2020-06-29 11:45:18 +09:00
Huan Biao
ca03c19082 thermal: update read sensor times for performance [1/1]
PD#SWPL-10836

Problem:
read sensor time too long

Solution:
read sensor once

Verify:
verified on t1 t962x2 x301

Change-Id: Iddf4c903ba8a3836666943adb5c02c5d287728df
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2020-06-29 11:45:18 +09:00
shikai.guo
a1bcd53c94 USB: Coverity(upgrade) defect cleanup [1/1]
PD#SWPL-16527

Problem:
   CONSTANT_EXPRESSION_RESULT,FORWARD_NULL,UNINIT

Solution:
   1.Delete invalid conditional statement
   2.Add else statement
   3.Local variable initialization

Verify:
   Coverity test pass

Change-Id: If13c8175fe923b353b52c61c2a824c6ef057b60a
Signed-off-by: shikai.guo <shikai.guo@amlogic.com>
2020-06-29 11:45:18 +09:00
Jianxin Pan
a9cd2cd9f1 debug: improve ftrace_ramoops for io trace [2/2]
PD#SWPL-6028

Problem:
improve ftrace_ramoops to debug bus hang

Solution:
1. in uboot
setenv initargs $initargs ramoops_io_en=1 loglevel=3;save;reset
2. in linux command line:
cat /sys/module/kernel/parameters/ramoops_io_en
to check if success.
3. after watchdog reboot, get trace data with:
cat /sys/fs/pstore/ftrace-ramoops-0

Verify:
TL1 x301

Change-Id: If1a2582b40a3ded31eedef5355eb0b8a5bf495c3
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2020-06-29 11:45:17 +09:00
Dianzhong Huo
a749b4dfa5 uart: change baud rate minimum value to 2400 [1/1]
PD#SH-327

Problem:
uart default min baud rate was set 9600, but PTZ PELCO-D
and PELCO-P need uart driver support 2400 and 4800 baud rate

Solution:
change baud rate minimum value to 2400

Verify:
Local

Change-Id: Iee20ea30a95b89f89a59fab95cecf7d559cbff51
Signed-off-by: Dianzhong Huo <dianzhong.huo@amlogic.com>
2020-06-29 11:45:17 +09:00
Yong Qin
de6cc6ebe2 cec: sm1 send bus level check fail [1/1]
PD#SWPL-17583

Problem:
cec send msg, cec bus level check fail.
the register define is not right.

Solution:
cec bus input register is PREG_PAD_GPIO3_I.

Verify:
SM1

Change-Id: I2eb49cab79a0141141ae3fafb704239c2c779485
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:17 +09:00
Yong Qin
630b68335a cec: cec b ARB timing cause cec 9.6.1 fail [1/1]
PD#SWPL-17658

Problem:
ARB timing setting is too large, it will cause
cec cts 9.6.1 fail

Solution:
reducec ARB timing

Verify:
sm1-AC214

Change-Id: I09f135c63f0f6f810719f6313b58bf84ebc574c1
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:17 +09:00
Yong Qin
3e916617cd cec: store msg after bootup from st [1/2]
PD#SWPL-15856

Problem:
Device auto power off set off, after pressing the DVD
play button to wake up the TV, the TV cannot
automatically switch to the HDMI channel

Solution:
driver store msg during bootup st. after app task
restart, put these msg to cec hal.

Verify:
tl1

Change-Id: Ifdf5e9d3ed8fbea7142b4f4ed94130e0535f0766
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:17 +09:00
Yong Qin
bb1fca4a7f cec: Add poll function for app chk new msg [1/1]
PD#SWPL-14177

Problem:
Add feature, for support poll function for check
cec new msg.

Solution:
Add feature, add poll api

Verify:
tl1

Change-Id: I1582438aa945201753fe04732a78f8f8d499dfca
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:17 +09:00
Yong Qin
5f76278b11 cec: avoid kmalloc fail, and system crash [1/1]
PD#OTT-4870

Problem:
avoid kmalloc fail, and system crash

Solution:
add pointer null pretect this.

Verify:
W400

Change-Id: I86cdb44eb82baa70077bbe7830c3e752115016ae
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:17 +09:00
Yong Qin
b7b25a0770 cec: sometime got err ack when send ping msg [1/1]
PD#SWPL-16005

Problem:
Sometime got err ack when send ping msg

Solution:
When ping and got no ack, but irq sts is tx done and
initial error, need return a err code. and app leayer
will retry ping msg.

Verify:
tl1

Change-Id: I0aea99878bb3924f6699d34821de0740c223f933
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:17 +09:00
Yong Qin
506e6c9215 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>
2020-06-29 11:45:17 +09:00
Yong Qin
13ab9c8646 cec: remove the delay time when get phy addr [1/1]
PD#OTT-6364

Problem:
When no hdmi cable connect, framework call get phy address,
will case 2s delay.

Solution:
1.If there is no HPD,needn't waitting TX finished reading the EDID
2.Reduce time out sleep time.

Verify:
W400

Change-Id: I2749e877e8b214355094390364e3711e6f1bbf12
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:17 +09:00
xian
c0302005ff cec: fix tv cec wake up select source issue [6/6]
PD#SWPL-13135

Problem:
When tv is waked up by one playback, it may wake up the
other playback ans show the source.

Solution:
LiveTv should take care of the situation and make the right
choice with information provided by cec hal service.

Verify:
verify it on Marconi

Change-Id: Ic27cdf77f0796a659400f90f60190354235777f3
Signed-off-by: xian <an.xi@amlogic.com>
2020-06-29 11:45:16 +09:00
Yong Qin
9bb1af8114 cec: Add Feature for freeze mode power on [2/2]
PD#TV-10483

Problem:
Add feature for freeze mode power on by cec.

Solution:
Add feature for freeze mode power on by cec.

Verify:
tl1

Change-Id: I5be3d672f71a30ed4a7ab445de616023946596ff
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:16 +09:00
Yong Qin
d36627f141 cec: Add Feature for freeze mode power on [1/2]
PD#TV-10483

Problem:
Add feature for freeze mode power on by cec.

Solution:
Add feature for freeze mode power on by cec.

Verify:
tl1
Change-Id: I3e0271cb000d64c4b30cfc75c59e8ca374993d7f
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:16 +09:00
Yong Qin
11381e86b9 cec: Fix coverity error [1/1]
PD#SWPL-13936

Problem:
Fix coverity error.

Solution:
Fix coverity error.

Verify:
TL1

Change-Id: I3e1af9370b47c1c9e06634f6cd4d04b2a229d664
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:16 +09:00
Yong Qin
3cc112360c cec: during resume received OTP msg again [1/1]
PD#TV-7837

Problem:
when tv power on by OTP, when during power on, tv received
OTP again, then needn't send power key. and need send a event
to android.

Solution:
when cec driver is power on, needn't send power event to android.

Verify:
tl1

Change-Id: I8807c5cbbcab831577fdc23062a78454c2106167
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:16 +09:00
Yong Qin
6b752d167f cec: none tv chip set arc cause crash [1/1]
PD#OTT-5149

Problem:
ceca isr cost long time, and delayed vdin vs.

Solution:
move function to tasklet

Verify:
test on txlx customer platform.

Change-Id: Iaae5b682f858787b25527518d2f787c3ee73e1be
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:16 +09:00
Yong Qin
6b1df50cfd cec: ceca interrupt cost long time [1/1]
PD#SWPL-6068

Problem:
ceca isr cost long time, and delayed vdin vs.

Solution:
move function to tasklet

Verify:
txlx

Change-Id: I861dd2ba145a64a88ad126abc00944d2358914c8
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:16 +09:00
Yong Qin
1cdf89a3d2 cec: enable two IP, share cec pin mux on TM2 [1/1]
PD#SWPL-5638

Problem:
tm2 ab311 only have one pin for every ip,
when enable two cec IPs, need share pin mux to
another IP

Solution:
when enable two IPs, enable pinmux share.

Verify:
ab311

Change-Id: I4845418b8d6c9bd6b9512a8479311489a42740d1
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:16 +09:00
Yong Qin
85d2be88df cec: framework suspend condition error [1/1]
PD#SWPL-3715

Problem:
set startup to TV,when DVD power on,the platform
autoshutdown after enter HDMI source

Solution:
suspend condition is wrong when not in suspend mode.

Verify:
TL1 (X301_T962x2)

Change-Id: I057cfe6b9a7f5806fa54eac063c02a7e3dc0179e
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:16 +09:00
Yong Qin
38f878dd1c cec: cec a support multi-logical addr for tm2 [1/1]
PD#SWPL-5637

Problem:
1.verify cec a function on tm2
2.cec a support multi-address

Solution:
verify the cec a multi-addr function

Verify:
ab311

Change-Id: I641621212fa3096b3906a87d443c7bd40cb6d7e9
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:15 +09:00
Yong Qin
0ec9373199 cec: interrupt irq src number is not right for tl1 [1/1]
PD#SWPL-6994

Problem:
Sometime will lose msg. because of the isr src
number connected to timer.

Solution:
modify irq src number to 203

Verify:
tl1

Change-Id: I12586b543dbf87a964ba79e1c82561f9516f8e3c
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:15 +09:00
Yong Qin
db8a2a605b cec: cec bringup for tm2 [1/1]
PD#SWPL-6945

Problem:
bringup for tm2

Solution:
add chip support and modify dts

Verify:
tm2

Change-Id: I718c3b81912a3555e19866f96d392bfb09d27384
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2020-06-29 11:45:15 +09:00
Yue Wang
e6f8c74b7e usb: coverity fix [1/1]
PD#SWPL-14009

Problem:
Coverity defect cleanup - usb.

Solution:
Coverity defect cleanup - usb.

Verify:
sm1

Change-Id: Ib194a82e54f819e4ab59eab944b446683c894f15
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2020-06-29 11:45:15 +09:00
Luke Go
82f6416f09 Revert "usb: usb C port bad recognition rate more than 3%. [1/1]"
This reverts commit 5d804f257d.
2020-06-29 11:45:15 +09:00
he.he
43f4d2ccde usb: TOSHIBA Disk Can't Be Recognized on the Port of USB 2.0 [1/1]
PD#SWPL-14156

Problem:
TOSHIBA Disk can't be recognized on the Port of USB 2.0 and since then
any disk can't be recognized.This is because
that the CCS flag of the PORTSC is still set and if write 0
to 0x38 of usb phy register the CCS will change to
0 and so that other disks can be recognized.

Solution:
when the enumeration fails, call set_usb_phy_host_tuning.

Verify:
test pass on u212

Change-Id: I507f269afc825de75c7dcce5f79c9c1dd7793d84
Signed-off-by: he.he <he.he@amlogic.com>
2020-06-29 11:45:15 +09:00
Yue Wang
a198dd1991 usb: add USB + PCIE feature [1/1]
PD#SWPL-8058

Problem:
usb + pcie.

Solution:
add usb + pcie feature.

Verify:
TM2

Change-Id: Ib5838cb0093753d346e46ce0fa6007c0edf511c2
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2020-06-29 11:45:15 +09:00
Yue Wang
8e1d15d8b9 usb: bringup TM2 usb3 [1/1]
PD#SWPL-5609

Problem:
bringup TM2 usb3.

Solution:
bringup TM2 usb3.

Verify:
TM2

Change-Id: Iea60a85e7d344f8f1cd44d07a634a6edd351218c
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2020-06-29 11:45:15 +09:00
Dongjin Kim
349cf343ce ODROID-C3/N2: usb/phy: use 'CONFIG_ARCH_MESON64_ODROID_COMMON'
Change-Id: Ib78b7e773705e930f3493fa3b56be2617450d0f2
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-06-29 11:45:15 +09:00
Chris KIM
0843e19ef6 ODROID: Add multitouch v/pid.
/* DELL HDMI capacitive Screen */
 #define USB_VENDOR_ID_DELL_P2418HT 0x1fd2
 #define USB_DEVICE_ID_DELL_P2418HT 0x6103

Change-Id: If441a2046dd7d6e452c28a8ddf05c95530e2f6bd
2020-06-16 09:47:43 +09:00
Luke Go
1fbc1ea16a ODROID-N2: cpu-opp-table: Add 1000 microvolts.
Change-Id: I4f317468f1cae81cd090cb4483135c9ed4c85e16
2020-06-12 17:01:22 +09:00
Luke go
a410abc40e Merge changes Id1932552,I2ceb31b9,Ie9d2325e,Id0262986,Idd344270, ... into odroidn2-4.9.y-android
* changes:
  ODROID-COMMON: arm64/dts: move can0 node to each overlay directory
  ODROID-COMMON: arm64/dts: Extract spidev node from main dts to spi0 dtbo
  ODROID-COMMON: arm64/dts: Rename uart DTBOs to use numerical order
  ODROID-COMMON: arm64/dts: move onewire node to each overlay directory
  ODROID-C4/N2: fix to remove compile warning of 'Warning (reg_format): "reg" property in ...'
  ODROID-COMMON: arm64/dts: Move peripheral nodes from dts to each dtbos.
  ODROID-COMMON: arm64/dts: Support device tree overlay.
  ODROID-COMMON: arm64/dts: modify i2c alias bus number
  ODROID-C4: arm64/dts: Add hktft35 node to support HK 3.5 inch touchscreen shield
  ODROID-C4: dts/amlogic: add new device entry 'hk-lirc-helper'
  ODROID-C4: dts/amlogic: add new devcie entry 'gpio_keypad'
2020-06-12 17:01:04 +09:00
he.he
5d804f257d usb: usb C port bad recognition rate more than 3%. [1/1]
PD#SWPL-21646

Problem:
usb C port bad recognition rate more than 3%.

Solution:
Using new PHY (that starting at TL1) parameters
that is different from the old PHY (g12a).

Verify:
test pass on tl1

Change-Id: I41885936645a90658318883b8556312814430633
Signed-off-by: he.he <he.he@amlogic.com>
2020-06-12 09:45:24 +09:00
Chris KIM
421dbd9150 ODROID-C4: defconfig: Update features.
Change-Id: I2905a268a9cf6d88ff0857c6df7a1158396ffed1
2020-06-12 09:45:24 +09:00
Chris KIM
ef8c882961 ODROID: Update for latest media_module.
to use media_module in 20200314 BSP.

Change-Id: I0364346d3361c49a1ee172d61a606bbacd804692
2020-06-12 09:45:20 +09:00
Hyeonki Hong
2e46251b42 ODROID-COMMON: arm64/dts: move can0 node to each overlay directory
Change-Id: Id193255239af6dbe0b8e7a80779ea5f3cfee2e6b
2020-06-11 13:48:30 +09:00
Deokgyu Yang
fdd34d52cc ODROID-COMMON: arm64/dts: Extract spidev node from main dts to spi0 dtbo
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I2ceb31b971970b96e0113e528b4c174d81d35258
2020-06-11 13:48:20 +09:00
Deokgyu Yang
b68e04fc96 ODROID-COMMON: arm64/dts: Rename uart DTBOs to use numerical order
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ie9d2325e83d9cbb4accfc21e5bac26f86275ed24
2020-06-11 13:48:13 +09:00
Hyeonki Hong
2881cb016a ODROID-COMMON: arm64/dts: move onewire node to each overlay directory
Change-Id: Id0262986d0faceba5997e8bff9d89833aff8f5a0
2020-06-11 13:48:06 +09:00
Dongjin Kim
c34a14ba18 ODROID-C4/N2: fix to remove compile warning of 'Warning (reg_format): "reg" property in ...'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Idd344270f12652a45511fad02330efd7b0a0ea98
2020-06-11 13:47:58 +09:00
Luke Go
d8217b3b4f ODROID-COMMON: arm64/dts: Move peripheral nodes from dts to each dtbos.
Change-Id: Ifa712ba44e9331f6e00f212ccc8fb098b51154d4
2020-06-11 13:47:49 +09:00
Luke Go
e2caa033f9 ODROID-COMMON: arm64/dts: Support device tree overlay.
- Support device tree overlay to modify peripherals states. By using
  this feature, we can select the peripheral state like on/off.

-To use this feature, you should change a "overlays" value of env.ini files.

Change-Id: Ibf9e7bf676a4d470f991350508dc7b84b2ea80fa
Signed-off-by: Luke Go <sangch.go@gmail.com>
2020-06-11 13:47:34 +09:00
Hyeonki Hong
3f432598a4 ODROID-COMMON: arm64/dts: modify i2c alias bus number
Change-Id: I94d1bc2f56bac1af6c7b45ab1b9bf8cbf50407c1
(cherry picked from commit 842d3137e6)
2020-06-11 13:46:51 +09:00
Deokgyu Yang
78888e94b3 ODROID-C4: arm64/dts: Add hktft35 node to support HK 3.5 inch touchscreen shield
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I82200d59e4a1a6b90e3fa04f176154d250202f5f
2020-06-11 13:46:43 +09:00
Dongjin Kim
0542ffb7aa ODROID-C4: dts/amlogic: add new device entry 'hk-lirc-helper'
Change-Id: I01436b5db20446993ae4df10c4e4523edfe9d9e8
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-06-11 13:46:35 +09:00
Dongjin Kim
c18aba7916 ODROID-C4: dts/amlogic: add new devcie entry 'gpio_keypad'
Change-Id: I4a030a4f30ed0533ab621f59707d3492c4f37f6a
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-06-11 13:46:24 +09:00
Chris KIM
7ac7e52ab5 ODROID-C4: Update defconfig.
Change-Id: Ifd25d2d024a4704b387905e4f13088b306250671
2020-06-10 13:34:03 +09:00
Chris KIM
a8aacdca83 ODROID-C4: Add Dolby Vision feature.
Add CONFIG_AMLOGIC_MEDIA_ENHANCEMENT_DOLBYVISION

Change-Id: I2d54e821ad0ef03fdb117ad597504eed05afb805
2020-06-10 13:31:52 +09:00