From patchwork Tue Oct 5 23:13:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 515269 Delivered-To: patch@linaro.org Received: by 2002:ac0:890a:0:0:0:0:0 with SMTP id 10csp39786imy; Tue, 5 Oct 2021 16:12:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7Z1aDyFFVgpSDUKh5EWObF2Izhg2UV8R0HXFVANvlwnWibsD3huyLjCrfTbjJs/DOwlDx X-Received: by 2002:a17:906:a18f:: with SMTP id s15mr29332433ejy.269.1633475520454; Tue, 05 Oct 2021 16:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633475520; cv=none; d=google.com; s=arc-20160816; b=AMSSwsYxPRi6qRtNiJWA/u4AfFgRZrO/BH4DnotOMHGShF5nLQ6Wnq4b9PdEtYWFcp +tnUM0zOw1Zmumplg2vWybfVheyWW+5mhsvldSxZ2GpPw+BlxpUDGFDrQeJ3JA2TutqO 5SMgZxgwgu+wKHmzVSZPBnzLDw4jFwI0dNhmR6VrEtgGzkap5l8q+qi8wkLFeSPqRmz+ hH8lSM2JfpoIOa/eted4i0jPtyKN86o/79sK9uxVA8w5EJRVi5JpI5g+PvZuJHIK6YEk 1e6QcKnxA/tBGocAeFblQCQf6+s3ey5cnPz94/EOD8pOzul9PsUK+Ivta5N+uEQ/AwaJ QKQQ== 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=/v5p/Ve9RUFoo4IfDLEcH542gJPDz9Km3sRmpush8O0=; b=XkZPO1SsQepWE9cn8/JCAUGvsM6ZC9PPZu+j36RymA+Ov0nGT9f2T4jBqVT3x4wxn4 M/hBrMRYe3MmnRDOYTMHyrjvLc1+RcvUj3pn8OASjS4D+edtdHXPGGREdGqkVOoI60QH Th0TMbp9+rpKTbBnfa4ZoYZGVtyyF1mP+yLSr6ItASSCLIP6FTBwDkv8g1y6hnjWhbG1 fLdE222ko/gaBsdKgRx71WouYH0IzuXw9b73puaWY1gu7aaJiN6H4OFRNR2hWZgUjkpr 7wBa3U84gAi+O3CexJMGizW0Th640gZlBrM3uFKRkjsie3fElM3BGcCYL0QMKSC/KySJ XKyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k2ecrN8f; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si2147299eja.677.2021.10.05.16.12.00; Tue, 05 Oct 2021 16:12:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@linaro.org header.s=google header.b=k2ecrN8f; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237105AbhJEXNt (ORCPT + 17 others); Tue, 5 Oct 2021 19:13:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237016AbhJEXNk (ORCPT ); Tue, 5 Oct 2021 19:13:40 -0400 Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A7A3C061749 for ; Tue, 5 Oct 2021 16:11:49 -0700 (PDT) Received: by mail-oo1-xc2f.google.com with SMTP id e16-20020a4ad250000000b002b5e1f1bc78so278076oos.11 for ; Tue, 05 Oct 2021 16:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/v5p/Ve9RUFoo4IfDLEcH542gJPDz9Km3sRmpush8O0=; b=k2ecrN8fG+oc/ePYrUrEfKSsZnF70RnwIGl0D+YFgs+/6hrQyKZ3lkQfiDiKf71Bmq xYwRZpD6bhce4lZK0kfC6K9a/CvWkohMCr6hMZfLM38IYXPfZ/JfNE+Hj0lAtcyiZfw6 HFFwpimwhjy34R5RPKn1wVx+cH4rTbBCg2SaEJeljevKMfI5ZRRvV3kwgpL3TJwP1Edr U2pKmyvSTfvWqyovSKsos5xY1DQNk2EFcevADRE/TECsRy+B6C3JRQ0OpDNr7VHXarg/ 7dO4RO8SUQAo7gOifCFEQrzcub2BArQVX6AXn9zEunjrzB/oeGjN7B5WpYpK2tqMUKhl DiSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/v5p/Ve9RUFoo4IfDLEcH542gJPDz9Km3sRmpush8O0=; b=aP4X7qnuvENu3G447D0FOkIPS4VaYF4V0kguuAztnL3LgsDWyUAvuvKSAzcFgRNyzT WecO2/9aSRkm138PtKQNgA2vxnD2TdPJAjPlZDohsJ6NaHZeKC8OFGondqa8ELHjTREb 8W3YjTlyzUodvpBGHiA9lBVeKSrvJpq9tr1u93nYAnc4YMdcUgbxeYfiwQMXoi5cKzPY a+TQdKj4HlIjQ6fYewVCfEZvIVRYeCj6EJXQAFF4KZtKGIOIBgcIvQ+nnx9XTwIHjRLg vejW4Szr2oxsaH8HZIgtWAiIWS6a5tbGPyBt6FQlRlUkFskkJKTy9BGmmY7hSmEWkY7Z ehbg== X-Gm-Message-State: AOAM533SN+HO/3r+l+txHCG+N5zu7eh8shEhX83MPJRroQ7Ujzs/+lML MvsOBZVCmIZvYqKHkEcyUOdxiA== X-Received: by 2002:a4a:ba90:: with SMTP id d16mr2504712oop.83.1633475508970; Tue, 05 Oct 2021 16:11:48 -0700 (PDT) Received: from localhost.localdomain ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id v9sm1665141oth.62.2021.10.05.16.11.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 16:11:48 -0700 (PDT) From: Bjorn Andersson To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Abhinav Kumar , Dmitry Baryshkov , Kalyan Thota , Kuogee Hsieh Cc: Rob Herring , Stephen Boyd , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 7/7] drm/msm/dp: Add sc8180x DP controllers Date: Tue, 5 Oct 2021 16:13:23 -0700 Message-Id: <20211005231323.2663520-8-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20211005231323.2663520-1-bjorn.andersson@linaro.org> References: <20211005231323.2663520-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The sc8180x has 2 DP and 1 eDP controllers, add support for these to the DP driver. Signed-off-by: Bjorn Andersson --- Changes since v3: - Rebased upon previous patches in series drivers/gpu/drm/msm/dp/dp_display.c | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.29.2 Reviewed-by: Stephen Boyd diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index 674cddfee5b0..29c2c1c52ddb 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -135,8 +135,19 @@ static const struct msm_dp_config sc7180_dp_cfg = { .num_descs = 1, }; +static const struct msm_dp_config sc8180x_dp_cfg = { + .descs = (struct msm_dp_desc[]) { + { .io_start = 0x0ae90000, .connector_type = DRM_MODE_CONNECTOR_DisplayPort }, + { .io_start = 0x0ae98000, .connector_type = DRM_MODE_CONNECTOR_DisplayPort }, + { .io_start = 0x0ae9a000, .connector_type = DRM_MODE_CONNECTOR_eDP }, + }, + .num_descs = 3, +}; + static const struct of_device_id dp_dt_match[] = { { .compatible = "qcom,sc7180-dp", .data = &sc7180_dp_cfg }, + { .compatible = "qcom,sc8180x-dp", .data = &sc8180x_dp_cfg }, + { .compatible = "qcom,sc8180x-edp", .data = &sc8180x_dp_cfg }, {} };