Dear maintainer,
Please enable the Loongson I2C and PWM controller drivers on loong64.
CONFIG_I2C_LS2X=m
CONFIG_PWM_LOONGSON=m
Without them, the kernel shows no I2C buses and no PWM devices on
Loongson-3A6000 / 7A2000 systems.
With them I can read the board temperature and see the fan control signals.
$ sensors
nvme-pci-0500
Adapter: PCI adapter
Composite: +40.9°C (low = -0.1°C, high = +99.8°C)
(crit = +109.8°C)
lm75-virtual-0
Adapter: Virtual device
temp1: +35.5°C (high = +80.0°C, hyst = +75.0°C)
$ sudo cat /sys/kernel/debug/pwm
0: platform/LOON0006:00, npwm: 1
pwm-0 ((null) ):
requested configuration: disabled, 0/0 ns, normal polarity
actual configuration: enabled, 24000/40000 ns, normal polarity
1: platform/LOON0006:01, npwm: 1
pwm-0 ((null) ):
requested configuration: disabled, 0/0 ns, normal polarity
actual configuration: disabled, 5572300/11249220 ns, normal polarity
2: platform/LOON0006:02, npwm: 1
pwm-0 ((null) ):
requested configuration: disabled, 0/0 ns, normal polarity
actual configuration: enabled, 24000/40000 ns, normal polarity
3: platform/LOON0006:03, npwm: 1
pwm-0 ((null) ):
requested configuration: disabled, 0/0 ns, normal polarity
actual configuration: disabled, 3611460/0 ns, normal polarity
Best
-Dominique