From patchwork Tue Aug 13 02:54:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ki-Seok Jo X-Patchwork-Id: 13761202 Received: from SLXP216CU001.outbound.protection.outlook.com (mail-koreacentralazon11021143.outbound.protection.outlook.com [40.107.42.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30C201862A; Tue, 13 Aug 2024 02:54:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.42.143 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723517699; cv=fail; b=YUwdTH51hT8316RuZP88e0O6fY9oX5Z1sEj2YcMXG6rcZjJVmTTDQYHjCj9uvRp7gYDfV/KnPN9V1IdVXtZ+u/FegHoIDv1Uz8povCFtTDcnK3AksxAfp4IiDt+jsH+JhWSlJI1fS0UsbLU2Rm1PwpVp64x07BfqYpkPvF7gbfc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723517699; c=relaxed/simple; bh=kpnHCLVDXgSBOvxyt0dmKJpnUwZCJsXiuXvuy47Tvyw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=aOxMZE9nN8yjWuvjMh/FVpZEOgd2NGQNoFTy3qAfsYsJwvoTQ5pxhniMh2BQLj8IlcjBawHZCbXWO8m1rUCvnipwYDM9ysyYgfDajyfnwuOaLf6fy+c7KdOvRb7GVy45PzLiIjqlywLdPiC5J0E9aenK7cXUWNK6Qo0g2xS8ypk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=irondevice.com; spf=pass smtp.mailfrom=irondevice.com; arc=fail smtp.client-ip=40.107.42.143 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=irondevice.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=irondevice.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jHAQ7KN+nUb4RyISGhtn7DQahTlM1vcOqJonk1VyLG4ivu+wPE9+T3IPMpvZruzCW3DQ/uOmya+2/ODo4n8d5vw0mvPJzZqyGN1yPfJVqo7aQFlx0rEvF10xtofZvRHJ54AQrl4k2iAMfMTirac7m0RwWnRoW7bNwOO7bLWx6QloEdzo2UCD//TcAmkUlYF7GIkRRG2UijlhDwF1a1XEfJi76DS4EIFnAE2KJEY6SQc85TB/XXunIZioI/XKObiEx+J5RJehI4jDhIGFI7ZxFbud+wa6WKd25KH0dBrFtWooAb6O+VS2wwTYK4PBrkt7PYg5VXXBIkUvEBH8l/CmOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mIPSJ/KZEZ8ezSvpT0mU1+BRBMRuKo1R9DcvH8kp7UU=; b=ONR09zctwaU1KUA1CTTt39MvTf33GjVDheV2XtdPj0vAeXL44Qu7y4fW3RlrJhCvbj+/aUqJ3pg9EukfO36e5PChcEjt0ywX5qQq/RynhiXrtTFi+RdbfrnsC/kA1Qf0RkuCZLRnNRkZzvKbAkpGOF+PCrFrVuZUEVjVx3XiZGfNAIbasfifmdY+evJ0Lu3U/vbf1iY9s7QdLq0LD1VpFuoshASTObWgsV0w5jVkQrwTKINTee4UFhYG/Y5exFFRewr5mSKoHW0p6eKl4s9bAUHZonP5B3Dn3Q6JqsgM0W++pC7iCc3tGNk0x6VfX10aYK1Ewt+qVus4OcoiXKSCsg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=irondevice.com; dmarc=pass action=none header.from=irondevice.com; dkim=pass header.d=irondevice.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=irondevice.com; Received: from SL2P216MB2337.KORP216.PROD.OUTLOOK.COM (2603:1096:101:14c::11) by SE1P216MB2218.KORP216.PROD.OUTLOOK.COM (2603:1096:101:15f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.22; Tue, 13 Aug 2024 02:54:50 +0000 Received: from SL2P216MB2337.KORP216.PROD.OUTLOOK.COM ([fe80::7e8d:9550:c46b:2756]) by SL2P216MB2337.KORP216.PROD.OUTLOOK.COM ([fe80::7e8d:9550:c46b:2756%3]) with mapi id 15.20.7849.021; Tue, 13 Aug 2024 02:54:50 +0000 From: Kiseok Jo To: Kiseok Jo , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] ASoC: sma1307: Add bindings for Iron Device SMA1307 amplifier Date: Tue, 13 Aug 2024 11:54:36 +0900 Message-Id: <20240813025436.52410-3-kiseok.jo@irondevice.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240813025436.52410-1-kiseok.jo@irondevice.com> References: <20240813025436.52410-1-kiseok.jo@irondevice.com> X-ClientProxiedBy: SE2P216CA0024.KORP216.PROD.OUTLOOK.COM (2603:1096:101:114::14) To SL2P216MB2337.KORP216.PROD.OUTLOOK.COM (2603:1096:101:14c::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SL2P216MB2337:EE_|SE1P216MB2218:EE_ X-MS-Office365-Filtering-Correlation-Id: 42a22444-4db7-4db0-7deb-08dcbb434caa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: xtS+SV6ZemCLJQn9+y6VkdqeN/97KraLTw9eFlky3Xh4fR9/sqSvc8O1tZCoXcouvZvWd/AR8FwCjfdWIjnxxdJbDNFHcoarWiUuncRAVFj2KF/g3ks7KMYWQcnBerjJ9uaskTCmVvZaU4P06rPG2Uku5vAyWF9RRZQBe09lTYHqWOVTiUObsBhDnn+/0cBqS2OdMWDTIlHbd9G89OVVvojwe0+Y+mmsAsIR+cMbdM+FhW3fCSH1IY7f1EElflK2U5x56WSi5PU8Tvgf4azRi/vHoF+YdoXkJ8uDSisWM1/krYnuXHVqIk1OOAhYv0CCs6esIU6+kGmS33btGLX+qYzHc93PZzE3wO9tslECmVeG0PKDLru7jpBe93CqQUVRo5/C14B4UwalnW7ijLimC0z4d6wmr9ZKh3PNyUcNusKRRSjseXYN79Na/06w5JdT7FwMAsPcOip6p1TG/HVHu1gq7u92cfmvAXj6XdXyws1EeHwU4M45V88QxYOeNzwd+bcIIStDbGi7De8rRP8D39N+doxRT+Qdepn6zoA5P7uCrJ4BaJ+M2CoXKEsrmb7Oenc64edHv620hkjHGQOez9UaG7/i0wYBICdd2PpQf6h3dma1WGZSrOuzGq6mq4OtgI9iAcGzJIufQ4BYzOGNgWLtfx0a4ncfGavKJwDzfvMbvA6TAKQxNNJgdrKQ7iU2yn6b2Fu5uBu6lUhLgy256BW7DSF8yeSnTjJoAi1QsAtfQTLBeaUY+hRPVTDqIt3EmpsE8KvWntrveGhsZ222rAg8SSrRQnxODPzJ4uzrBbl8AAchnuUREZo2S0PNcp2aPtKH2QS1uG6UanzO0+Ufcw3dWbDKG5NwVB3pQRxRXKAbvewqajBnNd9huf7aWzUGxCDjCw2OHT0PZAqbJLTYog3me23Arw57vTsVGCQGUrSXOVLvCUKPqhaWF9UVd9UxVV8lDPuI9gtgVVEPMEhweupfGFI8p8vCRxEj15fUrUV3airSNs04XeLg3e8yTzY6TlBcU3a29W7JpzgWbRCCb0BBG3UA6H2VHtcrKknfAa9JEipV2m+KXoMe6z416j3mTsFRMYdQHOmF+jdLIAK3hRNrs8Fs5/NPDV8yPv4WLZOuuQZjYLWu+3+2KfozydqYDfBqo5UrRjwaz2zfI5a4K1RTQEM8oXNK1oKOGJFEiMYeVgk6AR3C7/c3SOKqUvOH6KIBpL1O4pCQRdDMOE9r6gxz4tOSTSD7Z7TNJ7mRQNUlOXxSkQpANvSFQMGUwZSvrslmPeAyhkXQzKcECcZkYbfYXdCCYsNxTGr7kWL3ZdjHbtU69Rhz0MQlK0bd4E/uM13qsWCf08a48F/5UkjuBdE4b6FKYtMBPcJjiAQywns= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SL2P216MB2337.KORP216.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(52116014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: krdTN0/UyTUiBlqBfDykylJWv6f51DY6WV9l2IRNzCaeU6RTt4jculp83CYJ8FloriBxAG+vCaua1Ja0yBbJe/iBnWZnWhwCR2jwhsKKGUWdyre3ysyO0VrU7A379wfLwjl89aQB+8e3HvFLSwY6IDOM51FeXotwPAr6y996G1xd3VDFYIJZVKYB8kCUeZsv4iPcok1gWTB0oL3do82tb5p4cSw5x1XbdDORQzOjVdhlPRmgu00TKY29fDCsZzCAV8eCKAeJbH6QSZ1lyVB7zegcNMajeJRx2/k5V871vyCcXnUVb+K353ltk26UspXKjtuC87EanPMC/bvpOUBnrT2hjU+iKwNTfznr0USyBoXP3O5Tg0iJhdU9bV9q+UWzQhp1KcaryUXW+svr+n7HYeF7rNJk+F7IyqNJsk/ZrkgGPLpINAiH+Lq94HCFAUELV4/ops/4DF21Bf5l+i5FrlJyPLM0j2nbXuk4gOf7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ne+jY/ZYxKVJ4FiONougaamb/RkgVo2xLph/rY/ X-OriginatorOrg: irondevice.com X-MS-Exchange-CrossTenant-Network-Message-Id: 42a22444-4db7-4db0-7deb-08dcbb434caa X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB2337.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2024 02:54:50.4024 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b4849faa-3337-494e-a76a-cb25a3b3d7d1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +ve8ITUTxpw4EknfQ3szpWlftHZzdmAx51Qci4Jt/ES8ktFIx0wgR4XI+gtf4tzn/Y0rgQQbBNfTssfaVkHw7FHwL6Gsp+MyPpzz7sP191w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SE1P216MB2218 Signed-off-by: Kiseok Jo --- .../bindings/sound/irondevice,sma1307.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/irondevice,sma1307.yaml diff --git a/Documentation/devicetree/bindings/sound/irondevice,sma1307.yaml b/Documentation/devicetree/bindings/sound/irondevice,sma1307.yaml new file mode 100644 index 000000000000..a2bcbdc3444e --- /dev/null +++ b/Documentation/devicetree/bindings/sound/irondevice,sma1307.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/irondevice,sma1307.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Iron Device SMA1307 Audio Amplifier + +maintainers: + - Kiseok Jo + +description: + SMA1307 boosted digital speaker amplifier + with feedback-loop. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - irondevice,sma1307a-w + - irondevice,sma1307a-f + - irondevice,sma1307aq-f + description: + It is divided according to the package. + The WLCSP packages are denoted with 'w', and the QFN packages are denoted + with 'f'. If a 'q' is added, it indicated the product is AEC-Q100 + qualified for automotive applications. + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + description: + only in sma1307 + + '#sound-dai-cells': + const: 1 + + use-binary: + description: + whether to use binary files for device settings. + +required: + - compatible + - reg + - '#sound-dai-cells' + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + amplifier@1e { + compatible = "irondevice,sma1307a-w"; + reg = <0x1e>; + #sound-dai-cells = <1>; + interrupt-parent = <&gpio>; + interrupts = <4 0>; + }; + };