devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/4] ASoC: codecs: Add support for FourSemi FS2104/5S
@ 2025-07-03  3:56 Nick
  2025-07-03  3:56 ` [PATCH v1 1/4] ASoC: codecs: Add library for FourSemi audio amplifiers Nick
                   ` (4 more replies)
  0 siblings, 5 replies; 37+ messages in thread
From: Nick @ 2025-07-03  3:56 UTC (permalink / raw)
  To: lgirdwood, broonie, robh, krzk+dt, conor+dt, perex, tiwai,
	nick.li
  Cc: like.sin, xiaoming.yang, danyang.zheng, linux-sound, devicetree,
	linux-kernel

The FS2104/5S are Inductor-Less, Stereo, Closed-Loop,
Digital Input Class-D Power Amplifiers with Enhanced Signal Processing
FS2104 can deliver 2x15W into 4ohm BTL speaker loads,
FS2105S can deliver 2x30W into 8ohm BTL speaker loads.

The driver has been checked with kernel scrpits and cppcheck.
Most functions have been built and tested on EVB boards:
ARMv8-A, Linux version 6.16.0-rc4-v8
Part of test logs:
FS2105S without effect scene:
[    2.941289] fs210x 1-0068: version: v1.0.6
[    2.941382] fs210x 1-0068: supply pvdd not found, using dummy regulator
[    2.941441] fs210x 1-0068: supply dvdd not found, using dummy regulator
[    2.965632] fs210x 1-0068: FS2105S detected
[    2.969875] fs210x 1-0068: Loading foursemi/fs2105s-btl-0s.bin - size: 2854
[    2.969907] fs210x 1-0068: Project: NONAME Device: DEV1
[    2.970319] fs210x 1-0068: Date: 20250624-1918
[    2.981171] fs210x 1-0068: Switch scene.0: S0
[    6.142932] fs210x 1-0068: hw params: 48000-2-1536000
[    6.157219] fs210x 1-0068: playback unmute
[    6.201567] fs210x 1-0068: playback mute
[    6.202801] fs210x 1-0068: hw params: 48000-2-3072000
[    6.217364] fs210x 1-0068: playback unmute
[    6.247900] fs210x 1-0068: playback mute

FS2104 with 1 effect scene:
[   18.067507] fs210x 0-0068: version: v1.0.6
[   18.072095] fs210x 0-0068: 0-0068 supply pvdd not found, using dummy regulator
[   18.085700] fs210x 0-0068: 0-0068 supply dvdd not found, using dummy regulator
[   18.113663] fs210x 0-0068: FS2104 detected
[   18.119216] fs210x 0-0069: version: v1.0.6
[   18.123675] fs210x 0-0069: 0-0069 supply pvdd not found, using dummy regulator
[   18.137239] fs210x 0-0069: 0-0069 supply dvdd not found, using dummy regulator
[   18.159819] fs210x 0-0069: Failed to read 03h: -5
[   18.164969] fs210x 0-0069: probe with driver fs210x failed with error -5
[   28.422623] fs210x 0-0068: Loading fs2104-btl-1s.bin - size: 6696
[   28.422741] fs210x 0-0068: Project: NONAME Device: DEV1
[   28.422751] fs210x 0-0068: Date: 20250523-1538
[   28.433739] fs210x 0-0068: Switch scene.0: S0
[   28.513483] fs210x 0-0068: Switch scene.1: MUSIC
[   61.912099] fs210x 0-0068: hw params: 48000-2-3072000
[   61.928384] fs210x 0-0068: playback unmute
[   73.962865] fs210x 0-0068: playback mute
[   92.833623] fs210x 0-0068: pm suspended
[   92.893641] fs210x 0-0068: Switch scene.0: S0
[   92.990521] fs210x 0-0068: Switch scene.1: MUSIC
[   93.077759] fs210x 0-0068: pm resumed
[  103.315898] fs210x 0-0068: hw params: 48000-2-3072000
[  103.331770] fs210x 0-0068: playback unmute
[  114.316948] fs210x 0-0068: playback mute

Nick Li (4):
  ASoC: codecs: Add library for FourSemi audio amplifiers
  ASoC: codecs: Add FourSemi FS2104/5S audio amplifier driver
  ASoC: dt-bindings: Add dt bindings for FS2104/5S audio amplifiers
  dt-bindings: vendor-prefixes: Add Shanghai FourSemi Semiconductor
    Co.,Ltd

 .../bindings/sound/foursemi,fs210x.yaml       |   95 +
 .../devicetree/bindings/vendor-prefixes.yaml  |    2 +
 sound/soc/codecs/Kconfig                      |   14 +
 sound/soc/codecs/Makefile                     |    4 +
 sound/soc/codecs/fs-amp-lib.c                 |  265 +++
 sound/soc/codecs/fs-amp-lib.h                 |  150 ++
 sound/soc/codecs/fs210x.c                     | 1616 +++++++++++++++++
 sound/soc/codecs/fs210x.h                     |   79 +
 8 files changed, 2225 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/foursemi,fs210x.yaml
 create mode 100644 sound/soc/codecs/fs-amp-lib.c
 create mode 100644 sound/soc/codecs/fs-amp-lib.h
 create mode 100644 sound/soc/codecs/fs210x.c
 create mode 100644 sound/soc/codecs/fs210x.h

-- 
2.39.5


^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2025-07-10 11:21 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-03  3:56 [PATCH v1 0/4] ASoC: codecs: Add support for FourSemi FS2104/5S Nick
2025-07-03  3:56 ` [PATCH v1 1/4] ASoC: codecs: Add library for FourSemi audio amplifiers Nick
2025-07-03  3:56 ` [PATCH v1 2/4] ASoC: codecs: Add FourSemi FS2104/5S audio amplifier driver Nick
2025-07-03 14:59   ` Mark Brown
2025-07-04 11:12     ` Nick Li
2025-07-04 14:37       ` Mark Brown
2025-07-07  8:34         ` Nick Li
2025-07-07 20:42           ` Mark Brown
2025-07-03  3:56 ` [PATCH v1 3/4] ASoC: dt-bindings: Add dt bindings for FS2104/5S audio amplifiers Nick
2025-07-03  5:48   ` Rob Herring (Arm)
2025-07-03  6:36   ` Krzysztof Kozlowski
2025-07-04  6:00     ` Nick Li
2025-07-03  7:10   ` Krzysztof Kozlowski
2025-07-03  7:15     ` Krzysztof Kozlowski
2025-07-04  7:26       ` Nick Li
2025-07-04  7:18     ` Nick Li
2025-07-03  3:56 ` [PATCH v1 4/4] dt-bindings: vendor-prefixes: Add Shanghai FourSemi Semiconductor Co.,Ltd Nick
2025-07-03  5:48   ` Rob Herring (Arm)
2025-07-08 11:28 ` [PATCH v2 0/4] ASoC: codecs: Add support for FourSemi FS2104/5S Nick Li
2025-07-08 11:28   ` [PATCH v2 1/4] dt-bindings: vendor-prefixes: Add Shanghai FourSemi Semiconductor Co.,Ltd Nick Li
2025-07-09 10:36     ` Krzysztof Kozlowski
2025-07-08 11:28   ` [PATCH v2 2/4] ASoC: dt-bindings: Add schema for FS2104/5S audio amplifiers Nick Li
2025-07-09 10:40     ` Krzysztof Kozlowski
2025-07-10  8:11       ` Nick Li
2025-07-10  8:27         ` Krzysztof Kozlowski
2025-07-10  9:26           ` Nick Li
2025-07-09 10:42     ` Krzysztof Kozlowski
2025-07-10  8:02       ` Nick Li
2025-07-08 11:29   ` [PATCH v2 3/4] ASoC: codecs: Add library for FourSemi " Nick Li
2025-07-08 11:29   ` [PATCH v2 4/4] ASoC: codecs: Add FourSemi FS2104/5S audio amplifier driver Nick Li
2025-07-09 10:55     ` Krzysztof Kozlowski
2025-07-10  7:56       ` Nick Li
2025-07-10  8:27         ` Krzysztof Kozlowski
2025-07-10 11:20           ` Nick Li
2025-07-09 11:29     ` Mark Brown
2025-07-10  8:57       ` Nick Li
2025-07-10  9:29         ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).