From patchwork Tue Sep 28 13:19:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sireesh Kodali X-Patchwork-Id: 12522591 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45AB8C433FE for ; Tue, 28 Sep 2021 13:20:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2F765611F0 for ; Tue, 28 Sep 2021 13:20:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240945AbhI1NVx (ORCPT ); Tue, 28 Sep 2021 09:21:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240952AbhI1NVv (ORCPT ); Tue, 28 Sep 2021 09:21:51 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFF5DC06176A; Tue, 28 Sep 2021 06:20:11 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id g184so21179852pgc.6; Tue, 28 Sep 2021 06:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=skXS9FAAmXWjWTOfJ7iolwq9Ls6y2YQYKSTYxiYgvoU=; b=i6WMO8Sh7rRGOyKHKsCDYxJpraDsM/kfqTc2vdZyuidM9YA55oyyKotHO70yVyvMNr zfEo8uy9rNi+jiC28DdsNNegAVjlUSFMl5hvRNfh09lKoPLvo38vrtGcCREtCXv8lEz3 wOL69Fg6t9l25gN29igh5ATaQJC1Q10og2MIg4TexqD8pKqO9Sze06F4H7HADdOVIPWn afFtbXYXaQEtYKyPwi7hb+A1r5hjjmNhDvwMgRW6l7v03awBZecb9Pn73vU4k2I5v6Ly zuDRQbG0gWzPBtBfMyz2JqjpeqWc9S1mvPW6mv3pnrhMfpqY5B+w4qBxKhaVINQ5SCbL TbMg== 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=skXS9FAAmXWjWTOfJ7iolwq9Ls6y2YQYKSTYxiYgvoU=; b=Dt39eoHpBM+binaRucJijeBHsq5z0WTP28asLlitCKG9OOYeFxpdRjak3wMI8dddDr smTjUI+P++DuZ6QGXmnOtw+R6iHo2JAnkcfXItealkYmCtHsZUXSjie70PRIBYCPe53Z +cYA5UbQ5I8MXHMEcyA52lgkf7KP4Yt1bDnOiW8vu2HMwPC+yM6CY44ZgYL+3eGB5YaX IV/SnGAbFFO1Vp5c4gQEg9o2O+CyFOM1+f6WAW9NmXBK7sfNZ1QqVQ6y1zYFKS+qXPKG +CfML+9BOHhq32wOh66KMGOqszbrl1fXI4OjKhhnecOqCYgZ1H9762uJC1lNbBAaK+kI KMIA== X-Gm-Message-State: AOAM532XpF4Lom1JFqeS5r5SChL6NU7dM4JV9njuEzbC2KcCd4FlxzZ5 UKANHP/FNs/bYAVCe6PFnOD7gsRMLIt+XV/fJBQ= X-Google-Smtp-Source: ABdhPJyAcqBb1eBhinIUc+8FjDCCzm4doSh4iuL5aND31CFGPvloAiVi5tdj6bffjArxki064WG1aA== X-Received: by 2002:a65:6ab0:: with SMTP id x16mr4585175pgu.181.1632835211234; Tue, 28 Sep 2021 06:20:11 -0700 (PDT) Received: from skynet-linux.local ([122.162.197.175]) by smtp.googlemail.com with ESMTPSA id h13sm22063964pgf.14.2021.09.28.06.20.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 06:20:10 -0700 (PDT) From: Sireesh Kodali To: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Sireesh Kodali , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krishna Manikandan Subject: [PATCH v3 1/3] dt-bindings: msm: dsi: Add MSM8953 dsi phy Date: Tue, 28 Sep 2021 18:49:27 +0530 Message-Id: <20210928131929.18567-2-sireeshkodali1@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210928131929.18567-1-sireeshkodali1@gmail.com> References: <20210928131929.18567-1-sireeshkodali1@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org SoCs based on the MSM8953 platform use the 14nm DSI PHY driver Signed-off-by: Sireesh Kodali Acked-by: Rob Herring --- Documentation/devicetree/bindings/display/msm/dsi-phy-14nm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-phy-14nm.yaml b/Documentation/devicetree/bindings/display/msm/dsi-phy-14nm.yaml index 064df50e21a5..81dbee4803c0 100644 --- a/Documentation/devicetree/bindings/display/msm/dsi-phy-14nm.yaml +++ b/Documentation/devicetree/bindings/display/msm/dsi-phy-14nm.yaml @@ -17,6 +17,7 @@ properties: enum: - qcom,dsi-phy-14nm - qcom,dsi-phy-14nm-660 + - qcom,dsi-phy-14nm-8953 reg: items: From patchwork Tue Sep 28 13:19:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sireesh Kodali X-Patchwork-Id: 12522593 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30AC0C433FE for ; Tue, 28 Sep 2021 13:20:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1896061139 for ; Tue, 28 Sep 2021 13:20:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240662AbhI1NWL (ORCPT ); Tue, 28 Sep 2021 09:22:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240817AbhI1NWL (ORCPT ); Tue, 28 Sep 2021 09:22:11 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03185C061604; Tue, 28 Sep 2021 06:20:32 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id 17so21164695pgp.4; Tue, 28 Sep 2021 06:20:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oML9T4hNm8T0JbKhVIBMBwI7KEbiqjIJg/n4n2ZhuRU=; b=UTVqwqruHx96fUzy6SQA1KVfWWyJqB5FFYI6HMnAplSIWP5SYBDWt1sJ0BHXj8Qh7f /uhwW/0SdMrH9RRDFrLpRmkpX0Tos1dcjxnl2zT7Wp4yTE0YJflrjOU6N+Zva+fMI+Ce Btz3Ps605ycmVaUH7tHSrJiQ/ZwM7l85gJhTWnRsgiEpcjKW3be3P6XtUjzuyF4ibIwv mdVFqdIQN0orwXHARI3g2gFPZeHy7F8h0ZFzW6igU6y7t/0/Ew56mH/8BeS/eFDxoftp syx06zcF+7TnCtTybpZiN5O4CzJA/6vzBkJaiUB6C7SnX+WEmFDp9GWBPe5VW6OWJc5l GiGg== 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=oML9T4hNm8T0JbKhVIBMBwI7KEbiqjIJg/n4n2ZhuRU=; b=Az8xKFvGz+ENBVIvjewLrUbDYneKw+BDDh8s16dVmQbux1dhvZTZp8CALLFcQEWagc sPlOEEkgbE6dhekgfN7oAY/6G76E5uHuF7Ftam5z424gtHpfUOYK+iBsOC/9lWVOBsTi 5L1ivLIRdrlN/5xVxL2fiszJLgzttw6Wv8en3/5goBtWS4Zzhuhf/iQYMqYDp5Apw1Hq asO5WjkRmlsS1+7BVqcb+6cAfeWc/QddHIL00NmDY1BYTVJYHXJVHRw7FUiZjhRUWJbL NltFKXqqhFXabwYrCi4mJp65KP7YkqVe6neXBbLT/qJBS3SCoaPt9bZtPSBI+DH0o4+T OKTw== X-Gm-Message-State: AOAM531KAaG33Pr2mRjl51DZdk9taMAH2pDDYV60LYZY2NytA343zYXC ZPgazNf5s+mTMTL4BqtA+YPKt1XBB7vhZWI+hLw= X-Google-Smtp-Source: ABdhPJxAFqRPsHfFn+xjc98v2+BH64dfRCfTqLgcESaLWpiqybQpPW7z9u37350mto8exX/UmZgX4Q== X-Received: by 2002:aa7:9499:0:b0:445:1c9c:3c1b with SMTP id z25-20020aa79499000000b004451c9c3c1bmr5376482pfk.8.1632835231310; Tue, 28 Sep 2021 06:20:31 -0700 (PDT) Received: from skynet-linux.local ([122.162.197.175]) by smtp.googlemail.com with ESMTPSA id h13sm22063964pgf.14.2021.09.28.06.20.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 06:20:30 -0700 (PDT) From: Sireesh Kodali To: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vladimir Lypak , Dmitry Baryshkov , Sireesh Kodali , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Abhinav Kumar , Jonathan Marek , Rajeev Nandan , Stephen Boyd Subject: [PATCH v3 2/3] drm/msm/dsi: Add phy configuration for MSM8953 Date: Tue, 28 Sep 2021 18:49:28 +0530 Message-Id: <20210928131929.18567-3-sireeshkodali1@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210928131929.18567-1-sireeshkodali1@gmail.com> References: <20210928131929.18567-1-sireeshkodali1@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Vladimir Lypak Add phy configuration for 14nm dsi phy found on MSM8953 SoC. Only difference from existing configurations are io_start addresses. Signed-off-by: Vladimir Lypak Reviewed-by: Dmitry Baryshkov Signed-off-by: Sireesh Kodali --- drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 ++ drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 1 + drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c | 21 +++++++++++++++++++++ 3 files changed, 24 insertions(+) diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c index 8c65ef6968ca..9842e04b5858 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c @@ -627,6 +627,8 @@ static const struct of_device_id dsi_phy_dt_match[] = { .data = &dsi_phy_14nm_cfgs }, { .compatible = "qcom,dsi-phy-14nm-660", .data = &dsi_phy_14nm_660_cfgs }, + { .compatible = "qcom,dsi-phy-14nm-8953", + .data = &dsi_phy_14nm_8953_cfgs }, #endif #ifdef CONFIG_DRM_MSM_DSI_10NM_PHY { .compatible = "qcom,dsi-phy-10nm", diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h index b91303ada74f..4c8257581bfc 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h @@ -48,6 +48,7 @@ extern const struct msm_dsi_phy_cfg dsi_phy_20nm_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_28nm_8960_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_14nm_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_14nm_660_cfgs; +extern const struct msm_dsi_phy_cfg dsi_phy_14nm_8953_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_10nm_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_10nm_8998_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_7nm_cfgs; diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c index d13552b2213b..9a6b1f0cbbaf 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c @@ -1065,3 +1065,24 @@ const struct msm_dsi_phy_cfg dsi_phy_14nm_660_cfgs = { .io_start = { 0xc994400, 0xc996000 }, .num_dsi_phy = 2, }; + +const struct msm_dsi_phy_cfg dsi_phy_14nm_8953_cfgs = { + .has_phy_lane = true, + .reg_cfg = { + .num = 1, + .regs = { + {"vcca", 17000, 32}, + }, + }, + .ops = { + .enable = dsi_14nm_phy_enable, + .disable = dsi_14nm_phy_disable, + .pll_init = dsi_pll_14nm_init, + .save_pll_state = dsi_14nm_pll_save_state, + .restore_pll_state = dsi_14nm_pll_restore_state, + }, + .min_pll_rate = VCO_MIN_RATE, + .max_pll_rate = VCO_MAX_RATE, + .io_start = { 0x1a94400, 0x1a96400 }, + .num_dsi_phy = 2, +}; From patchwork Tue Sep 28 13:19:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sireesh Kodali X-Patchwork-Id: 12522595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3498DC433F5 for ; Tue, 28 Sep 2021 13:21:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1A783611CA for ; Tue, 28 Sep 2021 13:21:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240864AbhI1NWr (ORCPT ); Tue, 28 Sep 2021 09:22:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240632AbhI1NWr (ORCPT ); Tue, 28 Sep 2021 09:22:47 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46ACAC061604; Tue, 28 Sep 2021 06:21:08 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id x4so6676732pln.5; Tue, 28 Sep 2021 06:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FI6R42Oo7MX5/xkTwAAMjl52Mc/0wUr0Fx+yPEL+Ji4=; b=gRG8Yad0DkgCqHgfSM6eKAjkEesndtjSXcOrNoLI43C1HCMqCTIF5up6G1wuxVvuX7 OsE5cXBYzUjJi7UJ9JIWZATR1mBUnsOqLkhEex7Qte7mZWLLBbQLcDXOZeO/5bTcceXK W4eQ+BpVJfkJWTYjuFNdBf7S33ZniFXYdrKf87Um+yFlyv1quA165gXIlG3quo2QZsKv C90PjeyABy/OANhATHURszi9l9W6yYOhhksGWAhhrgfFybbLcqJDJAcg9uvvIjkoB4RO G/fF2Re+afwznQTT8oDwrL5g7541T5vc5JQzJYZOkSbBJexL8D2IC2AsysSrknbNvFK/ qEZA== 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=FI6R42Oo7MX5/xkTwAAMjl52Mc/0wUr0Fx+yPEL+Ji4=; b=vhrEe7S7IFrGE4lP18HkGc4OCFOuxC3uOd1ZAUzWqptbR8vcDvyO0u89prUyD4ImWi NZgsoLNNDEroHe0SgS4B5hFU91GiiVjuqHUTqdJf9ybflcdhOm6d3UtKF8BnvmkfTQCq ZnEpKC1bawaSsM/BBrtJxEGo9ovBH1zbaJakuEHzNygWx1+83OiIy2remwyMKhqwcnZh LIMvA9tKSfa4+bu92kLiZBhO6rHpS85QDyoErUZcb3t9lvCHiKPSHBHngazwuDBLN4ZT 3E/EHyq+sc4PhGL87xRIOZq7nkSnMJRt6/Kz9nl1c/AeOsGE55q+GAGeypJC9S3z/twU H31g== X-Gm-Message-State: AOAM5326AJLdIVUec4PgL8PibHE3bbsvq0JppO1vCbG6shjX5vmvt/Zr lcejhAcQ6SG0JHP97koydHZNi4oWihATx5OHRiY= X-Google-Smtp-Source: ABdhPJymzcJo+QKmf4mnPfuNVaN/DDPzbo/krHlEYR8n1hDHvEtBus3O3CctB3dT8q0IRyhI+AVR+A== X-Received: by 2002:a17:90a:4815:: with SMTP id a21mr5575292pjh.108.1632835267542; Tue, 28 Sep 2021 06:21:07 -0700 (PDT) Received: from skynet-linux.local ([122.162.197.175]) by smtp.googlemail.com with ESMTPSA id h13sm22063964pgf.14.2021.09.28.06.21.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 06:21:07 -0700 (PDT) From: Sireesh Kodali To: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vladimir Lypak , Sireesh Kodali , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Konrad Dybcio , Abhinav Kumar , James Willcox Subject: [PATCH v3 3/3] drm/msm/mdp5: Add configuration for MDP v1.16 Date: Tue, 28 Sep 2021 18:49:29 +0530 Message-Id: <20210928131929.18567-4-sireeshkodali1@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210928131929.18567-1-sireeshkodali1@gmail.com> References: <20210928131929.18567-1-sireeshkodali1@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Vladimir Lypak MDP version v1.16 is almost identical to v1.15 with most significant difference being presence of second DSI interface. MDP v1.16 is found on SoCs such as MSM8x53, SDM450, SDM632 (All with Adreno 506). Signed-off-by: Vladimir Lypak Signed-off-by: Sireesh Kodali Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 89 ++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c index 9741544ffc35..0d28c8ff4009 100644 --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c @@ -752,6 +752,94 @@ const struct mdp5_cfg_hw msm8x76_config = { .max_clk = 360000000, }; +static const struct mdp5_cfg_hw msm8x53_config = { + .name = "msm8x53", + .mdp = { + .count = 1, + .caps = MDP_CAP_CDM | + MDP_CAP_SRC_SPLIT, + }, + .ctl = { + .count = 3, + .base = { 0x01000, 0x01200, 0x01400 }, + .flush_hw_mask = 0xffffffff, + }, + .pipe_vig = { + .count = 1, + .base = { 0x04000 }, + .caps = MDP_PIPE_CAP_HFLIP | + MDP_PIPE_CAP_VFLIP | + MDP_PIPE_CAP_SCALE | + MDP_PIPE_CAP_CSC | + MDP_PIPE_CAP_DECIMATION | + MDP_PIPE_CAP_SW_PIX_EXT | + 0, + }, + .pipe_rgb = { + .count = 2, + .base = { 0x14000, 0x16000 }, + .caps = MDP_PIPE_CAP_HFLIP | + MDP_PIPE_CAP_VFLIP | + MDP_PIPE_CAP_DECIMATION | + MDP_PIPE_CAP_SW_PIX_EXT | + 0, + }, + .pipe_dma = { + .count = 1, + .base = { 0x24000 }, + .caps = MDP_PIPE_CAP_HFLIP | + MDP_PIPE_CAP_VFLIP | + MDP_PIPE_CAP_SW_PIX_EXT | + 0, + }, + .pipe_cursor = { + .count = 1, + .base = { 0x34000 }, + .caps = MDP_PIPE_CAP_HFLIP | + MDP_PIPE_CAP_VFLIP | + MDP_PIPE_CAP_SW_PIX_EXT | + MDP_PIPE_CAP_CURSOR | + 0, + }, + + .lm = { + .count = 3, + .base = { 0x44000, 0x45000 }, + .instances = { + { .id = 0, .pp = 0, .dspp = 0, + .caps = MDP_LM_CAP_DISPLAY | + MDP_LM_CAP_PAIR }, + { .id = 1, .pp = 1, .dspp = -1, + .caps = MDP_LM_CAP_DISPLAY }, + }, + .nb_stages = 5, + .max_width = 2048, + .max_height = 0xFFFF, + }, + .dspp = { + .count = 1, + .base = { 0x54000 }, + + }, + .pp = { + .count = 2, + .base = { 0x70000, 0x70800 }, + }, + .cdm = { + .count = 1, + .base = { 0x79200 }, + }, + .intf = { + .base = { 0x6a000, 0x6a800, 0x6b000 }, + .connect = { + [0] = INTF_DISABLED, + [1] = INTF_DSI, + [2] = INTF_DSI, + }, + }, + .max_clk = 400000000, +}; + static const struct mdp5_cfg_hw msm8917_config = { .name = "msm8917", .mdp = { @@ -1151,6 +1239,7 @@ static const struct mdp5_cfg_handler cfg_handlers_v1[] = { { .revision = 7, .config = { .hw = &msm8x96_config } }, { .revision = 11, .config = { .hw = &msm8x76_config } }, { .revision = 15, .config = { .hw = &msm8917_config } }, + { .revision = 16, .config = { .hw = &msm8x53_config } }, }; static const struct mdp5_cfg_handler cfg_handlers_v3[] = {