Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4120971pxb; Tue, 17 Nov 2020 11:49:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxE0SyX/n11P9S05f7OrzgWX1XLRGfAx1ZtIxnIC1YVxHAGaW1kJ9QLiBQv9e5OzqENGnZk X-Received: by 2002:a17:906:9719:: with SMTP id k25mr20239220ejx.226.1605642579070; Tue, 17 Nov 2020 11:49:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605642579; cv=none; d=google.com; s=arc-20160816; b=NFfenhg49uyXGGZavTnDsltwNUWj/rbbk7j76JVYrk0Q+Qge7MMVUgZORwb6/xMean n0SiaYA0uBDcjPDewlUi+DHL64i6ejm6uEWbl5oIlgb/jyqbW+KvAYTFhbydNHWDv5OS whBg/GP7iPoNA+UB0CoNu0LfyhfxI/s9Q/iTbniBhX2oKKephPOfKAb/PUDq1lVEgagz Amz3uIPO7tGOejmARPINzDKeWSfc5fLGjZWpFyoPoAxfG3GR3bpgdSQLlZr5yGIBei02 H2NKU8wtw5B77cEUkR6oDVRQsudnL9LcypGvr8qZB1ivj7E7hOQu2o6SFB7Hy/Kvzvyp CnGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=7FuTWq4BSG35jYcVC2y/aAokRjHupx3BOtYk6g9sB7k=; b=ir7pgwH+4StGjYPbNwqQzmzGsnLcNupg9m/y+dYOoMJ/J1E15T9+tG8d633ty+K96E iAtXNmLkXZVX9v7WzFiKGZnwGmo0mJJ6BLXo3MqVKuWw8btMf9JFLaHdvD5tR3lCxgXo 6XFWedcz8wv4sZvxhpZdbOOeDCC5Y93SdVcF5H88KKHtmP+fT/6/xqlMPJrWLz2pHS/b 4/+NLROdqtBoiDxbQBeKOechJZYWEae2wYo8VRGhVozGzyQjT/iiiDWoifT8XugwjzhW HYx1N7dURdgulQ+9FEvVViNKuXA4xQDbSlJdTaVBvinK2wHqOkGxave/iG327N1drdFG 0vJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bEGG7+pW; 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 oa19si14136003ejb.280.2020.11.17.11.49.14; Tue, 17 Nov 2020 11:49:39 -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=bEGG7+pW; 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 S1730255AbgKQTpS (ORCPT + 99 others); Tue, 17 Nov 2020 14:45:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727955AbgKQTpR (ORCPT ); Tue, 17 Nov 2020 14:45:17 -0500 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F0E8C0613CF; Tue, 17 Nov 2020 11:45:17 -0800 (PST) Received: by mail-ed1-x543.google.com with SMTP id v22so23736330edt.9; Tue, 17 Nov 2020 11:45:17 -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; bh=7FuTWq4BSG35jYcVC2y/aAokRjHupx3BOtYk6g9sB7k=; b=bEGG7+pWjohHYGCns+rU7864961TKkiTrUm42uvT6LxfEO1YbnvJekuitA/BWkBKCo qsN7cTlm7OY2hRiTAQmLfnUp5/8RZkKp3Z1cgY6qHSkU2RUHKqAoAI1oAj92qbp+41pe b6MjEliAQcKXdDVxBibvY1dzSUPVoAUuBdgwaCY1IAT2zds2yNeNwWnKqoWmVMTxDpmU Akl7TpvzvH5UZnc2SzUfp1e4+K8aIFpDLyllv88lW4vf7WvlidV+fOa2lO/WErCtz9Eb wrQ/xv8kRnYDHyi6GvBxmPENKiQuoaJ2MA8DAOb2WxOwi6mr7o/5gY81Y8VYrIQ0wr9s 1piQ== 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; bh=7FuTWq4BSG35jYcVC2y/aAokRjHupx3BOtYk6g9sB7k=; b=JAp6rLSDz8xSSKqpNf0dKOYpmnfXdCd6f/RMZzBqBkNcVA/xrJP86Ea2TD46X7YJKl RFKRxO0bu4o9XOunvrSyZZDiNfS7f7jGcWWl6GbrpaIGWMz+GLksPhOnYyx+P0ZfwuRd JIZm5PFFxXglEYxYIQnu3IRH4j1SKim4+hmzHNJqSptYRvhooY7z9RG1c2T+BJ/f6tdE qydrTeqmgPNwqgH0/R1YGCXzoOtqwN5w21ecwiY5RZ5v3t08LemA/UUuguE8Y/QDqXBq /6jKJbg4J1N9u5ghFNYyoiyYyfUaSlwVgyB8aCfBcVFNwIu7otzJPZ7ebzuYYAX/BR2a 04IA== X-Gm-Message-State: AOAM533W0Q0l/jdZDLvWWgLZItY3fGngUjbE7fDBqotSExvZNOKvqAiN 8ReXT93OYkqdnBWGnpbyznfqUawlL14Big== X-Received: by 2002:aa7:df82:: with SMTP id b2mr21560851edy.251.1605642316279; Tue, 17 Nov 2020 11:45:16 -0800 (PST) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id w2sm727972ejc.109.2020.11.17.11.45.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Nov 2020 11:45:15 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Cc: hjc@rock-chips.com, robh+dt@kernel.org, airlied@linux.ie, daniel@ffwll.ch, mturquette@baylibre.com, sboyd@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/7] Enable rk3066a HDMI sound Date: Tue, 17 Nov 2020 20:45:00 +0100 Message-Id: <20201117194507.14843-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org First fix some legacy things in clk-rk3188.c that was never updated, because probably nobody used rk3066a I2S before in the mainline kernel. Update the rk3066a HDMI documents with a #sound-dai-cells property. Include the code for sound in the HDMI driver. Add a simple-sound-card compatible node to rk3066a.dtsi, because I2S0 and HDMI TX are connected internally. And as last enable rk3066a HDMI sound in the rk3066a-mk808.dts file. Johan Jonker (6): clk: rockchip: add CLK_SET_RATE_PARENT to sclk for rk3066a i2s and uart clocks clk: rockchip: fix i2s gate bits on rk3066 and rk3188 dt-bindings: display: add #sound-dai-cells property to rockchip rk3066 hdmi ARM: dts: rockchip: rk3066a: add #sound-dai-cells to hdmi node ARM: dts: rockchip: add hdmi-sound node to rk3066a.dtsi ARM: dts: rockchip: enable hdmi_sound and i2s0 for rk3066a-mk808 Zheng Yang (1): drm: rockchip: add sound support to rk3066 hdmi driver .../display/rockchip/rockchip,rk3066-hdmi.yaml | 4 + arch/arm/boot/dts/rk3066a-mk808.dts | 8 + arch/arm/boot/dts/rk3066a.dtsi | 17 ++ drivers/clk/rockchip/clk-rk3188.c | 35 +-- drivers/gpu/drm/rockchip/Kconfig | 2 + drivers/gpu/drm/rockchip/rk3066_hdmi.c | 272 ++++++++++++++++++++- 6 files changed, 320 insertions(+), 18 deletions(-) -- 2.11.0