Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3027598pxk; Mon, 21 Sep 2020 03:29:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbgYcr1JTyHQ0fI3gIqSRLHJFGMgwtDJtIi7lgtNpRtIgvUiIeSQ4E1qon1vm+M7ZyCUOF X-Received: by 2002:a17:906:7c82:: with SMTP id w2mr48082948ejo.87.1600684159024; Mon, 21 Sep 2020 03:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600684159; cv=none; d=google.com; s=arc-20160816; b=ETlWs4fipoKoccy1xnBfJOAtQ5dXQGv7CBApqbF8BM/IomBS6GNmMdsRlQzZuUBQlJ egHep9/R599FNvudhmdwdIracFVnqdkOtJ2j3+OjNM/2oENBQPlGiXO0h0dAJeJJpOeF 3uejQjJ4ne9HgYsubruTHLPDI0kDLW9Ef/Jm6GQMA6CrD/IZW0FW0pYXLN1xvb9DYKqK ueh2MfABm8gaqcNiB6pvyz3DDtX4HCiytp7CgW2aZnl+nQOus8rh5xq3osHcIiuIcaAz 6plEShO3pUU5bShPvzAVrNumDuMt0cyf2sYIw/NnZaPyiasYjleZPO7o74xmvonhKARZ 3OGQ== 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=oiQXJmHs44ashMYoTEGA5ScRasCru2GgOD0BocdemjU=; b=HOy4LYuyVEsvoqAUaxZas9gU36le29HmTsBXIwW/ECSxGVhZA91p0RYmrZGLOWG4Tt /TaLITCleJ2afcntbRGoigTeqnBPWyQmYvAUZikWp3vuLf0sYRTEzm1q3F+Glo5GialG 9jg5wZ+qzuv5HI4tCJYRLgI9JuRlIjgPFRPlNLfuANWlhvlodlBTP4n6hQETOjt8GdPO Vk/msrLs6JBG4XQC6kTHxM9biduyylflp8OJgNbDUnLvHrIaS81Wv8sPc1navqwuf4L5 QBCg0uphapKXJFSf87y9ZCIVYb7BR/cL2px9KeWI4iCcozYcFqSqJLEzDFBXr/lq1M6Z b0KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="WLk0wH/m"; 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 w6si7800696edu.88.2020.09.21.03.28.55; Mon, 21 Sep 2020 03:29:19 -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="WLk0wH/m"; 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 S1726789AbgIUK2E (ORCPT + 99 others); Mon, 21 Sep 2020 06:28:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbgIUK1y (ORCPT ); Mon, 21 Sep 2020 06:27:54 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18E2AC0613CF; Mon, 21 Sep 2020 03:27:54 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id x14so12118969wrl.12; Mon, 21 Sep 2020 03:27:54 -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=oiQXJmHs44ashMYoTEGA5ScRasCru2GgOD0BocdemjU=; b=WLk0wH/mK4n85uc1VRHFLjUPKgONu5TaQ+ibzedASzLy4lCff679/K22sn8956Qe4Q qW3qVKkGajGEoVXdszvfzFW4ECWXL8S8PBIH0dtEgNXM9k+vw74VDHTg7ubOP9F6jt7f ioDmaB57m3B7XTIMWDeinzUAlpYjr11OxJykny/trLbrTawrodt5SkvQauMbaemkgkUv oiICnrsW3qMf5cJrIslte8VzP+jaUHfx5K7sh+jk9JeFmUdcUznyeq/6hkXDH2ZXf6as A7jYlTINa8ZOU5uJbZ/GCsmR2RIeWl1aCZY/jXpej4FYx4eV80+IJdONfGLC9ZO52ypT p5cg== 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=oiQXJmHs44ashMYoTEGA5ScRasCru2GgOD0BocdemjU=; b=Y+Wm4nKoIAzIODamiVGDyCdMY8/CuBIOTGHvbAoTtI8nmAu8HUFcaUBePQW0tCYUQ8 v213s61KBVRqCI+2jbhIeG8zBvpAOpbTiwgPqMNs2QoDGuEHca4DdSuuC0G1JRW5rgKa FmTJcYC5eDL97NIovPpCg3/+kOqtZfPDu4rGXxtjq6vMh5z3lnrSyQ824cne+TYVqQu1 uWBgqS+qVrG44kdm3JWdE6pGNOqyHDcIZIZfdxCo8KoFVz7LrKOJEm/CbwjTVHbV6F4h NPKd9ZgeZgo+xpkjAd8EoyJSBS1hHscuxHhmndEiyPJPzSFRtUmvbbY3w8u4DBMhRFt3 F4Zw== X-Gm-Message-State: AOAM532wtBpOFeal9mT146moHCpefvFLwvhqNdtPpz1aiqXY/PKLTUXX RK9aWnb2JAv/IRiof46T1ss= X-Received: by 2002:adf:f4c6:: with SMTP id h6mr51098543wrp.310.1600684072722; Mon, 21 Sep 2020 03:27:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2020 03:27:51 -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 14/22] arm64: dts: allwinner: a64: Add HDMI audio Date: Mon, 21 Sep 2020 12:27:23 +0200 Message-Id: <20200921102731.747736-15-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/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 51cc30e84e26..ba8a84e6e993 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -102,6 +102,25 @@ de: display-engine { status = "disabled"; }; + hdmi_sound: hdmi-sound { + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,name = "sun50i-a64-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>; + }; + }; + osc24M: osc24M_clk { #clock-cells = <0>; compatible = "fixed-clock"; @@ -1157,6 +1176,7 @@ deinterlace: deinterlace@1e00000 { }; hdmi: hdmi@1ee0000 { + #sound-dai-cells = <0>; compatible = "allwinner,sun50i-a64-dw-hdmi", "allwinner,sun8i-a83t-dw-hdmi"; reg = <0x01ee0000 0x10000>; -- 2.25.1