From patchwork Thu Nov 25 10:08:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Frattaroli X-Patchwork-Id: 12693622 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 11C13C433F5 for ; Thu, 25 Nov 2021 10:11:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=HjSD89RPXl/s3QNdPtHX0+FWfdLk+pIeno5zDnhAVuA=; b=Ul0kS/oC7GJnE4 8HENJj0pdAePEMI3YNVJkULgy9/Nrxt0Sz2Lcg7+ZQ/fCN88yXQY/i3BTi//SYB/bpz8HKnG9F2vE LGvisGH7BNkqGhKcpOroGLK5GnbSGexnTtLJcFPhJYzsQK+CKVE5BJMsDs/Isemy3ZMQ1VtueajP6 FxBEuCxe88t+ZPFUDktTdOcgyYggaXQl/mfvnDygIuPu4NCOFQ7N4+ip0u7hdgxImxdpmYr0GZNEP 0hPPcxo5g5ocUFXVHJ4Z8GGAPAw6/D82F8ou6bsTV9SzPdfAq44lGN+7OOgCe/hRSwESQBH5CV0kK wOEaYdefzDC1MJjsKJRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqBh3-0071dx-Bu; Thu, 25 Nov 2021 10:09:29 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqBgy-0071dR-Ou; Thu, 25 Nov 2021 10:09:27 +0000 Received: by mail-wr1-x42e.google.com with SMTP id i5so10444898wrb.2; Thu, 25 Nov 2021 02:09:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=J+AtvgH+7tJCkwntCUuKAinCiI1X+dL5Twz4eHbpnSA=; b=HxLT5Q1gn5HUt2NyWHrfdnd+rnUJS949xIcNw6EQXva9nC1+AU8e+oPVbDXQHfJtNZ w7vdjVlJZFaxzarDK2i4Wkzhqn+derFY8ugo5Pwu6CAses1ldHNypA3Nm83w6Jzrc7zK MBE0JYCC3xwrjXZJQTUQ8G6THa0ljYucoGHQwyyOEEg/eVZAN+0YAH5yn9VMZVvHsiMC 9xYo+hViPXrQ1xgzlJqpk6foca7iIytbdk/q8elp+QK0RUJC2H4uqAGDvToJl3LueEus 6mc7lOEVzHfEzf+RrT8NZAfAiGURADZl9U+hX7GAH0IkYWOe2bXNX/gt0c9VQu2JvfdI sNOA== 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:mime-version :content-transfer-encoding; bh=J+AtvgH+7tJCkwntCUuKAinCiI1X+dL5Twz4eHbpnSA=; b=N8JyrFvvK//y/mbiqn4uAsCtMxaoFd1bgU/dr9aotw0LVfVFoDNQWpdinSqa4kVg03 oMAJhjr4a0BQlQ0RG88Nc5Zf4f/sSikg2UkafQm3ZMmTs+pmJm5YrPLUggTM1WVwX/tD 3cY0nUYxjCmbgBqK5fODtnXD+0fzKf3OXHQQRc00oVPNwbL2399AfgrlAyXd/BFIxfge 85VnDypNHNO/VymacwNznc7TFR98dVq9trVX42KtXp6RjUWjKeae1+egzypcRnOy31gk l2YDZRoiwMiZlszfU6oRQ6yQwI+4Z7awzHg6Uhl/csnUjJXdPfSvY8YZii0lUhoBJ/uE MDPA== X-Gm-Message-State: AOAM533m1YGhieuJoQPTjS+zUHyh/QvwnrelGlODf4NROV+PcPfz8j5m AaMAPy1SCrln8abnApHp808= X-Google-Smtp-Source: ABdhPJx2/KokuDdsW4Y+JnPROVHOSvBpezAOB9oUvI0LHwE9CQPCaZKK4T/lBrFt8o/nUhI3D9vQOg== X-Received: by 2002:a5d:628f:: with SMTP id k15mr5307647wru.363.1637834962587; Thu, 25 Nov 2021 02:09:22 -0800 (PST) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id l7sm2903533wry.86.2021.11.25.02.09.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Nov 2021 02:09:22 -0800 (PST) From: Nicolas Frattaroli To: Rob Herring , 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 0/2] HDMI Audio on RK356x/Quartz64 Model A Date: Thu, 25 Nov 2021 11:08:33 +0100 Message-Id: <20211125100836.423808-1-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 X-Patchwork-Bot: notify X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211125_020926_530302_547C416B X-CRM114-Status: GOOD ( 11.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This enables HDMI audio on Quartz64 Model A, and the RK356x SoC in general. The patches require the VOP2 patchset[1] and my I2S/TDM controller fix[2] to work. i2s0 on the RK356x is connected to HDMI, and only has one DMA. I've confirmed this with the TRM. With [2] the driver now handles this properly, and does not try to register a capture PCM in this case. To test this, one needs a video clock, i.e. there is no audio if your screen is off. I've found that running kmscube momentarily is enough to make the VOP2 keep the screen turned on indefinitely, which is a pleasant quirk in this case. [1]: https://patchwork.kernel.org/project/linux-rockchip/list/?series=581709 [2]: https://patchwork.kernel.org/project/linux-rockchip/patch/20211125084900.417102-1-frattaroli.nicolas@gmail.com/ Nicolas Frattaroli (2): arm64: dts: rockchip: rk356x: Add HDMI audio nodes arm64: dts: rockchip: Enable HDMI audio on Quartz64 A .../boot/dts/rockchip/rk3566-quartz64-a.dts | 8 +++++ arch/arm64/boot/dts/rockchip/rk356x.dtsi | 32 +++++++++++++++++++ 2 files changed, 40 insertions(+)