Commit Graph

1087006 Commits

Author SHA1 Message Date
Dongjin Kim
343e331b35 ODROID-M1: cif/cpature: fix compile error 'conflicting types'
drivers/media/platform/rockchip/cif/capture.c:4983:6: error: conflicting types for ‘rkcif_do_stop_stream’ due to enum/integer mismatch; have ‘void(struct rkcif_stream *, unsigned int)’ [-Werror=enum-int-mismatch]
 4983 | void rkcif_do_stop_stream(struct rkcif_stream *stream,
      |      ^~~~~~~~~~~~~~~~~~~~
In file included from /opt/source/drivers/media/platform/rockchip/cif/capture.c:24:
drivers/media/platform/rockchip/cif/dev.h:934:6: note: previous declaration of ‘rkcif_do_stop_stream’ with type ‘void(struct rkcif_stream *, enum rkcif_stream_mode)’
  934 | void rkcif_do_stop_stream(struct rkcif_stream *stream,
      |      ^~~~~~~~~~~~~~~~~~~~

drivers/media/platform/rockchip/cif/capture.c:6163:5: error: conflicting types for ‘rkcif_do_start_stream’ due to enum/integer mismatch; have ‘int(struct rkcif_stream *, unsigned int)’ [-Werror=enum-int-mismatch]
 6163 | int rkcif_do_start_stream(struct rkcif_stream *stream, unsigned int mode)
      |     ^~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/rockchip/cif/dev.h:932:5: note: previous declaration of ‘rkcif_do_start_stream’ with type ‘int(struct rkcif_stream *, enum rkcif_stream_mode)’
  932 | int rkcif_do_start_stream(struct rkcif_stream *stream,
      |     ^~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib62dc062f7c713b69304e0333ce4b1a373121e45
2026-02-24 18:25:03 +09:00
Nicholas Flintham
46923fd293 Bluetooth: btusb: Add support for TP-Link UB500 Adapter
Add support for TP-Link UB500 Adapter (RTL8761B)

* /sys/kernel/debug/usb/devices
T:  Bus=01 Lev=02 Prnt=05 Port=01 Cnt=01 Dev#= 78 Spd=12   MxCh= 0
D:  Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2357 ProdID=0604 Rev= 2.00
S:  Manufacturer=
S:  Product=TP-Link UB500 Adapter
S:  SerialNumber=E848B8C82000
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=1ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=   0 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=   0 Ivl=1ms
I:  If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=   9 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=   9 Ivl=1ms
I:  If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  17 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  17 Ivl=1ms
I:  If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  25 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  25 Ivl=1ms
I:  If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  33 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  33 Ivl=1ms
I:  If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  49 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  49 Ivl=1ms

Signed-off-by: Nicholas Flintham <nick@flinny.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Change-Id: Ib78afc64c39be42e54584fdaef9139bc0e7d5741
2025-12-18 12:38:05 +09:00
Dongjin Kim
012d2ab278 Merge "ODROID-M2: Enable AV1 Decoder" into odroidm1-5.10.y 2025-08-22 03:52:08 +00:00
phillip.choi
806803781e ODROID-M2: Enable AV1 Decoder
This config is needed to enable AV1 video playback on ODROID-M2.

Signed-off-by: phillip.choi <phillip.choi@hardkernel.com>
Change-Id: I2d04c5fe965e35359d1ee408d49712cefe273ed9
2025-08-22 10:52:20 +09:00
Dongjin Kim
7c04d5c800 Merge changes I109120f1,If1eb3c51 into odroidm1-5.10.y
* changes:
  ODROID-M1: arm64/dts: switch PWM7 to generic pwm port not IR port
  ODROID: arm64/dts: remotectl: add remotectl to dts
2025-08-18 08:09:50 +00:00
Dongjin Kim
9803b6ac61 Merge "ODROID-M1: arm64/dts: reset ethernet 'tx_delay' to 0x35" into odroidm1-5.10.y 2025-08-18 02:37:29 +00:00
Dongjin Kim
0d75bd0de5 ODROID-M1: arm64/dts: reset ethernet 'tx_delay' to 0x35
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ie22d615f0d459cd2bb35e872035a773fd3a92edc
2025-08-18 11:04:54 +09:00
Dongjin Kim
6c25ce2f55 ODROID-M1: arm64/dts: switch PWM7 to generic pwm port not IR port
This commit is to fix the commit that change the IR remote port from
PWM7 to PWM3, switch the PWM7 to generic pwm port by deleting the device
nodes and properties defined in 'rk3568-evb.dtis'.

"88ebfa42893a  ODROID: arm64/dts: remotectl: add remotectl to dts"

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I109120f1105afbf36541fcae2fec7f2caf92cdbe
2025-07-30 12:35:20 +09:00
Lee Seungcheol
a9ed267b40 ODROID: arm64/dts: remotectl: add remotectl to dts
Change-Id: If1eb3c51f454b0fab14df98a57f8b9fe22c72747
Signed-off-by: Lee Seungcheol <john.lee@hardkernel.com>
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-07-30 12:35:20 +09:00
phillip.choi
0182f6c8b8 ODROID-M2: Enable H.265 Encoder
|mpp_service| needs the VENC device for H.265 encoding.
Modify the Kconfig to enable the VENC device on ODROID-M2.

Signed-off-by: phillip.choi <phillip.choi@hardkernel.com>
Change-Id: I3e0511608b052da7224e66104086c140ca85b154
2025-07-07 14:56:42 +09:00
11b0899cc1 ODROID-M1/M1S: rk809: changed to use rtc even in poweroff state
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: If0f73aed5f558facfa3a8761b31d3b8255408f26
2025-05-16 01:20:33 +00:00
8c5a20a88f ODROID-M2: dtbo: add watchdog dt overlay
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I4a156665cf5f97eff7980eadcb13bc7659597ae6
2025-04-21 08:48:47 +00:00
Dongjin Kim
72b282f756 ODROID-M1: arm64/dts: rk809: add <low|shutdown>_voltage_threadhold
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I7475fc5b2bf5d5a9e9792c688b35351bf4f998b0
2025-03-27 18:48:06 +09:00
Dongjin Kim
08f5f62893 ODROID-M1: mfd/rk808: add <low|shutdown>_voltage_threadhold
Add new property to set system low voltage and shutdown voltage to the
register SYS_CFG0.

	&rk809 {
		...
		low_voltage_threshold = <2800>;
		shutdown_voltage_threshold = <2700>;
		...
	}

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I9c1a850485e93af9ea977ad35a70656e09a449a0
2025-03-27 18:47:49 +09:00
phillip.choi
b56b831c9b ODROID-M2: Modify rknpu driver to support RKLLM
Switched rknpu driver(0.9.6) to newer one(0.9.8) provided by Rockchip
and modified relevant codes to resolve kernel compile errors.

The new rknpu driver(0.9.8) can be found in below:
https://github.com/airockchip/rknn-llm/tree/main/rknpu-driver

Signed-off-by: phillip.choi <phillip.choi@hardkernel.com>
Change-Id: I12dc82d5fd007ab557666f7fac1ab542b7e1183b
2024-12-19 12:05:37 +09:00
ce979865bc ODROID-M2: dtb/dtbo: Add ir receiver
Change-Id: I9afc5fe1dceb11cac94702dd6e819240c8d3d7ce
2024-11-21 11:02:16 +09:00
Dongjin Kim
84be19d25c ODROID-COMMON: hwmon: (pwm-fan) add fan pwm1_enable attribute
This patch adds to new attribute 'pwm1_enable' to change the fan speed
control method as documented in 'Documentation/hwmon/sysfs-interface'.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I19094d60e928d6c3ce226d319e75a35ecbd3ae52
2024-11-20 06:44:27 +00:00
Anand Moon
9fd85caa8e ODROID-COMMON: hwmon: pwm-fan: add sys attribute to control active cooling
update fan_speed sys attribute to update the cooling level
for pwm-fan.

Change-Id: I67b0d047dbe0cb0cfa81896ec6226e8e6d79fd1e
(cherry picked from commit c2e92581da)
2024-11-20 06:43:49 +00:00
9565eba040 ODROID-M2: can0 overlay: Changed to use CAN 2.0B protocol
- RK3588s does not support built-in CAN FD protocol.

Signed-off-by: YoungSoo Shin <bob.shin@hardkernel.com>
Change-Id: Icdd1cb63ecb360893c4ab5932435b15947fd6a71
2024-11-18 13:56:21 +09:00
fcda98817a ODROID-M2: dtb/dtbo: Add SPI1 support
- MOSI: GPIO3 C7 (35 - 40 pin header)
- MISO: GPIO3 C6 (13 - 14 pin header)
- SCLK: GPIO3 D0 (33 - 40 pin header)
- CS0 : GPIO3 C4 (11 - 14 pin header)

- add aliase spi3 -> spi1
             spi1 -> spi3
- add spi device

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I79bbe089102ef9bd11891dd57eb9bfcde56c5d5e
2024-08-27 11:11:42 +09:00
8876fce9d6 ODROID-M2: can: Add overlays for mcp2517fd
mcp2517 (CAN-FD Add-on board)
- MISO: 21
- MOSI: 19
- SCLK: 23
- CS0 : 24
- INT : 11

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I09d92b0b26e3858ea1bffa697edb67b8c0fed055
2024-08-27 11:10:30 +09:00
798259c573 ODROID-M2: can: Add overlays for mcp2515
mcp2515
- MISO: 21
- MOSI: 19
- SCLK: 23
- CS1 : 26
- INT : 11

Signed-off-by: YoungSoo Shin <bob.shin@hardkernel.com>
Change-Id: I9af389e9538c22a2863218bc03569854dc38bad6
2024-08-27 11:09:04 +09:00
ckkim
23473e92e7 ODROID-M2:arm64/dts: change clock source(gpll -> v0pll) for rockchip vop
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I146fbdf94e1fadeed62cf9e34fb1007449ad4bab
2024-08-22 14:25:39 +09:00
ckkim
0129d0a429 ODROID-M2:arm64/dts:U-SD compatibility. (drive-strength matching)
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I15a13e7fff4c2ed1fc82dab41ae7b36b90c076ff
2024-08-21 18:43:22 +09:00
Dongjin Kim
c75795ef5c ODROID-COMMON: drm/bridge: prevent panic when HDMI is not initialized in U-Boot
Rockchip added to set BIT 21 in register VIDEO_INTERFACE_CONFIG0 when
HDMI is initialized, but reading a value from the register misleads
functions since the register contains more information and HDMI is not
initialized in U-Boot.

[1] c3c147361d

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I29912c23c8857f04ac5398edec2c7295938e4348
2024-08-21 18:19:23 +09:00
186c147a41 ODROID-M2: dtb/dtbo: Add uart1 cts rts function.
- Deleted overlay uart0-with-ctsrts.dts cuz hw flow not working.
- add pinctrl-1 uart9
- add overlay for enable uart9 cts rts
- uart9 = uart1(serial1)

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
Change-Id: I803700e6e0716cdd834f0720df6c32773a724b6a
2024-08-12 12:41:35 +09:00
Dongjin Kim
e6c8b4cecd ODROID-M2: dtb/dtbo: remove 'uart0-with-ctsrts' not working
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib187edfd1b128b11ebea079658d8c730ef6f5c6f
2024-08-12 12:41:32 +09:00
Dongjin Kim
a63bd706eb ODROID-M2: dtb/dtbo: add to switch FIQ debug port to UART2
Change-Id: I2933f7ac226ecbf7fabc7ca06461aa43cb37f275
2024-08-12 12:39:09 +09:00
8970b0739f ODROID-M2: dtbo: add to off the BLUE LED default
Signed-off-by: YoungSoo Shin <bob.shin@hardkernel.com>
Change-Id: I71b417e27d5fef27275ef9163e2e9dcade552c67
2024-08-08 03:05:59 +00:00
xiane
4b2f30f05f ODROID-M2: arm64/dts: change fiq_debugger serial-id.
Signed-off-by: xiane <sangch.go@gmail.com>
Change-Id: I2104f7f12531def7b21843cb9fd87b3575df47d8
2024-08-08 02:58:06 +00:00
xiane
f365825f0b ODROID-M2: arm64/dtbo: Add I2C & UART overlays.
- add i2c2, uart2, uart3 and uart4.
- apply aliases.
    can2 -> can0.
    uart4 -> serial2
    uart8 -> serial3
    uart1 -> serial4
    uart2 -> serial7
    uart0 -> serial8
    uart3 -> serial9
    i2c1 -> i2c2
    i2c2 -> i2c6

- Update fiq-debugger serial-id value.

Signed-off-by: xiane <sangch.go@gmail.com>
Change-Id: I175a1298af610b7494468c445e06b8947ffaf5a1
2024-08-08 02:55:50 +00:00
xiane
fad2fecd21 ODROID-M2: dtb/dtbo: Add weather_board_zero
Signed-off-by: xiane <sangch.go@gmail.com>
Change-Id: I15e281b158b552885389ebc67abc79dffebc3762
2024-08-07 12:33:12 +09:00
phillip.choi
1d4792c902 ODROID-M2: dtb/dtbo: Support spdif with pins 29 and 32
- Support spdif using both pins: 29 and 32
- Pins can be set by modifying config.ini
- Only one pin shoud be used for spdif functions
  - If both pins were set as spdif in config.ini, last pin would be ignored

Signed-off-by: phillip.choi <phillip.choi@hardkernel.com>
Change-Id: I3f6e92668189ef040dce12b88f7bef2192bfc9d1
2024-08-07 12:33:12 +09:00
aca5628544 ODROID-M2: dtb/dtbo: add fiq_debugger 115200 baudrate
Signed-off-by: YoungSoo Shin <bob.shin@hardkernel.com>
Change-Id: I90dcdc18c04565e2fd7f3b4d57e381e5a2388916
2024-08-07 12:33:12 +09:00
456221b918 ODROID-M2: dtb/dtbo: Add DHT-11, 1-Wire overlays.
- add DHT-11 and 1-wire

Signed-off-by: YoungSoo Shin <bob.shin@hardkernel.com>
Change-Id: I06887161b9d8b8fca18873c6af4978efda442610
2024-08-07 12:33:12 +09:00
phillip.choi
b257fa425e ODROID-M2: arm64/dts: Change name spdif_tx1 to spdif_tx
- Change node name for multiple pins support

Signed-off-by: phillip.choi <phillip.choi@hardkernel.com>
Change-Id: Id2bffad3cfba3e08cd2a4c5b5e266e3861acd48f
2024-08-07 12:33:12 +09:00
ckkim
a08de79a0e ODROID-M2: arm64/dts: Increase the initial drive voltage of the cooling fan.
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I777b759a92d2046723a1025c2d1c2149720d6482
2024-08-07 12:30:12 +09:00
xiane
70d40be78c ODROID-M2: arm64/dts: Enable CEC.
Signed-off-by: xiane <sangch.go@gmail.com>
Change-Id: Ib6db5bc6089fdde8acce3722c5fd586a58dbf716
2024-06-03 11:48:46 +09:00
xiane
f9a62b91b2 ODROID-M2: arm64/dts: Enable fan.
- Changed pwm period values to fit frequency, 45KHz.

Signed-off-by: xiane <sangch.go@gmail.com>
Change-Id: Id1dc4739401fdb90e28d3346dbd69d232de9c216
2024-06-03 11:48:46 +09:00
ckkim
56b39887b1 ODROID-M2: arm64/dts: Improved SD/MMC compatibility: mmc-bus drive strength and card detect fix.
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I91255cdee0f84685a0a158c8e42f2a9fe33c851a
2024-06-03 11:48:45 +09:00
Steve Jeong
ae9b6b16c3 ODROID-COMMON: arm64/dts: gpiomem: Remove reg and Add support for rk3588
Signed-off-by: Steve Jeong <steve@how2flow.net>
Change-Id: Ied99507860f7fa4a1150303c35b48236f0f802f5
2024-06-03 11:48:45 +09:00
Steve Jeong
72faba8c8b ODROID-COMMON: driver/gpiomem: Support RK3588
Signed-off-by: Steve Jeong <steve@how2flow.net>
Change-Id: I2b7c13cb0333e45d121b813c4ba4c3e031ceaab8
2024-06-03 11:48:45 +09:00
Steve Jeong
7c9beafe66 ODROID-M2: dtb/dtbo: Add rknpu overlay
Signed-off-by: Steve Jeong <steve@how2flow.net>
Change-Id: If92d47b62746478f4655aac0f4f4d97a131aaffa
2024-06-03 11:48:45 +09:00
Dongjin Kim
e0aa0bbbbb ODROID-COMMON: drm/rockchip: suppress noisy log 'use tmds mode'
The log 'use tmds mode' comes when ODROID is connected with non-FRL
supported display and the driver fails to parse its tramsmission modes
from EDID blob.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I7bb76c9d2136eb2469f720e754c09190b1dfaacc
2024-06-03 11:48:45 +09:00
Steve Jeong
d6f657761f ODROID-M2: dtb/dtbo: Add gpio alt function overlays
Signed-off-by: Steve Jeong <steve@how2flow.net>
Change-Id: I853cdb308affad904cf6b1191b25cff004c67436
2024-06-03 11:48:41 +09:00
Steve Jeong
992ac8dec6 ODROID-M2: arch/arm64: Fix pinctrl for gpio alt functions
Signed-off-by: Steve Jeong <steve@how2flow.net>
Change-Id: Idee5c04ddef438fef2b08cb5b4e14b8e63ae78c0
2024-06-03 11:48:41 +09:00
Steve Jeong
e545aed360 ODROID-M2: arm64/dts: Add gpio line names
Signed-off-by: Steve Jeong <steve@how2flow.net>
Change-Id: I88d98d2daf0aef87dcc5da3ec2ba28f8a332cde6
2024-06-03 11:48:41 +09:00
Dongjin Kim
a2afd1bad3 ODROID-M2: arm64/dts: Add RTC wake up interrupt
Change-Id: I207e2a61f577cf0156cc6916496bcc1a92d3c333
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2024-06-03 11:48:41 +09:00
ckkim
4a3b19ced0 ODROID-M2: arm64/dts: Add support dp0-sound (typeC to dp0)
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I177e16fe085dfc8f343586b91c4d52aea6590ff5
2024-06-03 11:48:41 +09:00
Dongjin Kim
215057f75a ODROID-M2: arm64/dts: remove default kernel parameter in device tree
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I78a7f6f5764660ad4264a265e65156f9fee6413b
2024-06-03 11:48:40 +09:00