lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250703035639.7252-4-nick.li@foursemi.com>
Date: Thu,  3 Jul 2025 11:56:38 +0800
From: Nick <nick.li@...rsemi.com>
To: lgirdwood@...il.com,
	broonie@...nel.org,
	robh@...nel.org,
	krzk+dt@...nel.org,
	conor+dt@...nel.org,
	perex@...ex.cz,
	tiwai@...e.com,
	nick.li@...rsemi.com
Cc: like.sin@...il.com,
	xiaoming.yang@...rsemi.com,
	danyang.zheng@...rsemi.com,
	linux-sound@...r.kernel.org,
	devicetree@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH v1 3/4] ASoC: dt-bindings: Add dt bindings for FS2104/5S audio amplifiers

From: Nick Li <nick.li@...rsemi.com>

This patch adds bindings for FourSemi FS2104/5S audio amplifiers
which can support both I2S and I2C interface.

Signed-off-by: Nick Li <nick.li@...rsemi.com>
---
 .../bindings/sound/foursemi,fs210x.yaml       | 95 +++++++++++++++++++
 1 file changed, 95 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/foursemi,fs210x.yaml

diff --git a/Documentation/devicetree/bindings/sound/foursemi,fs210x.yaml b/Documentation/devicetree/bindings/sound/foursemi,fs210x.yaml
new file mode 100644
index 000000000..3a1aba9b8
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/foursemi,fs210x.yaml
@@ -0,0 +1,95 @@
+# SPDX-License-Identifier: GPL-2.0-only
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/foursemi,fs210x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: FourSemi FS2104/5S Digital Audio Amplifier
+
+maintainers:
+  - Nick <nick.li@...rsemi.com>
+
+description: |
+    The FS2104 is a 15W Inductor-Less, Stereo, Closed-Loop,
+    Digital Input Class-D Power Amplifier with Enhanced Signal Processing.
+    The FS2105S is a 30W Inductor-Less, Stereo, Closed-Loop,
+    Digital Input Class-D Power Amplifier with Enhanced Signal Processing.
+
+properties:
+  compatible:
+    enum:
+      - foursemi,fs2104
+      - foursemi,fs2105s
+
+  reg:
+    maxItems: 1
+    description: |
+      I2C address of the amplifier. Refer to datasheet for possible values:
+      0x68/0x69/0x6A/0x6B
+
+  clocks:
+    items:
+      - description: The clock of I2S BCLK
+
+  clock-names:
+    items:
+      - const: bclk
+
+  '#sound-dai-cells':
+    const: 0
+
+  pvdd-supply:
+    description: |
+      Regulator for power supply(PVDD in datasheet).
+
+  dvdd-supply:
+    description: |
+      Regulator for digital supply(DVDD in datasheet).
+
+  sdz-gpios:
+    maxItems: 1
+    description: |
+      SDZ(Shut Down) pin is active low, it will power down the chip,
+      and then reset the chip to shut down state.
+
+  fs,fwm-name:
+    description: |
+      The name of firmware that should be loaded for this
+      instance. The firmware is gernerated by FourSemi's tuning tool.
+    $ref: /schemas/types.yaml#/definitions/string
+
+  fs,dai-name:
+    description: |
+      The name of FS210x DAI, it can be set different name when
+      there are multiple FS210x devices in the system.
+    $ref: /schemas/types.yaml#/definitions/string
+
+required:
+  - compatible
+  - reg
+  - sdz-gpios
+  - fs,fwm-name
+  - '#sound-dai-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        audio-codec@68 {
+            compatible = "foursemi,fs2105s";
+            reg = <0x68>;
+            pvdd-supply = <&pvdd_supply>;
+            dvdd-supply = <&dvdd_supply>;
+            sdz-gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
+            pinctrl-names = "default";
+            pinctrl-0 = <&fs210x_pins_default>;
+            fs,fwm-name = "fs2105s-btl-2p0-0s.bin";
+            clocks = <&clocks 18>;
+            clock-names = "bclk";
+            #sound-dai-cells = <0>;
+        };
+    };
-- 
2.39.5


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ