Commit Graph

649866 Commits

Author SHA1 Message Date
Chris
7f6a89b43a ODROID-N2: Fix auge_sound to odroid_hdmi: odroid_hdmi.
We fixed auge_sound label for vu7c support before commit.

Change-Id: I7519741be654884f88ed30c337dd46994df5bb50
2022-03-15 09:21:44 +09:00
ckkim
278ba2e58d ODROID-C4:dts/dtbo:Add support display_vu7c
1024x600p60hz TFT display
	goodix.gt911 touch panel
	pwm-backlight
	i2s_to_hdmi audio + Boom Bonnet

Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: Ie9c74d0ef52e0851bc8af8b018e392dc22f7ab67
2022-03-15 09:21:32 +09:00
ckkim
4238ff4393 ODROID-COMMON:touchscreen gpio interrupt for amlogic INTC
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I013b0640fd9d32f641170562829d05bb9336772b
2022-03-15 09:21:20 +09:00
Chris
382003407b ODROID-COMMON:Add LT8619C HDMI to LVDS converter driver
Change-Id: I387b9ca86b0f3ec34f3da6d82ab9d57dadf8e84b
2022-03-15 09:21:07 +09:00
Chris
c92d7f2b90 ODROID-G12: Make hid-multitouch and dwav-usb-mt driver as mouldes.
Change-Id: I9b3a8973c7d0d89bcf52e22b6e690cdc14a24e6c
2022-03-15 09:20:56 +09:00
Chris
a3da637359 ODROID-G12: Make btrtl btusb to module.
We have the issue for B/T USB initialization.
So after boot complete, we will load b/t modules.

Change-Id: Ie15da10ba4930362ccee113da7406aaa3bbb884e
2022-03-15 09:20:41 +09:00
Chris
18fa0b1d2e ODROID-G12: Fix ignorecec args.
If ignorecec args is true, then skip check_confilct().

Change-Id: Ia88e4981c55b6298682d4f459db16a243363e36c
2022-03-15 09:20:25 +09:00
Chris
3ed9c6db47 ODROID-G12: Support 3840x1080 UI for C4.
Change-Id: If7f2e1482b79d05c4ba723197bc32c4ee390d67b
2021-12-27 14:49:06 +09:00
Chris
78b8383a33 ODROID-G12: Fix scale bug for special aspect ratio.
The 3840 x 1080 resolution has a problem scaling up for OSD layer.

Change-Id: I7baadd1aa34a2332952fc42260f8f3ec766a6ca6
2021-12-27 14:48:54 +09:00
Chris
72d371dcd0 Revert "ODROID-COMMON: hdmitx: Add new hdmi resolution."
This reverts commit 44a7c003fa.

Change-Id: I01d01cc0090005fdea4d4097320ee720e5347210
2021-12-27 14:48:32 +09:00
Chris
1149a2a45b ODROID-G12: Fix some CSR b/t dongle problem.
Some CSR dongle send HCI_EV_CMD_COMPLETE first,
then send HCI_EV_HARDWARE_ERROR.

ex) ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

But We figure out that it is not real hardware error.
We ignore event for HCI_EV_HARDWARE_ERROR.

Change-Id: Iea5421100c64ee6942f0a30f6237eb4b1f6351cb
(cherry picked from commit ea13b65cdc)
2021-12-01 10:53:25 +09:00
Chris
217c36a9c3 ODROID-G12: Add ignorecec bootargs.
Some monitors with CEC takes too long time to check conflict.
If igonrecec is added in bootargs, we will skip to check confilct.

Change-Id: If6c77421d77e2beffe5c3c9bec62ab239f8b8995
(cherry picked from commit 971287c681)
2021-12-01 10:51:59 +09:00
Chris
44a7c003fa ODROID-COMMON: hdmitx: Add new hdmi resolution.
3840x1080p50hz

Change-Id: I1f1deb6d2e6a45000284f7d5b150deeeb74d11fb
g12_9.0.0_32_20210930
2021-09-29 12:27:00 +09:00
Chris
21e4b47954 ODROID: Add multitouch v/pid.
/* NEXTWINDOW HDMI capacitive Screen */
 #define USB_VENDOR_ID_NEXTWINDOW   0x1926
 #define USB_DEVICE_ID_NEXTWINDOW_TOUCHSCREEN_0006   0x0006

Change-Id: I8ca1eafb4cddaa80d622816409a9e5208ce89903
2021-09-24 15:26:15 +09:00
Chris
fae99d2f59 ODROID: Add multitouch v/pid.
/* UPERFECT HDMI capacitive Screen */
 #define USB_VENDOR_ID_UPERFECT^I^I0x27c0
 #define USB_DEVICE_ID_UPERFECT^I^I0x0818

Change-Id: I9f0d004c2d88fb02e04e9d3f1a50ae7e94190319
2021-09-24 15:23:59 +09:00
Chris KIM
143d91bc4b 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
2021-09-24 15:23:49 +09:00
Chris
ac8a064ec1 ODROID-G12: Fix otg_host_mode overlay.
The current kernel does not suppport for delete-property
in overlay dts.

Change-Id: I027dd5d0eca17c9084f1a0326290944fe82ab982
2021-06-30 14:03:45 +09:00
Chris
ecd0d93467 Revert "ODROID-G12: Fix gpio-vbus-power bug."
This reverts commit 1b9dab97c0.

Change-Id: I2b325897b9ba93a49cb3ba73798cb9ef48f6052d
2021-06-25 17:28:07 +09:00
Chris
1b9dab97c0 ODROID-G12: Fix gpio-vbus-power bug.
Change-Id: I234cb5c31a9be9a79f3513b3b50deb2c11698e11
2021-06-25 14:16:14 +09:00
Chris
cf601bc946 Revert "ODROID-N2: Fix otg_host_mode dtbo."
This reverts commit 6ab89e367c.

Change-Id: I76d0b7c8f9fe8432d6b3aa8cd65c37bf26b2574a
2021-06-25 14:14:43 +09:00
Chris
5d5150a84b ODROID-N2: Fix otg_host_mode dtbo.
Change-Id: I71bddad59ea15863b96b9881e638971cdac51dc2
(cherry picked from commit 6ab89e367c)
2021-06-24 10:54:42 +09:00
Chris
ee279c7c6e ODROID-G12: Add to dtbo for otg.
Change-Id: I6aae8f62570f7aebdc5a53094c14abf52022eac0
2021-06-23 11:08:12 +09:00
Deokgyu Yang
7a0897d45e ODROID-C4: arm64/dts: Add uart_AO_B DTBO for the 7pin header
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I2d3609283b8dac5db71388e8b6f36dd2cf94da58
2021-06-01 10:04:21 +09:00
Luke go
64237f45aa ODROID-C4: dts/amlogic: GPIOH_5 is dedicated to GPIO pin header.
Change-Id: I4f34841e66f3273750bd755556f9be8c6d1d4c8f
Signed-off-by: Luke go <sangch.go@gmail.com>
2021-06-01 09:54:44 +09:00
Deokgyu Yang
47aba52ad8 ODROID-COMMON: arm64/dts: Add GPIO pinctrl for PWM pins back
This ensures where the PWM pins located to which GPIO pins so that the
unexpected error showing without this patch once unexport a PWM pin does
not occurs

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I854e2f8d12ded46bb079fb1c6fe80cb1eb82a358
2021-06-01 09:54:42 +09:00
Luke go
776851b1c8 ODROID: arm64/dts: overlay: add codec_mm_cma alloc-arange.
Change-Id: I48d5e508cc9da25ca46e2d64ea8c5d770a236c2d
2021-04-27 12:23:40 +09:00
Luke go
d7dfc66f00 ODROID: arm64/dts: Revert Rearrange the codec cma area.
- It cause codec_mm_cma alloc failes on the ODROID-N2.

Change-Id: I75192bab3c20749a87cf8f7d379d640b0f90b341
2021-04-27 12:21:34 +09:00
Chris
f9093b6f93 Revert "osd/fb: set default color format for Linux"
This reverts commit b8cff4bf53.

Change-Id: I941554d28f332b45ebf4a093f1712b634e354845
g12_9.0.0_32_20210329
2021-03-29 11:31:46 +09:00
Chris
39f2a0196f Revert "sound/soc/auge: fix HD audio passthrough"
This reverts commit 6b4f23b79d.

Change-Id: I9a14442656c3c95789e101751dbd07bcd56d5881
2021-03-24 13:50:00 +09:00
Chris
da352c4cdb Revert "sound/soc/auge: fix clock for DD+"
This reverts commit 2650086cb3.

Change-Id: Ia7ad32fd2c68139cef58c9c1c56009c7f5ebc7a6
2021-03-24 12:47:18 +09:00
Xing Wang
f4300f8ef4 audio: auge: optimize fifo depth according to chipset [1/1]
PD#SWPL-19687

Problem:
VAD cannot wake up the system, cause of ddr does not run.
each toddr fifo depth is different, but constant value for all.

Solution:
Modify the fifo depth according to chipset.

Verify:
ab301

Change-Id: Ia543ef84ba46086ac310e95764b1db82a548229e
Signed-off-by: Xing Wang <xing.wang@amlogic.com>
Signed-off-by: chunlong.cao <chunlong.cao@amlogic.com>
2021-03-24 12:42:14 +09:00
Chris
13ce610152 ODROID-C4: dts: ge2d: correct the ge2d irq number
Problem:
Ge2d irq number is wrong on g12a/g12b/sm1.

Solution:
Replace the correct number

Change-Id: I0e428d7dfe9f40d9053fdcafc9074ff8eaef23f4
2021-03-19 11:48:12 +09:00
Deokgyu Yang
fd8bd7cd8c ODROID-COMMON: drivers/spi: Revert force64b flag back
To avoid unnecessary 64 bit calculation, which is for DMA, data
swapping is needed to be an option.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ie186a332984246bfb83b128b5771197457f4dd21
g12_9.0.0_32_20210219
2021-02-18 17:47:15 +09:00
Luke go
8b52571540 Revert "Revert "ODROID-COMMON: drivers/spi: Set the 64 bits per word by default""
This reverts commit 4389a90ae4.

Change-Id: I7f750bd403e75bb7bf871bca01b4bcfcd0389757
2021-02-18 17:47:15 +09:00
Luke go
83062229e9 ODROID: arm64/dts: Rearrange the codec cma area
- Android media server is built for 32 bit. So when using the mmap
function, you can face the memory issue with over the 2GB memory access.
So to avoid memory issues with this problem, I rearranged the codec cma
area address.

Change-Id: If7215175d768123b0156a7e914d250a9c0a92f0f
2021-02-18 17:42:44 +09:00
Chris
caafaa6c92 ODROID: Make sure to use CRS B/T module than RealTek combo.
If system have a Realtek combo(8821CU) and a CSR BT module at time,
system make sure to use a CSR B/T module.

Bus 001 Device 003: ID 0a12:0001 <- CSR B/T
Bus 001 Device 006: ID 0bda:c820 <- RealTek combo B/T

Change-Id: I082d3966a88cef6dec03cbe07458c07e6ff77cf3
2021-01-28 10:50:29 +09:00
Joy Cho
c796bc6aef ODROID-COMMON: osd: Adjust vertical osd scaler setting
Change-Id: I4d04daf48321b28a30a561ef30a87cdba2fbc7cc
2021-01-21 12:57:51 +09:00
Luke go
9ac7382ab2 Revert "ODROID-COMMON: drivers/spi: Set the 64 bits per word by default"
This reverts commit 1cff1ec2e4.

Change-Id: I59f92b783a89be3d9fca5663a929b30ccfa33972
2021-01-21 12:57:22 +09:00
Luke go
a5d2fdc45b 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-12-18 12:54:32 +09:00
Luke go
63b3f28dfb ODROID-COMMON: mpt: Find boot device.
- When mount the mpt, find boot device from the 'boot_device' arguments.

Change-Id: I6d092783f4d081bd803933a8036c0fad2607d82d
2020-12-18 12:49:43 +09:00
Luke go
6a011a09ab ODROID-COMMON: Support MPT partition from block device.
- Before this patch, Only mmc device (eMMC/SD) can use MPT (Multimedia
  Partition Table). So th other devices like ssd, hdd and usb storage
  can't be main storage of the android. To solve this problem, Applied
  new partition support method - mpt partitions.

- It works subset of the msdos partition.

Change-Id: I2a192bf27e75dc040ccc3ea93a79d35c93db8543
2020-12-18 12:49:38 +09:00
Luke go
5fcc6be139 ODROID-C4: arch/arm64: audio: re-aline the audio card configuration.
- card 0, device 0 (alsaPORT-spdif) - spdif
- card 0, device 1 (alsaPORT-i2s) - i2s(j4, Line-out), hdmitx
- card 0, device 2 alsaPORT-i2s1) - i2s(j7, hifi)

Change-Id: I4e9f0695766eff665c6490e23f7e6e527602252c
2020-12-18 12:49:28 +09:00
Luke go
aa66b76700 ODROID-C4: arm64/dts: audio: Remove spdifb.
- ODROID-C4 does not use the spdifb.

Change-Id: I326f46c221c6e4ab5593b52de0c47c15ee28e7d5
2020-12-18 12:49:28 +09:00
ckkim
f42ab4b26c ODROID-COMMON:C4 i2s/line-out error fix
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I86efb023d46dbef769d548be81b7357a015dc0e2
2020-12-18 12:49:28 +09:00
Luke go
99198c55f0 ODROID-C4: arm64/dts: audio: Add tdmb (I2S) out.
Change-Id: I56631689a261ac212bc2233188788d27bee892bc
2020-12-18 12:49:28 +09:00
Max Chou
2ada78da24 Bluetooth: btrtl: Fix an issue that failing to download the FW which size is over 32K bytes
Fix the issue that when the FW size is 32K+, it will fail for the download
process because of the incorrect index.

When firmware patch length is over 32K, "dl_cmd->index" may >= 0x80. It
will be thought as "data end" that download process will not complete.
However, driver should recount the index from 1.

Signed-off-by: Max Chou <max.chou@realtek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Change-Id: Ic2ea247c2df828df28f535efb61ddf1c5d379367
2020-12-18 12:47:54 +09:00
Alex Lu
6492c1552a Bluetooth: btrtl: Remove trailing newline from calls to rtl_dev macros
These printing macros already add a trailing newline, so drop these
unnecessary additional newlines.

Signed-off-by: Alex Lu <alex_lu@realsil.com.cn>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Change-Id: I54df8f119c1927971e4382eaa381981264b68f6a
2020-12-18 12:47:49 +09:00
Alex Lu
eb921e52b3 Bluetooth: btrtl: Remove redundant prefix from calls to rtl_dev macros
the rtl: or RTL: prefix in the string is pointless. The rtl_dev_* macros
already does that.

Signed-off-by: Alex Lu <alex_lu@realsil.com.cn>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Change-Id: I4d9b975b0f914f08bf556282a3a0140b71225283
2020-12-18 12:47:44 +09:00
Alex Lu
6d2b77d36d Bluetooth: btrtl: Add firmware version print
This patch is used to print fw version for debug convenience

Signed-off-by: Alex Lu <alex_lu@realsil.com.cn>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Change-Id: I47c36597134eb6e1cea3f984951de2e76b52a267
2020-12-18 12:47:21 +09:00
Alex Lu
3f83b98e59 Bluetooth: btrtl: Set HCI_QUIRK_SIMULTANEOUS_DISCOVERY
Realtek Bluetooth controllers can do both LE scan and BR/EDR inquiry
at once, need to set HCI_QUIRK_SIMULTANEOUS_DISCOVERY quirk.

Signed-off-by: Alex Lu <alex_lu@realsil.com.cn>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Change-Id: If809ec66e8aebe7ba8e675606f5d6202b981f54e
2020-12-18 12:47:17 +09:00