Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp252929pxu; Wed, 2 Dec 2020 22:03:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzU+wfncR5a7xey97Op4iVebyHTlBnF3w1co0EmA5EMOZxRR8DXWYs1cER9wvRMjILk9Abj X-Received: by 2002:a17:906:7104:: with SMTP id x4mr1148197ejj.141.1606975438496; Wed, 02 Dec 2020 22:03:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606975438; cv=none; d=google.com; s=arc-20160816; b=X5ogrvsFzdP70ix6JFV/bBZcLq1WDMzYH4pss/WXCaG2R8muSOq4p1l7asgohnFHtu /v13vrSX6u+M5BWMMD1KYu+fwZLUJWiRKbhAyUVMLyaiZ6NULiuljdKH/akN2pswvoXq sWcVxyWYinhP5WUR37ZgJjO8qibEwJv6eZo7pacXgGMfH2a7SltaidqWwHlegw3i6/Tq qTlDLTedF/o5Zepgdhk+l7YZnG7aMcohEP+4yHzwXOW4JSd2Ud5MhNHqO3vKa6ERgrNG ENEQlb1qXM2Rs2Q3DC5KM3xFPpgaVv/OD4B/CvSw8MAZwercj6PKs2GTNCPzpKMPsP5e BRug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=qiNlJdqxsbnz4NC0VDWGxLMRJ3AyXGB8P9pN0Z7BvMc=; b=ygKTYPfj3MdwKBkxCC0Mg2Dgwl859Et6uHS/nZI7u3/RxUT7eh9ot3bvoODb00TBDV l3GOjS8TijaJuN/SU2AnGP5A+fnKDr2ZOLV2Cls7x2FR4uj++io+yMJzW73kxoSFQboB VMVVkch3CBFWw4vT5M8MzNwluVseSeXT3cEgd4BBpcigh7iFXclgraIDeLsGacjIIyoz 3ftZvcuW+189Ny0BFkZc4m3E1z+W+XS2F/30JV4YlRGTPUcKbZDo34CpOP7upHfTka2H GaU3yJRkfsCR0Ee1FIR8dzyQHTe4FLNRaFXRMh4u64Rryq9gtA+L0JfzXYYUwSkgvjGa VL8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YGxKo493; 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 y17si354553edu.312.2020.12.02.22.03.35; Wed, 02 Dec 2020 22:03:58 -0800 (PST) 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=YGxKo493; 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 S1729114AbgLCGBQ (ORCPT + 99 others); Thu, 3 Dec 2020 01:01:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729010AbgLCGBQ (ORCPT ); Thu, 3 Dec 2020 01:01:16 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B2CCC061A51; Wed, 2 Dec 2020 22:00:35 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id 3so2521862wmg.4; Wed, 02 Dec 2020 22:00:35 -0800 (PST) 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=qiNlJdqxsbnz4NC0VDWGxLMRJ3AyXGB8P9pN0Z7BvMc=; b=YGxKo493V2KvNC4Fntbenbw8xLGA4Q3xktli4n6/Rx/bhhZmQd7KG18wMM7sd6mur3 NDTp7OeKoyl0/tPuJ26oPgzGw0bAVm+JO4ekBF3n6Lr4IgWThv31tO0cF0MG90yoQBXy PPj0Cq9zM9xBH6SMRXjYYutc6P893/ST9oX31p4iRMyByE+yf/NdH/CEOM2Z6j2h+SJH +ze+lISI/hF2tDw6raVfApDG9Qh6t++5aeDl1JkGqMZDz+v+Amb5gdvI8zHAZyW/Bf2e uzZ5BM+awunwN5Yq43Nc65OSZb6LamHnde8EmOhVtBd2L7aZ/DKIU3XLJ8Sc2hzYWo+I z8SQ== 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=qiNlJdqxsbnz4NC0VDWGxLMRJ3AyXGB8P9pN0Z7BvMc=; b=lhQUwX0ljxQPv58pohtmNlPzK5v6tNWIh00eeXrNGSV5XnWxDp3lP9ucGzkP1Lzuz0 r3CiMAvKNOXfPu6LHYClMmK3YBpzuuaAsxcOWhP+n4oFcgDXFeEeCp8bMbrPomODq9cL GVxZ5cJKGdKVeowk1te8mvYZt04hjeDifRbaJ43dlozfDx7pY7TC9Vmhv8h1UBjVLvpb LDKIbj9xnTSwVgLSWPBNvCmHrNsnMxwxzh7aDzjRQAthpr4qt4B0cdXmjTW0N8LRh3aN LgDwCCz//c6QB3eq1Dc6CdoS0jOwHYW3YB0nwehyElhuGtB20haxh9xVWU/Y9S4rfe+o fKvw== X-Gm-Message-State: AOAM530oR/f3d6NnQvXcMrTA1fwETS4JJhzdzMXhMS3UjZmv6zweWJj8 5Rh4bENIqAefmtfz8Km4csQ= X-Received: by 2002:a1c:e445:: with SMTP id b66mr1367316wmh.187.1606975234407; Wed, 02 Dec 2020 22:00:34 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id i11sm218439wro.85.2020.12.02.22.00.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 22:00:33 -0800 (PST) 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 v4 3/7] arm64: dts: meson: add audio playback to khadas-vim2 Date: Thu, 3 Dec 2020 06:00:19 +0000 Message-Id: <20201203060023.9454-4-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201203060023.9454-1-christianshewitt@gmail.com> References: <20201203060023.9454-1-christianshewitt@gmail.com> 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 Acked-by: Jerome Brunet --- .../dts/amlogic/meson-gxm-khadas-vim2.dts | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts index c5ee55caae0a..0250c98dbe9e 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts @@ -10,6 +10,7 @@ #include #include "meson-gxm.dtsi" +#include / { compatible = "khadas,vim2", "amlogic,s912", "amlogic,meson-gxm"; @@ -145,6 +146,45 @@ clock-frequency = <32768>; pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ }; + + sound { + compatible = "amlogic,gx-sound-card"; + model = "GXM-KHADAS-VIM2"; + assigned-clocks = <&clkc CLKID_MPLL0>, + <&clkc CLKID_MPLL1>, + <&clkc CLKID_MPLL2>; + assigned-clock-parents = <0>, <0>, <0>; + assigned-clock-rates = <294912000>, + <270950400>, + <393216000>; + status = "okay"; + + dai-link-0 { + sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>; + }; + + dai-link-1 { + sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>; + dai-format = "i2s"; + mclk-fs = <256>; + + codec-0 { + sound-dai = <&aiu AIU_HDMI CTRL_I2S>; + }; + }; + + dai-link-2 { + sound-dai = <&aiu AIU_HDMI CTRL_OUT>; + + codec-0 { + sound-dai = <&hdmi_tx>; + }; + }; + }; +}; + +&aiu { + status = "okay"; }; &cec_AO { -- 2.17.1