Commit Graph

649790 Commits

Author SHA1 Message Date
Chris
f5d2110753 Merge "Bluetooth: Use bt_dev_err and bt_dev_info when possible" into odroidg12-4.9.y-android 2020-11-09 16:16:33 +09:00
Chris
51f2f8037d Merge "Bluetooth: btrtl: Fix a error code in rtl_load_config()" into odroidg12-4.9.y-android 2020-11-09 16:16:25 +09:00
Chris
bbcbe19935 Merge "Bluetooth: btrtl: Change message for missing config file" into odroidg12-4.9.y-android 2020-11-09 16:16:17 +09:00
Marcel Holtmann
8d5aae67aa Bluetooth: Use bt_dev_err and bt_dev_info when possible
In case of using BT_ERR and BT_INFO, convert to bt_dev_err and
bt_dev_info when possible. This allows for controller specific
reporting.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Change-Id: I3cd472bf3ce8e797b112c36227884ee2d80b6394
2020-11-06 17:17:12 +09:00
Dan Carpenter
399d79105a Bluetooth: btrtl: Fix a error code in rtl_load_config()
We accidentally return success if the kmemdup() fails.  It results in
a NULL dereference in the caller.

Fixes: 1110a2dbe6 ("Bluetooth: btrtl: Add RTL8822BE Bluetooth device")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Change-Id: Idd4ff62726885f4aafb3aae69c7cddb12c08442b
2020-11-06 17:17:10 +09:00
Larry Finger
f4c3bb35f2 Bluetooth: btrtl: Change message for missing config file
The message concerning missing config files for 8723b, 8821a, and
8761a should have been issued with BT_INFO() rather than BT_ERR() as
this condition is not fatal. After looking at that code, I have
reworked the logic to log such messages only if the device needs such a
config file. At the moment, only the 8822b fits that description.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Acked-by: 陆朱伟 <alex_lu@realsil.com.cn>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Change-Id: I8449be0c4487c8e7af034753cddcc795205ff503
2020-11-06 17:17:07 +09:00
Deokgyu Yang
1cff1ec2e4 ODROID-COMMON: drivers/spi: Set the 64 bits per word by default
The existing force64b routine might not work properly under specific
conditions. This patch fixes that bug of 64 bits per word and forces
use that option. It will improve SPI performance significantly.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I85a58d425303ea1765b7b83ee5dd5f0a7f4203fc
g12_9.0.0_64_20201105
2020-10-30 16:37:12 +09:00
Luke go
0a4bcb083d ODROID-HC4: arm64/dts: overlay: Add hc4 fan full speed dtbo.
Signed-off-by: Luke go <sangch.go@gmail.com>
Change-Id: Id95c2cb9cc72c315634140a40b78ec3fe9195243
2020-10-22 09:55:08 +09:00
Luke go
5862fdd553 ODROID-HC4: arm64/dts: Set pwm_d pinmux.
Change-Id: Idcea9acdcdec08e37ba11b4bcdd100c3c558ec8f
Signed-off-by: Luke go <sangch.go@gmail.com>
2020-10-22 09:42:25 +09:00
Chris
d1db62bb2c ODROID-C4/HC4: defconfig: Unify defconfig.
using same defconfig about c4 and hc4.

Change-Id: Ied4835ace604cb022c0ff013052989ba2a88ce6b
2020-10-21 13:39:31 +09:00
Chris
fbca2e402a ODROID-HC4: Enable sd_emmc_c.
We need to disable emmc, because hc4 doesn't have emmc.

Change-Id: I99d21f75268e0d55f77a868d599f679be68aa3d9
2020-10-21 09:02:54 +09:00
Chris
52c59739ed ODROID: Move esp8089 driver to hardware directory.
Change-Id: I7f86eeadd23c83461f104a6870513deae5755f65
2020-10-19 14:33:07 +09:00
Dongjin Kim
54de9c6044 ODROID-HC4: arch/arm64: Introduce new board 'ODROID-HC4'
Change-Id: Id020eb76109f1a7a3cabf50489cf1a0d5447b010
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2020-10-15 16:10:42 +09:00
Luke go
9497a147c8 ODROID-C4: wireless: esp8089: Support esp8089 driver.
- The esp8089 driver supports many esp's wifi modules. So it is imported.

Change-Id: If039882e183e454baff2c222bf7a1282b6705459
g12_9.0.0_64_20201015
2020-10-13 11:48:21 +09:00
Chris
778a68015b ODROID-COMMON: Fix watchdog reset disabled.
Change-Id: I214eb2ada20c7a885f82a3a198ffc65a4a1a9d19
2020-10-06 17:39:26 +09:00
Joy Cho
579650fd7c ODROID-COMMON: hdmitx: Fix unstable HDMI modes
Change-Id: Ibac9840a0a97d195918592059b62f6024b4047be
g12_9.0.0_64_20200924
2020-09-21 14:13:44 +09:00
Joy Cho
62f248084b ODROID-COMMON: hdmitx: Add new hdmi resolutions of 2560x* and 3440x1440
In case of 2560x1600@60hz, unstable display operation may occur
with some specific monitors those pixel clock is under 300MHz.
So, default timing for 2560x1600p60hz is set as following.

Detailed mode: Clock 268.500 MHz, 641 mm x 401 mm
               2560 2608 2640 2720 ( 48  32  80)
               1600 1602 1608 1646 (  2   6  38)
               +hsync -vsync
               VertFreq: 59.972 Hz, HorFreq: 98.713 kHz

Change-Id: Iec9df8713211cf5e0dc7ba09f3dba2948e479b4f
2020-09-21 14:13:39 +09:00
Luke go
fda5d9b946 ODROID-C4: arm64/dts: Bugfix.
Change-Id: I5be14718672c3a3a3a71f019a7cfd7c40d6ef000
g12_9.0.0_64_20200903
2020-09-03 16:47:12 +09:00
Luke go
5db707165b ODROID-COMMON: arm64/dts: overlay: Seperated gpio shortcut.
Change-Id: I3296aa20f364c1f1b3ff8148fc93c99db798bb8d
2020-09-03 16:20:16 +09:00
Luke go
760bf40bf6 ODROID-COMMON: arm64/dts: overlay: Add sdio.
Change-Id: I53d595a0f0a31ef603c9758be83984b13073199c
2020-09-03 16:20:07 +09:00
Luke go
55b00ac401 ODROID-COMMON: arm64/dts: Disabled sdio.
Change-Id: I0ed353e5275bc71a667313e036d0a77c7d1e4875
2020-09-03 16:19:23 +09:00
Chris
eb11395e89 ODROID-G12: Add CONFIG_KEYBOARD_GPIO_POLLED as builtin
Change-Id: Ia3e4ae0df655cfb593b722702434642ac4ca7113
2020-09-03 14:30:22 +09:00
Luke go
ea3b5e6a3c ODROID-COMMON: arm64/dts: Changed the default gpio-key mapping.
- To avoid conflicts with the default gpio-power key pin and the SPI
  pin, default shortcut pin maps are changed.

Change-Id: If857eafc1e9df101357203ad61ea6ea81b11b571
2020-09-03 12:07:33 +09:00
Luke go
bc2627dfa9 ODROID-C4: arm64/dts: overlay: Add wifi/bt combo.
- To support ap6255, we made wifi/bt combo support board. To use it with
  a ODROID-C4, You need chagne R45 to 10k register. Or please change a
  'gpio_reset' to other pins.

Signed-off-by: Luke go <sangch.go@gmail.com>
Change-Id: I208c11251e3b36bdf27d1505e5bb25a1f4a059c4
2020-09-03 08:50:03 +09:00
Chris
16350c181b ODROID-G12: fix not working for gpiopower.
Change-Id: I4870c80ffabc5fb7c018bc192f4ce32fc25c28d6
2020-09-02 09:36:05 +09:00
Luke Go
8c43fbdc1e ODROID-N2: arm64/dts: overlay: Add a gpio-spdifout.
- Add gpio's spdifout overlays. It support GPIOA 13 -PIN7 spdifout.

Change-Id: I95b99af5e531cba53748c0d82ff112d39ca8bbee
g12_9.0.0_64_20200827
2020-08-27 08:35:04 +09:00
Luke go
b9d4636f92 ODROID-COMMON: arm64/dts: overlay: Add pwm examples.
- N2
  - pwm_c(33) - pwm fan.
  - pwm_d(35) - pwm backlight.

- C4
  - pwm_a(33) - pwm fan.
  - pwm_b(35) - pwm backlight.

Change-Id: If5382b0f5fa515d74d547b1cb20107be5ad813bd
2020-08-27 08:33:22 +09:00
Luke go
b352de9657 ODROID-COMMON: arm64/dts: pwm: Adjust pwm pins and apply overlay.
- The PWM pins are not fit to a ODROID_C4 manual list of extension pins. To fit
  the list, a pwm_ab is added. And pwm_cd's pwm_d pin is moved.

- The Device tree Overlay feature is applied to the PWM.

Change-Id: I77b5b5691ab9f71740edfd5fe3d3bdc430fdaca3
2020-08-27 08:33:14 +09:00
Chris
d7bca5d189 Merge "Merge Amlogic mainline partially." into odroidg12-4.9.y-android 2020-08-26 15:41:49 +09:00
Luke go
429754910b Merge changes I15e2eacd,Ib75ae740 into odroidg12-4.9.y-android
* changes:
  ODROID: arm64/dts: overlay: Change CAN chipselect.
  ODROID-COMMON: config: Support CAN BUS.
2020-08-20 17:39:50 +09:00
Luke go
a546a0beb4 ODROID: arm64/dts: overlay: Change CAN chipselect.
Change-Id: I15e2eacd2b6c018b7950dd97ef353d83fb874743
2020-08-20 14:14:10 +09:00
Chris
1a56253355 Merge Amlogic mainline partially.
We want to mege without 'SDR to HDR' problem from Amlogic mainline.

Change-Id: I776364b18cbae3943d3c55097588883d1107460d
2020-08-20 13:30:41 +09:00
Luke go
a313ec5a92 ODROID-COMMON: config: Support CAN BUS.
Change-Id: Ib75ae740bc37c992eed8c479b8da50347b21a900
2020-08-20 12:01:14 +09:00
Joy Cho
b8262b15d8 media: hdmitx: Update hdmi hpll generation for low pixel clock
Change-Id: I83bd8688379f7e70354013c5f1a02c6995beed31
2020-08-11 11:17:27 +09:00
Dongjin Kim
e2a3ea38a1 ODROID-N2: arm64/dts: overlay: add new overlay to run fully loaded fan speed
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I4971f5acccd67a9db30213368870072ba59ee679
g12_9.0.0_64_20200813 g12_9.0.0_64_20200807
2020-07-30 16:32:46 +09:00
Chris KIM
dd983f1858 Revert "sd: add sd power cycle for sd3.0 [1/1]"
This reverts commit 1a249d948b.

Change-Id: Ie761d44b73b338fdbceff36c48dee4a809316620
2020-07-14 12:00:09 +09:00
Luke Go
b4e114c615 ODROID-N2/N2-PLUS: pwm-fan: Changed the trip point.
Change-Id: I2dcee110ff1939216dfdb20e0069f5298b43e9ad
Signed-off-by: Luke Go <sangch.go@gmail.com>
2020-07-14 11:58:13 +09:00
Luke Go
cd92231325 ODROID-N2: config: enable default thermal governer as 'STEPWISE'
Change-Id: I1577c4fdc1dd6b2a038396f4bb650eb2f76fdd3b
Signed-off-by: Luke Go <sangch.go@gmail.com>
2020-07-14 11:57:52 +09:00
Luke go
dbac43a253 Merge "ODROID-COMMON: pwm-fan device enabled for active cooling." into odroidg12-4.9.y-android 2020-07-14 11:57:43 +09:00
Kevin Kim
d46549b222 ODROID-COMMON: pwm-fan device enabled for active cooling.
Change-Id: I1dcdfa4c22ab72cd24b1be870727420683073f9a
Signed-off-by: Kevin Kim <ckkim@hardkernel.com>
2020-07-13 16:46:57 +09:00
Dongjin Kim
cc9372a7b8 ODROID-C4: arm64/dts: remove 'gpio_power' property for uSD
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib57acd78207ea6deb5c548693ec102b554a7439f
2020-07-02 16:27:44 +09:00
Luke Go
4d26ad17a5 ODROID-N2PLUS: dtbo: Add model name to overlay.
- To name the odroid n2 plus, add name property overlay to the file.

Change-Id: I2c2e5f93989740644165431dfa63fd2f0724fcd4
2020-06-30 15:21:52 +09:00
Luke Go
5fd0c0e45f ODROID: android: frequency config macro changes.
- Android build each board (N2/C4) at seprated time, So need to common
define to build it.

Change-Id: I558ab468dab3be36717fa248dea41f7718953032
2020-06-29 17:19:14 +09:00
femto
7f5ff07577 ODROID-N2/N2-PLUS: Default freq setting and cpu max_freq limit setting.
board_is_odroidn2 (): Both N2 and N2plus return 'true'

if (is_meson_g12b_cpu() && is_meson_rev_a()) // ODROID-N2
else                                         // ODROID-N2Plus

N2_A53_DEFAULT		1896000	/* N2 Core A53 */
N2_A73_DEFAULT		1800000	/* N2 Core A73 */

N2PLUS_A53_DEFAULT	1908000	/* N2 Plus Core A53 */
N2PLUS_A73_DEFAULT	2208000	/* N2 Plus Core A73 */

Signed-off-by: femto <ckkim@hardkernel.com>
Change-Id: I32fa6b37f54560e9071cf650c74f972b36fc4af2
2020-06-29 17:19:07 +09:00
Luke Go
0108e49943 ODROID-N2: Plus N2 Plus opp.
- N2 Plus can more overclocking. So Add additional clock entries to opp
  table to support it.

Change-Id: Ia81da54a1b1a432a4a6c341a57b139834d10e27d
2020-06-29 17:18:59 +09:00
Chris KIM
c5dd5d0f3c ODROID: media: hdmitx: add new hdmi resolutions
Change-Id: Idf6a74dcb73c3c6a03fb2cdf41219a2acfb31ccb
2020-06-29 11:46:01 +09:00
Zongdong Jiao
7bd41e8460 hdmitx: add a fake hpd for system test [1/1]
PD#SWPL-16891

Problem:
For automatical test, the HDMI cable are always connected between Tx and Rx
without manully action.

Solution:
add a fake hpd for system test
echo 0[1] > /sys/class/amhdmitx/amhdmitx0/fake_plug

Verify:
G12/U212

Change-Id: I826fc0094845a13066a1535a4a87727b4ecad452
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2020-06-29 11:46:01 +09:00
Hang Cheng
51b1fb9858 hdmitx: detach vinfo before mode setting done [1/1]
PD#SWPL-18673

Problem:
when hotplug cable very quickly, the pin contact may
be loose and edid read wrong, system will output
default 1080p+rgb signal, after the pin contact
ok and edid read ok, DV module send DV signal, the
output mode and DV signal may not match, cause
TV show green screen.

Solution:
only attach vinfo after hdmi mode setting done.

Verify:
AC214

Change-Id: Ice60d44f55ed377dbab4bef4639d67c263a6bbb6
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2020-06-29 11:46:01 +09:00
Hang Cheng
2f73ddbe66 hdmitx: optimize for signal disable flow [1/1]
PD#SWPL-16472

Problem:
on Hisense-HZ55A65, under Y420+deep color,
it will show blue(for some ms) and then keep
green screen after receive set_avmute

Solution:
after set avmute, decrease the delay time to
disable output, to avoid flash on Hisense-HZ55A65

Verify:
AC214

Change-Id: Id2a25b21c56118f363f7085d22ac590051dec585
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
2020-06-29 11:46:01 +09:00
Zongdong Jiao
79cd4bbaa9 hdmitx: correct the threshold value of rxsense [1/1]
PD#SWPL-17841

Problem:
need correct the threshold value of rxsense

Solution:
correct the threshold value of rxsense, regress OTT-1968 to trunk

Verify:
G12/U212

Change-Id: I53f370cf51c0ad39e92fd64a0cc98cc4680eea4d
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2020-06-29 11:46:01 +09:00