From patchwork Tue Oct 2 12:06:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10623851 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 923BD16B1 for ; Tue, 2 Oct 2018 16:15:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BC812843B for ; Tue, 2 Oct 2018 16:15:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6FA602844E; Tue, 2 Oct 2018 16:15:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E3C62843B for ; Tue, 2 Oct 2018 16:15:17 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 3C743267772; Tue, 2 Oct 2018 18:14:56 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0B7A5267889; Tue, 2 Oct 2018 14:10:41 +0200 (CEST) Received: from NAM05-DM3-obe.outbound.protection.outlook.com (mail-eopbgr730058.outbound.protection.outlook.com [40.107.73.58]) by alsa0.perex.cz (Postfix) with ESMTP id 2AD8C267819 for ; Tue, 2 Oct 2018 14:10:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dhsXpIQAUMvaMm3NIEVrDIORNBZv+uRqOWhEMRKaRsw=; b=ppvUI7B8LTIEnb9lJTrKw1gFqtDNV1hYqqEWcqto4PGUaybvv6NhIy2wmmE/mE95lKyILVOQIgqTSoCdPVPbsxpJjTeobGg669YNCyE9u/qJOz/M0hRaP77M3MMYevAWZozTJlxgcnMiwsw7V53fwMw6J1lRd9sTS0P6FcqYvdI= Received: from BN3PR03CA0067.namprd03.prod.outlook.com (2a01:111:e400:7a4d::27) by BY2PR03MB553.namprd03.prod.outlook.com (2a01:111:e400:2c38::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.18; Tue, 2 Oct 2018 12:06:43 +0000 Received: from BN1AFFO11FD012.protection.gbl (2a01:111:f400:7c10::152) by BN3PR03CA0067.outlook.office365.com (2a01:111:e400:7a4d::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1185.23 via Frontend Transport; Tue, 2 Oct 2018 12:06:43 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.55) smtp.mailfrom=analog.com; alsa-project.org; dkim=none (message not signed) header.d=none;alsa-project.org; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.55 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.55; helo=nwd2mta1.analog.com; Received: from nwd2mta1.analog.com (137.71.25.55) by BN1AFFO11FD012.mail.protection.outlook.com (10.58.52.72) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1164.13 via Frontend Transport; Tue, 2 Oct 2018 12:06:42 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id w92C6gRK009875 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 2 Oct 2018 05:06:42 -0700 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS7.ad.analog.com (10.64.69.107) with Microsoft SMTP Server id 14.3.301.0; Tue, 2 Oct 2018 08:06:43 -0400 Received: from saturn.analog.com ([10.50.1.244]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id w92C6cbH024807; Tue, 2 Oct 2018 08:06:39 -0400 From: Alexandru Ardelean To: , , , , Date: Tue, 2 Oct 2018 15:06:30 +0300 Message-ID: <20181002120630.17799-1-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.55; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(346002)(376002)(39860400002)(396003)(136003)(2980300002)(438002)(189003)(199004)(336012)(47776003)(8936002)(305945005)(1857600001)(50226002)(6306002)(36756003)(7636002)(2906002)(53416004)(478600001)(126002)(4326008)(2616005)(476003)(39060400002)(1076002)(486006)(106466001)(426003)(246002)(44832011)(356003)(110136005)(86362001)(48376002)(106002)(77096007)(186003)(16586007)(26005)(107886003)(50466002)(316002)(6666003)(51416003)(7696005)(5660300001)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB553; H:nwd2mta1.analog.com; FPR:; SPF:Pass; LANG:en; PTR:nwd2mail10.analog.com; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD012; 1:AFALVj+8LTnjJNmzpAYwG1WogakeSaYrwbQEvqxkigbEUHpnzbotoKWgew+GE3WjnpN3mW35D4Am+9L1tHAZ3d43krPlHso4ggMTUbs+bREyKOOUPMPXFNrmdSGfh7Wt X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a5595dab-18be-4789-4ba3-08d6285f8459 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060); SRVR:BY2PR03MB553; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB553; 3:WwetGFe+WMUoAl+f5pVY/XrnemFc3SrOoed+h47gEp1rCyP7dQktJQWry8lMRnFdJGGfeCVFjUu5ymGEgwQfH/Kmwvk1No1qvSHCFoZwq/zMOnC/lD7y0HKIJQD4Mpfw4aBwEUKMjkI1Hu5QisAIphpVQ+d29M4pxHBRu40QxuYYyEEVjtXGcWlYA6uL/C4Sz4pJX477NVHt3ZJHH4X4icXWS9zI1ffGI+Z/Si3lckiK19u43ynl3fW6u0RGrXNYHotRv4IAD/A6DzQAF8GhJah3bGnMeA/ADmir/Zz4phWMrTWRbbI3KLPMoKbZChUPmvg5lc8hbQLlZOG8ZzmMR3EmDKnwU+QFzOhyhgsT13g=; 25:Alg0cOvLCuA7U2w0TYAl5YyRvM2nU9uskbDqCLcHCp2j6oyZiI9oFW57zc6rqtDlAiojmEtev9hhjJgxvauJsREoXL+OILcDp5mvpWzUmHCBW19Etu71ez6uXDjC9IiPoEuZAjp31Ha8JFR1Ucl3dvyS5H5DqJKcS5XisPXxmMcEC2cHDbYXzQZN4C0XOERgLr451tC/V6qemkcbZbcrptK+WMTIPhWDU6xClBfeaHyvOsFF6bnO6HnXBOuHfemerGhL1tpOSq3VysfHsTm4UD1GVG0KE/DTq3mtn8gX4fSndoaqnBOjAJG5xglY/5jYNXpGdqfwG7cQezrn/5BfeW1FSLcQ5pdJmL5f+kagES0= X-MS-TrafficTypeDiagnostic: BY2PR03MB553: X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB553; 31:TVC9OVQ4TzxK4SXiVaWH0WK6IubV6g3XiaxhXgYYgXgo+iHsdjJ6SW14XCXTY9/75L8IUk2fDl2BkuUtbzsxuQfhSkxjemwfzfJ+41RK3RbxJEP4NaG9b9sG7rl19Jgtyutce1vzbMIB97fy2vcozmDInr8cDZqDwHdTUhSySAjJEasg5cNKBU3W/L6ulln9xxLJSHSK4shpjv2JHkOFpPl2aqI/A9+9vfk6lEKLo2A=; 20:5fR1jJ9+aBJXzClP8h+9sssqmp3Emp2H/ozmw/eEN1GHLb1Z03bZtnPWUY+ssmgFUkRhLhqOVKUJ30yB4wYA/dt7bJVon3ozU4oHh336OqyYJE/deyhhZLkzSI3+qtG6aOk4uDIeYGiZ1ohYJAgUQvU052O4chPYbOK0bKroGx6JbCWvOtB2KzNgGJEjakfG4QdZb8AuRkn5aO6HVGE5G6QnfB3GnWR5E7FFUaNEd7iOlYX0z3wLi3Kf0eUk602pqX6tnFxgO+7Sh1CUSSl7UhkM7mUwdtRyg74pOod7QArIJmhjb5DTYX0PN56m0bkZ2THHeqMkDY+Wh1G+IBlPEZ8L8mD7pxLWHA5GQ8khym/4oEYqibGXJG7MDuxDpOCJ6E81SGRKJNRQ34oxkoe+WK3yjkPXqiQREmXFpLmDT1sO6pY4bVQkBBHEoxwuqRHHysl0S3Sp1vswoc3ufxQibySnm2s6HRQEaLRgQ1q3jKtK6D4Utr0g2iQgdt+f4Qa+ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674)(270121546159015); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93004095)(10201501046)(3231355)(944501410)(4982022)(52105095)(3002001)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:BY2PR03MB553; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB553; X-Micro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6Z8Y+BrI2S5ZglkLB1Rzdk6rYVxJ1pVMi/AWY2VRw5UTuK19U1Jm30CjiDQ8xq1OcjBBwEZh0AxOi92uBkp5Y8tvbSx+2pfTOf9MpP+mYmaWg0vUONEpA+0VF1OgF0APe8/GvaidE8xcJwXsEW8n6Qzb7WqaPMoCT5083i4KvjERcMW3YZmi3NIlKoXqMLMi1d7RUIQCwnIKApS3i6i/FBp36iajUCMtL33gHmJ60sU5SdJrbqfBW9KfiEp0buOmM9REmJc7x/9lDDU7aYDiupiZVIS2NwvTIoh17J0WXuD4mPPaGmqVSdlMU6wA==; 5:7WPgYowUzb7onG8LhWWvi95D4A9DMGf1PYpFAad5/bVTdeHaw0DBW9nt57LhGSSkeXUdxKl5lnSBAu0mWKwf0+6oSWEuCgp0Dg64oMVtDtS1xPVLpeAk7j0Gf5Y5F5Ah9OjS8I2xP3LSweF3AyovE6qWRTBtQDTy8mlYIE2N5oM=; 7:zPMXLZJLE9cXg3sKq3sN6kKwInYjUCBPgpnJjfuBUWXlZIgfRpvoajfGmyADecWz1YstxgBwp3DvRbU6vA0IPDvrKwaypwM3Ujia+UDwuoCzUOIr0FHzSv1KehEXzZMR2d/kf2BWKYJZSUXQKaATTkJSdl9y6vJIb4eJMXZ5ekR8TxYAAHzaAJoqLGyNvgPwKN019+DNLiOAGWlHt4dpYsTrMTGfLud4X3HGxdQrEZvfTzutFsTRbIoHI5ogtG1k SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2018 12:06:42.5858 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a5595dab-18be-4789-4ba3-08d6285f8459 X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a; Ip=[137.71.25.55]; Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB553 X-Mailman-Approved-At: Tue, 02 Oct 2018 18:14:47 +0200 Cc: Alexandru Ardelean Subject: [alsa-devel] [PATCH] ASoC: dt-bindings: add dt bindings for adau1977 audio codec X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Add device-tree bindings documentation file for ADAU1977 audio codec. This describes device-tree fields that are already supported by the driver. The driver supports both I2C AND and SPI, and this doc covers both aspects of the DT configuration. Signed-off-by: Alexandru Ardelean --- .../bindings/sound/adi,adau1977.txt | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/adi,adau1977.txt diff --git a/Documentation/devicetree/bindings/sound/adi,adau1977.txt b/Documentation/devicetree/bindings/sound/adi,adau1977.txt new file mode 100644 index 000000000000..e79aeef73f28 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/adi,adau1977.txt @@ -0,0 +1,54 @@ +Analog Devices ADAU1977/ADAU1978/ADAU1979 + +Datasheets: +http://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1977.pdf +http://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1978.pdf +http://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1979.pdf + +This driver supports both the I2C and SPI bus. + +Required properties: + - compatible: Should contain one of the following: + "adi,adau1977" + "adi,adau1978" + "adi,adau1979" + + - AVDD-supply: analog power supply for the device, please consult + Documentation/devicetree/bindings/regulator/regulator.txt + +Optional properties: + - reset-gpio: the reset pin for the chip, for more details consult + Documentation/devicetree/bindings/gpio/gpio.txt + + - DVDD-supply: supply voltage for the digital core, please consult + Documentation/devicetree/bindings/regulator/regulator.txt + +For required properties on SPI, please consult +Documentation/devicetree/bindings/spi/spi-bus.txt + +Required properties on I2C: + + - reg: The i2c address. Value depends on the state of ADDR0 + and ADDR1, as wired in hardware. + +Examples: + + adau1977_spi: adau1977@0 { + compatible = "adi,adau1977"; + spi-max-frequency = <600000>; + + AVDD-supply = <®ulator>; + DVDD-supply = <®ulator_digital>; + + reset_gpio = <&gpio 10 GPIO_ACTIVE_LOW>; + }; + + adau1977_i2c: adau1977@11 { + compatible = "adi,adau1977"; + reg = <0x11>; + + AVDD-supply = <®ulator>; + DVDD-supply = <®ulator_digital>; + + reset_gpio = <&gpio 10 GPIO_ACTIVE_LOW>; + };