Commit Graph

34 Commits

Author SHA1 Message Date
Viacheslav Bocharov
217a5b3ea3 JetHome: Add dts kernel patch for support onboard eeprom in JetHub D1+
Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
2023-11-08 14:06:32 +01:00
c0rnelius
95229ffdef
general: extra: meson64 overlays: radxa zero (#5860)
* general: extra: meson64 overlays: `radxa zero`

Radxa Zero: Add overlays for serial i2c and spi.
BPI-M2S/M5: Add RTL8822CS overlays for each unit.

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

* v2: general: extra: meson64 overlays: `radxa zero`

compatible = "armbian,spi-dev";

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

---------

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-10-25 08:01:01 -04:00
c0rnelius
f10935160b
Radxa Zero: set aliases for serial i2c and spi (#5859)
Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-10-24 15:51:11 -04:00
c0rnelius
73a409df2b
Waveshare CM4-IO-BASE-B with BPI-CM4 Module (#5857)
Set fan max speed to kick in at 65*C. This keeps the unit roughly
at 70*C or lower, when pusing all cores for an extended period of
time.

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-10-24 13:44:54 -04:00
Tony
43ba5437f0
update compatible string for Odroid C2 Spidev (#5852) 2023-10-22 13:13:02 -04:00
Patrick Yavitz
595e1fdf62 v2: arch: arm64: dts: amlogic: meson-g12b-waveshare-cm4-io-base-b
https://www.waveshare.com/wiki/CM4-IO-BASE-B

Fan, RTC and USB support
RTC requires rtc pcf85063 driver
Fan requires hwmon emc2305 driver

Added wakeup-source to fanctrl node so emc2305 module loads at boot.

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-10-12 14:56:20 +02:00
Patrick Yavitz
67af958258 hwmon: emc2305: fixups for driver
BPI-CM4 fan control

hwmon: emc2305: fixups for driver
The driver had a number of issues, checkpatch warnings/errors,
and other limitations, so fix these up to make it usable.
hwmon: emc2305: Change OF properties pwm-min & pwm-max to u8
hwmon: emc2305: Add calls to initialize cooling maps
233096b8a9/drivers/hwmon/emc2305.c

Tested-on: CM4-IO-BASE-B: https://www.waveshare.com/wiki/CM4-IO-BASE-B
Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-10-12 14:56:20 +02:00
Patrick Yavitz
f1cf0cd51f v2: arch: arm64: dts: amlogic: meson-g12b-waveshare-cm4-io-base-b
https://www.waveshare.com/wiki/CM4-IO-BASE-B

Fan, RTC and USB support
RTC requires rtc pcf85063 driver
Fan requires hwmon emc2305 driver

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-10-12 14:56:20 +02:00
Patrick Yavitz
f4507dceda Meson Bananapi: additions and modification
BPI-CM4: Add support for the waveshare cm4-io-base-b
https://www.waveshare.com/wiki/CM4-IO-BASE-B

BPI-CM4: Enable usb support on waveshare baseboards via overlay

BPI-SM1: Removed UART_B overlay. Short of it being an available
option in the vendor kernel via overlay. I can not find any docs
to support why that is. I feel it is safer that we just remove it.

BPI-SM1: Add UART_A "pin-ctrl: cts rts"

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-09-24 19:47:33 +02:00
c0rnelius
e3798c21ed
dts: amlogic: meson-g12b-bananapi-cm4: switch to enable-gpios (#5634)
* dts: amlogic: meson-g12b-bananapi-cm4: switch to enable-gpios

The recommended name for enable GPIOs property in regulator-gpio is
enable-gpios.  This is also required by bindings:

  meson-g12b-bananapi-cm4-cm4io.dtb: regulator-vddio-c: Unevaluated properties are not allowed ('enable-gpio' was unexpected)

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

* board-bananapi-cm4-switch-to-enable-gpios: `text formatting correction`

Apparently the builder did care for the original.

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

---------

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-08-23 12:16:55 -04:00
Igor
dcd6fd2e54
Revert Meson64 / odroid fancontrol (#5617)
* Revert "packages: bsp: odroid: fanctrl: `maintenance`"

This reverts commit 94f7bfff89.

* Revert "Improve Meson64 Support: `ODROID`"

This reverts commit 40530ee344.
2023-08-20 21:11:54 +02:00
Patrick Yavitz
40530ee344 Improve Meson64 Support: ODROID
Backport DTS/DTSI changes from linux-6.4.y to 6.1.y
Add meson64-reboot driver to all boards
Add board: ODROID N2L
Add uart_A uart_AO_B uart_B uart_C where appropriate
U-Boot v2023.07.02: ODROID N2/N2L/N2Plus/C4

Meson64-reboot driver: (source: tobetter)
While the current meson64-reboot driver is cleaner and doesn't
depend on modding other kernel sources, its functionality leaves
much to be desired. One example can be found in the ODROID C4.
Using the current driver, the board will not properly power off,
leaving the POWER LED still on. The new driver powers off the unit
completely.

Fan control: (ODROID N2L/N2PLus)
Added service and script for controlling the trip point.
fanctrl: arguments: 65 55 45 35 25 menu run

                              ┌──┤ Fan Control ├──┐
                              │                   │
                              │    6) 65°C        │
                              │    5) 55°C        │
                              │    4) 45°C        │
                              │    3) 35°C        │
                              │    2) 25°C        │
                              │    E) Exit ..     │
                              │                   │
                              │                   │
                              │      <Ok>         │
                              │                   │
                              └───────────────────┘

NOTES: (N2L/HC4): I do not own the units so I can't run tests.

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-08-20 19:20:06 +02:00
Patrick Yavitz
b4c379e391 general: extra: meson64 overlays
meson-sm1-bananapi-rtl8822cs.dtbo

Although the exp board target is for the M5 it also works
on the BananaPi M2S. Tested on the BPI-M2S.

Add support for the RTL8822CS expansion board.
https://wiki.banana-pi.org/Banana_Pi_BPI-M5#Wifi_.26_BT_support_via_expansion_board

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-08-18 17:46:49 +02:00
c0rnelius
3261469268
arm64: dts: amlogic: meson-sm1-bananapi-m2-pro: add uart_A (#5558)
Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-08-04 12:23:31 +02:00
c0rnelius
9b04e0faf6
Improve bananapi-sm1 support (#5553)
Linux 6.1 (current) / 6.4 (edge)

Add "current" to: config/boards/bananapim2pro.csc
Add uart_AO_B and uart_B to: meson-sm1-bananapi.dtsi
Add related pins to: meson-g12-common.dtsi
add wif/bt support to: meson-sm1-bananapi-m5.dts (BT = uart_A)
Add the ability to enable via overlays

NOTE: The overlay to enable the wifi on the BPI-M5 will be added
at a later date.

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-08-03 14:01:15 -04:00
Thomas McKahan
f9efecf6cd meson64: fix usb on odroid c2
Thanks to NicoD giving me a kick, identified/implemented fix present in 6.2+ builds to keep the hub from going to suspend.
2023-08-02 08:26:52 +02:00
c0rnelius
0e2a7f1daf
general: extra: meson64 overlays (#5532)
* general: extra: meson64 overlays

Linux 6.1.y (current)

meson-g12a-radxa-zero-gpio-10-led.dtbo (rev 1.51 enable led)
meson-g12a-radxa-zero-gpio-8-led.dtbo (rev 1.4 enable led)
meson-g12b-odroid-n2-spi.dtbo (SPI-NOR enable via overlay)

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

* general: extra: meson64 overlays

Linux 6.4.y (edge)

meson-g12a-radxa-zero-gpio-10-led.dtbo (rev 1.51 enable led)
meson-g12a-radxa-zero-gpio-8-led.dtbo (rev 1.4 enable led)
meson-g12b-odroid-n2-spi.dtbo (SPI-NOR enable via overlay)

As suggested by: @efectn

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

* meson64-6.4: overlay: Makefile: `maintenance`

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

---------

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-08-01 06:43:28 -04:00
Patrick Yavitz
e22fa3aa35 board: bananapim2s: git format-patch remove builder warnings
Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-07-23 14:40:52 +02:00
Patrick Yavitz
effbb4c900 Board: Bananapi M2S additional support
Removed WIP status
Added CONFIG_R8169=m to defconfig(s) (eth support)
Modified and added additional patches (linux 6.1 / 6.4)
U-Boot v2023.07.2 (dropped v2022.10)
Upstream BT FW (rtl8822cs) is now shared between CM4IO and M2s

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-07-23 14:40:52 +02:00
Ricardo Pardini
859ecea496 meson64 current 6.1.y: drop patch that landed upstream in 6.1.36: mmc: meson-gx: fix deferred probing 2023-06-28 21:27:19 +02:00
Patrick Yavitz
e5b6fbe573 BPI-CM4: BT: changed enable-gpios from GPIOX_17 to GPIOX_19
As discussed here: https://github.com/armbian/build/pull/5273
REVERTS: e2171ca737

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-06-02 19:38:14 +02:00
Patrick Yavitz
e2171ca737 BPI-CM4 IO: Use the sdio-pwrseq to reset GPIOX_19
This will reset bluetooth `host-wake-gpios`, enabling it to come back upon reboots.

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-06-01 11:30:10 +02:00
Patrick Yavitz
eafd8bd49a DRIVER POWER MESON64 RESET: maintenance
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-06-01 06:32:23 +02:00
Patrick Yavitz
bb48f6080c Improve Meson64 Support
BPI-CM4:
In accordance with the BSP DTS, set LED gpio to GPIO_ACTIVE_LOW.
Added default-on trigger to led-green
Board now powers off, added reboot node 'meson64-reboot'.

CONFIG_POWER_RESET_MESON64
Isolated RESET ODROID driver and renamed to MESON64 as it can be used in more than ODROIDS.

MESON UART
Series improves support for UART attached Bluetooth modules on Amlogic Meson G12A and newer SoCs. These SoCs also support the "divide XTAL by 2" bit which (greatly) reduces jitter when generating baud rates such as 1500000 (which is used by the Bluetooth part of the RTL8822CS SDIO WiFi and UART Bluetooth combo chip).

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-06-01 06:32:23 +02:00
Patrick Yavitz
80e4d37315 patch: kernel: meson64-6.1: add-board-bananapi-cm4-cm4io
Backport: BPI-CM4 CM4IO dts/dtsi

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-05-21 11:11:25 +02:00
SteeManMI
7b99735c44
Fix patch failures on meson64-current (6.1) (#4973)
Changes to be committed:
	deleted:    patch/kernel/archive/meson64-6.1/board-bananapim5-002-switch-VDDIO_C-pin-to-OP.patch
		- Patch upstreamed in 6.1.16:
			https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi-m5.dts?h=v6.1.20&id=58dccc65221c6465a35cb6bb2ff41f2b75b367f0
	modified:   patch/kernel/archive/meson64-6.1/board-bananapim5-003-convert-dts-to-dtsi.patcha
		- Fixed patch due to upstream change in 6.1.16:
			https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm64/boot/dts/amlogic/meson-sm1-bananapi-m5.dts?h=v6.1.20&id=e35feeb3fdbe3eeffae5e75123fa44523b5076b8
	deleted:    patch/kernel/archive/meson64-6.1/board-radxa-zero-dts-otg-fix.patch
		- Patch upstreamed in 6.1.16:
			https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts?h=v6.1.20&id=b556778f76f975ccf7f008729b5bc2531c58ea95
	deleted:    patch/kernel/archive/meson64-6.1/general-arm64-dts-amlogic-Make-mmc-host-controller-interrupt.patch
		- Patch upstreamed in 6.1.12:
			https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.20&id=274d9a28527d64a95107a1e62c71632065f0924f
			https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.20&id=222b1070b0fa12be25f9503a503724a899c6326b
			https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.20&id=a01ad536becb5d4c001a7d50dc1ca9fa14ef75a8
	modified:   patch/kernel/archive/meson64-6.1/general-meson-mmc-1-arm64-amlogic-mmc-meson-gx-Add-core-tx-rx-eMMC-SD-SD.patch
		- Fixed patch due to upstream change in 6.1.13 by copying the 6.2 version which was already rebased
2023-03-20 07:59:11 -04:00
Ash Hughes
2b896d72fb
meson64: current + edge: bring back fixed version of odroid-reboot driver (Fix reboot on odroid C4 when using UHS-II SD cards) [cherry pick] 2023-02-18 07:46:38 -03:00
Igor Pečovnik
31ee14377c
Split Bananapi M2PRO from M5 (#4826)
This is comming to 6.2 / 6.3
2023-02-12 21:51:59 +01:00
Viacheslav Bocharov
61ee32eed5
Add SDIO irq patch to fix irq lost in new SDIO irq code (kernel 6.0+) 2023-01-26 18:16:30 +03:00
Ricardo Pardini
952fc55acb
meson64: 6.1.y/edge: BananaPi M5: use 270 clock phase via amlogic,mmc-phase (#4674) 2023-01-09 13:36:20 +01:00
Ricardo Pardini
2a9b374634
meson64: 6.1.y/edge: docs: fix zero2's patch after bpim2s's addition (#4672) 2023-01-09 08:22:45 +01:00
Ricardo Pardini
321fec6f41
meson64: 6.1.y/edge: rebase patches against v6.1.4 (no actual changes) (#4673) 2023-01-09 08:22:23 +01:00
jeanrhum
2c58242006
Initial support for Bananapi M2S (#4597)
* Initial support for Bananapi M2S

BPI-M2S is a small form factor SBC based on the Amlogic A311D chipset (or s922x, not supported yet):

- Amlogic A311D (Quad A73 + Dual A53) CPU
- 4GB LPDDR4 RAM
- 16GB eMMC
- Mali G52-MP4 GPU
- HDMI 2.1 output
- 2 Gigabit ports
- 40 pins GPIO
- 1x USB-A 2.0
- 1 USB-C (5V power)

Not working/tested:
- 2nd ethernet port
- MIPI DSI/CSI

* Edge kernel for BPI M2S

* filename fixes; call attention to sharing FIP blobs

* Adding u-boot patches for BPI M2S

* meson-g12.conf update after amlogic FIP blobs for Bananapi M2S are now part of librelec FIP repo

Co-authored-by: Ricardo Pardini <ricardo@pardini.net>
2023-01-01 14:28:49 +01:00
Ricardo Pardini
eb7d4a0bd2
meson64: bump edge to 6.1-rc8 (#4554)
* `meson64-6.1` - rebased patches; 3 were mainlined

- JetHub device was mainlined
- ODROID's hack for pwm1_enable was re-done diffrently in mainline

* `meson64`: switch `current` to `6.0`, `edge` to `6.1-rc8`
2022-12-12 08:02:49 +01:00