Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1352401pxk; Fri, 2 Oct 2020 07:33:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU7wnGkBjzmdC6Ktd7f0h3hlXxhEVz68liEbLKyba5dNAJipapgFENAv9InbuKI5uWy1a1 X-Received: by 2002:aa7:dd8b:: with SMTP id g11mr2720933edv.22.1601649208650; Fri, 02 Oct 2020 07:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601649208; cv=none; d=google.com; s=arc-20160816; b=wvEG7NVfifd9Ors+sT8DFBui+hyvWURVDS2Y69M09dfHyCe2UcIRs8Wm3TABwUezbS FnT6v7lvWR+mF17obhaAA3LDtC7oxVzHnfOG0MMepwtGcmMlFx3gFJG1ue5cVh/mZEug bAkTT6oHqkaQVS1VpIVBRakoGB6A1vwREUtdey92gQTyhFDKdW1KamiZomkThbamHeGi XUGju71rv6xRuVBt/A9oCpHZ3VEc1Jcy4xx+a2stiDIUaWaa6Dy49BeE4FEj5lGdfPE4 RF8A+w2sISHv8Lt4Ls6z3nAd+J+5c23iHlgi2/IFLtnz1l4xWmt0qUvghTwPyGEmg+Xu 386Q== 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=d988cBXnFVQ/GWsV54ibiM2GROtIFfDIzMG48hK8mIw=; b=wuc3FN19YbN4yGkM4YRIBx5qzPpurefFUSMvXLaKW55jhikE8STjhw4+VtRzPXKzPz LJKooJ85UP3bsf6qUcqdoJkollw2ORXhqqpnkCD1S23GNpj3DVva3e4yG6LNsaGUMYp8 ospPwCCunyBE8890Z1a1IszrzjZA/5ZMhxT6Tp812JuZ/ml8O0M4ixXTAsJcUhit5Z6t rXeFhKaVsX9jOacNppkkrmQZcblbsyegzAmQBpED4IN022N0OQsri0gtsKOLencla8su gY2wLVlF/hnNgOkimqtSPZC9bY2MiHUmFVnIdNcPGAqvrKdzkbC1NO2LXirK3nF03jHs 04vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EUAtA80U; 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 sa7si1276929ejb.714.2020.10.02.07.33.06; Fri, 02 Oct 2020 07:33:28 -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=EUAtA80U; 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 S2388143AbgJBObz (ORCPT + 99 others); Fri, 2 Oct 2020 10:31:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388134AbgJBObw (ORCPT ); Fri, 2 Oct 2020 10:31:52 -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 DB46AC0613D0; Fri, 2 Oct 2020 07:31:51 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id o5so2051925wrn.13; Fri, 02 Oct 2020 07:31: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; bh=d988cBXnFVQ/GWsV54ibiM2GROtIFfDIzMG48hK8mIw=; b=EUAtA80UQvGNQ1xuv489KMoHytHnOyynUzzXh4vFWyfNE6vryCNvSPb6JE38dse+ty Owh/rlSQHrpE0vJycQQ+QDzCO8fG1uONM6imaKPYv63KmwBDNIhatYiEPGNNAIU3jZGz i1TeJ0r/WW/kDo8ChFo19yQ7MSTbS3FnKkBfXh4hFobaaI3ZL/93eODs3bWXCRbTrxLK HAxfnu3O9NzWEwp9yaGiyRcmzC2ZAvpwUCGGnnmygy/otUm7UntLxRroQ+tAENGsmvli oMzZKouaZzWTGXn8LJAAb6dbMEDMe8Z56rWOCdcWk8NFzZHM9JLTgDist40BLDjKIXlV cnDQ== 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=d988cBXnFVQ/GWsV54ibiM2GROtIFfDIzMG48hK8mIw=; b=kkDFTVzAb6jQ2isGoj1ot6ZB5GZAqolgHY7a+gAnUOzhzfE32VwIy8danXn65v8Juv MOOfjFUSNTsPNkNtq+AUFjy66F7EmEewZVh/7nmV7SL0EKtutUW0cXuFMVMfC/dFaaXF toB1PBtMQRG7MNgLXqjiVnCJSGojvbgDLqOKlmN0aHbn4XF95LCScL+UQa0goMACC4vH km3EFGaKsEJZe9HYAIgS/f8v9DNzESsbHIEyL36rqSCtH42+Iowvk3xr/NxWigyNMjuL eOwNMGk3IPns6T6kgDdcO0DVi05SNOnUmxMnhHTfZkqioW57ooLzvNjRvzOhWeWt70Wk DCcA== X-Gm-Message-State: AOAM530CWO22d9MxyUuQeEubGLvuSsLXfQv71DPqGp4CqZiWQ3cbd/+W 1pzja8w6V0iMVjTeD4ZbAquN/HM0Eek= X-Received: by 2002:adf:dd49:: with SMTP id u9mr3672712wrm.392.1601649110552; Fri, 02 Oct 2020 07:31:50 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id w7sm1907392wrm.92.2020.10.02.07.31.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Oct 2020 07:31:50 -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 v2 02/10] arm64: dts: meson: add audio playback to khadas-vim2 Date: Fri, 2 Oct 2020 14:31:33 +0000 Message-Id: <20201002143141.14870-3-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201002143141.14870-1-christianshewitt@gmail.com> References: <20201002143141.14870-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 --- .../dts/amlogic/meson-gxm-khadas-vim2.dts | 44 +++++++++++++++++-- 1 file changed, 41 insertions(+), 3 deletions(-) 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 bff8ec2c1c70..d4734220443c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts @@ -7,9 +7,9 @@ /dts-v1/; -#include - #include "meson-gxm.dtsi" +#include +#include / { compatible = "khadas,vim2", "amlogic,s912", "amlogic,meson-gxm"; @@ -145,6 +145,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 { @@ -154,7 +193,6 @@ hdmi-phandle = <&hdmi_tx>; }; - &cpu_cooling_maps { map0 { cooling-device = <&gpio_fan THERMAL_NO_LIMIT 1>; -- 2.17.1