From patchwork Thu Nov 24 00:16:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 2151 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3107502wrr; Wed, 23 Nov 2022 16:22:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf6iYeQLxfmt9fcM2Le0G5Zjxj1XvwDSvMxlEs9gLDjWTGaaFWfWZC48Pp30EdlwfG0JcgLV X-Received: by 2002:a17:906:f204:b0:79e:8f4a:c5b3 with SMTP id gt4-20020a170906f20400b0079e8f4ac5b3mr9821778ejb.223.1669249330146; Wed, 23 Nov 2022 16:22:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669249330; cv=none; d=google.com; s=arc-20160816; b=Ma/TOhNblO52bijZiWGtQE2JNUgm4HYCTex16/yD3wlVAIy0Z7brJgF3YHQiJuYNTZ 8nfd4yTMDlogwoKrXFgzIPn5kMXtYM1UmsJ1d98Vf5mEyMDv3K+yB3/y5BOix/GY9qvG Lryc7aSnRSNxCFD8fiRwbIf1X2qqMx5yk1c49tl5qenGTQd0YxZdTZUNO87zomM2TxhT jsB8Rk0CXHBgASQQQGAGMsg5FWCMsHjmRFsbtL6vfgu/gULSmoWfWO/3tC3SCIGb9ibH r+ZbTgvFi+rs84FU46Cm+DRefiNC7B3p9BCdjTlWZQ2MlfyKgjaJyTX5/jNf6BBgIlXT ikZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=DYsSNCXWhpFs7o4x2IkqFxSQUbarPP9Op1/XKXYtDBY=; b=jyw7fwLEYlNsJY9YmMLZuv7z780hYHG4SpCub1eFVYQ3HoEXPK9HPigplmF3fHWuvZ vWV9N3AfT33/QVeEJWGhJ8Wh9qiOGr/LjJMF0R/gPs1VIYD+oJIpcB8K6ngfKqF2GA7n rrD9jr2pxVL/Xp7DdOQXHhoQJUBSyPhICpnr3ddZ7D4PEm5C0gmOXkq6pbaxNT4srHkD Poy7bAVIEJOp9azFSiQl8RCv+IxthxiFGi5EeGgCFJB1jZY6oBu2OCJW2CuTrtoxdWv2 xM/NU7Z/oDze40SvFJC//UinTca4zlfeMtpEIgMO4gxgzDzWgSk+gPreDU1mOAkR/zOh 3X5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=mO8gD1Uq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xf9-20020a17090731c900b0078dcee0cf13si15769407ejb.561.2022.11.23.16.21.46; Wed, 23 Nov 2022 16:22:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=mO8gD1Uq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229641AbiKXAR6 (ORCPT + 99 others); Wed, 23 Nov 2022 19:17:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiKXARz (ORCPT ); Wed, 23 Nov 2022 19:17:55 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6231B19C3D; Wed, 23 Nov 2022 16:17:49 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id s8so190789lfc.8; Wed, 23 Nov 2022 16:17:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DYsSNCXWhpFs7o4x2IkqFxSQUbarPP9Op1/XKXYtDBY=; b=mO8gD1Uq4kFyJckqBAStesA4EMzaLVQ9SgJ0grZsFpjIsTvd02FQAgKAxa9v6/u+CF BN6XSSaPVq+OoDOnEVtxg0sEoV48DSp/2fgD9+GLjxNSEDWCP+L+tk9XhZHll1ZAPPTf 8uVGsIL07M26DlMzU1u53ta1rYqKeHlLOvfIMCNfY3N42+nZLmC0nUUHtXOWBjLpuKYK YuFzTrHTbKF+8wlto5dYW5HeeifxP+WZdN2C+hERORQOem13X83mU/wJ1EHzIKAsp2Iy l2G1hMj/d8M/oWvk/hcC45WS1wFNufg3xnZe9PKolAiwobxkVFM4UDO5VmOU5vnrKRDy SIFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DYsSNCXWhpFs7o4x2IkqFxSQUbarPP9Op1/XKXYtDBY=; b=L5vi2K3drPOEJOuGDvMuEpbN/slvmcyhsw1S+wKExfDvsE+zHPKljV/7zfDYNRYm2p snRXeJKWhZdd+fZjQHkvGql+mTZNZm073B/JqIiZVGyQigU/Ig/bP9t/ijnUC6Hmc9pe tzg2u/OzB/tJtgEXiPeien8UuiZwslU7/1ZX1eSeFws1aMRz9oHZ0UzTEabmSF40wQXw f/FzS0yCYE/tRiJmk0/PUR1a0PAufQkqkowu8qINkkzvTD681YrF7nAzGr9Cjh4WMUZN ajETd3SujO1QKzycOzpipKJ5OZlTW8gu5fQnKITBmZCFTuCtZuyL0kWqzXQk6HWUUocK bz1g== X-Gm-Message-State: ANoB5pkukmpZK5QPRLaoTu+/MJV7yRfMoYkQ594QwNZqhSJBpE9tGqaD kC5S0WvG5cUmV3i24ebX95+edJbl/Hg= X-Received: by 2002:a05:6512:c09:b0:4ac:2fae:8a9e with SMTP id z9-20020a0565120c0900b004ac2fae8a9emr9855039lfu.413.1669249067646; Wed, 23 Nov 2022 16:17:47 -0800 (PST) Received: from localhost.localdomain (ccy110.neoplus.adsl.tpnet.pl. [83.30.148.110]) by smtp.gmail.com with ESMTPSA id p8-20020a19f008000000b004ac980a1ba1sm3054388lfc.24.2022.11.23.16.17.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 16:17:47 -0800 (PST) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Kalyan Thota , Jessica Zhang , AngeloGioacchino Del Regno , Loic Poulain , Vinod Koul , Konrad Dybcio , Vinod Polimera , Jason Wang , Kuogee Hsieh , Stephen Boyd , Douglas Anderson , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Add SM6115 MDSS/DPU support Date: Thu, 24 Nov 2022 01:16:30 +0100 Message-Id: <20221124001708.25720-1-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750334785103852682?= X-GMAIL-MSGID: =?utf-8?q?1750334785103852682?= This patch series add support for MDSS and DPU block found on SM6115. These patches were tested on Xiaomi Redmi 9T smartphone. Changes since v1 ================ 1. Adjusted YAMLs per requests. 2. Changed MDP regs to lowercase hex. 3. Rebased series over latest next and SM8450 patches. Adam Skladowski (2): dt-bindings: display/msm: add support for SM6115 drm/msm/disp/dpu1: add support for display on SM6115 .../bindings/display/msm/qcom,sm6115-dpu.yaml | 94 +++++++++ .../display/msm/qcom,sm6115-mdss.yaml | 182 ++++++++++++++++++ .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 87 +++++++++ .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 1 + drivers/gpu/drm/msm/msm_mdss.c | 5 + 6 files changed, 370 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,sm6115-dpu.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,sm6115-mdss.yaml