Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3027584pxk; Mon, 21 Sep 2020 03:29:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpSh/fH5cHSUCIPckNvWDp9cM8m1spA07UEulVQ1NYsYIaIGqc765TNp5SkDn9KjEQL4P/ X-Received: by 2002:a50:bb62:: with SMTP id y89mr3003759ede.261.1600684157623; Mon, 21 Sep 2020 03:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600684157; cv=none; d=google.com; s=arc-20160816; b=H7lXSBeXhibvT2ZLJiGFztFJbGNI7A75d5AbEkC0ubDPK6OqkPiwB6sUHnCSZ18Onz cmH843xS7StDZE77Em0jJAOabLWB0SRNmaGik0RJqXRlm4PaybtK/MMjQTToqF6sYAPK un95tGgUUIqPiciq6AsXH8Fhy8BecLovhQ+prPjYrYIp+OFbBvx5oLVGnvJg33WUKYQt MyvOfOkp26+5jUPum4iIfe6yTz8zChkE0c0+jaMuYz2i8CTqujZnGdtuPnOv3I8tvj4P jo3Agu/pYuPxSKV5fFcjiURS5EJOh34htSCYgHizrp2g4b1yqwtjznnw6dRzzDLVIJwK 4W0w== 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:cc:to:from :dkim-signature; bh=sjb20+qzG//QXYZPPH3YllTlMZ4wlxmmKse+Y7AgH+E=; b=iNCIdq981GAiM0RgxP7NbOI+KFul6CtF0wJuRdNA5E4/V4jVwr7XIL9z7CPxCN8DlM 88uGxjKTXetShliD8Brm0vjaGrV2VFI23CyLJ0azJq4IXpKgrexWXN1/LKZTrjQCXben qIAwz9yzl+i+dKZIwOs1OLy4IcL2ftK3cGvCmfwy9rfkp6PACm8xSOg/XsjcbvrCc+TA O6nXDU4hLBGtPVQLVXkcd3g4w28VXPgiQo8vVghW0IE9hl8Go7QQxviZU8bcXXOB3+vz 4P7s+b8e8uPL2UQeMZ94dmPrcyx9koQg+X95UYKC6SgW8bM88JK2SuOSooucTxGi2SnM sing== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Gt5MPgd+; 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 u26si7831562edy.360.2020.09.21.03.28.54; Mon, 21 Sep 2020 03:29:17 -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=Gt5MPgd+; 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 S1726950AbgIUK1z (ORCPT + 99 others); Mon, 21 Sep 2020 06:27:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbgIUK1w (ORCPT ); Mon, 21 Sep 2020 06:27:52 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B860BC0613D5; Mon, 21 Sep 2020 03:27:51 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id z4so12147753wrr.4; Mon, 21 Sep 2020 03:27:51 -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 :mime-version:content-transfer-encoding; bh=sjb20+qzG//QXYZPPH3YllTlMZ4wlxmmKse+Y7AgH+E=; b=Gt5MPgd+eGWukOpWw3gbzAbL/PMs4sfkNXWEj1w69UzlkmLKPkcHZeZasIzmb1EkoU 8Wn3kISsGZC+6gp3TOi5DFPsEr2e0Hit+oIaKb+m+eDAlwXaEYwaygKvHnLhupgDSTEc zZEf1ju1cx0aEbHoIntF4ShFl04am+xCvdxE+zcsnMDTz6QGReRqugsf9gWC7+CRa/lX 08XS3vFRbOTlVi7keYC/7pBxmphOJqYEmKIYPLA6fK25bTNF01GyqvkW33Wl0HsgpYFz 3KCiWyXJUfeYNplFTh5xZpEglbWdi6JcV6JxZgggAvUbsafJXsTPD/4tsDO7dr1w7J7s nPRQ== 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:mime-version:content-transfer-encoding; bh=sjb20+qzG//QXYZPPH3YllTlMZ4wlxmmKse+Y7AgH+E=; b=Fdd5OqsEK3739XmLiGwSDg+03hCVkXWUzHlEzEk2c4FK4R5RPsrT8FqOHFk02H222i uhIxZBi8DusD7/oSUBXeWVNsRsZ4CFrTqzIRT0lNu6ycLyh4ewxLq69D5V7skOVSp9pB ezSp4Ym1UIztpsmaOnopR1CTepgTR1ZtJJINyOAaicNmKVACw/hAzGC300MmyN9JL+lp wobkn5AuniyfAGqlsYJgZeLGMelQcR+Y7aW17gYmZLP/NMVWV/yOlVxJoZYduNh6vGC6 IQHW8yJYEXLkilMIRe/2ao5Kk4XxNV+22AHoMKwqVSK/MNdSlyHrUVKcCXqXXimqjPhB Rbqw== X-Gm-Message-State: AOAM532CO0MySMxSzIYQiMZ4KqhNFBRJSsgXjb1dthyVU2B7/HCge6bI s7ZWl+CESNPA93NNNcZmv4k= X-Received: by 2002:adf:e481:: with SMTP id i1mr51402018wrm.391.1600684070367; Mon, 21 Sep 2020 03:27:50 -0700 (PDT) Received: from localhost.localdomain (lputeaux-656-1-11-33.w82-127.abo.wanadoo.fr. [82.127.142.33]) by smtp.gmail.com with ESMTPSA id h2sm20713774wrp.69.2020.09.21.03.27.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2020 03:27:49 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Brown , Liam Girdwood Cc: Jaroslav Kysela , Takashi Iwai , Marcus Cooper , Jernej Skrabec , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= Subject: [PATCH v4 12/22] arm: dts: sunxi: h3/h5: Add HDMI audio Date: Mon, 21 Sep 2020 12:27:21 +0200 Message-Id: <20200921102731.747736-13-peron.clem@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200921102731.747736-1-peron.clem@gmail.com> References: <20200921102731.747736-1-peron.clem@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcus Cooper Add a simple-soundcard to link audio between HDMI and I2S. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi index 3dca6d89cab9..7168e9412410 100644 --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi @@ -105,6 +105,25 @@ de: display-engine { status = "disabled"; }; + hdmi_sound: hdmi-sound { + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,name = "sun8i-h3-hdmi"; + simple-audio-card,mclk-fs = <128>; + simple-audio-card,frame-inversion; + status = "disabled"; + + simple-audio-card,codec { + sound-dai = <&hdmi>; + }; + + simple-audio-card,cpu { + sound-dai = <&i2s2>; + dai-tdm-slot-num = <2>; + dai-tdm-slot-width = <32>; + }; + }; + soc { compatible = "simple-bus"; #address-cells = <1>; @@ -806,6 +825,7 @@ csi: camera@1cb0000 { }; hdmi: hdmi@1ee0000 { + #sound-dai-cells = <0>; compatible = "allwinner,sun8i-h3-dw-hdmi", "allwinner,sun8i-a83t-dw-hdmi"; reg = <0x01ee0000 0x10000>; -- 2.25.1