From patchwork Wed Nov 6 00:46:20 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: 13863790 Received: from PUWP216CU001.outbound.protection.outlook.com (mail-koreasouthazon11020112.outbound.protection.outlook.com [52.101.156.112]) (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 D16BD13A26F; Wed, 6 Nov 2024 00:47:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.156.112 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730854025; cv=fail; b=WnSJBhZqENrxhx/D5IBDr3eIGaNZsY93XV/84nhcRFbR3URxiYfXdh9yfcCbswqZMTiMlG7TxQHz1sYAIsELHjm8TYLeynI6Yhkp2w69yftM1pmJKHOryecs6ALEhXnPcqJmtTXvvMJf+kL66dUvFzZ2gqA6QtcrEaeKGceVNUY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730854025; c=relaxed/simple; bh=WFMDWfOt0EMb/3fsmlfMaqhE5vv9WE6sXUzqAMfZ3zc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=UyBGvFiNfbKGPTIf/m1zltHKVqzEwMpkH4QbDZHnQkNDhCgcHofnmGZy/N/6mbBNPvl18s8hggrgEe+5SQne9yhfEe81v+DqoiezneI9Hmqfm4zlM62K9q1ryFo8ttMi44bpQHB4EV3Jox2wH5TpxPs2dy/Lt8HiduUY52SkEPk= 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=52.101.156.112 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=AUuApikSLeTpRzypyapYWCfXluv4DKwnXauZuYCztUMo+M47Bc5sC0gvwK+oGVOYjXlbNCYPrOu2ipnhhG9cWJBm9wMi0KOZLrWlmKyq6noPpJ8yKfsVChHPqkRE4oogLQNEiIRMPgvHlasROp3WhJEETyEz6ioYVdgb+4kgpgGN3Zy2EymRIozUhYhFQdixQSMPMwyDl1zlCo3fJMOXHJqQntPFB5G1D10gkKLuGEXIYH35xZjTbpkWtzXXpTkWqnpVE12frZZrhUSWpSxL+tHJCN2YNunaC3KHr1O+XBf3SOMuekynN02B8i417EmYyfJhm7QVaO2id44dWkp7zQ== 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=o8nA7sqPIkQh/pTeKZrft/rO8oquEEI0lZrzPLU278M=; b=AtEP+2SFoR8qoJ+OQcl+2bV4jAaVZD0pQ9lV5ulx1vDYuPNaOdlNfgHCoTc+P9jmYZgw2GUIVdJiHLKWordowxQZ88AgtmiBr8KW7fHiUOfGs7orqhAl5j/MKmCFhF/7vpvwk6VXL/kAeP3A2qvGhK7UYkIJNA63LcZio+TcqsQPYK8WbAAjnp6SFFsk4E00yR7pNPHLD0eK1qqCeUt5nf6kEzxlhNRUPiGPpdbJhnfl9xJG5cXSwIRwd93ur5Kv9swxaOa/XoyLk3GQyjWthqTj3xZrBQFS/mD1FhZThSaCspKNyIQbhUtUz1F84+TeTOAmZXLgITOSfoIYCDbs1w== 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 SE2P216MB1932.KORP216.PROD.OUTLOOK.COM (2603:1096:101:fa::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19; Wed, 6 Nov 2024 00:47:00 +0000 Received: from SL2P216MB2337.KORP216.PROD.OUTLOOK.COM ([fe80::7e8d:9550:c46b:2756]) by SL2P216MB2337.KORP216.PROD.OUTLOOK.COM ([fe80::7e8d:9550:c46b:2756%4]) with mapi id 15.20.8114.031; Wed, 6 Nov 2024 00:47:00 +0000 From: Kiseok Jo To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kiseok Jo Subject: [PATCH v4 1/2] This adds the schema binding for the Iron Device SMA1307 Amp Date: Wed, 6 Nov 2024 09:46:20 +0900 Message-Id: <20241106004621.7069-2-kiseok.jo@irondevice.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241106004621.7069-1-kiseok.jo@irondevice.com> References: <20241106004621.7069-1-kiseok.jo@irondevice.com> X-ClientProxiedBy: SL2P216CA0139.KORP216.PROD.OUTLOOK.COM (2603:1096:101:1::18) 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_|SE2P216MB1932:EE_ X-MS-Office365-Filtering-Correlation-Id: 177a9034-0758-4ca9-44d6-08dcfdfc85f1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|7416014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: ENZNeC0d3M9YUZuWpaoC5+CfBQKUABFVjG1ykQf+SmMiXUUjVcZx2It7Rpll2mgMQNsMXuejU5Pi7Tz3w8rmhuGatqZ2cbnaROxRTPn/6EryQopaSpVf1AOPci5lEH2QPxyWSJJJebtkct1w8mh/Sy1ukfpbUWUgoRQo5By0kB11HXBP04dS4n1ZL5CwIy6p+MVvT043FLcmr+wPp1LsMdGBtRAMv8meFnDxWbWsNHf6cGGxA0FK1b4DrQfRPkWTHt82dsooaWiiEOuOOaVcpgFVsI+GSJybOB9oyxoKF8ISoTjRZhqvtsH7+4XXPaRtJ1JJVaWtK+hXuRyhyNoD0cMeRCeXrrO+IAKLFZskOJvgeuzShXIWAd2iWP3rcaIG3QD05tRMU08sWhR+CZjOrPhGDX0cpE/mvZ1dBxVbfIilJgTuwRa078GbJbMjXi4NQTC2/tgmXfWYY3leymo+q78kERTB6/4U9eCKMWuosflfTGPDVo9v7TUf5mS7WNCHffA+JEZGXF4dB296DwV47MgiTBnzUjsfM0j4LAgnSTw06PzjfeICdHibqdxmdJ2VnxuFFBJsCrvxv5NlorCB7kozJ7SQM8JJNj6vfruecYExNNN7NfkII+nNqvSq94QkbaN2Sluw/PzmX8Y976Lp6O94kH/w4S1jBsz2YFnwefUWoChKLmhwVJNz/wv25BqCSXJf2/3QEovuk+zGe9OyHT+MOiSa5IdcLJeSkt3v/07Or6m5ckLGMqaq65TaRp9s6kZt+QnxSbZzFse/WSSH/y/m8EXIPLwCmJxs0RRuAqdSyExV6mT6DYhWsasWrHOkicpBhrIbPPrcrewxmrzLCJW/taorGKPldBTJOpPvXvwvr8uIN0QwLesf5FGnqvNBFtUEY6hJXe1amwOuJznzuW1E6eZxzdFD6NPzx5Qh/50j5Ltnc02FzHaCj666M9W/WfrDJ9IGOksx+xCLfzQss3fbYsdliCj9XdYs5qaPztFTRZ5AcR/P+wGZuHLKabzhmMtoA1Jp5jAFHSfICp0sIJcS59a1gfH2tbmZEAx/qHdIz9q8pLBq0WgXBMad9Gf5zYDfDfukBaL5RQyfhKt/gmdjtyVa04VuClgTVNM/HC013WMaMNP9/XzafMJqhdeTtO8jdfBJJGOtlSe/DS7TcEjHhK6KkVTrxiwC4gVI7Od7+lFV3DND/7o/TocPATbuRXFYhciMx1p4GNVqlRZN/YRe+PxjmZOw0V8+GsDYjLEdIUN2ZiBCr59F1c/xnJaV38WgRbydjEbACSYwQrHF6BmJ9IBtBttMVWQiIQPDFotbNsiW4DjR3XxjmTOpwUnE 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)(1800799024)(366016)(376014)(7416014)(52116014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Ur2lZGe7gbbGFTNX8h0CnhzmaQhQB/F2Gd4JtptgxgPk0XellArpvbbzL1d3NWLk5SJm86u5O/z30PnHEFU8uvdiB67L6MQavK1elxUEPBlgVwFCy1XgcwZcwpxw9n1/azuKxgUMA/g6Az/gKeuqWMcMN1YOcDuAd6TWSAUQsKizkFrXvH+71kWoxYYbwk0we6PJMJk3/B9cuqgsfLCxerVDItXVDW7dF97iZirB7xt6kQwmOfS7XgCLRCx6eErIi3sAE1OFdd7G8I6qFUIZlpyWfOAceVezSjk9JD8iyWBqe0s/2bUwCs5CFMvpFGfsKJnXpAtTDpIqIe0pJT2z0fv9aJzcP7wjIcKZXO92Uh7IFSoafa/+vfQ/uSBgPH1ECglG0MNC1mk6Q28khtbgNMqwTa7dPeYvYOHzjsvowmaU3DOooeqf4yUOe1TtIve2tSGmjYMfJBe+d4G/UtZCCCiHTNvWiaI2d7OpwOzef8QDSFYTE905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tMCCE3NJxjurgxDDaI4hgO X-OriginatorOrg: irondevice.com X-MS-Exchange-CrossTenant-Network-Message-Id: 177a9034-0758-4ca9-44d6-08dcfdfc85f1 X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB2337.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2024 00:47:00.1579 (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: LRA+CSMdp4nLb9xwf2nDjp7iEJ8xJo2AKW5B0nVUxwIn1ewbN9IW3ChNeB5MN4Vh8xGVxM9iN1oH+wHBoNTQW1uGPtnbbhSqHjFL7tNCugY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SE2P216MB1932 Signed-off-by: Kiseok Jo --- v3 -> v4 - Modify to fit the character-per-line format v2 -> v3 - Remove ABI documents due to the removal of sysfs in the driver v1 -> v2 - Add ABI documents for sysfs - Remove the interrupt property as it is no longer used .../bindings/sound/irondevice,sma1307.yaml | 53 +++++++++++++++++++ 1 file changed, 53 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 000000000..1e2a038d0 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/irondevice,sma1307.yaml @@ -0,0 +1,53 @@ +# 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 + - irondevice,sma1307aq + description: + If a 'q' is added, it indicated the product is AEC-Q100 + qualified for automotive applications. SMA1307A supports + both WLCSP and QFN packages. However, SMA1307AQ only + supports the QFN package. + + reg: + maxItems: 1 + + '#sound-dai-cells': + const: 1 + +required: + - compatible + - reg + - '#sound-dai-cells' + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + amplifier@1e { + compatible = "irondevice,sma1307a"; + reg = <0x1e>; + #sound-dai-cells = <1>; + }; + };