Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1111247imm; Wed, 1 Aug 2018 10:21:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfDaJyOpnMIiYH3rBD7uA9JpoQFh+9zZDu3H6j8YoOM2RjMZaIJoCMQSG2mDhuIUHKTa6YD X-Received: by 2002:a63:5d58:: with SMTP id o24-v6mr25889570pgm.349.1533144101996; Wed, 01 Aug 2018 10:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144101; cv=none; d=google.com; s=arc-20160816; b=gi6ObG3FvmnKqgSCKUgcF7KL45x+INdaOKZWu8NXWTmk7L1LQsD9+YV8uwG8r3GuJs KjJdbEn+tkJy/DD6Sc/nEJIi8yxyH53zOGgqYJnUGrgbs99isRlmdyMMPXauog902ElH FdDsPkTF3xVWh14Ze3+YsdzlnCSWXt4pcTBjpNyvkaDvPdvXxLYw1ncBX2Grg2pydKu0 DAVumSUi6vusr+cp6PmZhRjxvx6rV+ae+MzgyBUvaF5TIdNQ2MuG5wMyBWp5tQQVwHlS EUdxa3ugQlmNp1iiSfcNSRA38DoXiCiDj7GXVPYRlhn4iLpI5ZGqUC7sVxGPEdHKPnz6 6fqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=U9PowDiQzH/F0eBFRRPEgqhcRf3ZeHu29rRR0xeKWJU=; b=XyVBywvpAL0NyBzFsAV1Gl8JgVvrQt0rvNtMJ9REhcrHzYNe49MiZrOERT36O6Kpt8 CI1RPC2HfmHGWfPTn1b7vz79IQe+Snp8UK0sW3a/eW8aTfdhPM/LI44BD78CV+FQxBN6 zkcjOcroy88AMRum6p1axr+4CfpVCFS/Xml1yas9SJiewRT2t4vsE8oT27PtA3z4t4fW gNbG0cJrDCBKk5Lpawcq4JskWlKbzO6frvBM8QUOmVjnoRD79cfGYCOkOc2HJZ6zEtWl Z1vBvmO1hrSLe5RolOsd09wOOP2ZPy/XyqL1FLIf68iijockLhR5mlFHqEdWcaJmb3RB snfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5-v6si16434950pgh.451.2018.08.01.10.21.27; Wed, 01 Aug 2018 10:21:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405010AbeHATFU (ORCPT + 99 others); Wed, 1 Aug 2018 15:05:20 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47374 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403817AbeHATFT (ORCPT ); Wed, 1 Aug 2018 15:05:19 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C4E7ECC6; Wed, 1 Aug 2018 17:18:38 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kuninori Morimoto , Nguyen Viet Dung , Simon Horman , Sasha Levin Subject: [PATCH 4.14 136/246] arm64: dts: renesas: salvator-common: use audio-graph-card for Sound Date: Wed, 1 Aug 2018 18:50:46 +0200 Message-Id: <20180801165018.244151303@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kuninori Morimoto [ Upstream commit 06a574c7ef69bd0bd26ed08e35967acb76622ab3 ] Current Sound is using simple-audio-card which can't support HDMI. To use HDMI sound, we need to use audio-graph-card. But, one note is that r8a7795 has 2 HDMI ports, but r8a7796 has 1. Because of this mismatch, supporting HDMI on salvator-common is impossible. Thus, this patch exchange sound card to audio-graph-card and keep supporting ak4613 as 1st sound node. r8a7795/r8a7796 salvator-x{s} need to add HDMI sound individually. Signed-off-by: Kuninori Morimoto Tested-by: Nguyen Viet Dung Signed-off-by: Simon Horman Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/arm64/boot/dts/renesas/salvator-common.dtsi | 38 +++++++++++++---------- 1 file changed, 22 insertions(+), 16 deletions(-) --- a/arch/arm64/boot/dts/renesas/salvator-common.dtsi +++ b/arch/arm64/boot/dts/renesas/salvator-common.dtsi @@ -93,20 +93,12 @@ regulator-always-on; }; - rsnd_ak4613: sound { - compatible = "simple-audio-card"; + sound_card: sound { + compatible = "audio-graph-card"; - simple-audio-card,format = "left_j"; - simple-audio-card,bitclock-master = <&sndcpu>; - simple-audio-card,frame-master = <&sndcpu>; + label = "rcar-sound"; - sndcpu: simple-audio-card,cpu { - sound-dai = <&rcar_sound>; - }; - - sndcodec: simple-audio-card,codec { - sound-dai = <&ak4613>; - }; + dais = <&rsnd_port0>; }; vbus0_usb2: regulator-vbus0-usb2 { @@ -320,6 +312,12 @@ asahi-kasei,out4-single-end; asahi-kasei,out5-single-end; asahi-kasei,out6-single-end; + + port { + ak4613_endpoint: endpoint { + remote-endpoint = <&rsnd_endpoint0>; + }; + }; }; cs2000: clk_multiplier@4f { @@ -538,10 +536,18 @@ <&audio_clk_c>, <&cpg CPG_CORE CPG_AUDIO_CLK_I>; - rcar_sound,dai { - dai0 { - playback = <&ssi0 &src0 &dvc0>; - capture = <&ssi1 &src1 &dvc1>; + ports { + rsnd_port0: port@0 { + rsnd_endpoint0: endpoint { + remote-endpoint = <&ak4613_endpoint>; + + dai-format = "left_j"; + bitclock-master = <&rsnd_endpoint0>; + frame-master = <&rsnd_endpoint0>; + + playback = <&ssi0 &src0 &dvc0>; + capture = <&ssi1 &src1 &dvc1>; + }; }; }; };