Commit Graph

22 Commits

Author SHA1 Message Date
kernelzru
19821548d6 fixed emmc init 2024-05-26 22:20:57 +02:00
kernelzru
1f9f8a5a97 add ugoos x3 support 2024-05-26 22:20:57 +02:00
ColorfulRhino
f0c27bd69b kernel 6.6: swiotlb: Reduce the default size if no ZONE_DMA bouncing needed
With CONFIG_DMA_BOUNCE_UNALIGNED_KMALLOC enabled, the arm64 kernel still
allocates the default SWIOTLB buffer (64MB) even if ZONE_DMA is disabled
or all the RAM fits into this zone. However, this potentially wastes a
non-negligible amount of memory on platforms with little RAM.

Reduce the SWIOTLB size to 1MB per 1GB of RAM if only needed for
kmalloc() buffer bouncing.
2024-04-11 08:31:26 -04:00
ColorfulRhino
573d84a3e2 meson64-6.6: swiotlb: Reduce the default size if no ZONE_DMA bouncing needed
With CONFIG_DMA_BOUNCE_UNALIGNED_KMALLOC enabled, the arm64 kernel still
allocates the default SWIOTLB buffer (64MB) even if ZONE_DMA is disabled
or all the RAM fits into this zone. However, this potentially wastes a
non-negligible amount of memory on platforms with little RAM.

Reduce the SWIOTLB size to 1MB per 1GB of RAM if only needed for
kmalloc() buffer bouncing.

Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
2024-04-11 08:31:26 -04:00
Patrick Yavitz
0b7af65340 BananaPi CM4/M2S: FIXUPS
BPI-CM4
No change in functionality. Fixup adjustments.

BPI-M2S
The fan on the unit is constantly running. So lets set thermal
trip points and add the ability to control when we want it to
kick on. By default it is set to power on at 60*C.

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2024-04-01 20:46:38 +02:00
c0rnelius
8eab8fd19b
meson64: bananapicm4io/m2s: u-boot: v2024.01 and WS dts fixup (#6233)
BananaPi CM4/M2S:

Update to u-boot v2024.01
Fixup meson-g12b-waveshare-cm4-io-base-b.dts

Removed from 'fanctrl' node
address-cells = <1>;
size-cells = <0>;

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2024-02-01 08:06:28 -05:00
c0rnelius
e73c0b6514
meson64: overlays: additions and modifications (#6175)
PWM controllable fan (G12A/B/SM1)

Commit provides two new overlays. One for the BananaPi CM4IO
Baseboard "GPIOH_5" and another for general use "GPIOX_5".

CM4IO HEADER PINS: 5V "4"; GND "6"; PWM "7"

On other units the location of the PWM HEADER PIN may vary,
so users will need to either review the wiki or schematic
of said unit.

Fan used in testing:
https://a.co/d/hasnLtj

Modifications: M2S/M5 RTL8822CS
Modded the overlays to be specific to the unit they were made
to be used on.

Tested-on: BananaPi BPI-CM4IO Baseboard with BPI-CM4 Module

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2024-01-18 14:31:43 -05:00
Ricardo Pardini
9b9011eb5d meson64: 6.6 current: added -spidev DT's for a few boards & cleanup 0000.patching_config.yaml
- gives access to SPI Flash in exchange for slower eMMC
- cleanup 0000.patching_config.yaml for meson64-6.6
2024-01-14 19:39:09 +01:00
Jens J
d2c928cbf0
add dts for mini-m8s-pro tvbox (#6014) 2023-12-07 00:41:12 +01:00
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
Ricardo Pardini
98c0ab47f5 meson64 / rockchip64 / uefi / rk3568-odroid: edge 6.6: bump to 6.6-rc7; rebase/rewrite patches for 6.6-rc7 2023-10-26 14:30:48 +02: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
Ricardo Pardini
6731b003e2 meson64 edge 6.6: bump to 6.6-rc6; rebase patches 2023-10-21 13:57:12 +02: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
Ricardo Pardini
c0c7f91053 meson64/edge 6.6.y: bump to 6.6-rc4 - fix patches
- board-bananapi-cm4-switch-to-enable-gpios.patch: landed upstream
- driver-power-meson64-reset.patch: fix manually, nearby driver POWER_RESET_OXNAS was dropped from upstream
  - let's light a candle for OXNAS
2023-10-03 13:53:40 +02:00
Ricardo Pardini
bfe5f0ffc1 meson64/edge 6.6.y: bump to 6.6-rc4 - rebase patches 2023-10-03 13:53:40 +02:00
Ricardo Pardini
3811f36a99 meson64/edge: bump to 6.6-rc4; initial copy from 6.5 2023-10-03 13:53:40 +02:00