Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6408693ybf; Thu, 5 Mar 2020 20:14:59 -0800 (PST) X-Google-Smtp-Source: ADFU+vtRxFwrcIk2pYFrI78LaZY63Ssz5zMxnA2oIPIiNI5IFuBP0AAw/NAy5caLSFtd8gyPI1At X-Received: by 2002:a9d:5e8b:: with SMTP id f11mr1023677otl.110.1583468099360; Thu, 05 Mar 2020 20:14:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583468099; cv=none; d=google.com; s=arc-20160816; b=zj8jtATKbu63hV0iRQus5REeT4K3hMj6NoMuVBIfevz/YimD/6nOr17nLno0vm5yxZ ZbFT9CFYaX1EwXvdz8lo5u/LU9Bp6o3VijyYYGhFMlQHQE4+EuuUzvgnMxUM/EDmkHH8 7rRQxIi7ARpsJutm37qKXLRB3KrA2yGbO/uH4Tu367p5MTs53AQnBcPJ+1KxRoZGneW/ FWUaSBHxNuJyWOCDbJPaVJH7PsqWGu/hgPl7//A3lcKHyHc7dveKMo2IqdVMlhs5+Pvv AUpCzvQnJk0+WqtIHCS2bgogLaij+qDxSYJ6VoSa1pXZj4JvGv+iVvFhwm86oRcwPP0p bQHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mZHNTw4SE3kOWwVknWFPKUrQ1ZVeKTfbVBIEBgdbJEY=; b=uWFOz26UATtu0izL2fd0dRfNWAbwSWA27+x9Vw+WyHeju4vWJoeYA8bLwAIKt3HTmn 48a/WJWI/nFXqDGjH6yHBACYk8WXbOB1Lgigh8RmbT26hUNgIYu8Ot13wXgb0gM9+Qyb QeHQK9n4P9GfhEQ9w3YSF0YbWvobSbHDGRIo+Y9gwHf4trJ3uOGK3nGd0jnJRuKPBcRD zy99iyQGvUygTP9ghPYLVXuBEoxuSL/sPxYhah5kVuVCZ2RYW0zlFueLdbH//+GULDqq oV2l77QthNQUqfgNq3F7uLIX5H4rz4w0H6exCKH7bRLz7u0Z8gWLG2AtrBUg+2ZayUG6 jMqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=k1zGsGNc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g25si743745oti.250.2020.03.05.20.14.47; Thu, 05 Mar 2020 20:14:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=k1zGsGNc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726988AbgCFEOI (ORCPT + 99 others); Thu, 5 Mar 2020 23:14:08 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35138 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726674AbgCFEOH (ORCPT ); Thu, 5 Mar 2020 23:14:07 -0500 Received: by mail-pg1-f194.google.com with SMTP id 7so467342pgr.2 for ; Thu, 05 Mar 2020 20:14:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mZHNTw4SE3kOWwVknWFPKUrQ1ZVeKTfbVBIEBgdbJEY=; b=k1zGsGNc2op5navHqJUmfJnlqXF2SIMxGwKXMlUCnXt9rkmSdDX6Pvp4QwBWTph7zW UmZDgjq/YJN+aB8K4Nr8Yjp6Ctzbra3GsGawt8s/1cy9kNUlxDtcdmKYSdzYOc2ozAwR z7EIT/2t6q/nL/wYBvnleCud6PBMt4qDR3dk8= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=mZHNTw4SE3kOWwVknWFPKUrQ1ZVeKTfbVBIEBgdbJEY=; b=pvFXBG4IELT0sc7ZUZYKhGod1J9DLtlc1+4ZCA1WOLKRtZ2PWZbIlA3GYYn1xyl1wn dtnnwf2jwNhAismqfJbg1knfBlTJkZ28Q5erI6pa71HM5xYno/auQrezUC/rXMSmAJpf HzzocnpZXL+OLkMVrsOVYymIlcqjMuhuaZWuGMYHSJmyqqlc+W6BAQUlwBs8uMD80YCD OoeoaaMBBao4VJyl+POKF5xwf6fHJnMmdKLjbjNLgNDDNUqql9gMghnyVGrJ3DWwUEBX R5GIijt+XnEtRmqX6hYZMQZY9iqyqcQaXzERnumO16FLONQ13DWITvOEwVj/4fMZscIi 8iig== X-Gm-Message-State: ANhLgQ0OfhEPkA1PPKIidqHSX8a2XWP5A7OmdgDPbpHE8wWBHmq+S0af sIZTFm7t49XQ1z05JiLf64fMmA== X-Received: by 2002:a63:3142:: with SMTP id x63mr1455866pgx.138.1583468045232; Thu, 05 Mar 2020 20:14:05 -0800 (PST) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:d8b7:33af:adcb:b648]) by smtp.gmail.com with ESMTPSA id q97sm6295025pja.9.2020.03.05.20.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 20:14:04 -0800 (PST) From: Nicolas Boichat To: Rob Herring Cc: Nick Fan , David Airlie , Daniel Vetter , Mark Rutland , Matthias Brugger , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , Liam Girdwood , Mark Brown , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, hsinyi@chromium.org Subject: [PATCH v5 3/4] RFC: drm/panfrost: Add mt8183-mali compatible string Date: Fri, 6 Mar 2020 12:13:44 +0800 Message-Id: <20200306041345.259332-4-drinkcat@chromium.org> X-Mailer: git-send-email 2.25.1.481.gfbce0eb801-goog In-Reply-To: <20200306041345.259332-1-drinkcat@chromium.org> References: <20200306041345.259332-1-drinkcat@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For testing only, the driver doesn't really work yet, AFAICT. Signed-off-by: Nicolas Boichat --- v5: - Change power domain name from 2d to core2. v4: - Add power domain names. v3: - Match mt8183-mali instead of bifrost, as we require special handling for the 2 regulators and 3 power domains. drivers/gpu/drm/panfrost/panfrost_drv.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c index a6e162236d67fdf..ff76b29b373e105 100644 --- a/drivers/gpu/drm/panfrost/panfrost_drv.c +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c @@ -667,6 +667,15 @@ static const struct panfrost_compatible default_data = { .pm_domain_names = NULL, }; +const char * const mediatek_mt8183_supplies[] = { "mali", "sram" }; +const char * const mediatek_mt8183_pm_domains[] = { "core0", "core1", "core2" }; +static const struct panfrost_compatible mediatek_mt8183_data = { + .num_supplies = ARRAY_SIZE(mediatek_mt8183_supplies), + .supply_names = mediatek_mt8183_supplies, + .num_pm_domains = 3, + .pm_domain_names = mediatek_mt8183_pm_domains, +}; + static const struct of_device_id dt_match[] = { { .compatible = "arm,mali-t604", .data = &default_data, }, { .compatible = "arm,mali-t624", .data = &default_data, }, @@ -677,6 +686,8 @@ static const struct of_device_id dt_match[] = { { .compatible = "arm,mali-t830", .data = &default_data, }, { .compatible = "arm,mali-t860", .data = &default_data, }, { .compatible = "arm,mali-t880", .data = &default_data, }, + { .compatible = "mediatek,mt8183-mali", + .data = &mediatek_mt8183_data }, {} }; MODULE_DEVICE_TABLE(of, dt_match); -- 2.25.1.481.gfbce0eb801-goog