From nobody Tue Nov 26 00:57:39 2024 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52DAB1FE0FF for ; Wed, 23 Oct 2024 16:50:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729702234; cv=none; b=HZgjwcScANYZmpxmodyTBaL5qhGGGsUwsXUSLB91Q4Elpwmr+EdJ+PfHkm0b0AuwuX2X2+fQZi8C8Q617FgZaNU6dzvGBWG3/VrJkJA22vjN857iZolov3I9YgH8ank2Dg6BbzILY/y/u/dRvQL7PAnih+HMPMCFo8xJua4YQng= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729702234; c=relaxed/simple; bh=IyKHYiKufeoyyf7FtpOer1Zd2Wmz7XPsqevI2dedQSA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PBfrkudi1tBSLjcUk7Kp3n3AuXBJCiCZnYuZSA4w6Cot5b8TVLKckn00/SyzXaDC8N25OpcOkZfO0pK/BPqvNUERbShBLeZNSPnG+p/niXaaiQD7szm8tdw1R6Wn6FWlPDcvgZuV5bDL0m20XfFKV1UdBP7CHtk40pK6C/INHKw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=raspberrypi.com; spf=pass smtp.mailfrom=raspberrypi.com; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b=J91/iyfs; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="J91/iyfs" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-43158625112so69899015e9.3 for ; Wed, 23 Oct 2024 09:50:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1729702230; x=1730307030; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=eMBkh/eftMTOn1DNe16yd6Y0TGrb136mnMNPmU1BY5A=; b=J91/iyfsg+CzZQR8GXC/DxTzbxJXbrebeMmANvX5pg3aaKJk4emEWH836o7FlWUSeJ ygxQXBw+7+84s+b1MnPG6DlSo4i5FQINu7d4MItSSzf0XHCNtLuRLlhE5vVMizimH2/+ T43dWe0cjER1F8I0PgqHkl9iBtxxv3rJDS91LkdQ2Xy6zPLybSTRs8QTnZnv0qNNpkef O8ITp+fPzSgivJcTEJP65iKTJ4IoY8Ic6GOqUZpU29UpyV6rBymVNMk/SPPNEXIyyB1H zlI8Sgzs4jjyMIEwtC7SAScO65rk1TjlEcjn3guI242y0LsLFReKf1qIByZznk42rb0W rOiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729702230; x=1730307030; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eMBkh/eftMTOn1DNe16yd6Y0TGrb136mnMNPmU1BY5A=; b=AGWfXxs2XGrj1XLRUoFwpz93sTUHM2Q9qu1Hmr7Tyizo1y8G7mVCPmiJb7vCPSiFYP vBqLX/TRR3YQQ9drm3Lpvw29OAJ5BrOoDXZWunM4LOdov/WRXL1l/QepsKQ2lc8v6xSQ suLb/A4chc7G/8T2dL6zMU4cWJhCfkJZIv/9dyaWaCCZT/R1oFVALHrafSVrk4MU9+wy 3VaBG0UZryxE3qkxeq+HVRCgZx9XA+9gnwUBsmMFfgImJcRsi5uvTntongsIpyq306rk 0S3TqCQDMeI96/hx2VON9H1TBCQX1zqGVDWldGMXHWx81CkflO9wWgzKZO0E4aetBNWX 9OMw== X-Forwarded-Encrypted: i=1; AJvYcCV+/Zp6DPnhjFEtLEt/Pzv87rDkHgVb+yT6Y2Ar7SA+6eTTtg7dfwD66kMJ4w2/jRwIFlo4MoMqtDuG9Sw=@vger.kernel.org X-Gm-Message-State: AOJu0YztvbcESDXYBi4C+d/yPRZ3F4z6HLbPevK8c+vJjqxMFA79Ujfy /8L2d77sbVc73rMmJuAbuItYOF75zysOJpg3pHBnAxRhBMRw2jF5KFMQCpCE6Og= X-Google-Smtp-Source: AGHT+IFCvi+5ahxplV53y8LUMCNwv9cz+F40idXE3AmypoYPX6CS2lFPTrKeznboS3XkfQRNLTCaGg== X-Received: by 2002:a05:600c:46c4:b0:42a:a6d2:3270 with SMTP id 5b1f17b1804b1-43184224094mr28879375e9.21.1729702230506; Wed, 23 Oct 2024 09:50:30 -0700 (PDT) Received: from [127.0.1.1] ([2a00:1098:3142:e::8]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-43186c50445sm21642035e9.39.2024.10.23.09.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 09:50:29 -0700 (PDT) From: Dave Stevenson Date: Wed, 23 Oct 2024 17:50:19 +0100 Subject: [PATCH 22/37] drm/vc4: txp: Add BCM2712 MOPLET support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241023-drm-vc4-2712-support-v1-22-1cc2d5594907@raspberrypi.com> References: <20241023-drm-vc4-2712-support-v1-0-1cc2d5594907@raspberrypi.com> In-Reply-To: <20241023-drm-vc4-2712-support-v1-0-1cc2d5594907@raspberrypi.com> To: Maxime Ripard , =?utf-8?q?Ma=C3=ADra_Canal?= , Raspberry Pi Kernel Maintenance , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , Michael Turquette , Stephen Boyd , Javier Martinez Canillas , Catalin Marinas , Will Deacon Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Dave Stevenson X-Mailer: b4 0.14.1 From: Maxime Ripard The BCM2712 features a simpler TXP called MOPLET. Let's add support for it. Signed-off-by: Maxime Ripard Signed-off-by: Dave Stevenson --- drivers/gpu/drm/vc4/vc4_txp.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_txp.c b/drivers/gpu/drm/vc4/vc4_txp.c index befb99c9b5bb..aab6fa7a8838 100644 --- a/drivers/gpu/drm/vc4/vc4_txp.c +++ b/drivers/gpu/drm/vc4/vc4_txp.c @@ -524,6 +524,19 @@ const struct vc4_txp_data bcm2712_mop_data =3D { .supports_40bit_addresses =3D true, }; =20 +const struct vc4_txp_data bcm2712_moplet_data =3D { + .base =3D { + .name =3D "moplet", + .debugfs_name =3D "moplet_regs", + .hvs_available_channels =3D BIT(1), + .hvs_output =3D 4, + }, + .encoder_type =3D VC4_ENCODER_TYPE_TXP1, + .high_addr_ptr_reg =3D TXP_DST_PTR_HIGH_MOPLET, + .size_minus_one =3D true, + .supports_40bit_addresses =3D true, +}; + const struct vc4_txp_data bcm2835_txp_data =3D { .base =3D { .name =3D "txp", @@ -630,6 +643,7 @@ static void vc4_txp_remove(struct platform_device *pdev) =20 static const struct of_device_id vc4_txp_dt_match[] =3D { { .compatible =3D "brcm,bcm2712-mop", .data =3D &bcm2712_mop_data }, + { .compatible =3D "brcm,bcm2712-moplet", .data =3D &bcm2712_moplet_data }, { .compatible =3D "brcm,bcm2835-txp", .data =3D &bcm2835_txp_data }, { /* sentinel */ }, }; --=20 2.34.1