From patchwork Wed Aug 17 03:29:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ki-Seok Jo X-Patchwork-Id: 12945855 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9AA9CC25B08 for ; Wed, 17 Aug 2022 13:07:38 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id CE1861660; Wed, 17 Aug 2022 15:06:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz CE1861660 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1660741656; bh=SELSAZIj5D6LBV5h8mvIzy3TzXLJV9/f3XbMQ/WD6VU=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ZTrwqa5UW3zhb34NfWgebXm22RcRL485mQu4GV7Y3CVQKm+xmo49DZN9yS0jfF7fE S5Aq2Eu4TJaC3VEzgCQdfwjvuQGd+4WvNOhi/2cX0+eFxeReQLZUR9D94Z/rD05g1b asxD84rzGZf2y+UliSkgPlY+njtfPqo8Dbl4HmY4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 5077BF802D2; Wed, 17 Aug 2022 15:06:20 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6CDB6F802D2; Wed, 17 Aug 2022 05:31:45 +0200 (CEST) Received: from KOR01-PS2-obe.outbound.protection.outlook.com (mail-ps2kor01on2081.outbound.protection.outlook.com [40.107.128.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 19171F80088 for ; Wed, 17 Aug 2022 05:31:38 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 19171F80088 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mgR2iP/qoQeaVWw8UvsKkAZbnKh0gYDjZWJMEPI7MWT3o0RiYxc3aomQ/Bga8FW3LkVIqVuu849VP46UlHtEMXdLrzPQZMBiKZuXxDXMmlBR6UJeinWie9MNNmDuSFJnl1PccBP3Z8xhda8Cr1Tt1v1lqiICW5jVA18fPg/u71XkGOvM+vyi20ZBwSnZXUEsBPu7qVaS2ywniMNUK133Cx+U6GuHh4cnzqhFnGUV4vyqbrHsbTfYNyhkUeosJEnsgfsWR5sjp1Z5GEdk0E9BK8ozwSZPfGoLDYtF/c0SxNSnJWX8HVfZNYKIkq1bmVMGFYGvKrMHrZqdAEXqX/+8kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=NxikyX/TMkwlZnGybY5kruB6Ic6bGwEawMHsR/fB5nc=; b=Ix338l5lwPp648JEvPB9VOzrVWrXCtETOM9Kcd5eoS4bXp3T4t4E7TTaZjs2f1W5lMRUSZNOoPxVVmNpp5mWPkPjlEzdzQbcuRtB4DPEgEr8nltr14s0CaQ6bsqhtu+n/4YCdjfflliwvdJtTdeeRe+mwoPvc7ABMUOd+A6bG6sKuE7wXS40bp6U4VYe09KIH4l5fR/cye0ZbJEjimGYux/GrhOk8k72aOWC6A+ps76UxMWYOD7ZQwz022lJpEFgeciPhUaKxsrHbX6o7ayTubzG9mRifC/so53GIkptGLEHQ6XGWyl7r8JzYksgjiRv0uNohSOL0cugu17My/ZkPw== 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 SLXP216MB0077.KORP216.PROD.OUTLOOK.COM (2603:1096:100:7::23) by SL2P216MB0633.KORP216.PROD.OUTLOOK.COM (2603:1096:100:21::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.16; Wed, 17 Aug 2022 03:31:34 +0000 Received: from SLXP216MB0077.KORP216.PROD.OUTLOOK.COM ([fe80::113f:874d:449c:f9bc]) by SLXP216MB0077.KORP216.PROD.OUTLOOK.COM ([fe80::113f:874d:449c:f9bc%6]) with mapi id 15.20.5525.011; Wed, 17 Aug 2022 03:31:34 +0000 From: Kiseok Jo To: Gyuhwa Park , Mark Brown Subject: [PATCH 2/2] ASoC: dt-bindings: sma1303: Iron Device SMA1303 Amp Date: Wed, 17 Aug 2022 12:29:38 +0900 Message-Id: <20220817032938.2659-3-kiseok.jo@irondevice.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220817032938.2659-1-kiseok.jo@irondevice.com> References: <20220817032938.2659-1-kiseok.jo@irondevice.com> X-ClientProxiedBy: SL2P216CA0226.KORP216.PROD.OUTLOOK.COM (2603:1096:101:18::13) To SLXP216MB0077.KORP216.PROD.OUTLOOK.COM (2603:1096:100:7::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 52bbf14d-d986-4aac-5e32-08da8000fbbb X-MS-TrafficTypeDiagnostic: SL2P216MB0633:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: l5Y3vikZdwVkzwdKDNttzODARPE4Ny/sSQzAz323uydlJ26pAjUgb+4ZeNq0W2rFvcIgGmGb5mk+uWslm3/pQMPZEBrCscR1FNI5qpQ1OhqQuvf6frdtLCbAUlBCzP3zJEthw4vnxacRMM94Q51C4v8IijF8WI/IwjDc3cg84Im2m7UXexc7uEF6i8/U5VrHBT1L1eiGvVD58mGkOyBeUz9ZujdwFf3M595Tm2B0Gh8cnJxwJK32GnLx4d2FGL3I8kmMaBjwiQ13sv5Amd6LJ9Sotute/0OCbDwNn5YTxnt6vQHVqMi/sn5jFlxdzoDPfb+VLaHqTH3L7wQnTzErzWmDCU1+2FFgOiG4skDkKFh5S/MzX4ahqzZqa3UAuJ18UmofNdhtcMOKi4ti+/IVz8B7P7u506nJFh/8AKn321A/EAzdyUrPgARQhitOv9mXw0NdzSnDGvzkAY52UhzH6ZDDLVYhlw07jgf0S33riSzgIAcS4H8EEuaVjjzwh/R7/39N1StGgo0Mmw2HeDk7s7X72HrzLOdzGH1rvyektrCjPnjdpCAZGnFHoiLgym9HmtwS+RFYeo5lQocDk9ZrdQhQt3JVL5tCmjeEioI61gkFuxf7yhRka0XCsCE5ykpLDPs+zJu0e8PvhuiwuEi0vK9VQbR4n4+TRW+ftJ/Wu8iN3XsttdRwldlkokp5cGk6tQrjxflsTxqLww5I7yzWeZt7yIAkhp0+AaTeVDVtYt9qRSinN6r9y7Rranqupsl0Yc9Fx3R8XYHAcFTTkoP03rzWbur5U9DWQoeLnnZHaqO5gDbi85apGQ/Hcgo34lMtjdxxKP+JRQzsDAMtyP0SZQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SLXP216MB0077.KORP216.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230016)(346002)(39830400003)(366004)(396003)(376002)(136003)(54906003)(4326008)(66476007)(8676002)(66946007)(966005)(8936002)(44832011)(5660300002)(41300700001)(66556008)(110136005)(6512007)(6486002)(186003)(107886003)(6506007)(2906002)(1076003)(36756003)(26005)(2616005)(52116002)(86362001)(38350700002)(478600001)(316002)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2iiSO/2j/T1TnlYm9Hv09JweEwWysF1j8Q5r5F8Kb398w4TRn/R+0DTJZRD0urQH4GlJCwwxomzj6itf3igIzGhPICxqLbPzxcIF+ECO1TNEMGUYw27VplUcIn3cedGmJOTBYoAlJNa5BjqKvU8Qr8wpb+EarAluG6ePBXz/LjRSXhz/4cMfSfVJYzFvgIYFrbA7N9Z2Me9h7sCf9yByPBdocaj65dvZTK2QXYhqHhe5XccX/wzenvVgoMTLzXnYdoqEhSAtnQNUH+Yj7KX9wbqqphuRrlFw/uF+R+VIB7pZFFsBWAO2n9/hpI5J0yFK/V9osWSOu3Uu5QBftnQDb7nJ9m/g72OdjL6kTmrg0BptkHLpLInib7nPfIWktoy3UJGfUvX72kwkAL8tG4RN5ngsF4L9riWb1v7/r8fmoXPhTS6smhGGKIQHBzd6oo6tG5rG1Pk/+dcu1Yb62aeilz3qZ61rLkMN8gPVDSlLVawNEyyu1FLHGMI/4KwF/Fii9MmFUCl71ChP4TuaXrRYIBA8e/AQbyiPKq0BnO70BaXI/nJdiwA2t9LVJCWvI40AeOupdY7qRXuYlx1ylGsrS/CWD8OYWLo9QfnFebt3ETRPzHWUiYIvWf5y7P03QEsnqVVmO1S9npZ9/2l18pdo8mdnvXqg/M1CpbJrlt3tSjChfHX1pTXGIX1hpvP1uAy0F/DG0OjtY+XW+bde+wE8meBQWzCnPCJY/88T/OIp0qgNlJoigHjXyFQX0KhzXLVIznblCFtuJstIDNsxak6qGpxuG5D5frLJkrbfwvBEFxkgP/QvuobcmYW+jQnZ1vdW2mWKuMko5upC2xLD1jgoA3CfiKXq7Nr7PJpAuujaTgmqAMJOPNGp3cAj3QFSgVUYneI/wY1qr1DjP2KdUtbUPVJFJELv1g8ixqNUH+v/hLhd0yq3UXVabECc3SLI6B8Up72x1/d+nFx799uBx3BEnedHDM+ymO35s7inkwNUNXnJBsTlutJLmkQkJLf913jtX4NWPQ+kG+kTAubkgJ6V4dVIXHxuyjDuNxwRIPxLSUZpK4TAKtKMVxE0F+TEz0ELrKMUoulb0DlUNRabpGrX1ccD8qXOFj7chKWCoHGnPcK5KNkxGLrcGuSZ0si5cLz4DBlQHDwVunzYN8lRtOtL5AgW1IFDO9JyupMjc/A4v/Sx22W89pzfCrghwVwWf8YnQXHe6dYWcZi9aqfgFqw1Yb/cbpLl0TSge/axeM3U2msznVAHEEU6mdjGr6Ividbx5gmWyTuIf72NFEAYZLzFl7rsugRlOMnSR4ZzCRbMvOlTN8RoyTdKjTTI7YzhmdIYRPoTv99oddqxwPNSoIqPQRSlI8PpYDjxhAw5h0zGBizdlITqvvBHYbraVsLhkJn3/LBLq8N6x+JXzfaBY3cj/aw9fHnYAvYbjSdBwen1b+tYj4ItdxM0Q4X80FL4eMQMTaHBZ+BYMciWP/buCnYUfSPU8lek7X1BUkAWpDsdnYXCjXh+xY+V7Afe2rYwDYcZf6XhcjzdP+Qe8SD3698d2A23X363dguwLYpWvM7G3neGybnDraYrin+Sv7hBWszo X-OriginatorOrg: irondevice.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52bbf14d-d986-4aac-5e32-08da8000fbbb X-MS-Exchange-CrossTenant-AuthSource: SLXP216MB0077.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2022 03:31:33.9624 (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: kAbj/MQC4mw0GoI6EEKRqTL5we97mb5LJxNSMO6rCrdctaQ+64AayJPZfafRSsxZmv8BmZ47lWdjexMdpoi1k20h9MlN4SxP44cVCDjsX2c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SL2P216MB0633 X-Mailman-Approved-At: Wed, 17 Aug 2022 15:06:17 +0200 Cc: alsa-devel@alsa-project.org, Suk-Min Kang , Kiseok Jo X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" This adds the schema binding for the Iron Device SMA1303 amplifier. Signed-off-by: Kiseok Jo --- .../bindings/sound/irondevice,sma1303.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml diff --git a/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml b/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml new file mode 100644 index 000000000000..e11e74d367c0 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/irondevice,sma1303.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Iron Device SMA1303 Audio Amplifier + +maintainers: + - Kiseok Jo + +description: + SMA1303 digital class-D audio amplifier with an integrated boost converter. + +allOf: + - $ref: name-prefix.yaml# + +properties: + compatible: + const: irondevice,sma1303 + + reg: + description: + I2C address of the amplifier. See the datasheet for possible values. + + init-vol: + description: + Initial speaker volume level. + If specified, the driver will assert speaker volume value at probe time. + If not, default hardcoded value(0x30 / 0dB) was reflected. + $ref: "/schemas/types.yaml#/definitions/uint32" + minimum: 0 + maximum: 255 + default: 49 + + stereo-two-chip: + description: + Stereo for two chip solution + +required: + - compatible + - reg + +additionalProperties: true + +examples: + - | + #include + i2c_bus { + sma1303_amp: sma1303@1e { + compatible = "irondevice,sma1303"; + reg = <0x1e>; + init-vol = <0x31>; + stereo-two-chip; + }; + }; \ No newline at end of file