Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2364496pxb; Thu, 11 Feb 2021 10:26:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmz8/ia4jfS69Ak9O7ae2HENyEHcQi9HRo0QC1m43m68JGXzbOpOSBlZnq+kDwcWI/EIve X-Received: by 2002:a05:6402:b86:: with SMTP id cf6mr9846459edb.66.1613067970712; Thu, 11 Feb 2021 10:26:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613067970; cv=none; d=google.com; s=arc-20160816; b=b5ZCBeVJ/0R84sAKcK2F4ktQlBuMnvB3xeCXkro6Jo6nWzCufcv+jOc4nv1jTVoIMK waMtnA7IFmW4Dyll9eP2BXKFeE9GV2NOrjjsUBxL9U+2QeVZDLxmBoR4fUG5H4ZdX+MJ 0ji00u8fQL4EfgaLcubVcyz4CZ+4GDo3IrrX0QUUWOQJCco/lcUYZekj6McBr1dB7tMc 5JNFPeOWEw16Okr7eW86ajyogDZ3kWbEeoLrvIFtQJe3iw39dsKYHvtfYsHvqGbmH54c fv7NiNfAh9L84/BEd97gTNP3LBo+y90NYje6goy+3ppfByHJzR6Uexk1cjF4c6XQVdCE lkcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VFjJmq0Au97vKEfgrOVE/VaVkFx8gpBh2nvbd9qF3qo=; b=rVQ5MGJ4+oATDC7zdMrWBninfPLneIMw98SaXVyYuV8R9KsW2tZz259yj1Z4IjsZei i6oSrD/d5FwEbs+mCdoql/+3F8Zy5edH3mYUjNVkW8TxBD+HknyL5GBLEl3f4SnKMz7z mSILWNAcvGw2R8V79qFv38y3M8ipLakwNiUNkueYBauvWHbz/OgZosBB/+5KBsMxW1jS 9QMmcMlMW0UZYe3Kx+2bWJBNi300klQFzetyIX6n3ErVDWQHXFRFyqjjhjs9RoZmiY1D JKpDve1dX1VlJxjhHBYbK9rndm2Z23A8UYJOQz1r0oWpWTOvt4iD1UiFHgToZLJ0O6IH WH1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=oLsfKtdB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p17si4618254edi.439.2021.02.11.10.25.45; Thu, 11 Feb 2021 10:26:10 -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=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=oLsfKtdB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230159AbhBKSX1 (ORCPT + 99 others); Thu, 11 Feb 2021 13:23:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231489AbhBKSLn (ORCPT ); Thu, 11 Feb 2021 13:11:43 -0500 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B933C06178A for ; Thu, 11 Feb 2021 10:11:02 -0800 (PST) Received: by mail-qk1-x730.google.com with SMTP id f17so2828061qkl.5 for ; Thu, 11 Feb 2021 10:11:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VFjJmq0Au97vKEfgrOVE/VaVkFx8gpBh2nvbd9qF3qo=; b=oLsfKtdBHgllepKJH+vCG8ut+yPBNLBuIoJxElvlb/FuPzcilauZ/SmNL6X5o5UsRt 7kgMYEisLa3F6ekLvZS0hKkit4uEnWNYGoZN51/8t6V7wRzntCT08ZURW8fVnqtINRDe GCEE1RwttUoNIuzNv/9nLugzzoGR5F3XOdhjCbBX5EWpoiiQMBcC5+LYFm3JFd9WaVBJ BgEdSnczRdO8p/cG0vx3NHGkZS61JVd4N+YdbVLA8Zhbdk8HDY1QEUfUOXv+/KTde2HV ZWwZwRdcbZRinUwpKnkckinczIHGV1qs+/yejTNURBpRBDvNgfKZ/y93LNfsNWS83m6y ogNA== 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=VFjJmq0Au97vKEfgrOVE/VaVkFx8gpBh2nvbd9qF3qo=; b=Mcw0lYMxOZEbK9nhORxoPfyA2Cw1yfi6sdXRbS5YMpRK9T377vwL6V+EEZ4+57FQgo ylLW1++5v2oAtv8yY9y3c3j2bg13OYm4GoCbeL8mLA5mbDytg6eTkN8CPzWQdI6Cldxu VzEuax/W6mTqGzgoirkOjTp1H5mOfH+DoZD2Cd9QXQTJNQtK7X+H3CUNW+AmFi7kv7qX 8C7kUZ598DCpw+qNEezbtizrNkwkGYVMECJ+um/IHjLmqklX0ntFZ76IySMHpAK3fVFz mFMFOl35/+d05HyAjCl+Q2DqQ4niHiVUGnYYAA5BBdR1IskDvHX9amhGPvh0ujkDhcJf AtZw== X-Gm-Message-State: AOAM533E4FetW1MugNYE7eOh+1aEmr2Ds9kFTf4aS1rXm4xsiSWrISRF GUGJ2YCdPz88Y9yrFPywTqkolw== X-Received: by 2002:a05:620a:1315:: with SMTP id o21mr7456372qkj.3.1613067061549; Thu, 11 Feb 2021 10:11:01 -0800 (PST) Received: from localhost.localdomain (modemcable068.184-131-66.mc.videotron.ca. [66.131.184.68]) by smtp.gmail.com with ESMTPSA id 11sm4615412qkm.25.2021.02.11.10.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 10:11:01 -0800 (PST) From: Jonathan Marek To: linux-arm-msm@vger.kernel.org Cc: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Jordan Crouse , Kalyan Thota , Tanmay Shah , Eric Anholt , Drew Davenport , Jeykumar Sankaran , Rajendra Nayak , tongtiangen , Qinglang Miao , dri-devel@lists.freedesktop.org (open list:DRM DRIVER FOR MSM ADRENO GPU), freedreno@lists.freedesktop.org (open list:DRM DRIVER FOR MSM ADRENO GPU), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/2] drm/msm: add compatibles for sm8150/sm8250 display Date: Thu, 11 Feb 2021 13:09:58 -0500 Message-Id: <20210211181002.22922-2-jonathan@marek.ca> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20210211181002.22922-1-jonathan@marek.ca> References: <20210211181002.22922-1-jonathan@marek.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver already has support for sm8150/sm8250, but the compatibles were never added. Also inverse the non-mdp4 condition in add_display_components() to avoid having to check every new compatible in the condition. Signed-off-by: Jonathan Marek --- Documentation/devicetree/bindings/display/msm/dpu.txt | 4 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 ++ drivers/gpu/drm/msm/msm_drv.c | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/display/msm/dpu.txt b/Documentation/devicetree/bindings/display/msm/dpu.txt index 551ae26f60da..5763f43200a0 100644 --- a/Documentation/devicetree/bindings/display/msm/dpu.txt +++ b/Documentation/devicetree/bindings/display/msm/dpu.txt @@ -8,7 +8,7 @@ The DPU display controller is found in SDM845 SoC. MDSS: Required properties: -- compatible: "qcom,sdm845-mdss", "qcom,sc7180-mdss" +- compatible: "qcom,sdm845-mdss", "qcom,sc7180-mdss", "qcom,sm8150-mdss", "qcom,sm8250-mdss" - reg: physical base address and length of contoller's registers. - reg-names: register region names. The following region is required: * "mdss" @@ -41,7 +41,7 @@ Optional properties: MDP: Required properties: -- compatible: "qcom,sdm845-dpu", "qcom,sc7180-dpu" +- compatible: "qcom,sdm845-dpu", "qcom,sc7180-dpu", "qcom,sm8150-dpu", "qcom,sm8250-dpu" - reg: physical base address and length of controller's registers. - reg-names : register region names. The following region is required: * "mdp" diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index 5a8e3e1fc48c..fff12a4c8bfc 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c @@ -1219,6 +1219,8 @@ static const struct dev_pm_ops dpu_pm_ops = { static const struct of_device_id dpu_dt_match[] = { { .compatible = "qcom,sdm845-dpu", }, { .compatible = "qcom,sc7180-dpu", }, + { .compatible = "qcom,sm8150-dpu", }, + { .compatible = "qcom,sm8250-dpu", }, {} }; MODULE_DEVICE_TABLE(of, dpu_dt_match); diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 94525ac76d4e..928f13d4bfbc 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -1185,9 +1185,7 @@ static int add_display_components(struct device *dev, * Populate the children devices, find the MDP5/DPU node, and then add * the interfaces to our components list. */ - if (of_device_is_compatible(dev->of_node, "qcom,mdss") || - of_device_is_compatible(dev->of_node, "qcom,sdm845-mdss") || - of_device_is_compatible(dev->of_node, "qcom,sc7180-mdss")) { + if (!of_device_is_compatible(dev->of_node, "qcom,mdp4")) { ret = of_platform_populate(dev->of_node, NULL, NULL, dev); if (ret) { DRM_DEV_ERROR(dev, "failed to populate children devices\n"); @@ -1320,6 +1318,8 @@ static const struct of_device_id dt_match[] = { { .compatible = "qcom,mdss", .data = (void *)KMS_MDP5 }, { .compatible = "qcom,sdm845-mdss", .data = (void *)KMS_DPU }, { .compatible = "qcom,sc7180-mdss", .data = (void *)KMS_DPU }, + { .compatible = "qcom,sm8150-mdss", .data = (void *)KMS_DPU }, + { .compatible = "qcom,sm8250-mdss", .data = (void *)KMS_DPU }, {} }; MODULE_DEVICE_TABLE(of, dt_match); -- 2.26.1