Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp190562ybh; Sat, 18 Jul 2020 00:26:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHn73Wt/6cECP4pBJkXSuOey0GVDXZvIVwWxfeynKT5UVa+OZmciG9sGPxJYj71ig/Bb1n X-Received: by 2002:a17:906:6d4d:: with SMTP id a13mr11586252ejt.146.1595057171324; Sat, 18 Jul 2020 00:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595057171; cv=none; d=google.com; s=arc-20160816; b=C8dhtLNDbBIvBqTotRf3V1svHSop1PQLnEfm5B+2bYFYBGCY5JFBbXOoJ2dvSYBXg/ UM5sXIf01CJ7gKgFztyWcAeOQJfTTgPpEFT+X0HSa2KXT8eL0uKKGyW0B5kffDUE8L5l jSsolHpH+T8B7/gnj0k7pdR1bX4iueucmprVYbvQrENRsIAPhfB60xmIdIYwLKkJ+FZ6 RGT/bKFA9/IPDgEYioQW6V6/Ty7mjvIyOfgDhLriMtjNqHR6JtwLGb/77u9WfSp605z+ B4CVPs4UbKhxanCF14jg/ZZ46SYUwiANmYk+6Ui9pXruV3lXleHLJaGyyh8ZPFg4ARX7 /6Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=a0raR8kuawAw4Zwd1EY7iQ1XE5SS8HIOS1kFKtesceU=; b=FJIbjFYKa8hU+d7F9yUk86kuSqXRg+NdCK1DyhGP8twRycgmNv+hIoX3eubCLOKupE aIht95Qclb1l5IgQ9c0BDfBmU2npKrijhpQtVbfcaMufglVsgOe2inO9uJct/PfE+vDs uThqwOWJvKndCAzLgbc5Q62+mKjhFJTx5nxot8wkbE9xwiZlVdPTN+ARUE6GyGV82v6o JyflwaHK3lsl8W4Au6uBSz8slqR5GxHky/QnZrJwIImAIC7UZSXi+uYls2KepFcmwZBq 87AQI12GNdyU4UOoTAmpPi6bmyZxWLqLMFnYJZ56rpK2TS2y3N6mtpAmPSsmdo2vmvgr GGuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="osXXqc2/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 27si6878649edv.33.2020.07.18.00.25.48; Sat, 18 Jul 2020 00:26:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="osXXqc2/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729094AbgGRHZn (ORCPT + 99 others); Sat, 18 Jul 2020 03:25:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725983AbgGRHZk (ORCPT ); Sat, 18 Jul 2020 03:25:40 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ACE8C0619D2; Sat, 18 Jul 2020 00:25:40 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id q15so17791875wmj.2; Sat, 18 Jul 2020 00:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=a0raR8kuawAw4Zwd1EY7iQ1XE5SS8HIOS1kFKtesceU=; b=osXXqc2/JMbxEZ8YQ66p//TaQKMxArFfVN9KBSLB+qBwhJf6oEYVzvJN7oiZBsSkUm 3OxN7PXwnU19KmOmGYtda/bmnBycBbyth+YKiRctCk7HJ1fpFcEsoQ45WpNF+SYfQHId 1M7uc3uNwehl25pm+3SPkLeVVJVnqsY3R01Bo0sELxDeXwOzuT2N8TltSix/9BwS/T8D +vBDNMcbwHmA5enOCYqFI3l7XjidAgUqzVcQZumcRI4nOMYFp8UxeNw9fcRFhkpgrTQL fHYuNnZBY7o4Cxs7y/Xdrn/8tJcMX6kMY5uTYBt/zYlq6Dvf2013q1FQl17eQAuldlfA uBVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=a0raR8kuawAw4Zwd1EY7iQ1XE5SS8HIOS1kFKtesceU=; b=GVHhvnnvR0fjW7DYVslGgd5RRDNvjZvhofJTIWvEVNH3m/F4DPXugXyLFuXaFXsSEY YOt1McRmjLkCKmVM1bfB9NnWflwEbj6PB1fbpVe4zZf6HnoKqWmc+Q0iEtDNYMpyDScR loYF3L5/2yydoct0Bd+mFufCxjMOebNkl1PK/o5v4TdG9pn8eADnaekWOsn1MX7rYtX1 oaeeHwCOxZjFiL9PVOcXj4L3S3QkxoSFzgC1lV3EBCWs4WW/7JyxOcCxoiX+L4RK4Uuu 9Mpovk8GhpmE0BpqK29PMWifysUGijj/IGCJluFtJgc/vCZ2UWYPs3XLb+2YmY49kRFD zrYQ== X-Gm-Message-State: AOAM531Wr6N8mAo/KFqckuOAg9xsq7wJ2QELUHSDbDqYfwos0CY364cG wVVTj1Nvo71sgZSKDHJpG5bKSILl X-Received: by 2002:a05:600c:2116:: with SMTP id u22mr12425037wml.82.1595057138822; Sat, 18 Jul 2020 00:25:38 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id c7sm19550192wrq.58.2020.07.18.00.25.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jul 2020 00:25:38 -0700 (PDT) From: Christian Hewitt To: Rob Herring , Mark Rutland , Kevin Hilman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Christian Hewitt Subject: [PATCH 1/2] arm64: dts: meson: add audio playback to odroid-c4 Date: Sat, 18 Jul 2020 07:25:31 +0000 Message-Id: <20200718072532.8427-2-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200718072532.8427-1-christianshewitt@gmail.com> References: <20200718072532.8427-1-christianshewitt@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-sm1-odroid-c4.dts | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts index 00d90b30f8b4..cf5a98f0e47c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts @@ -8,6 +8,7 @@ #include "meson-sm1.dtsi" #include #include +#include / { compatible = "hardkernel,odroid-c4", "amlogic,sm1"; @@ -186,6 +187,69 @@ }; }; }; + + sound { + compatible = "amlogic,axg-sound-card"; + model = "SM1-ODROID-C4"; + audio-aux-devs = <&tdmout_b>; + audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", + "TDMOUT_B IN 1", "FRDDR_B OUT 1", + "TDMOUT_B IN 2", "FRDDR_C OUT 1", + "TDM_B Playback", "TDMOUT_B OUT"; + + assigned-clocks = <&clkc CLKID_MPLL2>, + <&clkc CLKID_MPLL0>, + <&clkc CLKID_MPLL1>; + assigned-clock-parents = <0>, <0>, <0>; + assigned-clock-rates = <294912000>, + <270950400>, + <393216000>; + status = "okay"; + + dai-link-0 { + sound-dai = <&frddr_a>; + }; + + dai-link-1 { + sound-dai = <&frddr_b>; + }; + + dai-link-2 { + sound-dai = <&frddr_c>; + }; + + /* 8ch hdmi interface */ + dai-link-3 { + sound-dai = <&tdmif_b>; + dai-format = "i2s"; + dai-tdm-slot-tx-mask-0 = <1 1>; + dai-tdm-slot-tx-mask-1 = <1 1>; + dai-tdm-slot-tx-mask-2 = <1 1>; + dai-tdm-slot-tx-mask-3 = <1 1>; + mclk-fs = <256>; + + codec { + sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; + }; + }; + + /* hdmi glue */ + dai-link-4 { + sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; + + codec { + sound-dai = <&hdmi_tx>; + }; + }; + }; +}; + +&arb { + status = "okay"; +}; + +&clkc_audio { + status = "okay"; }; &cpu0 { @@ -237,6 +301,18 @@ amlogic,tx-delay-ns = <2>; }; +&frddr_a { + status = "okay"; +}; + +&frddr_b { + status = "okay"; +}; + +&frddr_c { + status = "okay"; +}; + &gpio { gpio-line-names = /* GPIOZ */ @@ -381,6 +457,18 @@ vqmmc-supply = <&flash_1v8>; }; +&tdmif_b { + status = "okay"; +}; + +&tdmout_b { + status = "okay"; +}; + +&tohdmitx { + status = "okay"; +}; + &uart_AO { status = "okay"; pinctrl-0 = <&uart_ao_a_pins>; -- 2.17.1