Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2932322rdb; Wed, 4 Oct 2023 16:48:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9xcr7Bd4sURwITWuRGZYfa9jtF1bC/eQjSDqayuLLbGIstKerWP/fse2nEhuetiLYJkP/ X-Received: by 2002:a05:6358:5908:b0:143:8c4e:283b with SMTP id g8-20020a056358590800b001438c4e283bmr4298159rwf.0.1696463290679; Wed, 04 Oct 2023 16:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696463290; cv=none; d=google.com; s=arc-20160816; b=K8Hqbz1j4uOmEkumUzRx2BLuzje8WWTMszrMZslGIWOc4yTL2N8xVIkVtTN9FTUjOM oyTViNvE6BGw5dobiOtIqvZXp/5SLTNvjvG1Zw/Uo9UkX2+kdZLoqEAHBpn62potZzcv wSadJz3yQ06Aw6HOzQZkC5LNO1pzzrQCFnOb+7rN2AuET/QjMmvkGB5ZfjlPtH2cHoS7 nBVMW8NVmXQKKRi9NYoNissM2u1sXcbf1CmUVXkkWzYeL9HJcU8thHiohgWhflEBIO+n oyTjcuikzl1xir2DaeHFFCMSUScB4c0Y/2E1vvtfQ0R1zAPwYNYznJka7w7mLNJREzvN VEBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Nwr+bVY4PaR39fDj4d2d/26+nvTGbbpn4jHymgluZU0=; fh=gC1cZmlOWiS1CLlwE/YNZ24shETpOEvzCi+90KMez2U=; b=JbEea3wpPjyCaIqMycQASAbcH0e4WA0gp3voDFjdZDUOW3aT9HUa+4mmdbeP8DYc9F kIEbEOgrt4YNOWeVlDk6+bCCJFbgLXl/iujLkWZ2c2qariYjf0AecfJ7o9mDUCoMNab3 RKV8RNckjrQEsM4x8/7Hohg2h2/JFwlMGFFXpKlCKMl61dqd5fepWD8fSaZvX/rMt1j0 Y0eeNCiIjGSvffJJU+M7gXgLPRrjRO91hnA7AKfieBhlaqyJcAS7nsK/KGpUFt0ji1Dt l6Y5YZdHGzDX6jQKstfw+HoEyNbpxgEbXkkGur0zINo1LwiawWQ3uMUOirDCku8HX68w gzrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fYg6fe2j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id fh24-20020a17090b035800b00274ac850fbbsi2451776pjb.132.2023.10.04.16.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 16:48:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fYg6fe2j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 50BEE83EE9DE; Wed, 4 Oct 2023 16:47:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242639AbjJDXro (ORCPT + 99 others); Wed, 4 Oct 2023 19:47:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241363AbjJDXrm (ORCPT ); Wed, 4 Oct 2023 19:47:42 -0400 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A18EDC9; Wed, 4 Oct 2023 16:47:38 -0700 (PDT) Received: by mail-io1-xd32.google.com with SMTP id ca18e2360f4ac-79f82b26abfso17700639f.1; Wed, 04 Oct 2023 16:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696463258; x=1697068058; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Nwr+bVY4PaR39fDj4d2d/26+nvTGbbpn4jHymgluZU0=; b=fYg6fe2j2O5sTu7aVxp6U+yUO780Q30XpJfEa7Gj9d8E2k/YpCrrd+j8LK1eRgDlMe 7W6h8jN0YdfNMCMKQ5ldwKOz477mj+UjaNje5WpFgQr8YkleQfQ0PZXBEgFiL5p5njMf eOOg6jtbNnszRNEsSILj3MPJ2LNSV5/liPbJA9xM2W6ebQMh4K8FWcE9Lpqhzz8TSp/d 3P+XfjchIdwL6LqUC5+Dokfsn+4w5KQUhTbfbz+qGmcjY26JZV/c1Uf/A7zsZn+Vc+Hp FBbaf5SXlnOaaXxw2C/XC1folX2qgnPD1jRsZA3ya2WiqDDKcAVO4mPNRPcIomzDcdgh n6Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696463258; x=1697068058; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Nwr+bVY4PaR39fDj4d2d/26+nvTGbbpn4jHymgluZU0=; b=O89FF0vzfeS8PWswPDVVTbccEZ3mFpDn8errWKEU2EGrLzUDx2PjZNx4pp79eTbQVA 4bRgtARMmilu3D+Zz934/O6a5JSmYpHYD/Y+saMWSL6vv+LIQYrjLRtzoV7aEGEc+Q5D BBz/WWPyGXr/uMetN1sunOH9/fFQNoD3NBaCV0qV1cS6dnJc3k9phXwAil5AIsN6vuW2 pJnMImu8WJzFAnFCtjeNqd5o7p8BocMv7mSmgvKRf3cenPaTGX5qbIYkhM49vnhCJHKy H3VYICzXUXXzKBTCHPfMrDq3q+5E4Grri+gEufN5T2W0RWH6ac7JL06VFIN+8oKg2fCP NNZA== X-Gm-Message-State: AOJu0YyReqJR0kPd3plnfvir3XgiHEv6MgR35RgOXrOvGGPI/tBO2fB+ x4FYvZqTay4Ex2C3u6WO6VQ= X-Received: by 2002:a6b:da06:0:b0:794:d7e8:d239 with SMTP id x6-20020a6bda06000000b00794d7e8d239mr3828208iob.17.1696463257800; Wed, 04 Oct 2023 16:47:37 -0700 (PDT) Received: from aford-System-Version.lan (c-75-72-166-104.hsd1.mn.comcast.net. [75.72.166.104]) by smtp.gmail.com with ESMTPSA id l13-20020a5e880d000000b0079fa3d0d790sm50062ioj.31.2023.10.04.16.47.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 16:47:37 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 1/4] arm64: dts: imx8mm-beacon: Migrate sound card to simple-audio-card Date: Wed, 4 Oct 2023 18:46:54 -0500 Message-Id: <20231004234657.44592-1-aford173@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 16:47:44 -0700 (PDT) Instead of using a custom glue layer connecting the wm8962 CODEC to the SAI3 sound-dai, migrate the sound card to simple-audio-card. This also brings this board in line with the imx8mn-beacon and imx8mp-beacon. Signed-off-by: Adam Ford --- V2: No Change diff --git a/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi index b10e2a703a44..313e93663d6f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-beacon-baseboard.dtsi @@ -98,18 +98,30 @@ reg_usdhc2_vmmc: regulator-usdhc2 { enable-active-high; }; - sound { - compatible = "fsl,imx-audio-wm8962"; - model = "wm8962-audio"; - audio-cpu = <&sai3>; - audio-codec = <&wm8962>; - audio-routing = - "Headphone Jack", "HPOUTL", - "Headphone Jack", "HPOUTR", - "Ext Spk", "SPKOUTL", - "Ext Spk", "SPKOUTR", - "AMIC", "MICBIAS", - "IN3R", "AMIC"; + sound-wm8962 { + compatible = "simple-audio-card"; + simple-audio-card,name = "wm8962"; + simple-audio-card,format = "i2s"; + simple-audio-card,widgets = "Headphone", "Headphones", + "Microphone", "Headset Mic", + "Speaker", "Speaker"; + simple-audio-card,routing = "Headphones", "HPOUTL", + "Headphones", "HPOUTR", + "Speaker", "SPKOUTL", + "Speaker", "SPKOUTR", + "Headset Mic", "MICBIAS", + "IN3R", "Headset Mic"; + + simple-audio-card,cpu { + sound-dai = <&sai3>; + }; + + simple-audio-card,codec { + sound-dai = <&wm8962>; + clocks = <&clk IMX8MM_CLK_SAI3_ROOT>; + frame-master; + bitclock-master; + }; }; }; @@ -192,6 +204,7 @@ wm8962: audio-codec@1a { 0x0000 /* 4:FN_DMICCDAT */ 0x0000 /* 5:Default */ >; + #sound-dai-cells = <0>; }; pca6416_0: gpio@20 { -- 2.40.1