Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751151AbeACSig (ORCPT + 1 other); Wed, 3 Jan 2018 13:38:36 -0500 Received: from mail-by2nam01on0116.outbound.protection.outlook.com ([104.47.34.116]:5888 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750829AbeACSie (ORCPT ); Wed, 3 Jan 2018 13:38:34 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=RyanS.Lee@maximintegrated.com; From: Ryan Lee To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ryan.lee.maxim@gmail.com, Ryan Lee Subject: [V3 1/2] dt-bindings: Added device tree binding for max98373 amplifier Date: Wed, 3 Jan 2018 10:38:24 -0800 Message-Id: <1515004704-22182-1-git-send-email-ryans.lee@maximintegrated.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [204.17.143.20] X-ClientProxiedBy: CY1PR07CA0029.namprd07.prod.outlook.com (10.166.202.39) To CY1PR11MB0841.namprd11.prod.outlook.com (10.163.237.19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d3e5aa5-4d81-4445-60bf-08d552d9304d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603307)(7153060);SRVR:CY1PR11MB0841; X-Microsoft-Exchange-Diagnostics: 1;CY1PR11MB0841;3:t6KBwZUHzqqrBIZjNWSBOty2yIc40yOckP4cvJUt2kYt4VXKLBunW5Fj930YvswgYnH4R96shS+an/T9aM0heMbS0cdiyvd+pHMJgFiULWeTVBTighC3ImQrviDUr25mNbGL6XwG8dJdekMR15fduW6tC8qMq3sZug5b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CW/kxM/9uy6VNqSOjJ3ESv1z38WBaVnmcRDytVDfx7MUbunZfOnPLQFpTqr7xGtlRZYlwVfkq58EFABOmcFDvbQ540QTYu/afJL/jXPS81FJUeDLNt3g9lroK10Wf0HOyKJeAmDEKv6QEjljm9W8UnXlFGK72RVTOH1TeDu3PZ+DQ;4:w3EvFYHPqIgM5hv2TY4sq90uh3IzDuDu7nSrx5MeXCvLQgn9eg+Rmxdm51bH96XC8qD2RGo96p9dufUS5jNGa4Dp/qonGpn61DhmeFHQJ28NwAnzFG8szRKcHOeXq5/xC4MRaUsizar5FGSlRKGrYvPmngFVHQZLv2++1MmPyROoA+DCEv6BXELEsce1L5sTmO/wSmPPHBqJhLNg/RU+w07g/LK1nOKJh2PS2nuGF50OM0pPet5vgzQ7x7oS16QULaNRkhPHsfRledTh8fMUcYfRIyWvhtk2AFBhmgeRueCSFSryHWY9JsCptcBNR+NH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(108721460000369); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(3231023)(944501075)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041268)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011);SRVR:CY1PR11MB0841;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY1PR11MB0841; X-Forefront-PRVS: 0541031FF6 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(366004)(346002)(39380400002)(39860400002)(376002)(396003)(199004)(189003)(6486002)(8936002)(25786009)(16586007)(16526018)(69596002)(316002)(53416004)(4326008)(106356001)(50226002)(86362001)(6666003)(105586002)(6512007)(36756003)(48376002)(68736007)(53936002)(305945005)(5660300001)(66066001)(52116002)(8676002)(107886003)(2906002)(6506007)(97736004)(7736002)(50466002)(6116002)(81166006)(72206003)(3846002)(39060400002)(81156014)(478600001)(47776003)(51416003)(386003);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR11MB0841;H:ryan-ThinkPad-T430.maxim-ic.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR11MB0841;23:BKWKVsq3kCZkPBT7EWuXrDRKe1MF9EBwSOUCSsUtT?= =?us-ascii?Q?mqyFEmeSoGmarnw0MvpdRn4hmKSrK8Xm0c4OiZy2J15X28BXFKnR9W6s4qpI?= =?us-ascii?Q?9/1egvOO0zjNAfAEkJ7R0MyDUUXrz7RYOZnIfIYMHx4j1GWl1+x5iH79GyL4?= =?us-ascii?Q?Dle7jxosS7QphqUv/ZTqQXFRNUWTGElbuPFzszW0YSKWPfvlKIR/gTCVdW3M?= =?us-ascii?Q?pfItP8dTSq/ZBDURxv+SrBl8yL6oYX68QK4vL6ujYNWw63CZgaA264Tz7822?= =?us-ascii?Q?PPwW9V8+rQCX290IJIFenj1LZgemZZGLdp9qvQsOcgr2ey7qjZw5MtFoVpgV?= =?us-ascii?Q?qVh7fE5kJlYHYaNnAdmKEPCKePRY5idsZt8Lldo2rVacRf/nTJVD4tZ8n+ao?= =?us-ascii?Q?mMMmDSERTbcBUiggkN4nvthdB7k4yKLfrToIob+rntIeAVu6SaQmqWWsDC8J?= =?us-ascii?Q?1LGnOQ4vr5zSZPOHm/ITl+NnwytDgPflukt0Zqhm9iUnki0XpdqvhtGnvwvy?= =?us-ascii?Q?U4GC+zVdQEV9PB+tEvN/56Aj7TvShg82/NOfIG06kZ6McbFeR46Cp6z9ydL6?= =?us-ascii?Q?E2Z33ykXu//uOMtmSFYExBNwPZGcTeoIMVtyOr7MlRmJKZgK2FAMk1NfF48b?= =?us-ascii?Q?MjH2gW3gNYjFm/HJnzQZ0cga/7kq526GD4e2HJqAz/JoJf9uGr9CKe5xLQ9V?= =?us-ascii?Q?jI8ThK/OCvSDJdFDCflpN9dwsg6QqHRWx82QWYM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qm4aOcMWhCwkhVoOGbpptIa9l2gu/G4HUb+G2wmNHrublYmoOSrRFMX4kmxZIcjseM+XLzlZKLTpwqVHyrkIHoI634u0UyocwX5dTU=;7:HB5XdPb/pBBrChMZASJjxKwJ9lisRnAEt0IvZKQHccLdISgJd0OqhTC5b/pGt5Xak5bGT7dW1f7f8j3bNk953gMNu0+wbXK0BRFKIcgDdmJyZQIF/8dpDrlDujvQMucsAFEUhnn5HIJg+VZyLUdg6cNRekZ8ceNTcYzkyylJ975kWltHJWBmQLrEqCFXU81Ada4ScLQPJk22KGJDkQR+1quRYK9YkYFccY3P1V5AopB6ienv1FrWzpF6NpAdD/47 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: maximintegrated.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2018 18:38:31.0957 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d3e5aa5-4d81-4445-60bf-08d552d9304d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fbd909df-ea69-4788-a554-f24b7854ad03 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR11MB0841 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Signed-off-by: Ryan Lee --- Changes since v2: * Splitted dt bindings to the separated patch * Changed 'interelave-mode' device property from u32 to boolean .../devicetree/bindings/sound/max98373.txt | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/max98373.txt diff --git a/Documentation/devicetree/bindings/sound/max98373.txt b/Documentation/devicetree/bindings/sound/max98373.txt new file mode 100644 index 0000000..456cb1c --- /dev/null +++ b/Documentation/devicetree/bindings/sound/max98373.txt @@ -0,0 +1,40 @@ +Maxim Integrated MAX98373 Speaker Amplifier + +This device supports I2C. + +Required properties: + + - compatible : "maxim,max98373" + + - reg : the I2C address of the device. + +Optional properties: + + - maxim,vmon-slot-no : slot number used to send voltage information + or in inteleave mode this will be used as + interleave slot. + slot range : 0 ~ 15, Default : 0 + + - maxim,imon-slot-no : slot number used to send current information + slot range : 0 ~ 15, Default : 0 + + - maxim,spkfb-slot-no : slot number used to send speaker feedback information + slot range : 0 ~ 15, Default : 0 + + - maxim,interleave-mode : For cases where a single combined channel + for the I/V sense data is not sufficient, the device can also be configured + to share a single data output channel on alternating frames. + In this configuration, the current and voltage data will be frame interleaved + on a single output channel. + Boolean, define to enable the interleave mode, Default : false + +Example: + +codec: max98373@31 { + compatible = "maxim,max98373"; + reg = <0x31>; + maxim,vmon-slot-no = <0>; + maxim,imon-slot-no = <1>; + maxim,spkfb-slot-no = <2>; + maxim,interleave-mode; +}; -- 2.7.4