Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29474418rwd; Wed, 5 Jul 2023 12:22:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlHHMA3lFv2aF2mKulqjPkHI65XZ9B4pl1hbESsTTIRSajZ6nkt6Af+e6AlCudxql4uSj6mW X-Received: by 2002:a05:6a00:1705:b0:682:95ab:32f with SMTP id h5-20020a056a00170500b0068295ab032fmr6624935pfc.1.1688584973166; Wed, 05 Jul 2023 12:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688584973; cv=none; d=google.com; s=arc-20160816; b=NZOFa2eyEBw7uRtZwoG1sxm2r9OoPem7tMOEgaavN2bdTRtFDURRdMx4GxpOdo+On5 4UPZFgVn/9Hi1OiNPoPPWMIoluT3hcLRnq/0ZGdh7qj39U+zqSH4u3UzK1J7KldAu7Nk UNljeiNfgiPSJWZxZm5BRyFPyDeDk3d+tDfIlNgRW8dUezFCNcfMqkQLGH+c0wCkrJXf IoGFKaGeVdWSa3guiDWK2pluiD3pkdXxln+A7JIIjttKXy+67uMB2hAHDTL1DmK/cwzM dlW0nR/1aebYacvV3BDYX2AvBBTlqjxIaiNznON5cT1gjEzdfCunlpdjJuUEO3CpGbC4 jf3Q== 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 :references:in-reply-to:message-id:date:subject:to:from; bh=mkpc99hL6oCBuji5lnRkcvQgUa7awXMuFDclraK4e4k=; fh=k7VoT2L8jBkp/srhzriYpHmGaQcD33boGmUYQ969TJw=; b=WvsjZIOVryoNHXYnzSNjdFkiwaZTHvligedRywjoEmzl6YVgSggHkYWkbQGIPWFXdi 9TjTpDQG1WyCdSgJSVDpvIL2t41hWgQQww16ZHzbYSCA6SRy64BHpekCLMxH9/pqboyW yEKYJnNckVq2zy9gkK6+nkLt5yTbxcHjhcuDTRSCHt8vxLLo3Q1aayFkWaS9jvCtd6eQ DTruS6UGdSX0TiO62P8Mo7nbiB+IEgQpd3dyX8fadh++e+nZR4R8mnMzON/7NKImzuDk blszo4zilXiRreQKOnZNJvKmoHlhckuwNGUtuOHkuCL7MAqbhG61gvzI9PP3akZ3lCPC 7dSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y38-20020a056a00182600b0067fea30cd05si17543559pfa.79.2023.07.05.12.22.39; Wed, 05 Jul 2023 12:22:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233703AbjGETFO (ORCPT + 99 others); Wed, 5 Jul 2023 15:05:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231562AbjGETEP (ORCPT ); Wed, 5 Jul 2023 15:04:15 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7FA1FEE; Wed, 5 Jul 2023 12:03:40 -0700 (PDT) Received: from p200300ccff0adc001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff0a:dc00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qH7mk-0017Y1-DS; Wed, 05 Jul 2023 21:03:30 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1qH7mj-001UQu-3D; Wed, 05 Jul 2023 21:03:30 +0200 From: Andreas Kemnade To: bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, peter.ujfalusi@gmail.com, jarkko.nikula@bitmer.com, dmitry.torokhov@gmail.com, andreas@kemnade.info, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH 3/3] ARM: dts: omap4: embt2ws: Add audio support Date: Wed, 5 Jul 2023 21:03:24 +0200 Message-Id: <20230705190324.355282-4-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230705190324.355282-1-andreas@kemnade.info> References: <20230705190324.355282-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 There is a headset jack on the connection between control unit and display. Wire things up to have audio output with MCBSP2 as a master. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/omap4-epson-embt2ws.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/omap4-epson-embt2ws.dts b/arch/arm/boot/dts/omap4-epson-embt2ws.dts index 5e9a997f686b0..ee86981b2e448 100644 --- a/arch/arm/boot/dts/omap4-epson-embt2ws.dts +++ b/arch/arm/boot/dts/omap4-epson-embt2ws.dts @@ -46,6 +46,24 @@ key-lock { }; }; + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "BT2 Sound"; + simple-audio-card,format = "left_j"; + simple-audio-card,bitclock-master = <&sound_master>; + simple-audio-card,frame-master = <&sound_master>; + + sound_master: simple-audio-card,cpu { + system-clock-frequency = <24000000>; + sound-dai = <&mcbsp2>; + }; + + simple-audio-card,codec { + sound-dai = <&tlv320aic3x>; + system-clock-frequency = <24000000>; + }; + }; + unknown_supply: unknown-supply { compatible = "regulator-fixed"; regulator-name = "unknown"; @@ -274,6 +292,9 @@ &mcbsp2 { #sound-dai-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&mcbsp2_pins>; + assigned-clocks = <&abe_clkctrl OMAP4_MCBSP2_CLKCTRL 24>; + assigned-clock-parents = <&abe_clkctrl OMAP4_MCBSP2_CLKCTRL 26>; + status = "okay"; }; -- 2.39.2