Commit Graph

1219605 Commits

Author SHA1 Message Date
Dongjin Kim
201802a273 ODROID-N2L: arm64/dts: add 'meson64_odroidn2l.dtb' forks from 'meson-g12b-odroid-n2l.dts'
Change-Id: Iac89ae190771d460446ae2c38558de75ad3b89ea
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2024-01-25 16:20:16 -03:00
Dongjin Kim
56bd2a08e5 arm64/dts: meson: Add minimal support for Hardkernel ODROID-N2L
ODROID-N2L is a variant SBC in small form factor and some peripherals
are removed from ODROID-N2PLUS based on S922X SoC.

  - On-board ethernet is removed
  - On-board RTC is removed
  - USB 3.0 hub is removed, so one USB 2.0 and one USB 3.0 host ports
    are available
  - Huge heatsink is replaced with 40x40mm heatsink, 5V active heatsink
    is recommended or a tall passive sink is optional
  - 3.5mm earjack is removed
  - IR remote receiver is removed
  - MIPI DSI port is added new but not tested with upstream kernel yet

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I8dad585ade145d1bf9a2ffde22d89bff6b8e01bc
2024-01-25 16:20:08 -03:00
Dongjin Kim
4f45b3e201 Revert "arm64: dts: meson-sm1-odroid-hc4: disable unused USB PHY0"
This reverts commit 703e84d661.

Change-Id: I99dc0b936c2922f4ca8072978d6bc7f84c821b2b
2024-01-25 16:17:45 -03:00
steve.jeong
f8e5099afe ODROID-N2/C4: dtb/dtbo: Add spi overlay
Signed-off-by: steve.jeong <jkhpro1003@gmail.com>
Change-Id: Ice09457178d84b2f7e98c0ad6525476b835e537b
2024-01-25 16:17:33 -03:00
Dongjin Kim
6f901580b7 arm64: dts: meson-sm1-odroid: Add i2c aliases
Change-Id: Idb380505c0a0d1e52cc2e086d765ac6f81c96372
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2024-01-25 16:17:26 -03:00
Dongjin Kim
600c082256 ODROID-C4: arm64/dts: add new display device tree for ODROID-VU7C
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I56e7fdd82981d8006b8016dcf1f5e397915f6f95
2024-01-25 16:17:19 -03:00
Dongjin Kim
11d298ba48 ODROID-N2/C4: arm64/dts: add PPS client device trees
Two device tree overlays are added to support GPS PPS client through
GPIO pin header #11 and #12 as 'pps-gpio_p11.dtbo' and
'pps-gpio_p12.dtbo' respectively.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I67c0a1750de0885e27b8545fab8acbd4ef0b7ef9
2024-01-25 16:17:06 -03:00
Lee Seungcheol
46dda4aaa6 ODROID-C4: arm64/dts: add pin mux for UART_AO_B
Change-Id: Ic7607e482b66a226667c9a62f613ec1cc125ed72
Signed-off-by: Lee Seungcheol <john.lee@hardkernel.com>
2024-01-25 16:16:58 -03:00
Lee Seungcheol
1b2e25cdba ODROID-N2: arm64/dts: make I2C0, I2C1 disabled by default and add DTBOs of them
Change-Id: I040ac27ebe99e3e077c5229cf372380c0204d444
Signed-off-by: Lee Seungcheol <john.lee@hardkernel.com>
2024-01-25 16:16:50 -03:00
Lee Seungcheol
80bff1a7e3 ODROID-C4: arm64/dts: make I2C0, I2C1 disabled by default and add DTBOs of them
Change-Id: I7ac97c6400bc75b72865593e0ca8cfd2b9fe7ac5
Signed-off-by: Lee Seungcheol <john.lee@hardkernel.com>
2024-01-25 16:16:41 -03:00
Deokgyu Yang
9bca733ace ODROID-C4: arm64/dts: Make UART_A disabled by default and add UART DTBOs
Since UART_A can be enabled by DTBO now.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ie08f49bafc7fab96879469deeaa53b5d7c9a9dfa
2024-01-25 16:16:34 -03:00
Dongjin Kim
7f4ef4ff69 ODROID-C4: arm64/dts: add UART aliases for 'UART_<A/B/C/AO_B>'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Signed-off-by: Lee Seungcheol <john.lee@hardkernel.com>
Change-Id: Ia1b2f131368a72b3f52935a95e6b96e0b198221f
2024-01-25 16:16:27 -03:00
Dongjin Kim
ce489c3762 ODROID-N2/C4/HC4: arm64/dts: remove unused interrupt config for ethernet
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ic78316f40809e88536a08852fe2dd66e9f345f33
2024-01-25 16:16:20 -03:00
Dongjin Kim
1beb61e5e9 ODROID-N2: arm64/dts: pwmfan: add new temp to trigger
This device overlay patch is to set lower temperature that triggers
cooler fan at 45 degress celsius rather than 65 degrees celsius.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ifb1cfa5a06b2c7b25f9e14be5c9b800e16e10ce2
2024-01-25 16:16:12 -03:00
Dongjin Kim
e0384e4e3d (FIXME) ODROID-N2: arm64/dts: add missing 'spicc0' and 'uart_B'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ie6dd9a692d8c44f1b44eb690f1f792d0a454edeb
2024-01-25 16:16:01 -03:00
Dongjin Kim
45697e0bb0 ODROID-N2/N2Plus: arm64/dts: add full fan speed device tree overlay
Change-Id: Ie2918384cf4c85a5650297ad984ec3c396ba5a24
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2024-01-25 16:15:24 -03:00
Dongjin Kim
f84a7fcb84 ODROID-N2/N2Plus: fix I2C bus hardware properties
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ic68c578232cd080c980fb22d4e7d490997256592
2024-01-25 16:14:28 -03:00
Dongjin Kim
1faaa20274 ODROID-N2/C4: arm64/dts: add device tree overlay support
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I325baa8ec879f6a004049d1fe0a8d79fdd5542cc
2024-01-25 16:13:18 -03:00
ckkim
b4d4630b3c ODROID-N2/C4: arm64:dts: reboot/power off support for ODROID-N2/N2Plus/C4
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I22316a4ab896a0d8511d2cb2c34ac00360bb44d1
2024-01-25 16:13:11 -03:00
Dongjin Kim
1dc7467bfb ODROID-N2/C4/HC4: arm64/dts: add new clock 1GHz for GPU
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ic1f4bb11a13ec003f35700d03c44f5b3e4f19a13
2024-01-25 16:12:48 -03:00
Dongjin Kim
26b10761e8 ODROID-N2/C4/HC4: arm64/dts: remove property 'resets' and 'reset-names'
Having this properties in the node 'ethmac', it does cause to load wrong
MAC address.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ifca39bb60d4cbb6586ef9a8789f6dd243352dc1e
2024-01-25 16:12:39 -03:00
Deokgyu Yang
eb65afcd86 ODROID-C4: arm64/dts: Move gpio-line-names into the periphs_pinctrl node
In general, the gpio-line-names property should belong to the node
whereby the gpio-controller property by the related document written.
But from now, at least for the Odroid boards based on AMLogic SoC,
the property has to be in the periphs_pinctrl node so that the
function for assigning the line names recognizes that.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I328b47f88c0466de8657997d2c097c7f6fae33d7
2024-01-25 16:12:15 -03:00
Dongjin Kim
2aad28382b ODROID-C4: arm64/dts: add overclock CPU frequencies and retune the CPU opp table
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2024-01-25 16:12:01 -03:00
Dongjin Kim
3bd5d8db0c (FIXME) ODROID-N2: arm64/dts: add uart_A node
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I1d2bf830265704d7d1f89af1bf033c3b6536b4c2
2024-01-25 16:09:06 -03:00
Dongjin Kim
dff0b40c9c ODROID-N2: arm64/dts: update device tree after v5.13
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ife61a927258300b5310e68e7b0acae3a74230135
2024-01-25 16:07:19 -03:00
Dongjin Kim
1674112a2f ODROID-HC4: arm64/dts: add 'meson64_odroidhc4.dts' for compability
Change-Id: I1ef7c77dd26c0870c2057a090417bb59ba0ba52c
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2024-01-25 16:07:02 -03:00
Dongjin Kim
b3e7d4a0e4 ODROID-C4: arm64/dts: add 'meson64_odroidc4.dts' for compability
Change-Id: Idd9abac641030e5498171d88b3840349ce3b8442
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2024-01-25 16:06:55 -03:00
Dongjin Kim
180824b4b9 ODROID-N2PLUS: arm64/dts: add 'meson64_odroidn2_plus.dts' for compability
Change-Id: I40265ba32b9e34bf0be2bb0ce2784a3e8034adb4
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2024-01-25 16:06:47 -03:00
Dongjin Kim
b88c435db7 ODROID-N2: arm64/dts: add 'meson64_odroidn2.dts' for compability
Change-Id: I361804b497d71fd67a4c6816463d5cac607e0a53
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2024-01-25 16:06:37 -03:00
Dongjin Kim
665a8d4386 ODROID-C2: arm64/dts: add 'meson64_odroidc2.dts' for compability
Change-Id: Idcec2c95970c75aca00c30726b4e007ad1651a13
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2024-01-25 16:06:30 -03:00
ckkim
5b4b7661f9 ODROID-GO Ultra: Limit the volume to prevent clipping of output signal. 2024-01-25 16:00:37 -03:00
Mauro (mdrjr) Ribeiro
e3a6658515 ODROID: gou: add GO Ultra Joypad driver 2024-01-25 15:59:54 -03:00
Mauro (mdrjr) Ribeiro
db3f0eb142 driver: gpu: switch to mali vendor driver 2024-01-25 15:56:55 -03:00
Mauro (mdrjr) Ribeiro
56cb3cf9e6 ODROID: config: add early defconfig 2024-01-25 13:11:49 -03:00
Mauro (mdrjr) Ribeiro
68145912fa net/wireless: add rtl8821cu vendor driver 2024-01-24 10:32:29 -03:00
adamg
6ba14fb1ce arm64: meson: odroid-go-ultra: add joypad 2024-01-24 12:49:14 +00:00
Mauro (mdrjr) Ribeiro
afcda5bd1e arm64: meson: odroid-go-ultra: remove adc joystick 2024-01-24 12:48:51 +00:00
adamg
4de67147fb arm64: meson: odroid-go-ultra: specify overclocking frequencies as turbo mode 2024-01-24 12:45:59 +00:00
Mauro (mdrjr) Ribeiro
bcf21f7c16 arm64: meson: odroid-go-ultra: add over-clocking frequencies 2024-01-24 12:45:59 +00:00
Mauro (mdrjr) Ribeiro
e5ee56ceaa arm64: meson: odroid-go-ultra: correct voltages 2024-01-24 12:45:59 +00:00
Mauro (mdrjr) Ribeiro
ca169aa01f clk: meson: g12a: fix mipi display output for odroid-go-ultra 2024-01-24 12:45:59 +00:00
adamg
9a8cb27414 arm64: meson: odroid-go-ultra: add DSI panel 2024-01-24 12:45:55 +00:00
adamg
3701872da3 drm: panel: st7701: add odroid-go-ultra panel support 2024-01-24 00:16:52 +00:00
Neil Armstrong
a633520224 mfd: rk8xx: fixup devices registration with PLATFORM_DEVID_AUTO
Since commit 210f418f8a ("mfd: rk8xx: Add rk806 support"), devices are
registered with "0" as id, causing devices to not have an automatic device id
and prevents having multiple RK8xx PMICs on the same system.

Properly pass PLATFORM_DEVID_AUTO to devm_mfd_add_devices() and since
it will ignore the cells .id with this special value, also cleanup
by removing all now ignored cells .id values.

Now we have the same behaviour as before rk806 introduction and rk806
retains the intended behavior.

This fixes a regression while booting the Odroid Go Ultra on v6.6.1:
sysfs: cannot create duplicate filename '/bus/platform/devices/rk808-clkout'
CPU: 3 PID: 97 Comm: kworker/u12:2 Not tainted 6.6.1 #1
Hardware name: Hardkernel ODROID-GO-Ultra (DT)
Workqueue: events_unbound deferred_probe_work_func
Call trace:
dump_backtrace+0x9c/0x11c
show_stack+0x18/0x24
dump_stack_lvl+0x78/0xc4
dump_stack+0x18/0x24
sysfs_warn_dup+0x64/0x80
sysfs_do_create_link_sd+0xf0/0xf8
sysfs_create_link+0x20/0x40
bus_add_device+0x114/0x160
device_add+0x3f0/0x7cc
platform_device_add+0x180/0x270
mfd_add_device+0x390/0x4a8
devm_mfd_add_devices+0xb0/0x150
rk8xx_probe+0x26c/0x410
rk8xx_i2c_probe+0x64/0x98
i2c_device_probe+0x104/0x2e8
really_probe+0x184/0x3c8
__driver_probe_device+0x7c/0x16c
driver_probe_device+0x3c/0x10c
__device_attach_driver+0xbc/0x158
bus_for_each_drv+0x80/0xdc
__device_attach+0x9c/0x1ac
device_initial_probe+0x14/0x20
bus_probe_device+0xac/0xb0
deferred_probe_work_func+0xa0/0xf4
process_one_work+0x1bc/0x378
worker_thread+0x1dc/0x3d4
kthread+0x104/0x118
ret_from_fork+0x10/0x20
rk8xx-i2c 0-001c: error -EEXIST: failed to add MFD devices
rk8xx-i2c: probe of 0-001c failed with error -17

Fixes: 210f418f8a ("mfd: rk8xx: Add rk806 support")
Reported-by: Adam Green <greena88@gmail.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20231116-topic-amlogic-upstream-fix-rk8xx-devid-auto-v2-1-3f1bad68ab9d@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
2024-01-23 23:21:15 +00:00
Neil Armstrong
605c76e87d clk: meson: g12a: add CSI & ISP gates clocks
Add the gates entires for the CSI ISP domain and CSI PHYs.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2024-01-23 23:19:39 +00:00
Neil Armstrong
92a9bc5850 clk: meson: g12a: add MIPI ISP clocks
Add the MIPI ISP gate, divider and mux used to feed the MIPI CSI ISP
(Image Signal Processor) IP on the Amlogic G12B SoC.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2024-01-23 23:19:39 +00:00
Neil Armstrong
bc91db07db dt-bindings: clock: g12a-clkc: add MIPI ISP & CSI PHY clock ids
Add MIPI ISP & CSI PHY clock ids to G12A clock bindings header

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
2024-01-23 23:19:39 +00:00
Neil Armstrong
a3c3f77982 arm64: meson: g12-common: add the MIPI DSI nodes
Add the MIPI DSI Analog & Digital PHY nodes and the DSI control
nodes with proper port endpoint to the VPU.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2024-01-23 23:16:51 +00:00
Neil Armstrong
6a478b2551 drm/meson: gate px_clk when setting rate
Disable the px_clk when setting the rate to recover a fully
configured and correctly reset VCLK clock tree after the rate
is set.

Fixes: 77d9e1e6b8 ("drm/meson: add support for MIPI-DSI transceiver")
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2024-01-23 23:16:51 +00:00
Neil Armstrong
d33910a165 clk: meson: g12a: make VCLK2 and ENCL clock path configurable by CCF
In order to setup the DSI clock, let's make the unused VCLK2 clock path
configuration via CCF.

The nocache option is removed from following clocks:
- vclk2_sel
- vclk2_input
- vclk2_div
- vclk2
- vclk_div1
- vclk2_div2_en
- vclk2_div4_en
- vclk2_div6_en
- vclk2_div12_en
- vclk2_div2
- vclk2_div4
- vclk2_div6
- vclk2_div12
- cts_encl_sel

vclk2 and vclk2_div uses the newly introduced vclk regmap driver
to handle the enable and reset bits.

In order to set a rate on cts_encl via the vclk2 clock path,
the NO_REPARENT flag is set on cts_encl_sel & vclk2_sel in order
to keep CCF from selection a parent.
The parents of cts_encl_sel & vclk2_sel are expected to be defined
in DT.

The following clock scheme is to be used for DSI:

xtal
\_ gp0_pll_dco
   \_ gp0_pll
      |- vclk2_sel
      |  \_ vclk2_input
      |     \_ vclk2_div
      |        \_ vclk2
      |           \_ vclk2_div1
      |              \_ cts_encl_sel
      |                 \_ cts_encl	-> to VPU LCD Encoder
      |- mipi_dsi_pxclk_sel
      \_ mipi_dsi_pxclk_div
         \_ mipi_dsi_pxclk		-> to DSI controller

The mipi_dsi_pxclk_div is set as RO in order to use the same GP0
for mipi_dsi_pxclk and vclk2_input.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2024-01-23 23:16:51 +00:00