Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752227AbdCCPi1 (ORCPT ); Fri, 3 Mar 2017 10:38:27 -0500 Received: from mail-by2nam03on0109.outbound.protection.outlook.com ([104.47.42.109]:7584 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751683AbdCCPgt (ORCPT ); Fri, 3 Mar 2017 10:36:49 -0500 Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=maximintegrated.com; From: Ryan Lee To: , , , , , , , , , , , , , , , , , , , , CC: Subject: [PATCH 10/10] Added vendor prefix. Added range information Date: Fri, 3 Mar 2017 23:52:48 +0900 Message-ID: <1488552768-14901-11-git-send-email-ryans.lee@maximintegrated.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488552768-14901-1-git-send-email-ryans.lee@maximintegrated.com> References: <1488552768-14901-1-git-send-email-ryans.lee@maximintegrated.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [222.234.201.146] X-ClientProxiedBy: KL1PR02CA0031.apcprd02.prod.outlook.com (10.165.15.41) To CY4PR11MB1367.namprd11.prod.outlook.com (10.173.16.149) X-MS-Office365-Filtering-Correlation-Id: bfd04d5e-1cd7-412b-8ebc-08d462453a10 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(48565401081);SRVR:CY4PR11MB1367; X-Microsoft-Exchange-Diagnostics: 1;CY4PR11MB1367;3:JtUApo1vknbV2j9gRuWKXexiR1IS8QJ1Yiv3P/GcXMinjWRnU6U1knuRZPgkaTJtn4ZaD8PeYPnkDPpNSBP4x5tA4Ano/SGI0u/DLpeSjZvmo1aKDC1BfLo02cSj9y4NK54XQEmXAbxb0evlgjtjbXqgD9bAHrG4EoxKe6aN8FAbRBKHyadwsXv599hM9TmMdRggw6/jhhFxCkDcglnCwYTAOtbbqQcbdV5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y5Fq7T2gcs/JajZea0cmz1OZhRyRIoG6tQrwO8vJAZzyfCqGLq3PYHo953gY5n7ttGnMFNH2U6nSXZYKke4L6ckybiEefI8wlhAnzvyzqfwglkSg2P0o3SWkHxn78FIfb6wG7+rQ48fLJ8RrovRPJkHS1KvtZn9PAYZ/xdYy+Vi62DzH4XyEVVAGdKpSnvCNzL0Iln1kyBIJM1/D1OEa3jgDB797eriw9fu71888WTJf+8+Bm4RzmoPaXmUHlTYF+PXXu1zAWuHSz5lVwweD5b4xSFcmpkGnDCex8Vkqv3nw X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(108721460000369); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123558025)(20161123562025)(6072148);SRVR:CY4PR11MB1367;BCL:0;PCL:0;RULEID:;SRVR:CY4PR11MB1367; X-Microsoft-Exchange-Diagnostics: 1;CY4PR11MB1367;4:1WbzrUlTI7HXIPV4aLbL8oLSPrwaa21ijOGurej/w3qI3h7soLl4hczhIr5Uu7bBWkwfQMCPlSp58/+YqmyUogUjTkO4LrYQWLry9Uwrz5y1Q9FHqA4sXWL/T02Wx1/igaZ+rlIQhkndczPUP0XmtBJsCQ7aYrKPxR4hlKEdmcFiYIOcjClG9l15FPhgV977V63cgtNRYAZ8nivLaBHGFxuDOYYFYtPLPqm6PnBTH2wWX70oiPpz7D/avUvk51wAu5Dop2w07Pr2bQENkR9884NCEfC375zOrl6NiVMabCjOi4rGdPO/eTi02tSGWCO5a4rjSyerMf+8F6VMk5qyG3FUM4E4HOf4wYKWCjkF3GgPIS5F4XjutDwX42wlzP3K9QwnVwdHPWlk7SMFkTeAoKGeGcLGPtDUPcqDc9r0R8pv3CUfm99EW5PxOtoRvgeDGvf+0GEqc6evqH44auDYpSl3r+mQSSfBJQQ4ws3yhYI0jRBh7aaPlYYAhkEoNNrrainFWMszud7hm4gikfiakbVAldiAl1Yy4LgcHLXrFQHGbbiHeHevRaznf65c33vorlTjWpbdlxKcGR+UUm9fT/qAiyGcdP4tOCc+/3wI6KhlzQ0dp0sqeQydGu6iCJspsybgKydEPOPgrqz1K6oFej3MW+vvFK8R4oQnuOsDml0= X-Forefront-PRVS: 0235CBE7D0 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(39850400002)(39410400002)(39840400002)(39450400003)(39860400002)(33646002)(86362001)(50986999)(5003940100001)(7416002)(25786008)(76176999)(2201001)(50226002)(189998001)(6512007)(2906002)(6486002)(6506006)(6666003)(53936002)(42186005)(53416004)(3846002)(305945005)(66066001)(6116002)(48376002)(50466002)(92566002)(8676002)(7736002)(47776003)(36756003)(2950100002)(5660300001)(4326008)(38730400002)(81166006)(921003)(1121003);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR11MB1367;H:ryan-Lenovo-IdeaPad-Z510.maxim-ic.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR11MB1367;23:fvMwMC2gzV9M0H0lxbich0s7FgfLCBaddp98c8ptG?= =?us-ascii?Q?o4Jeu3L4rMM8sSamlcm4HN7XYcJFEUBuiDgofQ4zlyCaK/456efJ/VW61CZw?= =?us-ascii?Q?rhqp7WRnTfBSJP6vZyHDZ96P+Eai2BWhzRcMi++5S3rUWMOyB+/rasERPN+k?= =?us-ascii?Q?1v8nHMGJC0qGuhBBLYJOy2kgf8saMr5g7ecqAXvWVtMTD+/NQ2bHGo6Q+6w5?= =?us-ascii?Q?/6gXIDnPetmOLFwYsdZGvFRm8LKcdmsFcJRytBCWn957bWQK391pH2NKV12c?= =?us-ascii?Q?abBfnY77AgXLchVY+HQ+9nyvJ2/oAKO3OBQenksFtdjc1iSaH/zBM4wmblH4?= =?us-ascii?Q?cd5Hwa5R4LYg/6F9w62BRRt4wUkQ0wlld3z2P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yu5hgsVLcorf5rVcUvOPca8N8MI+tRcOqb8TD8Rb0dQBU0naaaeFb5qXErrO+yCH6F31tDdxXAsiaf+tHKWceP0TMd9N/lXLzM6VrNGBB3wj+pCvK2MXu3VV7Y0o9yCBPnduVpMvcHgdeLydN2yw6ftnfHKBJKOA33eDFY+Zazw0dPGomGJ9eaO+X7NLyNBrT8BGa3g5qB8UK/VBOBaRujc/V4k+z3oSaqNSFrXZUn5aaNeFMNMe5+egOtIY8yExsxrPHQOIpXWK/LlR9S0bVV4pNvr/Twog=;5:llznEH4MryRESZHCaEe/I9tn7D2XCU/kiXwl4f6m/qJEM+VNpIpOJt1g+/wFEqbIIauzbgp4PQ3bEHVYzoK7YnIo4ZTZ76jrF1/4tsy4vbNVq0GA/9t3hyuZpsNlpm9jKgLmieSc83yoqzsRpyiuTdwXLoffs6vsVynJC+rpr4U=;24:Pwa3XsU/eL2VPj3HyHxUyXGxfFH4qLhPZvPuFnVz4goKqfIjuEAgLuwzqaTgub9IM4LVu1AEDOaIVbS0xQ0OkbIIEqC1UCVPh1z/VPwCeto= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR11MB1367;7:N6CfNr8oD3QZHMydKt32MDp0M0Pqu1qyFCKhxRvZSBX/G81WMQFhOByBJoih4D9AguV/Fe1qGhOY/YM7sVIhFKePABm7Ff6OcHffNQAUzcMoMx8mxGa9EJLCmFgiEOb1WLsMBx3ZGiY1CX81g9jxatD9VsCs4OwvF1CYm9usB3PBP2qkRQGnqV268bg6MKK5ZLugXf2qNuSkkhLrpSOodBqf8JEbPpR8XSYTdoLkMPi9uLoHTGjyT/8D0YQVZL/pF5KRZPWYVF341ihfacybHTyWZoX3Cxukx9AByMCQ7yL/RkWw2qBMHWYu01CTS5PLx1lNqsh4rXbRb2pWJhtAQA== X-OriginatorOrg: maximintegrated.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 14:54:36.7657 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1367 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3668 Lines: 92 Signed-off-by: Ryan Lee --- Vendor prefix was added. Range information of each propery was added. .../devicetree/bindings/sound/max98927.txt | 33 +++++++++++++--------- sound/soc/codecs/max98927.c | 8 ++++-- 2 files changed, 25 insertions(+), 16 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/max98927.txt b/Documentation/devicetree/bindings/sound/max98927.txt index ddcd332..d610879 100755 --- a/Documentation/devicetree/bindings/sound/max98927.txt +++ b/Documentation/devicetree/bindings/sound/max98927.txt @@ -6,19 +6,25 @@ Required properties: - compatible : "maxim,max98927" - - vmon-slot-no : slot number used to send voltage information + - maxim,vmon-slot-no : slot number used to send voltage information or in inteleave mode this will be used as interleave slot. - - - imon-slot-no : slot number used to send current information - - - 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 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 @@ -26,7 +32,8 @@ Example: codec: max98927@3a { compatible = "maxim,max98927"; - vmon-slot-no = <1>; - imon-slot-no = <0>; + maxim,vmon-slot-no = <0>; + maxim,imon-slot-no = <1>; + maxim,interleave-mode = <0>; reg = <0x3a>; }; diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index 0614936..b9b7621 100755 --- a/sound/soc/codecs/max98927.c +++ b/sound/soc/codecs/max98927.c @@ -926,11 +926,13 @@ static void max98927_slot_config(struct i2c_client *i2c, { int value; - if (!of_property_read_u32(i2c->dev.of_node, "vmon-l-slot", &value)) + if (!of_property_read_u32(i2c->dev.of_node, + "maxim,vmon-slot-no", &value)) max98927->v_l_slot = value & 0xF; else max98927->v_l_slot = 0; - if (!of_property_read_u32(i2c->dev.of_node, "imon-l-slot", &value)) + if (!of_property_read_u32(i2c->dev.of_node, + "maxim,imon-slot-no", &value)) max98927->i_l_slot = value & 0xF; else max98927->i_l_slot = 1; @@ -954,7 +956,7 @@ static int max98927_i2c_probe(struct i2c_client *i2c, /* update interleave mode info */ if (!of_property_read_u32(i2c->dev.of_node, - "interleave_mode", &value)) { + "maxim,interleave_mode", &value)) { if (value > 0) max98927->interleave_mode = 1; else -- 2.7.4