Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3203515pxb; Sun, 31 Jan 2021 07:43:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+JzOMMghP7dijR3EmrHaDHPOeSibV17/7wS/tHmXPnIku9fOQ1y/oOsnsFr6JiT1kZWTc X-Received: by 2002:a05:6402:27d1:: with SMTP id c17mr14751308ede.109.1612107829543; Sun, 31 Jan 2021 07:43:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612107829; cv=none; d=google.com; s=arc-20160816; b=ey/n1l1LzgaiKPBXiDB6V+lt2M7XTlFc60G1+dBDroc1Spu4mssajVOOnegk+xtn8l AZKtBhwAgbR1FbsmwNOZQE7vgSluLgzqsx81mZr1Y6WLm+mhp7QUNANbO/JsxVLu8crl wKKfH259PuOFl981pixbGnPLo/YDkoEPLFKAxdhvC4CmDPQqjdJ7A+abiZXSlQJD5i+q 36wXW98zKWBGYAL1EjSST+eITgkLs3C6ZFuLtru+JDbKGID7eZ6NXb1F+bC2aR2ofDlQ dn7DalpeifedHZIRs3LC8316iiJ/mFMUFw8H85OZdxgcW7B4UA97NdTn4LlMV3kEoYpw fypg== 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=Fjrhs7HTb3KAOHD/Z4OsRiZR3fTTDer1xRtVh5uEzQQ=; b=asQ1HT7VCxNPFx7Cn+7e7IoPutIkUg2tpFeY9f2uADHzRlsihihIniFyl7D5o/ecCm 3h2PJ4BSfb0sDAJA/oOcpnaKv8x2aaw5+8QCa+W+BoXFcXj2gpjIyZgq35522lyfNhe/ ED33is9kC91Ohd2VuV2xTnNjdEpTPckVcwu2+gujsR1ovX4V1NWRrDil05QqwcnXFfgh oTGaBX4YyM6AckSH4VUZtB3om/rGJrq+GWI67ryDE9GNvpz7mE2A+xGsONiummQ+q4Ei LBIqXy5IMEq+oJCnRUcrqMkoWsAn/cycIY/2YQbW+t2nmnaFOjG4Q1/uSlbBS/EIZ2lz jBJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mggdTO+O; 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 dj5si865094edb.450.2021.01.31.07.43.24; Sun, 31 Jan 2021 07:43:49 -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=mggdTO+O; 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 S232164AbhAaPkc (ORCPT + 99 others); Sun, 31 Jan 2021 10:40:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232160AbhAaMwF (ORCPT ); Sun, 31 Jan 2021 07:52:05 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36C90C061573 for ; Sun, 31 Jan 2021 04:51:22 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id j13so15761372edp.2 for ; Sun, 31 Jan 2021 04:51:22 -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=Fjrhs7HTb3KAOHD/Z4OsRiZR3fTTDer1xRtVh5uEzQQ=; b=mggdTO+OzSrMYTeeVpTG18ltZSkuUAgNUjWRpyNavueifr3EL59jk3fHyG9b5MsMze ad8BHI0O2eNoZY97JPbZ1QHjYDxOXDfc0Jt239VSK3FX5ZnmaZZHpHOJmFQjSbsxjrcM EQFgUhi6D24LVeGlH2+65JujeTPiJ2tO6u+UKnOGCjociHuocF6Jg1lQZlju6V4Y4hKQ Qj3D8U930n43hN2SaK/S6T8jBrHsWPs4uSNHaL9ZTNbjR6NZP+NvO9qB64aQnZMESzb+ W9RI+8p/GXntTFwJV6saoi+FK5gCYRPq3E2th+r2C8lO1DbiXVrfzBGlFvGyH/92YwYV 84aA== 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=Fjrhs7HTb3KAOHD/Z4OsRiZR3fTTDer1xRtVh5uEzQQ=; b=Ie8EgbPQq4GNCiaCRqmJYc1lDd5OmpwGX4/SXy0hf3pH+H1apM4HDLdBLMuCeoYHNG W8SeQjCVFyXixjnTt/0rXDePTdLsIwDfwZZUUUi+qXAKX9XW3VjnYcHb0JwlWxKxQfro lMV+F1fYF0DRnXySYxB11jKkdQVq9nBqsY/ZkN1nIJ1K/trjJ/3z/rullS0p42AOsKTV NRzSmQrD5t64LlQZ98GbNE96HTpEQi9+SBSz9q1rd0RZTXyv8w2r2nVMUVjsmJlM5FSB 4v5w1f3hUYGwo4NHGGFcGFnQQlSSsXUxDlgwxXyhjyLaa4QVpFRo0TYGwjR9pbmH1awk dlsw== X-Gm-Message-State: AOAM531Lm0vltFoKOzCs4E1Ixuto+zDwBSuypGPBINvMgRjGpTskqZfv hyodQm248Xu9Tmc9L55MkFY= X-Received: by 2002:a05:6402:1b11:: with SMTP id by17mr13753486edb.373.1612097481028; Sun, 31 Jan 2021 04:51:21 -0800 (PST) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id i15sm6552820ejj.28.2021.01.31.04.51.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Jan 2021 04:51:20 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Cc: hjc@rock-chips.com, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH] drm/rockchip: vop_reg: add rk3036 hdmi support Date: Sun, 31 Jan 2021 13:51:14 +0100 Message-Id: <20210131125114.10885-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A Rockchip Inno HDMI driver was added, but the rk3036 VOP regs with HDMI support in the manufacturer tree never made it to the mainline kernel. This patch adds only hdmi_en and hdmi_dclk_pol. The inno hdmi driver must set hdmi_pin_pol in GRF_SOC_CON2. Signed-off-by: Johan Jonker --- Not tested with hardware --- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c index 0697057e7..c164690a1 100644 --- a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c +++ b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c @@ -147,6 +147,8 @@ static const struct vop_modeset rk3036_modeset = { static const struct vop_output rk3036_output = { .pin_pol = VOP_REG(RK3036_DSP_CTRL0, 0xf, 4), + .hdmi_en = VOP_REG(RK3036_AXI_BUS_CTRL, 0x1, 22), + .hdmi_dclk_pol = VOP_REG(RK3036_AXI_BUS_CTRL, 0x1, 23), }; static const struct vop_common rk3036_common = { -- 2.11.0