Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752153AbdC1Pgq (ORCPT ); Tue, 28 Mar 2017 11:36:46 -0400 Received: from mail-cys01nam02on0135.outbound.protection.outlook.com ([104.47.37.135]:45380 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751353AbdC1Pgn (ORCPT ); Tue, 28 Mar 2017 11:36:43 -0400 From: Ryans Lee To: Rob Herring CC: "lgirdwood@gmail.com" , "broonie@kernel.org" , "mark.rutland@arm.com" , "perex@perex.cz" , "tiwai@suse.com" , "kuninori.morimoto.gx@renesas.com" , "arnd@arndb.de" , "ckeepax@opensource.wolfsonmicro.com" , "lars@metafoo.de" , "bardliao@realtek.com" , "nh6z@nh6z.net" , "KCHSU0@nuvoton.com" , "axel.lin@ingics.com" , "romain.perier@collabora.com" , "petr@barix.com" , "srinivas.kandagatla@linaro.org" , "oder_chiou@realtek.com" , "Paul.Handrigan@cirrus.com" , "alsa-devel@alsa-project.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "dgreid@google.com" , "ryan.lee.maxim@gmail.com" Subject: RE: [PATCH] ASoC: Add support for Maxim Integrated MAX98927 Amplifier Thread-Topic: [PATCH] ASoC: Add support for Maxim Integrated MAX98927 Amplifier Thread-Index: AQHSoRKkERf+Q4vqhk24BeY3uVJtv6GkI8yAgAZJPSA= Date: Tue, 28 Mar 2017 15:36:02 +0000 Message-ID: References: <1489970423-29353-1-git-send-email-ryans.lee@maximintegrated.com> <20170324152613.qzvsviznhiz5f3sj@rob-hp-laptop> In-Reply-To: <20170324152613.qzvsviznhiz5f3sj@rob-hp-laptop> Accept-Language: en-US, ko-KR Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=maximintegrated.com; x-originating-ip: [172.56.17.229] x-microsoft-exchange-diagnostics: 1;BY2PR11MB0840;7:7WaWJuH906tNk3XAGUS6f6Eg2dhx9It9WBhmJ5UwO33IlouNafg7JCpiRRxzRt8reUZTs0ztoCrwaqycgpiZ1lQvGTf4/H3efhZmiUbX7XTh9mDuqwRWwuO8KmKrOJKxOli5FUKjHiIgU2CM+939sVkEb64vZSRUPEd9DrR3dxNe9A/mKRhRSgdXn+85lyed1ChAYzEwoqaCYhEhq36NXIPNcR1XOGfh4aLZfvIyS1zloVYoNDJzO6GSUMDbHhScXU5QG9zi9sXLX/3Fsw1azVtYGLuZwxqCYI9mUO+tjs09xWdGHjzAYnwYpX1QCb358SHDbyfs34/0YIOjxbrTuQ== x-ms-office365-filtering-correlation-id: c19d5560-c3b6-4117-2dbc-08d475f02479 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423062)(201703031133068);SRVR:BY2PR11MB0840; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(9452136761055)(211936372134217)(108721460000369); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040437)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(201703131423062)(201702281528062)(201703061421062)(201703061406062)(20161123560025)(20161123564025)(20161123555025)(20161123558025)(20161123562025)(6072148);SRVR:BY2PR11MB0840;BCL:0;PCL:0;RULEID:;SRVR:BY2PR11MB0840; x-forefront-prvs: 0260457E99 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39860400002)(39840400002)(39410400002)(39400400002)(39450400003)(39850400002)(24454002)(377454003)(13464003)(2900100001)(189998001)(81166006)(2950100002)(6506006)(5660300001)(7696004)(7416002)(6916009)(8676002)(305945005)(86362001)(8936002)(74316002)(25786009)(53546009)(229853002)(7736002)(8666007)(55016002)(9686003)(122556002)(3280700002)(39060400002)(54906002)(99286003)(110136004)(38730400002)(6246003)(6116002)(102836003)(3846002)(77096006)(33656002)(76176999)(54356999)(50986999)(53936002)(345774005)(2906002)(6436002)(66066001)(4326008)(3660700001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR11MB0840;H:BY2PR11MB0837.namprd11.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: maximintegrated.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2017 15:36:02.7942 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fbd909df-ea69-4788-a554-f24b7854ad03 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR11MB0840 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v2SFdV22011069 Content-Length: 3977 Lines: 97 > -----Original Message----- > From: Rob Herring [mailto:robh@kernel.org] > Sent: Friday, March 24, 2017 8:26 AM > To: Ryans Lee > Cc: lgirdwood@gmail.com; broonie@kernel.org; mark.rutland@arm.com; > perex@perex.cz; tiwai@suse.com; kuninori.morimoto.gx@renesas.com; > arnd@arndb.de; ckeepax@opensource.wolfsonmicro.com; lars@metafoo.de; > bardliao@realtek.com; nh6z@nh6z.net; KCHSU0@nuvoton.com; > axel.lin@ingics.com; romain.perier@collabora.com; petr@barix.com; > srinivas.kandagatla@linaro.org; oder_chiou@realtek.com; > Paul.Handrigan@cirrus.com; alsa-devel@alsa-project.org; > devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; > dgreid@google.com > Subject: Re: [PATCH] ASoC: Add support for Maxim Integrated MAX98927 > Amplifier > > EXTERNAL EMAIL > > > > On Mon, Mar 20, 2017 at 09:40:23AM +0900, Ryan Lee wrote: >> Signed-off-by: Ryan Lee >> --- >> Resubmit the intial version of MAX98927 driver. Added all fixes into the initial patch. >> >> .../devicetree/bindings/sound/max98927.txt | 39 + >> sound/soc/codecs/Kconfig | 5 + >> sound/soc/codecs/Makefile | 2 + >> sound/soc/codecs/max98927.c | 1040 ++++++++++++++++++++ >> sound/soc/codecs/max98927.h | 267 +++++ >> 5 files changed, 1353 insertions(+) >> create mode 100755 >> Documentation/devicetree/bindings/sound/max98927.txt >> mode change 100644 => 100755 sound/soc/codecs/Kconfig mode change >> 100644 => 100755 sound/soc/codecs/Makefile create mode 100755 >> sound/soc/codecs/max98927.c create mode 100755 >> sound/soc/codecs/max98927.h >> >> diff --git a/Documentation/devicetree/bindings/sound/max98927.txt >> b/Documentation/devicetree/bindings/sound/max98927.txt >> new file mode 100755 >> index 0000000..d610879 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/sound/max98927.txt >> @@ -0,0 +1,39 @@ >> +max98927 audio CODEC >> + >> +This device supports I2C. > > Can we combine this and the other max9892x bindings. They all look similar. They are not same but almost similar. I combined MAX98925, MAX98926 and MAX98927 bindings into MAX9892x.txt Thank you for your feedback. > >> + >> +Required properties: >> + >> + - compatible : "maxim,max98927" >> + >> + - maxim,vmon-slot-no : slot number used to send voltage >> + information > > While vendor prefix is preferred, so is using the same property names. > Either use the existing names or deprecate the old ones in favor of these. To use same property names, I kept existing names. Thanks. > >> + or in inteleave mode this will be used as >> + interleave slot. >> + This property can be set to values from 0 to 15 for slot 0 to 15. >> + Default value is 0. >> + >> + - maxim,imon-slot-no : slot number used to send current information >> + This property can be set to values from 0 to 15 for slot 0 to 15. >> + Default value is 0. >> + >> + - maxim,interleave-mode : When using two MAX98927 in a system it is >> + possible to create ADC data that that will >> + overflow the frame size. Digital Audio Interleave >> + mode provides a means to output VMON and IMON data >> + from two devices on a single DOUT line when running >> + smaller frames sizes such as 32 BCLKS per LRCLK or >> + 48 BCLKS per LRCLK. >> + This property can be set to values from 0 to 1 for off and on. >> + Default value is 0. >> + >> + - reg : the I2C address of the device for I2C >> + >> +Example: >> + >> +codec: max98927@3a { >> + compatible = "maxim,max98927"; >> + maxim,vmon-slot-no = <0>; >> + maxim,imon-slot-no = <1>; >> + maxim,interleave-mode = <0>; >> + reg = <0x3a>; >> +};