From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CAACBC7EE23 for ; Sun, 21 May 2023 23:40:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MM5wGCYa4PdhihLzGRPr29BYprcAeOJ2iR+V3w8iS+k=; b=KEzeYVejjWX5yJ VtgKfPnNjy5OWMEUx3wE2kT8CEP0iJvihfL/+sy7UF0LFJreLghW81hvLnqoLGXlN14VHpuAzOboq V45G9UPxpS/lggdDfci5M/iIZS5SdstwdW5K1IUZrIzyRPWsuG9ncjRZyPh2DTmDwIXbmjI0lMyRO j4+ETrk2FrA+2jrvjOMf9DE8b3au4n58GKchh/+cm3Mt3u6HBRSfUfuUO1RR+G41PVf84xvrC5RcY aTQC15An0QumGwF3ktUO4icbALCry5G1zvsC4JRRw38+4WqC1dg0+b5oUUGuAyyZohYMlZOT9rbAU gRUYqwvFjMyPWChXMCbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q0sex-004rgi-0J; Sun, 21 May 2023 23:40:19 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q0sev-004rg5-1z for linux-arm-kernel@bombadil.infradead.org; Sun, 21 May 2023 23:40:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=2nVhPh+AVbdoZqcTB31R1u6P0E7hg2Z9UmsS+z7GZjc=; b=DMoQ20rCdBKubJ6BQguYSfljpK 8pPXx6FnvrZWMrFB78KpFXnPWSIr8noYcxbcZFzq8cJ2wb6h5n7qID7jIrla6t4bkSwQcUShYWHFA QZL4sJ+4366r/yx0wcHhfdxzSumj9d1OzTZ6v/KxtoO5AWhNMRoxkP1hY7S0QmvW5ddlEyFJyBCrx chFF2EKuBxUzNXBHX7XaWP3/sxjBIWUNrOQ/p2SyQxrLlBdbSLLd63vikrv24ZzaGiapVVv1YHO6B M5fWQoacmxm/xTbNY0nIZ+1PtWQw69BPBia3VYRLebkAXFuX9jxNYjjy58zjL6/zyBwSe5sJIQCdz rVBHyjjw==; Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q0sCi-000dmq-08 for linux-arm-kernel@lists.infradead.org; Sun, 21 May 2023 23:11:10 +0000 Received: by mail-io1-xd2d.google.com with SMTP id ca18e2360f4ac-76c636b6306so192558839f.3 for ; Sun, 21 May 2023 16:11:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684710665; x=1687302665; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2nVhPh+AVbdoZqcTB31R1u6P0E7hg2Z9UmsS+z7GZjc=; b=NpZD+Rw2xmxMS3KJtKOf1YPhJq34lmSxa4BrvR2K+RQRPMFJUkfBbX9nISTibYRYUs D1bnu7UAPRohuOBjKLPg+No/CIM83GO+xHuhUAEZtpdV2qqgLeP3+mpJWkCB5e9bTWrf GUOGR/2I9ufyVS3I+obr5MICVHly25OFNC2qtHaxwrtCL06QRqjdrmM8xJzBowJEZIS7 Ms6mjs3tW81wE7VQfrpDfxUYoQtZn4wWPqtO0NC2ibODI3EnhAcJ10mHnA7TiGGTnj5J bf7aDytD/QgA2yU6tE/XBxmvDf9MyRJDcZ55duCnifqUfBBO1VwodRENjZfXqdt67mHP RKdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684710665; x=1687302665; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2nVhPh+AVbdoZqcTB31R1u6P0E7hg2Z9UmsS+z7GZjc=; b=cvAmGV84igzYH5zIVYu6CUAlEEfe1N75FqjCkRjJh9gxnSaX/V9QLZXUc/EzX0IOan r74YcVfDOLleo7eS57iMlicNgrd/194aV46zk8CKV1y1ph9j9fi/8S9HR1WYy/9QFqHE Af7Mdvu8Z3ea3pRT1I5it7l+ostOrUCnpaf/HL4m5WeUHWHi2FxRcuJcWN3IkndZH32S DEmrB6RdLml4DiGZ7qZkHh0qGVLtdsLoGX654PubljgP7g6Vq/bYcDqI+bw8okxRXEYk LFfHsSxtMDvtYZObuunUNUhonpTn3BNnBOCmBM9ZG4vhsY6uO9dyQtrxBI8WBxwh3nRg 0QDg== X-Gm-Message-State: AC+VfDwplDt9S2uKO9yYkgR5nQ9PupR0yDovSSh6EkDpz5N3205mh8Zc 496Igq4O3G/S0kr4YLABmTc6vw88F3Q= X-Google-Smtp-Source: ACHHUZ7lLqLkvJq6ql1iQtOZi5AZfrE9vfPzmk6OBw3VqXXA/4Nnssmw4jp3QCJsW/XVQytKGDDzFw== X-Received: by 2002:a05:6602:201a:b0:760:f856:18b7 with SMTP id y26-20020a056602201a00b00760f85618b7mr5569243iod.16.1684710664711; Sun, 21 May 2023 16:11:04 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:84e4:c2f6:44bb:b929]) by smtp.gmail.com with ESMTPSA id a93-20020a029466000000b00416789bfd70sm1367468jai.1.2023.05.21.16.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 May 2023 16:11:04 -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 2/2] arm64: dts: imx8mn-beacon: Fix SPI CS pinmux Date: Sun, 21 May 2023 18:10:55 -0500 Message-Id: <20230521231055.167351-2-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230521231055.167351-1-aford173@gmail.com> References: <20230521231055.167351-1-aford173@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230522_001108_276300_8746AAD9 X-CRM114-Status: GOOD ( 10.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The final production baseboard had a different chip select than earlier prototype boards. When the newer board was released, the SPI stopped working because the wrong pin was used in the device tree and conflicted with the UART RTS. Fix the pinmux for production boards. Fixes: 36ca3c8ccb53 ("arm64: dts: imx: Add Beacon i.MX8M Nano development kit") Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi index 9e82069c941f..d38745237d3c 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi @@ -63,25 +63,35 @@ reg_usb_otg_vbus: regulator-usb { 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 IMX8MN_CLK_SAI3_ROOT>; + frame-master; + bitclock-master; + }; }; }; &ecspi2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_espi2>; - cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>; + cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; status = "okay"; eeprom@0 { @@ -142,6 +152,7 @@ wm8962: audio-codec@1a { 0x0000 /* 4:FN_DMICCDAT */ 0x0000 /* 5:Default */ >; + #sound-dai-cells = <0>; }; }; @@ -202,7 +213,7 @@ pinctrl_espi2: espi2grp { MX8MN_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x82 MX8MN_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x82 MX8MN_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x82 - MX8MN_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x41 + MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x41 >; }; -- 2.39.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel