From patchwork Wed Feb 27 06:38:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 10831277 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 4EDB5139A for ; Wed, 27 Feb 2019 06:39:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36EF62CF1C for ; Wed, 27 Feb 2019 06:39:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A52E2CF1E; Wed, 27 Feb 2019 06:39:34 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C482D2CF1C for ; Wed, 27 Feb 2019 06:39:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pY7yZxLoz+3MGIohqLIDJNT+O6kDZ5NaIaLr1mtGvQY=; b=mxWexErBTTCczw HPcwFptWsxDIwwGY9VKVuo7VAFZ2c6zRUi4EOzi9HvufFEc2AjNY7C3Ial1XqC6OXKkt7CV1TTccQ HOGqLQoeP6AwiPSsPDZiuSQncdUPtjfEPnfAuK4vBXvWeg23w1GkFD1nEF/VYjEAh7scdUfuIxxHu cUo0Ul7VEhyAPwGk0fIg46jwqGU6/XplR57icwf5tyQzZQAI6HfKpwKzJKXFu9tpgYhtAZv9pb1Ho 4Jo6x3bSgk2RQgNKKnrLMmc5FJy5MBWdZQVLoBuFBbGJmSBnt23qmePWN9koj0yfk3YEc+/SP8s07 9xwy+4MB1ImFsiMbiPJw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyssJ-0002I0-E8; Wed, 27 Feb 2019 06:39:27 +0000 Received: from mail-eopbgr30083.outbound.protection.outlook.com ([40.107.3.83] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gysrG-00010y-MN for linux-arm-kernel@lists.infradead.org; Wed, 27 Feb 2019 06:38:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Znr2T6ovlH7mTq+u1NnPVFs5YNm/YXTxwScDcqrMY/A=; b=YBQLAO5pJqx4GcLv6m+yIyUcG+3n7uxIRX1c/hgJ8s13cKqlOR2ZC6OYROzpfK/9VRh0Jjq+DNGJJVUwhvwmXSUP904ASSREYA2+2YfKsVJZs5ee9izSBpcfi/wDLjeLHtKNAtEWRq4odss9S/ut/d1ny6bGxyam9bKYoMt6u1s= Received: from VI1PR0402MB3357.eurprd04.prod.outlook.com (52.134.1.18) by VI1PR0402MB3615.eurprd04.prod.outlook.com (52.134.7.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.14; Wed, 27 Feb 2019 06:38:14 +0000 Received: from VI1PR0402MB3357.eurprd04.prod.outlook.com ([fe80::f80e:d03f:57bc:aced]) by VI1PR0402MB3357.eurprd04.prod.outlook.com ([fe80::f80e:d03f:57bc:aced%2]) with mapi id 15.20.1643.019; Wed, 27 Feb 2019 06:38:14 +0000 From: Daniel Baluta To: "shawnguo@kernel.org" Subject: [PATCH v4 5/5] arm64: dts: imx8mq-evk: Enable wm8524 codec Thread-Topic: [PATCH v4 5/5] arm64: dts: imx8mq-evk: Enable wm8524 codec Thread-Index: AQHUzmcEULvmnDg7TU+BAacRV1wDzA== Date: Wed, 27 Feb 2019 06:38:14 +0000 Message-ID: <20190227063737.24445-6-daniel.baluta@nxp.com> References: <20190227063737.24445-1-daniel.baluta@nxp.com> In-Reply-To: <20190227063737.24445-1-daniel.baluta@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR07CA0152.eurprd07.prod.outlook.com (2603:10a6:802:16::39) To VI1PR0402MB3357.eurprd04.prod.outlook.com (2603:10a6:803:2::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=daniel.baluta@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [95.76.156.53] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 22b439a5-a46d-45b8-c6ef-08d69c7e2660 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0402MB3615; x-ms-traffictypediagnostic: VI1PR0402MB3615: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR0402MB3615; 23:+gipX/dV2EM2umJjF832Gngn67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AiCJ4pw0M/SIhZ?= =?iso-8859-1?q?aNYRMqamEWJTz0Ykm0jwqt7OqINN+ck4lObyWqrhJY+r0ksVQzcAb0V86/MK?= =?iso-8859-1?q?HDHr7LX3YPzvMYafWzmUh/KpKV+OmkvNbeopIrUnumZWVqz6WfADauBh5wBe?= =?iso-8859-1?q?PARAugEAPkV+zF7qX73ifUHdxCOOl4Cfl6yrjXS/umVV3Srnpx6Q+sP+Y3zm?= =?iso-8859-1?q?fnhiIx/+d5JwukqGvR8Ei2uOmF0geJc5X6oHgv1rsqtKxAjzyOanOi35o6yj?= =?iso-8859-1?q?6lb5yZkYm1oB/p6zO6gAd1sso755CFDS5eUD5SzPL2oQuGkVCQaJF6XhFnhE?= =?iso-8859-1?q?V0axuufs0tz2Izt6D6fGrLJKelYaU8UHUD2xhcZk7KreKTAHLRylezQBLf/c?= =?iso-8859-1?q?Pt4YxwwJSFLSKeDVS19DucsXoQyh7EjiGleRpiGllds5D+0kK6BlSKRf9jNo?= =?iso-8859-1?q?+vx0xbIwG9/NqALJhReOCXMDqLLEfO1wBin7s7WTVjk5t9DEyUlg=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 0961DF5286 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(346002)(376002)(396003)(366004)(189003)(199004)(2616005)(446003)(71190400001)(7736002)(11346002)(97736004)(71200400001)(305945005)(66066001)(81166006)(81156014)(44832011)(7416002)(5660300002)(26005)(105586002)(486006)(68736007)(106356001)(6486002)(476003)(86362001)(1730700003)(8676002)(2351001)(1076003)(52116002)(8936002)(3846002)(2906002)(36756003)(99286004)(316002)(76176011)(6116002)(25786009)(478600001)(53936002)(5640700003)(102836004)(6916009)(54906003)(186003)(6436002)(256004)(6512007)(14454004)(50226002)(4326008)(6506007)(386003)(2501003)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB3615; H:VI1PR0402MB3357.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: //fShRMHUsRYYZVytwpfWa5E63QdnOHhnwdIsZao+8PbMYpw580K/45RNHl0231Awt1zxvK69jUDU5ekVVGJQfcwIBwUCL7xJ63j9uV6stZeqjFlceUdwTAXlxZEqNzzwDetOikxf28OEFd8chzuJivPun9yQmeIym9akMv5p4SbKkuyKZ0GmwFHSMzNbaeP/cp9EqJkXGm4D8OumAieROBGMa33CpPmG3sqpWuqKg5adB8pFThn+UQxpR76xmL1MTeZfq+ubjXl2nKeIG7Rp/VsgEu53666gkkenXGbfb7Yj01dHyqgPmfB2mh28oKViX3I5jNAgO6iFexfCQxmE0OaKuu1j3l992cJEpwQUMcaZlNpiu3MoR1u/X8JzIiM2FdyPGU4MzVp/8LIyAdL1LIXRSMpL19FwYAGRi5BgAU= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 22b439a5-a46d-45b8-c6ef-08d69c7e2660 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2019 06:38:13.5037 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3615 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190226_223823_020179_DADEBB12 X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "baruch@tkos.co.il" , Abel Vesa , "kuninori.morimoto.gx@renesas.com" , "ccaione@baylibre.com" , "spencercw@gmail.com" , "S.j. Wang" , "angus@akkea.ca" , "linux-kernel@vger.kernel.org" , Daniel Baluta , "robh+dt@kernel.org" , dl-linux-imx , "kernel@pengutronix.de" , Aisheng Dong , "agx@sigxcpu.org" , "festevam@gmail.com" , "s.hauer@pengutronix.de" , "linux-arm-kernel@lists.infradead.org" , "l.stach@pengutronix.de" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This uses simple-audio-card machine driver adding 1 CPU DAI and 1 Codec DAI. Signed-off-by: Daniel Baluta --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts index 58de4a3d6029..77f590c13ee0 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts @@ -31,6 +31,35 @@ gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + wm8524: audio-codec-0 { + #sound-dai-cells = <0>; + compatible = "wlf,wm8524"; + clocks = <&clk IMX8MQ_CLK_SAI2_ROOT>; + clock-names = "mclk"; + wlf,mute-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + + sound-wm8524 { + compatible = "simple-audio-card"; + simple-audio-card,name = "wm8524-audio"; + simple-audio-card,format = "i2s"; + simple-audio-card,frame-master = <&cpudai>; + simple-audio-card,bitclock-master = <&cpudai>; + simple-audio-card,widgets = + "Line", "Left Line Out Jack", + "Line", "Right Line Out Jack"; + simple-audio-card,routing = + "Left Line Out Jack", "LINEVOUTL", + "Right Line Out Jack", "LINEVOUTR"; + cpudai: simple-audio-card,cpu { + sound-dai = <&sai2>; + }; + link_codec: simple-audio-card,codec { + sound-dai = <&wm8524>; + clocks = <&clk IMX8MQ_CLK_SAI2_ROOT>; + }; + }; }; &fec1 {