From patchwork Tue Feb 26 07:08:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 10829597 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 D1FA61399 for ; Tue, 26 Feb 2019 07:09:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB0E82B38A for ; Tue, 26 Feb 2019 07:09:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF2112B3AC; Tue, 26 Feb 2019 07:09:25 +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 4DBA72B38A for ; Tue, 26 Feb 2019 07:09:25 +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=Shu4yJoi3J0dNw 8BqJn2ISLiIxKtqXu1v10UKyZfTFO9a1G6k6gjSL6YXywD4xgdUq7WUDCHfyp5DOl3ZXA1mWUKuKR XGgcHSRUfhmto4fU8OIYDHLeTcRuEmoWmIOePUHUeMT+I9rf22rkVbRAGUv3l2BSPjAEWlBP6JC0j 2Ee48Y8MbXna9ZcMXY+scPm+Bn0r3h0+tPUAMWrp9SaLVy+NO9Gby454T1rGG5gwVTtDzEP235qyX Qu8e2vq678tdX65cBMa0iyX8w4taos5sIsmcnhEda2p0t8QZtd88y30pyegE+LJa8dvUM0zIVgg2T q+9+vF1YUqQd67M+xStw==; 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 1gyWrf-0000BB-MH; Tue, 26 Feb 2019 07:09:19 +0000 Received: from mail-vi1eur04on0628.outbound.protection.outlook.com ([2a01:111:f400:fe0e::628] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyWqm-0007MF-9P for linux-arm-kernel@lists.infradead.org; Tue, 26 Feb 2019 07:08:28 +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=rDypybRv7RjvIZ7gVSkCZOolQ9Bx9Kmr7+Dci31jhibASOdXObssHJ3TuCJWMTjuKlAuD0vMcGRqc2XOB3+jL8q0CExprYjD0QxOc7AR8gyz+y6bZDn2LsBHClc8F4Guv8sG+XX/YkUlkWjGAoQPVDPMvjTO87CfBOvdjTgYPNU= Received: from VI1PR0402MB3357.eurprd04.prod.outlook.com (52.134.1.18) by VI1PR0402MB2848.eurprd04.prod.outlook.com (10.175.23.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.14; Tue, 26 Feb 2019 07:08:16 +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; Tue, 26 Feb 2019 07:08:16 +0000 From: Daniel Baluta To: "shawnguo@kernel.org" Subject: [PATCH v3 5/5] arm64: dts: imx8mq: Enable wm8524 codec Thread-Topic: [PATCH v3 5/5] arm64: dts: imx8mq: Enable wm8524 codec Thread-Index: AQHUzaILcOyeyWqxiESp2YdPy1C0/w== Date: Tue, 26 Feb 2019 07:08:16 +0000 Message-ID: <20190226070742.30551-6-daniel.baluta@nxp.com> References: <20190226070742.30551-1-daniel.baluta@nxp.com> In-Reply-To: <20190226070742.30551-1-daniel.baluta@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR04CA0102.eurprd04.prod.outlook.com (2603:10a6:803:64::37) To VI1PR0402MB3357.eurprd04.prod.outlook.com (2603:10a6:803:2::18) 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: 438082b8-a9f0-4f9b-3860-08d69bb92e25 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:VI1PR0402MB2848; x-ms-traffictypediagnostic: VI1PR0402MB2848: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR0402MB2848; 23:MV0Qo44UVN56rqENrkx+DCx525un/+yK14Gho?= =?iso-8859-1?q?4h1iKRvDanlj69MX1?= =?iso-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TMyg/PaIoGiaL9bYJC+TILFXUrsTCu/Mqru+Tkl?= =?iso-8859-1?q?b0iGVUQ8oxjtQmdbctxzXYH3Wnrhn/+fzUgBAXII6iZDux8RdXZRw1gmS62C?= =?iso-8859-1?q?mTQly1QtpWipbpaR/cmmXOU5PKrbTRnM40v0VqFfu0slYnMXl7WUVrjT4ljZ?= =?iso-8859-1?q?yyTfnlVIxWWlpjgAvZdIg0nI4QJlUNPVgDnmkOPZElggwcgEHtZLgxA/kPX4?= =?iso-8859-1?q?51RJ1Le0J2VOlSmid9UWyusip+wFG7L+raHCLRsR8DFhEqIbwD7xhREhHw9h?= =?iso-8859-1?q?RYaS2C3hLQr9Ui27tugMjHM+KNDT/XCpRvtc+R9dimLJpjGxcF/rcmIqz5E8?= =?iso-8859-1?q?tSA2Bkb0eRgIwrMeQnYi1+RzWtjSVqcNpENa579ELHnY8zbUtvLfJIGZZPkX?= =?iso-8859-1?q?SN2YJ0+2Z0fEVxfkRVmfd6X5s/mfIy5dzaUOAVp7Rtk2PX/ycc2UJJGk+cjA?= =?iso-8859-1?q?2N/5AHgezsRkU=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 096029FF66 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(366004)(346002)(136003)(376002)(189003)(199004)(86362001)(2906002)(316002)(305945005)(6512007)(7736002)(81156014)(1730700003)(102836004)(50226002)(2351001)(5660300002)(8676002)(11346002)(53936002)(106356001)(105586002)(81166006)(486006)(446003)(71200400001)(71190400001)(476003)(2616005)(5640700003)(6116002)(44832011)(54906003)(6436002)(1076003)(3846002)(2501003)(256004)(478600001)(6486002)(386003)(6916009)(4326008)(6346003)(66066001)(99286004)(68736007)(6506007)(36756003)(186003)(8936002)(97736004)(25786009)(7416002)(26005)(52116002)(14454004)(76176011)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB2848; 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) authentication-results: spf=none (sender IP is ) smtp.mailfrom=daniel.baluta@nxp.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: X/OGAqKXMddRcuFZujNMFDykj1QkwL/sUpTGihy7/a0Vvf5cT8wZqg+APKbunVo8a55dHjWKgVoPGTPc+djv8Xp9/6UM1oDY47XQTeN0DFh/po4lnEj2qWX+tdRnTf7s2kABOZDSAUSIVW5DwG/oo9KzxX5WjLPr3/EIc5e3jtmZBs2+SIR3bFiD+MNpFnVLgmkMQblD7/YvsaT8GKpoESg905hX8kRNSh8Gmn5G6XBBsk+k1R2/ydB1q0/dpflRFT826tG8xeZzqY2AEZvYSZoaYr43yWUocklZ/oylBu0XYhbKi9LZvUih7h1tMy1m2yQXh5zPOeDPzUGVBuKX3CukBgT9LVgX9Oziq9fKQeHw5DXeqmzwUiWL/imLIKu2IPPSfty+U3INeMUJhJF3SsGVearoAQglvTHXmdjP8fI= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 438082b8-a9f0-4f9b-3860-08d69bb92e25 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Feb 2019 07:08:15.7154 (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: VI1PR0402MB2848 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190225_230824_745442_2B0FF55A X-CRM114-Status: GOOD ( 10.12 ) 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" , Daniel Baluta , "S.j. Wang" , "angus@akkea.ca" , "linux-kernel@vger.kernel.org" , "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 {