Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4889174ybl; Mon, 13 Jan 2020 23:17:54 -0800 (PST) X-Google-Smtp-Source: APXvYqyUaTjj3P8B6YAMmM/CeTjiiCktppYAYZvDj8J8V+Wm8GLU57wrSecZQ6O244m33rUnDAN/ X-Received: by 2002:a05:6830:1586:: with SMTP id i6mr15091382otr.221.1578986274271; Mon, 13 Jan 2020 23:17:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578986274; cv=none; d=google.com; s=arc-20160816; b=Xbwyjuhy4YXOFBBMFYg9tgriHDG8TeSwBEs12x9lds4GNY2vYMWa1bPyJjUAHr/oIN b0I5XPdEqzSqVJWXOD9Ce4t/Q1M0lgfXIh91E5/Mx4BsS77U2nd9o0QqUYXN48t22l4X oUZ8N3QlD0UO57jVLqIvg0vHFg10KZrBNanfBGDnJIka85+KJ2/eb0OX4rUyIDjzbrHk KNho55BJ8g+wrgZSnnL5IZp90cJDwqNrT2EfE8AzJYl9MZQ8Za/ZZpXSaophRMF5kYUJ PU2C2r42xs8BAH8Yt2Nq2cbSXatofkDva4KCv/AuYfTJMXGuszVQwZ3kIDdpNM2qGSog ji3Q== 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=e5zg+Nyx8gIh15cqNDiymw6e+al01EbMcgFt2zvz0/E=; b=aAokBUOSLmZ6B1mjm79DditGLnjG7zmWpzE9nWs/d+NMZfSfUXK5HAlV9tJ6oEOWv2 LZd1/wiPfSX8kdhnoxV0uxoDxE82sBTKSyH8UZcErqzJhMSMOqBhzhPWblQAwP5WWfQT wrwYeOwu9BfkMv3dPDcA6xO3mL1cU0qJ7hwJffDDyFHvtOETYaQ4bOiE61xf7rggUk0c IQAGXQp98YIY/Wvys7pWBJYsNhI4MA/1K1sMd+F/5wUz7ca5tQvOjpCd3fmI6YOLzXS2 EZhR7ciEdV9M8dkjeyZbI7Z8TIjZwYUtlPnxpJgrUuOO97T0OI7o/EVnmVtCBax5GgUP 3L1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ithCmGPB; 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 h13si8799287otk.291.2020.01.13.23.17.41; Mon, 13 Jan 2020 23:17:54 -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=ithCmGPB; 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 S1729073AbgANHQ3 (ORCPT + 99 others); Tue, 14 Jan 2020 02:16:29 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:56074 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729057AbgANHQ1 (ORCPT ); Tue, 14 Jan 2020 02:16:27 -0500 Received: by mail-pj1-f66.google.com with SMTP id d5so5292450pjz.5 for ; Mon, 13 Jan 2020 23:16:27 -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=e5zg+Nyx8gIh15cqNDiymw6e+al01EbMcgFt2zvz0/E=; b=ithCmGPBDK/u6wxmb7C8KnWpF6VLxN1iVW9EKRTQdp6gCK/wkyNVGMrjLzSyYPtuZj KT0dAo1mqlGPGF8vvWskaLxI8E4PJM7ppHVCuRSeKdX+EsfMf57sl+NMqrMkGaZe+a9e jMDmnOEr16LjZs3JxaJxhJ4YKueNcn/vlkQrw= 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=e5zg+Nyx8gIh15cqNDiymw6e+al01EbMcgFt2zvz0/E=; b=LNQB0hkr357dGwowasq6ZUiBeVEEBLbPjHcm4XgOjJ6q/Qmmb4l1q6NDASd7DwnGn2 Prei/+wL3TSufUb1A02FSbLCDX0gHvHvJxECwzI89rZpUOsd1lmYY5Vd2NGeilLgpNcv Ro/M3Wcch2+vK32+c2xEoEfHPGL1ZbNl7n95XChMUlDDGsjS28roE2DIOIS4h3gyHCgH Fz2y+fu/pKaxFi2J3+++bX8YxeJMjgL8WGyer/rnsvHiQDv/XQ2ooxsLEa2uJQagzEiU HSY16CoNrRzTPPC+3JSJ131AVsLfhIB2NTQKhvKF3XY8fh9zvCIh5PmmNJbj/iHzqhtC yVWg== X-Gm-Message-State: APjAAAUeTFqh3FJdXec3HNhfCDKytUGGclKriT1dzliFl6ucZBwYt6oK svmpiDFjI6QQQ1a6Mro+B1o4wQ== X-Received: by 2002:a17:902:fe90:: with SMTP id x16mr17202238plm.31.1578986186739; Mon, 13 Jan 2020 23:16:26 -0800 (PST) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:d8b7:33af:adcb:b648]) by smtp.gmail.com with ESMTPSA id b4sm17092976pfd.18.2020.01.13.23.16.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2020 23:16:26 -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 Subject: [PATCH v3 6/7, RFC] drm/panfrost: Add mt8183-mali compatible string Date: Tue, 14 Jan 2020 15:16:01 +0800 Message-Id: <20200114071602.47627-7-drinkcat@chromium.org> X-Mailer: git-send-email 2.25.0.rc1.283.g88dfdc4193-goog In-Reply-To: <20200114071602.47627-1-drinkcat@chromium.org> References: <20200114071602.47627-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 --- 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c index 42b87e29e605149..3379a3ea754ccde 100644 --- a/drivers/gpu/drm/panfrost/panfrost_drv.c +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c @@ -592,6 +592,13 @@ static const struct panfrost_compatible default_data = { .num_pm_domains = 1, /* optional */ }; +const char * const mediatek_mt8183_supplies[] = { "mali", "sram" }; +static const struct panfrost_compatible mediatek_mt8183_data = { + .num_supplies = ARRAY_SIZE(mediatek_mt8183_supplies), + .supply_names = mediatek_mt8183_supplies, + .num_pm_domains = 3, +}; + static const struct of_device_id dt_match[] = { { .compatible = "arm,mali-t604", .data = &default_data, }, { .compatible = "arm,mali-t624", .data = &default_data, }, @@ -602,6 +609,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.rc1.283.g88dfdc4193-goog