Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp214472ybv; Thu, 6 Feb 2020 21:29:10 -0800 (PST) X-Google-Smtp-Source: APXvYqw2J+F6nMz2+vhw0OCQu/8JcrXmWCrmHDHrGTL1btCj6qxZHiOdjywGZeSAlJIjTFuG8xm0 X-Received: by 2002:a9d:74d0:: with SMTP id a16mr1313888otl.228.1581053350827; Thu, 06 Feb 2020 21:29:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581053350; cv=none; d=google.com; s=arc-20160816; b=Q5Ix2BuC2UQSgcn5xVRZHB0akvb0XaxexpNJVN08KVLTN8D9ZWMKgHyNpN1fBTNoHT 23raa4S33ywdzwnhKuz9W/McHZMYpd9eJWvN3aSeDSIqA7cYyG+4jXv/SfBD0U4eXyYu Mf5KhZ0uBtfICM7RRZqrN+cu4OxKBYDo5GCmR6WdSlQirLAPWGu1DSqvPiS2ZCV13AU/ iKGn+zBV7EQpRL3Yad0pJxfD2vlLoEALYukAsIGHicN5ZGLHSSqkpuyUyFoDKFF2rYXg 3r+jPZS/bR5+l9deO2dM5ngD9/EBVHItf5xprmYgdZhxAwVp/x7PyyJUS84KO5Qm8jS/ 81Tg== 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=1OPawnjFjdppk48OdmcnT2/7I2TyhqjSstM3nsHqEyQ=; b=HveUe8GhD3pKFVDae6uwSc396zdqxUQTVOC5DW1icUQKEY3qTn8oFEkBMtN9P30geL LuQvHjg0fLnx5IvMGOhpRJj666tpRnJEGEPMOdXr+KeF+ADtYcWfGr+tFUMnqRgLiufn o+hh036SkbmSW2tijS1xHgEP/rgrLzFyhM1BaV6LqlfvuL5dDcYelNFsCCCSIyhvSOvx qLXUJpkz0zY2IxHTq5j7ItwPIMs64gZwxsljBYPQDg9nqR8T/uB0dwbqllDxByp1cB0J 5pSjV6PYFJW2dAt3886KVS5rt9I4s0LHUnqAZOxfuLlqRut/5r6iNSo8GWKcVEIYJZuO FwDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=leq9iVWF; 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 s188si2932544oia.277.2020.02.06.21.28.58; Thu, 06 Feb 2020 21:29:10 -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=leq9iVWF; 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 S1727075AbgBGF1L (ORCPT + 99 others); Fri, 7 Feb 2020 00:27:11 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:50217 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727047AbgBGF1J (ORCPT ); Fri, 7 Feb 2020 00:27:09 -0500 Received: by mail-pj1-f66.google.com with SMTP id r67so434454pjb.0 for ; Thu, 06 Feb 2020 21:27:09 -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=1OPawnjFjdppk48OdmcnT2/7I2TyhqjSstM3nsHqEyQ=; b=leq9iVWFFwWc9SzvLj2OAYbrGFc+oehb6yV09Pzq1ffNBybAnHS5RyCURmnyFsX0im YaWhNs+Nl6tLggbvcAWNUCDzNlX5w06vGsu5yjYtf3DlLPTZoJsvQlAbq2Zxlqv3EFxL 1QJBK5hAfU+PS0NW8uNLYDPFvg60Kt9nVRxiI= 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=1OPawnjFjdppk48OdmcnT2/7I2TyhqjSstM3nsHqEyQ=; b=AT5db2QviNtYFFIyt84CisNUQCrdN2mI4zwWmseKHHz6rXaoZ73zn6H0gqmWFD4nhe YfFNYuMXh5Xj7dxYIbHdaMSKllBATs1SE9jy7EnHTNXAA1ygUyKrPhZFMo0QyC+BjPA4 37YCTuKg+YXAD+6/kpykC6pN5VAl8zOzvNduoSJ4q7qeEZHYzUseYXGLwmZrtf6dHmTH rzk7Q1VteUGI79wfU0i4Pkxok1nY1AKdVsHxWlgjdJnPw2lPObsBBRiJPQ7LelwuCwmj jqMmQgb4o5faro6vYnGy1kiKxPlQagQrqESV67vh4nBIXdDz1yYMbJcpwghUbNkZPYRG ch8g== X-Gm-Message-State: APjAAAUTgsU/vMXFpqMt5GayVLPsmle73SIvXWDnt6+PfHwrHa/mduNf +ibJH8iv2iMlxeyzJ6JbOSeZWQ== X-Received: by 2002:a17:90a:36af:: with SMTP id t44mr1758975pjb.25.1581053229151; Thu, 06 Feb 2020 21:27:09 -0800 (PST) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:d8b7:33af:adcb:b648]) by smtp.gmail.com with ESMTPSA id i66sm1174485pfg.85.2020.02.06.21.27.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 21:27:08 -0800 (PST) From: Nicolas Boichat To: Rob Herring Cc: 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, ulf.hansson@linaro.org Subject: [PATCH v4 6/7] RFC: drm/panfrost: Add mt8183-mali compatible string Date: Fri, 7 Feb 2020 13:26:26 +0800 Message-Id: <20200207052627.130118-7-drinkcat@chromium.org> X-Mailer: git-send-email 2.25.0.341.g760bfbb309-goog In-Reply-To: <20200207052627.130118-1-drinkcat@chromium.org> References: <20200207052627.130118-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 --- 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..497c375932ad589 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", "2d" }; +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.0.341.g760bfbb309-goog