From patchwork Mon Feb 25 13:17:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 10828551 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 B36AC13B5 for ; Mon, 25 Feb 2019 13:18:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E6F928574 for ; Mon, 25 Feb 2019 13:18:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 919702868C; Mon, 25 Feb 2019 13:18:46 +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 3EB5128574 for ; Mon, 25 Feb 2019 13:18:46 +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=iWiOk6DOwqaz7h s3PCaLbHr8QWs8+nZWqtVG3p7bPqir/AKBVVZhx8CxoDbf651UIrUMu8HmheB278MvEvVoNRie2PQ cX778zdIbh1HmnIZHr87gAkS8zEkh3eUCiJiiVzok+P9lmexs93zKv/7NsorPptEERKNU4Sp9wiQT w23meIMsIOprDgbrueuGsxHKSxLYbwlBr4LjS1gIIEZIqfVKcmv78kaPGKeQRwy0VoW+eTXERZUK3 O9vkF/Y7DEOczlqmK2uqjYFta1wtrIxAcMNCoxRda0pqlpBW+DDi/93QP4wJDuHXtSRBmoBb4fBmc JYHKPR7u9CBpARvCz+nw==; 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 1gyG9b-0000DJ-Io; Mon, 25 Feb 2019 13:18:43 +0000 Received: from mail-he1eur04on0625.outbound.protection.outlook.com ([2a01:111:f400:fe0d::625] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyG8z-0007j5-8y for linux-arm-kernel@lists.infradead.org; Mon, 25 Feb 2019 13:18:06 +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=gcAE05BdfLVFfysgD5hqHR3+eoqIrhQylss3Ug6q+o9/NcDdcJrf5q9aiPiSpfpZXlR6uWAV4on5gHumIY4CF6rXA/KmdpRYPgfAK+FedkyD5jZ4JUVaNk3ahAb9dqwDM0/ui5FuP8USDSY8/1wZeUzBRuNJ3o6Ha2MUolgyQu0= Received: from VI1PR0402MB3357.eurprd04.prod.outlook.com (52.134.1.18) by VI1PR0402MB2895.eurprd04.prod.outlook.com (10.175.24.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.14; Mon, 25 Feb 2019 13:17:50 +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; Mon, 25 Feb 2019 13:17:50 +0000 From: Daniel Baluta To: "shawnguo@kernel.org" Subject: [PATCH 5/5] arm64: dts: imx8qm: Enable wm8524 codec Thread-Topic: [PATCH 5/5] arm64: dts: imx8qm: Enable wm8524 codec Thread-Index: AQHUzQyBsy8AZ7sdeEG8XBzoxNlyKg== Date: Mon, 25 Feb 2019 13:17:50 +0000 Message-ID: <20190225131722.10253-5-daniel.baluta@nxp.com> References: <20190225131722.10253-1-daniel.baluta@nxp.com> In-Reply-To: <20190225131722.10253-1-daniel.baluta@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR08CA0202.eurprd08.prod.outlook.com (2603:10a6:800:d2::32) 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: 4d5f5307-d481-4858-de86-08d69b23a436 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:VI1PR0402MB2895; x-ms-traffictypediagnostic: VI1PR0402MB2895: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR0402MB2895; 23:TpL9OvmsVO95Gtd9zRFm1j+LW4Q9sGt3ZG+nn?= =?iso-8859-1?q?uY1M2q+nrFM9Kasg/?= =?iso-8859-1?q?SC5jMvAON9Rn2SLx9SgxbjhGLpmYUsVaRtCFnF5qPmOVynIu8i/AnZRyG1ET?= =?iso-8859-1?q?mJOaUeM4kgjne+RkrxgrygweDK57ei0yq43UDgXIrND9kV4dfzWBL+JZQEIy?= =?iso-8859-1?q?Doc2cv0V6wffEu6K+A9BhiQ3dOscWvJHcbJY6WUXaIWHb5im0vYDUNB8Pnpu?= =?iso-8859-1?q?+hL5NPO6eJMGnSzbGa1aZmFcLPFfgoA/NVg31U+cviKNB2Huft7R10sPOD9p?= =?iso-8859-1?q?+FGsGfc8wO3Sp+qoc/rWp5mppaJfyTXqBgoibqTa9vNO0p6R7tvPpYMetJr1?= =?iso-8859-1?q?R2wKGdvOKgg8tIU0LS5AYne8KVMAwx23qMGvKYWOQzZTP9VvKurYdJIkjFVf?= =?iso-8859-1?q?Y6mzVrtctZNLxFv4hz3qi2iGEAVUqXFw3HGM281MKLM3V59+2kz0OKCvtIBx?= =?iso-8859-1?q?ntAanbSeUm5aE60Mbvl8LdzN9bi/SbJfMq+/CUmQsgRuB37OJn2TrwjT0mZq?= =?iso-8859-1?q?vE4zoobJ9GhBI+CyWoo/4mi5gRRMpgkblQvg0HlWNt+iWqNsVudmH0mRVxY8?= =?iso-8859-1?q?E11hgd6/Nn4MSZwYyO2kY2R1Vr3BsXyXs0kBcNXSjOr4DyJB3zljNhDF6YxD?= =?iso-8859-1?q?krWcWBhwGXLC1TciWdUwJlamSiROX8NkPII3Kut2NN8xDMlW+Tc4MmPtPxWm?= =?iso-8859-1?q?gX+8weyItWe1vxAtRaHvPgeXSJqvYMZfmCAga36iP6DtbWYD/euwVyoA9t2A?= =?iso-8859-1?q?PGdgIjgp3EdowqMv/96mzymYFIj4nfO5oGFXuT6XYVy6tftF54OO+zjlJ1E7?= =?iso-8859-1?q?EF8Y0elHixRRienbXNFPaqty1m6qRdd8e8iq6KiWloKL9GSFtc62yb9EnL8Z?= =?iso-8859-1?q?CpeWUoDA8LV2sHmIaP4c4QG3V/RaKrjpneM2u/CjTpyNU8Uq+F0bzfQ5Sm7B?= =?iso-8859-1?q?IYjCoZkBzZMLIVqbAHDVAzH63Eq3NHzNk7zIWMbV8W9EZHm0t5Cn5CkVI0Au?= =?iso-8859-1?q?/XD7qH/unnODazuokACfwcZhFY90QiIqZBDNhPPTeoLNk1tmhcbePQm3Ezjc?= =?iso-8859-1?q?2wVVPUzBRl6wUdgWgayeoGa/9YB+g7idToH2CnA1YDUzL5b8TUMUSFFtiVsF?= =?iso-8859-1?q?ZdAEGsCD7xH/+gs/8bUkVojiku0frJwh8FqF8Dkl7l6dGThrbjG+K/GbD4RX?= =?iso-8859-1?q?zVkn63IiUfyU/VlgbFEzFrgY7UwZX6VoUl0AJwNxw2e2z9xvN3K98K93ydd8?= =?iso-8859-1?q?rPo9jU1KUkEjDqlutqzJrWTOSx0bJ9XGMGKkbFDRd5ypCc8J6NHyUtKXs4fU?= =?iso-8859-1?q?0hCuXM3U/xj1KohQ3PUwFBtsy6QGWWCUe3qm00+2GTnTCb8oQ4VA=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 095972DF2F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(346002)(376002)(396003)(366004)(199004)(189003)(8676002)(81166006)(1730700003)(2351001)(81156014)(446003)(6486002)(6116002)(3846002)(2616005)(476003)(186003)(44832011)(36756003)(305945005)(11346002)(486006)(7736002)(7416002)(106356001)(26005)(105586002)(14454004)(5640700003)(4326008)(6916009)(25786009)(256004)(6512007)(97736004)(50226002)(2906002)(478600001)(386003)(8936002)(54906003)(102836004)(66066001)(71190400001)(71200400001)(316002)(1076003)(68736007)(6436002)(86362001)(99286004)(6506007)(5660300002)(76176011)(52116002)(53936002)(2501003)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB2895; H:VI1PR0402MB3357.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: lZM36OmWPmyqNCkEZVtmyca0IeCK05VMDaH08Ah9AX00HLP+/CtMjN3fX2RXe/WtAroKsvWbb3QM8epoV4b2tHuCChuVOB8Due13CsCI7eSCzylJlL4rOX1Q1WNXa/Hzkd13jjEP6igrK2yJbjVEwVUrP9nYfAqJBfYe+kql6MHI86HPTKKGwI4WUklwlaVkZ8Bx5JbKfmjet4g2dKSaoTp/LcpPvMI50VcJuEXV8itcX33y0KwHzcPvTx7vQFx9XroFe33PK7k2hfTbiPD52jvK82LAk9eqvOS20924DD5G3sJrvZLy8UEJXRv12qf95FqCBSlY5pW4KcgnKrs9iB150dE8gYY1/WLeVQnQjF6DZyBKkEoJDkGa15FkO79u1osj9H8tFzGHE8/H7UhDNZkPyPv41Z5kegIXj3a4fAg= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d5f5307-d481-4858-de86-08d69b23a436 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Feb 2019 13:17:49.3158 (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: VI1PR0402MB2895 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190225_051805_354811_57D97F0D X-CRM114-Status: UNSURE ( 9.68 ) 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 , "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 {