From nobody Mon Apr 27 16:16:09 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F6DCC43334 for ; Sat, 11 Jun 2022 06:53:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229997AbiFKGxk (ORCPT ); Sat, 11 Jun 2022 02:53:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230029AbiFKGx3 (ORCPT ); Sat, 11 Jun 2022 02:53:29 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2E7BE19; Fri, 10 Jun 2022 23:53:27 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id z7so1332173edm.13; Fri, 10 Jun 2022 23:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wN1RtBcP0tZreOj0xnYy6ghrnHUaccRwTp8/xCskyk0=; b=drXJ2Nnp1HsY9uMRMmhBW43v8r/PuTtIdKdbLIpof4gruMkvSO9pUpCknH8Xze7s5i ezfcg00I+GMnbUtXVO0iog9WBGxasTz6/b/C0OOQppbbrCuDsflzsHsmyjAYz/TVRdsg SlFUjt6k7bFygzYHTHEczu1gfBmtU/FnDFRrZUOBRK0JCfyJ0dSBW3tKtb5U4sw22a76 3yd6vG2OwqY3MMgCUdCAoiic1bZa4+lwzies/FmLyQXKXC/F/bFsEI1xAod70+5Etp7J /9fJx9Ufx65RoNhSNmmYJvpNLU5e3OxEH0WkW/k1GDfA5g67POyzP9sY7fbkkf2gu8Hj PNtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wN1RtBcP0tZreOj0xnYy6ghrnHUaccRwTp8/xCskyk0=; b=O+WtBmTSWbmYU96Db+2DsYuHlO2St7Xxvf4VLychbuaeDW0ASnuLndSrSWT053Lxks YcSMyP85bLe0ocSarRZds4JKBZkJuSH6L3eReGZjtz4xYnAo0iihLziI2aNjJFXmN1N7 0XvAmqCbs+aRkGOc6ijmlUdWCAUmdhoMHUrRXNu5oIBN88aRsbjfx19b/ifH9HJTMe+f 5EHRTO87uJ7DZAKV2cUa+34fvUTnjBHLDqWx3Wruyl3O1H64OPCMvgs5K9DcaHIZK5Ws b7hsY94/9OqyNcKVx/Tnf99q5yhgxjJGr1xRDInaTp8e4aEtRLzksFjT3AfF09ChKgS/ lhiQ== X-Gm-Message-State: AOAM530QMXjRvwQGQ+yh2eAtPllSL7rpDi+xm36lil46XcVvMShxqvIU 942Bek+YLBcplCHX/typQdM= X-Google-Smtp-Source: ABdhPJzW988HLxC7qcZIhf2eFxRPIiplwpsgoZieAq+H2ABUYvgz0HpnzySBj0UsaABVKLR1pcC4Ww== X-Received: by 2002:a05:6402:ca5:b0:42d:dba5:b2a0 with SMTP id cn5-20020a0564020ca500b0042ddba5b2a0mr55402932edb.197.1654930406307; Fri, 10 Jun 2022 23:53:26 -0700 (PDT) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id v14-20020a056402348e00b0042dc25fdf5bsm874261edc.29.2022.06.10.23.53.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 23:53:25 -0700 (PDT) From: Nicolas Frattaroli To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: Nicolas Frattaroli , Michael Riesch , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] arm64: dts: rockchip: rk356x: Add HDMI audio nodes Date: Sat, 11 Jun 2022 08:52:59 +0200 Message-Id: <20220611065300.885212-2-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220611065300.885212-1-frattaroli.nicolas@gmail.com> References: <20220611065300.885212-1-frattaroli.nicolas@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" This adds the i2s0 node and an hdmi-sound sound device to the rk356x device tree. On the rk356[68], the i2s0 controller is connected to HDMI audio. Tested-by: Michael Riesch Signed-off-by: Nicolas Frattaroli Tested-by: Peter Geis --- arch/arm64/boot/dts/rockchip/rk356x.dtsi | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts= /rockchip/rk356x.dtsi index cc1c5a65c5e5..319981c3e9f7 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -183,6 +183,22 @@ opp-800000000 { }; }; =20 + hdmi_sound: hdmi-sound { + compatible =3D "simple-audio-card"; + simple-audio-card,name =3D "HDMI"; + simple-audio-card,format =3D "i2s"; + simple-audio-card,mclk-fs =3D <256>; + status =3D "disabled"; + + simple-audio-card,codec { + sound-dai =3D <&hdmi>; + }; + + simple-audio-card,cpu { + sound-dai =3D <&i2s0_8ch>; + }; + }; + pmu { compatible =3D "arm,cortex-a55-pmu"; interrupts =3D , @@ -951,6 +967,23 @@ spdif: spdif@fe460000 { status =3D "disabled"; }; =20 + i2s0_8ch: i2s@fe400000 { + compatible =3D "rockchip,rk3568-i2s-tdm"; + reg =3D <0x0 0xfe400000 0x0 0x1000>; + interrupts =3D ; + assigned-clocks =3D <&cru CLK_I2S0_8CH_TX_SRC>, <&cru CLK_I2S0_8CH_RX_SR= C>; + assigned-clock-rates =3D <1188000000>, <1188000000>; + clocks =3D <&cru MCLK_I2S0_8CH_TX>, <&cru MCLK_I2S0_8CH_RX>, <&cru HCLK_= I2S0_8CH>; + clock-names =3D "mclk_tx", "mclk_rx", "hclk"; + dmas =3D <&dmac1 0>; + dma-names =3D "tx"; + resets =3D <&cru SRST_M_I2S0_8CH_TX>, <&cru SRST_M_I2S0_8CH_RX>; + reset-names =3D "tx-m", "rx-m"; + rockchip,grf =3D <&grf>; + #sound-dai-cells =3D <0>; + status =3D "disabled"; + }; + i2s1_8ch: i2s@fe410000 { compatible =3D "rockchip,rk3568-i2s-tdm"; reg =3D <0x0 0xfe410000 0x0 0x1000>; --=20 2.36.1 From nobody Mon Apr 27 16:16:09 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DEDFC43334 for ; Sat, 11 Jun 2022 06:53:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230052AbiFKGx5 (ORCPT ); Sat, 11 Jun 2022 02:53:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbiFKGxx (ORCPT ); Sat, 11 Jun 2022 02:53:53 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E58EA4ECCD; Fri, 10 Jun 2022 23:53:50 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id x5so1391533edi.2; Fri, 10 Jun 2022 23:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ICXO/DGJ5boB7mlSd4xiwerKyKmA2ZX08XZZ4pcrKPM=; b=b/4pAamShqovIyBl8iI9ztI/LhenZJL57ow6DajHUQpr3t0AucBi/h7muZw96HeOFp 2t7PkARM1BNVc8+Y4VvVNq+fSBa3XUF+EtEpjh3fu9+ERHFzn3o1Fv6kB7UpzDOZzS22 965pxi8mqfSrL8XRJz1PqsBoDOrAUoRS67UwiyQz//jPMdKHoUpAtvM5tlwY+jT23VBy +3l+FWJN7hB9lw0FuLx+FfqKwhAWBhJbnOx67vP4EWn26XgiLGAH4K3m0pKNF5xjot1d NeCuen2wKJ6IwpoZAKKj5sdxSHMC1VB1I/CTsoqblrUkkMdbjQfMgTirQfRi3Qjibbbr o6Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ICXO/DGJ5boB7mlSd4xiwerKyKmA2ZX08XZZ4pcrKPM=; b=xNaABUH3W2ICjG+HO6cwLI1YU2igxfEDoc2cGKo1MopNHJKs04qqvsfvHkjaR029RN zJWw4SKfqkj/l50KpU3IafmxEmgT+OHClsCPPhT3iNtZHhzirM9G3gv2xUhr6r7XglMc nz1iUoYORDP6Tnz+No0rOeaWLQhrJdmH9O0tEQZ43WaDiYiYUbGqcOxWEsgjuz6C+7MB kQRwR98mnODqZrHOyObvxPg9Dn886YIbznu+xnvvML8aVvPolSu3fzRJWx37ZrngR3Qq QoezZlKckKCGupUFt4Jvej8UItFdnpFmh0ISmx4s6bwfGlTUh5T3rlaMFPRke8Jk5hIH 8Psw== X-Gm-Message-State: AOAM533yRf/iww8vDn1jWfdb9mJQJlKS86Bpvvu31KoXldPT57/qTUDE Gff2dJR910/8XA4XQp8mgWo= X-Google-Smtp-Source: ABdhPJzX3VjXieTTER669Yy2w3Q2bZlH8GkmHVjM5Re4odhwdth/2IlxLL9pZkieW72w00pl5GAbgw== X-Received: by 2002:a50:c407:0:b0:431:39ed:1c5e with SMTP id v7-20020a50c407000000b0043139ed1c5emr38811155edf.402.1654930429342; Fri, 10 Jun 2022 23:53:49 -0700 (PDT) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id v14-20020a056402348e00b0042dc25fdf5bsm874261edc.29.2022.06.10.23.53.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 23:53:48 -0700 (PDT) From: Nicolas Frattaroli To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: Nicolas Frattaroli , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] arm64: dts: rockchip: Enable HDMI audio on Quartz64 A Date: Sat, 11 Jun 2022 08:53:00 +0200 Message-Id: <20220611065300.885212-3-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220611065300.885212-1-frattaroli.nicolas@gmail.com> References: <20220611065300.885212-1-frattaroli.nicolas@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" This enables the i2s0 controller and the hdmi-sound node on the PINE64 Quartz64 Model A single-board computer. Signed-off-by: Nicolas Frattaroli Tested-by: Peter Geis --- arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm6= 4/boot/dts/rockchip/rk3566-quartz64-a.dts index 59e364b724cc..981c4aeea814 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -310,6 +310,10 @@ hdmi_out_con: endpoint { }; }; =20 +&hdmi_sound { + status =3D "okay"; +}; + &i2c0 { status =3D "okay"; =20 @@ -540,6 +544,10 @@ &i2c3 { status =3D "okay"; }; =20 +&i2s0_8ch { + status =3D "okay"; +}; + &i2s1_8ch { pinctrl-names =3D "default"; pinctrl-0 =3D <&i2s1m0_sclktx --=20 2.36.1