From patchwork Tue Aug 13 05:26:09 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: 13761329 Received: from SEVP216CU002.outbound.protection.outlook.com (mail-koreacentralazon11022115.outbound.protection.outlook.com [40.107.43.115]) (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 5775E2374E; Tue, 13 Aug 2024 05:26:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.43.115 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723526785; cv=fail; b=uQDJjtFRjEaSVpxonpVTWGpOpqiW4sYAYakgigdwccMAbMnMHBrB/ys84zKfXl6/5ZSmDhZ3mHnHZ/UyfvS6u8mYo763SZmibK1l/4a8+6iZ+VeqC4cgJvg4UmUpS30z6xbDU67BcrrL8UBNLBc+x9hHePTqfk0qNQoUsFKzPro= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723526785; c=relaxed/simple; bh=3Tj1w4ooku83Mesl3Okf5kYq+yLizpm9hJiF6PY/N1Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=d/p8XwONiJO1T1EFykzVGjXQlnYbai+B4nmJziieXXZmEn37mrFhp4030E5wuzhn008PtytEpzmbg8zAUf1uLkyujVZB+5MLiloY9IF1oRcsGRT7zS1IDmw81d+ZA+L5lU6yz+cnMZPAzhvbpgYDga3U4CD49YY7wKNtEGGQmYA= 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.43.115 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=pqhWIoF0YwRGy+WbggFBx2TjrSDTrIYl4VhboEpm1Rfy/KAO7Lp+uwa1OCU80zMo/A16dRYyHzttA0f7tfHYQPm63tiDe9ourI7UDPBB6JBO7iZhNJjZSYmw8FSj5c1C4O1SSvbL3tlQFg5nN0DiorNR6lud3UkXJrgQaz5xq82L9ResBmq00zX0ymKPnbsvPAIWGU210+zf4ZvHRhwlWaboVRh1EIGBEfUSg+7V0qJ7qZSJBuhy40LT0HYoUWjlW/BV2wopmwxcQhmhXWF/d357MStSuHGnz+fmr75gP5HS1w7bsSIG6l5mjr/roqMgPt+HaDqsd4LmgtSu65t2FQ== 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=EmANMxRQwiDw7QLnQpNfsZnLU6cS/HUSvpCH8WxpXYU=; b=wEXEgfnxvC3VztH8O/97cuKscQ7UQ9zuLLTCSM+KP5MOWMu3iioER/NfwKzJ8etr9Y5Zl0JAYDRK6+y0HE+YV4ZFo8opRRFjGKo2LZLOx3ATfaXB7jS5NOBcfQf33aEfM61RHSymntk0yWi9b0mLFx/RRUSVr16URFBNOjr0e4Ej0tD8jN+fkaEsgWHiivK75UV4MGBW4peBlNItxwwqMNO/S0eUxy4/kB2Fs0MJL+Brl8S+jVEGazukr7yis7/X2dYBVlyyYd87NbLoXAVLAHssG6Sk2pZ6cORz/KU++fUCvYbcZvoEhtJfKnSBNaVig6MtCXMWusK3dMWsHLz1pA== 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 PU4P216MB2027.KORP216.PROD.OUTLOOK.COM (2603:1096:301:130::8) 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 05:26:20 +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 05:26:20 +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 14:26:09 +0900 Message-Id: <20240813052609.56527-3-kiseok.jo@irondevice.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240813052609.56527-1-kiseok.jo@irondevice.com> References: <20240813052609.56527-1-kiseok.jo@irondevice.com> X-ClientProxiedBy: SL2P216CA0078.KORP216.PROD.OUTLOOK.COM (2603:1096:101:2::11) 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_|PU4P216MB2027:EE_ X-MS-Office365-Filtering-Correlation-Id: c382f4b2-6de8-467c-6c97-08dcbb5876a9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0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oIgCmSSMkCApyIBJcmvYNZOagWii0eUrLiyv9mLFiJWgn89iOwQpALq0cjyUlaY0YbjZk9C7KWfIwdf6SyqRsq4z6wHjvI6H5Pz62PqltUhEOz+He706hmewuxTal3dKd88VCTia4+WorAIldqT1+hJfjLYIyEOs4DuvoE4V9ERAHRA7jtj6b3b/4KX0IFaWc0Hsy7S9L6YvAlXheKUsBeIcMHDK/xTKrSsQxEojX87+cVDyLD4g26VlYVhri6QW/QiltnuTTeHB26LYqkZN/G9R9qR/ynEpWlpMSVNBrRz02tjgz8Q844KykeOLNgRu+PWEzivYiY9grJ5HXK3npxkVeUZ9WNtH9rSnWfMFnbOCq4= 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)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2XSmHjFpnXuq9TzD/oJXQJ/At977oDJ25JQ/ovZgjtRoGCcok7gfccVHjMR2TmiObsxkzzIc2gDYaDgXg47mI3ZjKW5xW0cd6zXceZScWbA/UX7udyXHtw1fuVhEWkYaYm2XtIaXvCOmIoYZyh6CSig4JbdnIJtsrRxt1FQCjtfRWSz5UXTxzIfNE87Qe4Bd2fKKqAlgKOdMqWU2D6KcVSO8nJkCIV9umDkcwx59jWHib32ZIgHXf6JRXTTYDgR5+SMe18XtcJaVbzLAXGDcsE8b2eT+2iAdlbRUiDF1AAhnbPn+GTEMdNQrwqNzT26VOUgllbaZsA4/I1vP7nhxlicHy/laLn0mvLsBC3NwBOaE7RhGIc2iOUqYSmbkki/DDLnmjsZIQmajQh2A8l456L1xUaECgYZnF1LYFW3eMpeNLmmUQEfH2Pr2cvDdicXAP9JksgMsLNUF2hwu+uw+nR2Fau5A3fGWZItKbf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kFDrZuWQesQMWoAwQIsUO8eEhecUVGL0a7Ds+tO X-OriginatorOrg: irondevice.com X-MS-Exchange-CrossTenant-Network-Message-Id: c382f4b2-6de8-467c-6c97-08dcbb5876a9 X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB2337.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2024 05:26:20.2752 (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: ePY8b3qSBPNSlY01bD4GHdHe/Rln8tZEaJT15JOJ1VnDBOl7omu7G2Qe61XXna6uJRapPJSWBW+rC6Y0ysS7jBmV9lWcYWFgRMLEgSEfo44= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU4P216MB2027 Signed-off-by: Kiseok Jo --- .../bindings/sound/irondevice,sma1307.yaml | 67 +++++++++++++++++++ 1 file changed, 67 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..62625cf35c2a --- /dev/null +++ b/Documentation/devicetree/bindings/sound/irondevice,sma1307.yaml @@ -0,0 +1,67 @@ +# 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: + type: boolean + 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>; + }; + };