openwrt-pf/target/linux/airoha
Wayen Yan 0d7add7433
net: pcs: airoha: fix swapped JCPLL SDM DI_LS/DI_EN REG_FIELD entries
The JCPLL SDM DI_LS and DI_EN REG_FIELD entries have their bit
positions swapped compared to the #define macros:

  #define JCPLL_SDM_DI_LS   GENMASK(25,24)  → bits 24-25
  #define JCPLL_SDM_DI_EN   BIT(16)          → bit 16

But the REG_FIELD mapping is:
  DI_LS → REG_FIELD(..., 16, 16)  ← wrong, should be (24, 25)
  DI_EN → REG_FIELD(..., 24, 25)  ← wrong, should be (16, 16)

Fix by swapping the enum and REG_FIELD order so DI_EN comes before
DI_LS, keeping the bit values in ascending order and matching the
register layout. This way:

  [DI_EN] = REG_FIELD(..., 16, 16)  ← BIT(16) ✓
  [DI_LS] = REG_FIELD(..., 24, 25)  ← GENMASK(25,24) ✓

The TXPLL section in the same file already follows this bit-order
convention (DI_EN at bit 0, DI_LS at bits 8-9).

Signed-off-by: Wayen Yan <win847@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23876
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2026-06-19 10:11:06 +02:00
..
an7581 an7581/base-files: use IPKG_INSTROOT when sourcing functions.sh 2026-06-18 14:32:39 +02:00
an7583 airoha: disable Ampere cpu core errata 2026-06-05 12:02:30 +02:00
base-files/lib/preinit
dts airoha: use kernel 6.18 by default and drop 6.12 2026-06-04 23:07:35 +02:00
en7523 airoha: use kernel 6.18 by default and drop 6.12 2026-06-04 23:07:35 +02:00
image airoha: use kernel 6.18 by default and drop 6.12 2026-06-04 23:07:35 +02:00
patches-6.18 net: pcs: airoha: fix swapped JCPLL SDM DI_LS/DI_EN REG_FIELD entries 2026-06-19 10:11:06 +02:00
Makefile airoha: use kernel 6.18 by default and drop 6.12 2026-06-04 23:07:35 +02:00
modules.mk airoha: rename kmod-pwm-an7581 to kmod-pwm-airoha 2026-03-16 17:42:17 +01:00