From patchwork Tue May 30 18:24:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 101060 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2378373vqr; Tue, 30 May 2023 11:27:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5wPGJ5a7xBalOqXNFz93RfLJB9jDSO11QPodLi2aMG2Y9CKGBVEa/0VUOK3Rt3zvy7IDLZ X-Received: by 2002:a05:6a20:604:b0:110:9210:f6b8 with SMTP id 4-20020a056a20060400b001109210f6b8mr2617132pzl.35.1685471219602; Tue, 30 May 2023 11:26:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685471219; cv=none; d=google.com; s=arc-20160816; b=HyC0KOoo+95Xgaxh9KUhVUCUmFVrAPw1vYvkzxRuuJaaAQOysfuh5KhRGcsjvaHwxX ePqktO09FxKF7xOPOVisCLvFwgsBuikAcoxPJv6NRXuhsJs01CM2CFGOEsqWcIG5aA43 fQMEpKvswG8g12XKK8FXz6Z126pDmrCeHXctTqxO2JMv1f3fHGs8cLor6xtO+PLUcC3k EPrOlTs8J4/HkSBGX03EOUe+mJEoQg7FtozIHe2+KpYeaNOygVsw999DZh+hz9qC+EO6 ST09SElmoc9stWNA1YB9gjPgWSiHYFG3tl6Gimz9tMaFCp2RWV+UJiYKQEYa1D0r/WUA tIqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=5kfVxDViw7FMz0gzvWaB5mZ22lW2VwqwtYk0eGP7ozU=; b=GBNAfjuoFX1lN8rgErgZdS4exPKk7xw/uudbLgMN0EZa1XpkOmIYfE/ZCmKKUfejXJ 1AfRo9kvKIlKk6kZiWk/vy72WmIrerfPFv24BDHs3cQAM3PizSjrGZVuBpl5A+WqdLNO 0eTWzaE5OM52FWH/FVT2WHPvHboC+t7b+q6xc/1nfoBeLZzizn2rJafNWiUV2k9r50zP ixe8Aoro5774EThJYaT1AxpTDkkhDjb/HZUhT+LFOMHlGVyZGZXmaVxf1WGmUhTG/exY r2PjMNbGQd1B87m3rlyyq14jkYALxuWaJ0ATkkdUHDPZ+aFc6KJFfDM7kDW3+SN7wf8a DcmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=dhksoKsG; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v11-20020a63b94b000000b0053f094848e1si1209927pgo.402.2023.05.30.11.26.45; Tue, 30 May 2023 11:26:59 -0700 (PDT) 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=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=dhksoKsG; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233345AbjE3SYd (ORCPT + 99 others); Tue, 30 May 2023 14:24:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbjE3SYa (ORCPT ); Tue, 30 May 2023 14:24:30 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC153A7; Tue, 30 May 2023 11:24:28 -0700 (PDT) Received: from [192.168.122.1] (84-115-214-73.cable.dynamic.surfer.at [84.115.214.73]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 9641ECFBF1; Tue, 30 May 2023 18:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1685471066; bh=liwsTCjCFh4bjc2tccmTcIdepPTZlH+GSHh7zUBFyD8=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=dhksoKsGL2grQYBlSfAvCvfjGmBo6+Oa16homBpPILDBH37GjJaG5Tr2OcBXj1cSy jzi/cHjDzRgN4vvUDQaeqa1Al3CkSgdwAqBMwnulu8oTQhy1PCekXM65oXljYuKDJr Kp8c1t5ls34irWI+TQeMiLjFxsmwrpOk6ZYrZkEM= From: Luca Weiss Date: Tue, 30 May 2023 20:24:11 +0200 Subject: [PATCH v2 1/7] dt-bindings: msm: dsi-phy-28nm: Document msm8226 compatible MIME-Version: 1.0 Message-Id: <20230308-msm8226-mdp-v2-1-e005b769ee28@z3ntu.xyz> References: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> In-Reply-To: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Manikandan , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , Conor Dooley X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1755; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=liwsTCjCFh4bjc2tccmTcIdepPTZlH+GSHh7zUBFyD8=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkdj9SjUruR4ADWTpHi7+GTTaTpMZj6bZzb6Qfv 0RkZVneKzKJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZHY/UgAKCRBy2EO4nU3X Vk2DEACiZgwSlgjzsFFEgTllFUUs27lF3o3FSBCPBPo/Fw2X8wJbyk5OpS1IH00YE4tK2Pe6VIl T8DX7+k37Bj+1piISY6ufoZ3UOvYs/pTwC7YwcCYG+MGyXHFpCOX3rXElruK8rtni85WP0hLXDV AkDAv03OdcvvAPhJygI9RSSbSJeJj12N/ue1XAvgM81t5butJIaBL9lbfGjT7/zVtuLJub0yZiX 7T4QsT3MGgVJBaV+KA5Uii4+6+uBlRxUejTrE546knHx5CJHlJ0DcSzbnLnLpGqE5YckYVKLe62 GknDT+at8VZm1gssdWsH/1/WF9PiY51TlTPEl7aHkD87yFr9BHo7L5EyzNhUUfjKo6SAp3SY07M l8KKxSLObaZjeis05pKbTOLu3IqQORyG6a9BW36RgUO0xLET/1fz87U5lK4UqLjhksChfOa34eG jyrnDt8XGMwhQ63QSa2/mX7JWWmipphiz3ZxDDlrYf8CO5b4khLwXSnm4gBiTLuBDA74RBUGvai 7bRe3Pyk+J9BTev9BKzUJP1BO0MpukeohzIwEW12C2jex28M9QnhMXlJhBrTKTtX0XlbLWgnWcf hbYXfFDlFjD06Mtgs9Ac5E4pKpuyDxQO7QfdyTQW/gJ2/uzrxXOUobDarjVLIuZM3v1rmNoQNTN rI0NC3AJv+pDjSA== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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?1767344669304409184?= X-GMAIL-MSGID: =?utf-8?q?1767344669304409184?= The MSM8226 SoC uses a slightly different 28nm dsi phy. Add a new compatible for it. And while we're at it, in the dsi-phy-28nm.yaml move the 8960 compatible to its correct place so its sorted alphabetically. Acked-by: Conor Dooley Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/display/msm/dsi-phy-28nm.yaml | 3 ++- Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-phy-28nm.yaml b/Documentation/devicetree/bindings/display/msm/dsi-phy-28nm.yaml index cf4a338c4661..62fb3e484eb2 100644 --- a/Documentation/devicetree/bindings/display/msm/dsi-phy-28nm.yaml +++ b/Documentation/devicetree/bindings/display/msm/dsi-phy-28nm.yaml @@ -15,10 +15,11 @@ allOf: properties: compatible: enum: + - qcom,dsi-phy-28nm-8226 + - qcom,dsi-phy-28nm-8960 - qcom,dsi-phy-28nm-hpm - qcom,dsi-phy-28nm-hpm-fam-b - qcom,dsi-phy-28nm-lp - - qcom,dsi-phy-28nm-8960 reg: items: diff --git a/Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml b/Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml index b0100105e428..db9f07c6142d 100644 --- a/Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml +++ b/Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml @@ -125,6 +125,7 @@ patternProperties: - qcom,dsi-phy-14nm-660 - qcom,dsi-phy-14nm-8953 - qcom,dsi-phy-20nm + - qcom,dsi-phy-28nm-8226 - qcom,dsi-phy-28nm-hpm - qcom,dsi-phy-28nm-lp - qcom,hdmi-phy-8084 From patchwork Tue May 30 18:24:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 101067 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2379404vqr; Tue, 30 May 2023 11:29:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6wZZQn+xrYpPqspTStQqdfaNMiADqu2XJR11ta9zZiS0xdvXq65wGR8OZXp7P5i5Hblo6X X-Received: by 2002:a05:6a21:797:b0:10f:702a:189b with SMTP id mg23-20020a056a21079700b0010f702a189bmr3293839pzb.24.1685471357874; Tue, 30 May 2023 11:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685471357; cv=none; d=google.com; s=arc-20160816; b=IiJ91VfLzpVkQjbU5zAvqQrXOsB7mAnBMLl7WlgVop2gJhyLe1/Nwbe5IgkpWI9Kxo s7rJ2WHXthuIM9xLdWKm+mRzrueYFeLoJPGWIy1o/d3nej8vlcAoxutaQASwW6mZUlIE G7DogSprMYe2slpJ4SgSIdpcEeb99GCVPFVKgsZjkT0qibWOmlhiZu7IIqvYG6sc1kZC 3GqrQ4kOpru454oq32KG50n7A/MEBB2N88nEy9FIGcleU0T+S0rVMC9DsBqs1+vG1Gtt eRjinm0qBKHPjZhs4kEyAsNdv8UwP52kjuAsRhn6AcJko9vfp96QVA8PLcYHQEMwabJN AFWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=y9fOuxSNvCmXS47oHL/OBAM2KGxXEdz1oT1Lp3mCRqw=; b=aC0u3Z+bcXxHDuFcdpC0mR/AoXf0vcnriYRPpSWiW2A/zwQYAYF5/fimRtFaRQFwLG t9woxTRAOQvkr9lqDtUj5TmuMAoNN92qNfMDrxOROW6DHFbFirhnYFFIhM67y8RQ1i8z GvxtlbMxqQp0ivs57E+m4tZTX5YE4f/bsFyHLqSPzzLA/TY8ra8/kf6ILBS6ocTWCB36 ZPSZyTM2/nR/OOAPBY4jaahL8SH5yYoU42YVJDMxmoB8xYfFAdgSCEdXZBWbTFEVBNDJ hsYp2HORDtYqohvQxQZjykEpOoGP9axHXUqEu/96AwWnoha+B9cM1ONMtuphhKnrVNz2 ZLHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=ibA0Cwh1; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a127-20020a624d85000000b0064d295ca592si2173343pfb.69.2023.05.30.11.29.02; Tue, 30 May 2023 11:29:17 -0700 (PDT) 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=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=ibA0Cwh1; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233404AbjE3SZf (ORCPT + 99 others); Tue, 30 May 2023 14:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233442AbjE3SZX (ORCPT ); Tue, 30 May 2023 14:25:23 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8417110D; Tue, 30 May 2023 11:24:59 -0700 (PDT) Received: from [192.168.122.1] (84-115-214-73.cable.dynamic.surfer.at [84.115.214.73]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 1F1D3CFBF2; Tue, 30 May 2023 18:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1685471067; bh=5WHPkyvk4StYMkcwb4dHhrbj0F9n7jmIYVJjvJu7XrI=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=ibA0Cwh1dTtwIXvr2o1xaAvku3ZEakYf3FqNhiwuE/DFvSpr8WitaWmExslWb+0ne EH0ZE95jOhe06dOf8vZ3+Ww3C1X5CN5pACDdz7rFpmjn0B9+3WktBVCX2tBsvh8QrZ 8hARVNYsCsefntE27OwI1+J7XmuNIDINjqAspXRo= From: Luca Weiss Date: Tue, 30 May 2023 20:24:12 +0200 Subject: [PATCH v2 2/7] dt-bindings: display/msm: dsi-controller-main: Add msm8226 compatible MIME-Version: 1.0 Message-Id: <20230308-msm8226-mdp-v2-2-e005b769ee28@z3ntu.xyz> References: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> In-Reply-To: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Manikandan , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , Conor Dooley X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1112; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=5WHPkyvk4StYMkcwb4dHhrbj0F9n7jmIYVJjvJu7XrI=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkdj9TYBvnTqvgbEX/YXXAlij7BFGXyExCWMwTQ JTc617h9dmJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZHY/UwAKCRBy2EO4nU3X VoHIEACeZU7fs1lCpPlpSR9/aSFiJhg1w/X99j/GCw/jhQSkgElPxA1zd04pBGKBonJATBnZUHQ +s3yj4AhqafGZKvA/F6IoMvwX9CScMGWGYyC/E9soTtC8T4X5Y/E5Po0u7mFGk1z9XNI0AdrVvQ CYSUVPImCSxHdkDQBjgCiINtJ3FRBJnOUcTJ0cdFGJn2eZ7NFrwEQ++pRhF7c1w1/9Kg1H2D+Cf FyNyyQwr3VeBKhkF8GkO8lDxC5Pj09nJGDSRZSzXtWSNSehkbwIkmxH8CwBq6z92sA8/3wURWXh JLsSdapKEJ+9ujycXgDmh/Qy6hWycNPHCdFHxvcaK0ma8APXs0qJ7n7O/KofEnFDMxNTPvQeN8D DCBHzAECOt5Tk04LHcRNW9DCrHOULnvvBRrET9LHkLxijLbddMcNLI7vzPjKXiiw+KeIScV06Nl 5OumZN7+1U11aIMSxg2BW5YRQHgVwsnAPm5IT5CFZbD8/yx0nxmRWLHwaaJrS5a5krq21EwVXF/ sgJmCtKnRlQd/H6Dp/IXPigtEsh3qlzG9VTUByaEQqArp4KbzDhJuXa9cAPdGEzVB5/xp66i8K9 J3LE+LeK2v85wIWbm04TEqq8YQsLH9OtxYpTq7r6oGldG5bJ+sRpWXndD6ve32hDpCCYCluJXFN z+vb8Gmee0yRq3g== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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?1767344814497529774?= X-GMAIL-MSGID: =?utf-8?q?1767344814497529774?= Add the compatible for the DSI found on MSM8226. Acked-by: Conor Dooley Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml b/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml index 130e16d025bc..660e0f496826 100644 --- a/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml +++ b/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml @@ -15,6 +15,7 @@ properties: - items: - enum: - qcom,apq8064-dsi-ctrl + - qcom,msm8226-dsi-ctrl - qcom,msm8916-dsi-ctrl - qcom,msm8953-dsi-ctrl - qcom,msm8974-dsi-ctrl @@ -256,6 +257,7 @@ allOf: compatible: contains: enum: + - qcom,msm8226-dsi-ctrl - qcom,msm8974-dsi-ctrl then: properties: From patchwork Tue May 30 18:24:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 101066 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2379331vqr; Tue, 30 May 2023 11:29:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WV2H+bN02h1iq9VCrLSksUUpYWNLmwcxvrCZOebK/XG9Ghqpzp6fpfbN/A5BRCyBCcVZe X-Received: by 2002:a05:6a00:21d2:b0:64d:7002:8316 with SMTP id t18-20020a056a0021d200b0064d70028316mr2929473pfj.9.1685471348576; Tue, 30 May 2023 11:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685471348; cv=none; d=google.com; s=arc-20160816; b=oqCXfSEui5Bj7fCmDPi1nLbejjxO1JhPgYgTJXDcNiUDpt4i1+GeXvjk90aGn5d1Xb aqvZ7aazOZImU7yowyrFlO6bKFCCmPOBM0npv7Dso1feCqLVmRAUWIhQxNUii1ad2IA5 VX3wSsWvYfxi34DEJW1zqh6cRrhgrJm7gfZ105SsMc621XNiRBx7gwkdlVtdntMYR6tu 2f8cxg+6oUuVyCl7O4FXeTxmVFVrSFSjvaz2jIKBbDW2qeuWdOQJtJh8DXywC/y/u4BV iW3IXU5JzTBQ/h2cYPg4ku6sik+8mhkY6Vn9muZDcwbld6SpR3WHCaoPQ1PRTOBSTp5Q ijlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=HTtNHn2rOXXxhXZNUKvc0eaF4pnKASGTwsXErdjJfXQ=; b=UzXJHuHNQNmZcKbyU9jdFGmYzSVsH/pre3fGbz5RPPfvjoRtrkH5yokrt+J7i59G0i QBMNY3jrAArRt1GNqyAuJ1/UxC4rJG/sMZgfQXEXpGzL7wl7nGZ4gT18Cm33j6OlA1T8 DpBC5yoZzgTNxryLblIeC7cXip4i/7ijfpg9AJGilcVsUr3mz3o6H5uUwjdInu0QTd9y U63zwcSTNaxSlIX9kJbaTErzv3ZVcCaI0N1LynkpDdVtU4lXhGeJsPbApUiU3oh+MlyP Igze0i6R5Tt9p+J0PX1ppF9EQcbTS211YWJA64SGK20lpUdYDPDa4o8+xT2hAaevvywd Afew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=dP29WC2j; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a624e06000000b0063b7b7712a5si2060582pfb.304.2023.05.30.11.28.54; Tue, 30 May 2023 11:29:08 -0700 (PDT) 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=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=dP29WC2j; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233427AbjE3SZb (ORCPT + 99 others); Tue, 30 May 2023 14:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232939AbjE3SZX (ORCPT ); Tue, 30 May 2023 14:25:23 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FBE4107; Tue, 30 May 2023 11:25:00 -0700 (PDT) Received: from [192.168.122.1] (84-115-214-73.cable.dynamic.surfer.at [84.115.214.73]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 02884CFC40; Tue, 30 May 2023 18:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1685471068; bh=u5Pebo6nZ9QZwWZHlwTcKLHf8y3TFQkR66oBJVT1aM0=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=dP29WC2jWAw3eDkq3YlsuCZFMJvF57n8gz81zEyHwTOotNI2JuX1KFxiX5BwXZ0ay mKQxYm6OKnkttZLZJx7V79s54hvdL8b1hLdbaN/CKApMGGsY2tgayUvf+dhCERKfYN Ep72QgIpzw82sKX5/tMpBg3pK0hbl0JtsMDk6t2Q= From: Luca Weiss Date: Tue, 30 May 2023 20:24:13 +0200 Subject: [PATCH v2 3/7] dt-bindings: display/msm: qcom,mdp5: Add msm8226 compatible MIME-Version: 1.0 Message-Id: <20230308-msm8226-mdp-v2-3-e005b769ee28@z3ntu.xyz> References: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> In-Reply-To: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Manikandan , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , Conor Dooley X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=837; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=u5Pebo6nZ9QZwWZHlwTcKLHf8y3TFQkR66oBJVT1aM0=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkdj9T0sIy4PC26+ocSl2cCiDuQP8enClPj2cu3 GlK3REl2cyJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZHY/UwAKCRBy2EO4nU3X Viu4EAC8XjDFE158iyAWLz7x8ymaKvqDWnbUbPslUOJWlp/g/UjcYwLCcDMsIsTUHxVpc1k06iV +3OJZRfvdbvCmqJdNF15Zn+lCa5NxBgzZQvhVjsNZzyNJIGm9riLjltgFvgc6POZ2gTHyTA2KVS dntLbCXXOjvs/+dxfVLcAbM1hige+n/U/iYwIsltE9hJ0M5HaRHx3rzR+xVT7mX9UTAmN8m1U2j 5KHoSfkZqgINHc33E2IksDT5nRGg1Os8Mw11gPhipvmUPelVc0bcd3DkwjXWAdndSHe1yNO+J+0 Ckug5MBSAlSdPcVMmKULZ+PqQig1I6qSu5IXvVjLH2OVKMHD44AdgkhDYPmdbSSMF45S+86gpfp hcyFF7JiFllC/s4RWkgDitHxGgMIu0Vl3ztT4ciFk8agaKS4rjmgzdWxZu7z0YOS7hR4BvAq1oU l2rKE+/gJyfpTc6j6HqmKVnZTCPRUOY3k+4EjZcFBXzjl6fPuFMmbQiEahAfwq82M+WKWwQvCmw C3SYYKD28NlyrNwpHhGFKdwOwR4PZtkiVKCWkEQuGAdk/BI4DAo2f4eLxsVljzuPR8I04mtzKVc WrFyShZWE/S1XkIB6p06BtoVe2KsmtgqyKCRsIajFaIVkjlPWvFWP3bGSJ2lSvVrmWK7PqSwWpc ucFaMaVnUxD34RQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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?1767344804500804756?= X-GMAIL-MSGID: =?utf-8?q?1767344804500804756?= Add the compatible for the MDP5 found on MSM8226. Acked-by: Conor Dooley Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml b/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml index a763cf8da122..2fe032d0e8f8 100644 --- a/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml +++ b/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml @@ -22,6 +22,7 @@ properties: - items: - enum: - qcom,apq8084-mdp5 + - qcom,msm8226-mdp5 - qcom,msm8916-mdp5 - qcom,msm8917-mdp5 - qcom,msm8953-mdp5 From patchwork Tue May 30 18:24:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 101072 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2386795vqr; Tue, 30 May 2023 11:43:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ69AMkG+yxHO2g61eLZLu8KVYu7QZSKoX4Z5Wu+kzn4Ey6CBmHhVOPGANs+27tL7OgdrGa3 X-Received: by 2002:a05:6a00:1706:b0:63b:7a55:ae89 with SMTP id h6-20020a056a00170600b0063b7a55ae89mr4173587pfc.27.1685472201644; Tue, 30 May 2023 11:43:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685472201; cv=none; d=google.com; s=arc-20160816; b=AbakREO4sWvgSwO36I5G5YklMvnsnTH+rp/1cAn/HbZ8FAY4fnScd7f5d0zHBseYzN eE2coKVt+zncdeYqyFzZZUunsC6mNAgJj+pGqx66OpRK35j+cqS9x2XnRQUrSlBTX11X v3815joB+1x3336HikYMjAlqTVQrV4yXRL1E34g6Xdy9btvTKSXzcTjgVa+hS6lvI7Nt c1gR8k31Bh/nvNiAP0bTWGqCqhkBKPeSxJpWkx5xe/QKnqSmAwmqPYaDiTsWiD0Bu2n4 5v5LqruFUhJFamZPkLsL3DWisMxqV5NxDPrQ7nzaUbe3aDGyWds3uiqYVvU0faef0r7V 03Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=IDhL5cM6fytsgryXzRJECsiuFkueb0fW/yPkAjKmRD4=; b=r1TkNEJ+uJrgBNIVoM1rFysu+JOT1pkjxB5U+vMFlKzzUBFJDPZV2Yv0WQZlIVftwq nAq5GYDlpmKYSezTyFS1p/hPw8DNL8S/HNg+YY0T9gENcowT9o7NWEGc3HrTfiBTlEOK 9Yg5SIgVAg1Jah/sVCm8ZEqL3CovFQHkLzs0W7n+IJi+o1XXve0Zmzk/mGJowc4bp4QE 7RGToQkMvkUZaNnNRC6G7dvwfYiwFhZoSUIBf9r8XBNluMooXf2Fxdrf73I5vB5HL644 loHqUjU8OASJwPUL6a63jnmBecpqUPx9WRDtMjymL0b/AJjYdQipxc6eILCn5EgghfdK qC+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=mycR7qYs; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i129-20020a626d87000000b0063f2827e1dasi2120475pfc.184.2023.05.30.11.43.07; Tue, 30 May 2023 11:43:21 -0700 (PDT) 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=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=mycR7qYs; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233176AbjE3SYf (ORCPT + 99 others); Tue, 30 May 2023 14:24:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233343AbjE3SYc (ORCPT ); Tue, 30 May 2023 14:24:32 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25BFFB2; Tue, 30 May 2023 11:24:31 -0700 (PDT) Received: from [192.168.122.1] (84-115-214-73.cable.dynamic.surfer.at [84.115.214.73]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id D5211CFC41; Tue, 30 May 2023 18:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1685471069; bh=Jm/DdiEm/EekWEu0ec6gDTbUQ0p4VEB89p93cuEm6n4=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=mycR7qYsLce6FBxgGw28MtPfQFw+WpoJGsGABjhBI0BZtp1+9B56yS62AEraHMywe 5Q4zIi1NY0j3GbSfhlf7fjwECAg0quYIfb5S8II3HApMlx6IV2qejtdu4hRkopJJxY GuflD4Dw6UTTuimlsUOGiv0MdLMguuVlK410LUEY= From: Luca Weiss Date: Tue, 30 May 2023 20:24:14 +0200 Subject: [PATCH v2 4/7] drm/msm/mdp5: Add MDP5 configuration for MSM8226 MIME-Version: 1.0 Message-Id: <20230308-msm8226-mdp-v2-4-e005b769ee28@z3ntu.xyz> References: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> In-Reply-To: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Manikandan , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2734; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=Jm/DdiEm/EekWEu0ec6gDTbUQ0p4VEB89p93cuEm6n4=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkdj9Uk2BW8z4RaEC0gTLiiQmyOGKzlZ0zHZ0d1 ux9DaKzGmGJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZHY/VAAKCRBy2EO4nU3X VsmWD/98Q38eOeI2Mgj+4zC48f5Bf0ZAsOFOS7iSElZ5hi/bQxwdWrmmgYncUtBYCHDc9WfiSRS 20mPjy10xzD7KAVV7klvDrrvyQ2n7/E0N/b4twW12mhy87OCuqmgUjjY2yCK9tyUv1CpaytiRMY qMA38L/n4MfO3MgdYbMa+ecR+OmW3c+vecMvOo7sBpN1C/wb+0uaSfaLdICajcJVM+rXQPS2WuX +FplQFknYHqw2jxqC5r0YFiwXUuoyj7udvwdFUUduJFqF+I/7e9CmmsVQGmgU2Xu+ySMXZHWVoG Ly4XRT3Kep3p9Wjpp+xmr8wX3Uovr2akgGLoyPgqRdGdpXJ5VUQJzuQX4huR5hbrX2Zy2fRuwfq aFUXk0/rVcIyM96Jr8XdhGDKGGuNwYjX7WLovYuT2lLw5coAG/c8yb6zGvkJNQRbQP5g81RX5Qe UG7FcQWiyDXz9UHhKt0SBB25iXkmTKFZMp6wAkj6EbNSFYPG/ATcJ541iu4x5IZJGf7b+YNh3xM +WOS4DLAotWrnHpux0+OpcHtWK6HccZNGY9xqe2KbeFGDnMZZwyZ1eAJeMZGAf943+EnCRbgVxn uva/8wo5kiI8myTC4tkPEIfn1lriVlRVTCQ/LkwUhuaSt7Eey2kT3j077F1eUoe4HeWBwk84+kY wTPEKLdV6XMVNQQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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?1767345699389800225?= X-GMAIL-MSGID: =?utf-8?q?1767345699389800225?= Add the required config for the v1.1 MDP5 found on MSM8226. Reviewed-by: Dmitry Baryshkov Signed-off-by: Luca Weiss --- drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 82 ++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c index 2eec2d78f32a..694d54341337 100644 --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c @@ -103,6 +103,87 @@ static const struct mdp5_cfg_hw msm8x74v1_config = { .max_clk = 200000000, }; +static const struct mdp5_cfg_hw msm8x26_config = { + .name = "msm8x26", + .mdp = { + .count = 1, + .caps = MDP_CAP_SMP | + 0, + }, + .smp = { + .mmb_count = 7, + .mmb_size = 4096, + .clients = { + [SSPP_VIG0] = 1, + [SSPP_DMA0] = 4, + [SSPP_RGB0] = 7, + }, + }, + .ctl = { + .count = 2, + .base = { 0x00500, 0x00600 }, + .flush_hw_mask = 0x0003ffff, + }, + .pipe_vig = { + .count = 1, + .base = { 0x01100 }, + .caps = MDP_PIPE_CAP_HFLIP | + MDP_PIPE_CAP_VFLIP | + MDP_PIPE_CAP_SCALE | + MDP_PIPE_CAP_CSC | + 0, + }, + .pipe_rgb = { + .count = 1, + .base = { 0x01d00 }, + .caps = MDP_PIPE_CAP_HFLIP | + MDP_PIPE_CAP_VFLIP | + MDP_PIPE_CAP_SCALE | + 0, + }, + .pipe_dma = { + .count = 1, + .base = { 0x02900 }, + .caps = MDP_PIPE_CAP_HFLIP | + MDP_PIPE_CAP_VFLIP | + 0, + }, + .lm = { + .count = 2, + .base = { 0x03100, 0x03d00 }, + .instances = { + { .id = 0, .pp = 0, .dspp = 0, + .caps = MDP_LM_CAP_DISPLAY, }, + { .id = 1, .pp = -1, .dspp = -1, + .caps = MDP_LM_CAP_WB }, + }, + .nb_stages = 2, + .max_width = 2048, + .max_height = 0xFFFF, + }, + .dspp = { + .count = 1, + .base = { 0x04500 }, + }, + .pp = { + .count = 1, + .base = { 0x21a00 }, + }, + .intf = { + .base = { 0x00000, 0x21200 }, + .connect = { + [0] = INTF_DISABLED, + [1] = INTF_DSI, + }, + }, + .perf = { + .ab_inefficiency = 100, + .ib_inefficiency = 200, + .clk_inefficiency = 125 + }, + .max_clk = 200000000, +}; + static const struct mdp5_cfg_hw msm8x74v2_config = { .name = "msm8x74", .mdp = { @@ -1236,6 +1317,7 @@ static const struct mdp5_cfg_hw sdm660_config = { static const struct mdp5_cfg_handler cfg_handlers_v1[] = { { .revision = 0, .config = { .hw = &msm8x74v1_config } }, + { .revision = 1, .config = { .hw = &msm8x26_config } }, { .revision = 2, .config = { .hw = &msm8x74v2_config } }, { .revision = 3, .config = { .hw = &apq8084_config } }, { .revision = 6, .config = { .hw = &msm8x16_config } }, From patchwork Tue May 30 18:24:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 101061 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2378441vqr; Tue, 30 May 2023 11:27:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Fx1JXPyS1C9/6IY9mFfnlk6bV4z8LF4T8WPQBqR9Z920AQbDTMgeG61rtNTZ8UQbZSjLP X-Received: by 2002:a05:6a20:918a:b0:10b:7400:cef7 with SMTP id v10-20020a056a20918a00b0010b7400cef7mr3933344pzd.17.1685471229158; Tue, 30 May 2023 11:27:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685471229; cv=none; d=google.com; s=arc-20160816; b=MDejhbyHZm9I9pao7faNjVFcQYVNfeJOpKn31Rk131iDGWh1qtwogwUh92rHD3obaU do/cSvseY6lvgPR2oIRpHRaVdxdAq5tEz4iDpTXkNPiXCMdIUVDxPTMYXsLZsddkZ/su KoEu/xvdt0Cblfa4ZReGKyRr5IXrM1OUnKqkgEQrI/o8MylJX2tChXJra982Cqj0MaGN wnfv7uiu08fl2brgIrO+2rQ01w2V7gZoO6626cLXmqq5wHz6el1xgq+Fg/qGyn9nG5HT DnNY6e1UYJ++tnIG77PHg8Uyy6//CpMmhs2uRkpf6lsyA9YazGsxpcOnUkyLgXtxNW6N l2Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=bTtlM58LY6BbGAj1eRBfISACkqhF9sGtehi96P3CkSE=; b=zW2XpnJ+LUufanT3GSce6B1pCcQWeCU9PMUhhs+Q2sXDe7AvpG5WR+dRx8vffd5wdx WN66zQty/oNH4CqvqbBtkuHxjcW7MkUzQVwoZH5Ki+OXcfbqOfCbr7QW5LthnZ+qq2Xq JfE+pOsIuqk15Fsf3IfSRPMdm2f3f6e5jycdBhVAgbZzg+jeZaXa4F42MzbSkMcTD0A6 aKw7sp7I0sjiwh7w/mNJlt7iyQu1oGOGCO9ZXNyAWHu6nUuYvyflw91825cDzxo7vlAB ffZhFJ0kgADOH9Q7Mn0reBd5Nce0UdXzGozKAbJCBSWpgPs8lNmW7GHFyAyc9VKx7mnW BroA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=TlDQIwMx; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 62-20020a630041000000b0053f955eda7csi232951pga.559.2023.05.30.11.26.54; Tue, 30 May 2023 11:27:09 -0700 (PDT) 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=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=TlDQIwMx; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232469AbjE3SYi (ORCPT + 99 others); Tue, 30 May 2023 14:24:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233351AbjE3SYd (ORCPT ); Tue, 30 May 2023 14:24:33 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32FCBA7; Tue, 30 May 2023 11:24:32 -0700 (PDT) Received: from [192.168.122.1] (84-115-214-73.cable.dynamic.surfer.at [84.115.214.73]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id EA9E8CFC42; Tue, 30 May 2023 18:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1685471070; bh=tSyVDSi1R0wPUkpeZdZY3/k1LG5m9jxQOZeT/ptDISM=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=TlDQIwMxQNaz6waHH9OYtBwLvLeRaosqpKMkSdBffpf9RevXbBZcUyKp4NvRRVhtJ UcBb+CA/kpXAgLcQKFiESVLGQA3b1kLfWUY607k0pjFXWrnRP4ajecUTS2i3o1pcwv Vj/9HchqkJ5anWbPln/H8aiXxnhovOVSF3n+RC88= From: Luca Weiss Date: Tue, 30 May 2023 20:24:15 +0200 Subject: [PATCH v2 5/7] drm/msm/dsi: Add configuration for MSM8226 MIME-Version: 1.0 Message-Id: <20230308-msm8226-mdp-v2-5-e005b769ee28@z3ntu.xyz> References: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> In-Reply-To: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Manikandan , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1685; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=tSyVDSi1R0wPUkpeZdZY3/k1LG5m9jxQOZeT/ptDISM=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkdj9VaoueF0hGskMcZQ/G+5BNdYTyh3QFo84xA FYiXB3mHMWJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZHY/VQAKCRBy2EO4nU3X VvdAEACWLm51oDLFfRk14xBcRWiP8GhkLFr61vb6hVhnfbwULHe0mkDIIA6gypDvcWSJ2UgqaoV RUG63J3n0SWC4sqsfEs5aE41ZtpxVxylRrgxHxCeS6Hh9X0kDCtkTrzLIeuLBnYEx6tVlgtOD6r +x/mFYTJuD/oN6xcuyCOrNq7rg9G+PF2ifMotLyVEwxxvL0pNUb0tHIIo/0dVXLC2bOxofgu6pe oGId0qQmjBLfoOtJf0VE3Hpkmy8knIvuzAziXGb92G/qLUb8rIJiXJN/0oAHjBXARVIG6PFxRAy dN3WpI8w59SpB3Y4g/3ZMNHJXrzvXgahRij+lroW5yL8ikMIInQNYuQ0/RephC/UzN/F4Qb0xCJ l/Hk1rUoe7Y+0vCkCzbtttOuqhXz+5KbiffoQo6iWUWmkTKEO6mDndJ49gCl0GKjkL1k38wGL1O BZE1jLvqdeFb7oMf1EEm9oHywhwU9O68JMLhRCumUjdUmPkPBeSLS2x0QoiL17sGaMH2s4zc57m JXdnhsCUGm4dja0JMuzEfqTb2st6g4kM/oJepG5LWCNGHM9eZTTKhMwad+1TbbsnawSPupjMbQW 3Li8Cq6E6jDaChFA7qqgbo43DrGaMKLZdY7in1+CYPwINkomafRAm5lMpwM8MniPFaH6ApeahrE d9gzXg9MVdxaqeQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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?1767344679546079689?= X-GMAIL-MSGID: =?utf-8?q?1767344679546079689?= Add the config for the v1.0.2 DSI found on MSM8226. We can reuse existing bits from other revisions that are identical for v1.0.2. Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- drivers/gpu/drm/msm/dsi/dsi_cfg.c | 2 ++ drivers/gpu/drm/msm/dsi/dsi_cfg.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/msm/dsi/dsi_cfg.c b/drivers/gpu/drm/msm/dsi/dsi_cfg.c index 29ccd755cc2e..8a5fb6df7210 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_cfg.c +++ b/drivers/gpu/drm/msm/dsi/dsi_cfg.c @@ -245,6 +245,8 @@ static const struct msm_dsi_cfg_handler dsi_cfg_handlers[] = { &apq8064_dsi_cfg, &msm_dsi_v2_host_ops}, {MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V1_0, &msm8974_apq8084_dsi_cfg, &msm_dsi_6g_host_ops}, + {MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V1_0_2, + &msm8974_apq8084_dsi_cfg, &msm_dsi_6g_host_ops}, {MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V1_1, &msm8974_apq8084_dsi_cfg, &msm_dsi_6g_host_ops}, {MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V1_1_1, diff --git a/drivers/gpu/drm/msm/dsi/dsi_cfg.h b/drivers/gpu/drm/msm/dsi/dsi_cfg.h index 91bdaf50bb1a..43f0dd74edb6 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_cfg.h +++ b/drivers/gpu/drm/msm/dsi/dsi_cfg.h @@ -11,6 +11,7 @@ #define MSM_DSI_VER_MAJOR_V2 0x02 #define MSM_DSI_VER_MAJOR_6G 0x03 #define MSM_DSI_6G_VER_MINOR_V1_0 0x10000000 +#define MSM_DSI_6G_VER_MINOR_V1_0_2 0x10000002 #define MSM_DSI_6G_VER_MINOR_V1_1 0x10010000 #define MSM_DSI_6G_VER_MINOR_V1_1_1 0x10010001 #define MSM_DSI_6G_VER_MINOR_V1_2 0x10020000 From patchwork Tue May 30 18:24:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 101068 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2379525vqr; Tue, 30 May 2023 11:29:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ANSHEb7r/CgPtZ1HZklcnozA4CkUFP09+ro02xJ2L/ypyDk7TPCXuXM3oTngzoXlb8w0w X-Received: by 2002:a17:90a:c287:b0:255:f114:fa9f with SMTP id f7-20020a17090ac28700b00255f114fa9fmr3219813pjt.3.1685471373059; Tue, 30 May 2023 11:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685471373; cv=none; d=google.com; s=arc-20160816; b=krWpvfzu3ngrR+aKUfM93codngU3+JRHYobAiAv5jmV87gqCsmoyKjTk6Y3XSAmWj4 oH5D+1aWudOm5JED0jHoQAL5rNHi+KCyEqTJMHZSkGM0/pb1DJo+fEkarR7HnS2WbWAY DilCLltKCb0aOXwwuXRwrRbmF1/XcBwBqM9siAD46y8tr1gRUxlEnWzAZQR9wtf2h54S Sqvd1sawD37cRftl9AXn/G+Cl0TXncmipHXkPL4Q/5YHQz1hotZlQ5Chovn051YudJtt zYKP1lUT0Sim750rASG4KPA+4d6SogdekyxA5HChMp3cgB68aELax5Gqs4Qdfr0NSNaV e7Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=LSR7BqHbXf3dMi0OR3FBQpsCMXv9oYcGYju1UsjO7l4=; b=OyXlf3K1zwLSV8SmcPM/EvjU+3lvRnuJ7brxQ56tUE2pJfD996vkCPQF3bhfnEnTHl h3de0fzaA3imxOq4WJQG/aFAr70KnKuj5ETuX2ZWPDQ9Br9wlpZhgJo1z98C0q11Ia6f oNDwPTTP3OaEef+BmOd5m9ugjfFnlerkqOCi4nFbc62Gj0B4j52n98Y8C3FCdjv5LrSO tAi7VDVWSSd3cGnfFLSd8eLGie80Bc+aZ2KYpkwNQWbi/wRA4cVMKP9O6FNlAtbNIwa+ 71BbNf0vgGrSltYDqac2sw7JYk+ZwmR2LQckVMOW5pOjxsOLCEY52ykIvMKCfgTcx4Ji hmUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=kC5jDogk; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u60-20020a17090a51c200b00250c9a70af9si424613pjh.63.2023.05.30.11.29.18; Tue, 30 May 2023 11:29:33 -0700 (PDT) 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=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=kC5jDogk; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233442AbjE3SZh (ORCPT + 99 others); Tue, 30 May 2023 14:25:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233413AbjE3SZ3 (ORCPT ); Tue, 30 May 2023 14:25:29 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13880F9; Tue, 30 May 2023 11:25:03 -0700 (PDT) Received: from [192.168.122.1] (84-115-214-73.cable.dynamic.surfer.at [84.115.214.73]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id B52A8CFC43; Tue, 30 May 2023 18:24:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1685471071; bh=rnv3mbRpScpgrIa7uhlioBc67H4h1mLQDF3YL9pvLZQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=kC5jDogkPQEBPz3ndzMhDpYTBcY8Cc/4A7Hyq/kffTYEFGrsua/T+KUpVXWB8wBzT HPbqcsnp2JZz1swgb/BJapvuvDZ/enZy3jqrJ1LAFVZ2VPLuElyrxqbeBBhfTvu2iR 8cMxi/iMOb67nUlq3KBTxjXmcsXZmkza9LCA6eTE= From: Luca Weiss Date: Tue, 30 May 2023 20:24:16 +0200 Subject: [PATCH v2 6/7] drm/msm/dsi: Add phy configuration for MSM8226 MIME-Version: 1.0 Message-Id: <20230308-msm8226-mdp-v2-6-e005b769ee28@z3ntu.xyz> References: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> In-Reply-To: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Manikandan , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=6897; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=rnv3mbRpScpgrIa7uhlioBc67H4h1mLQDF3YL9pvLZQ=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkdj9W/xWMtWP2NpPcoje4Jm9Rov5PF1ELb+BJk hDZDdwF9oaJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZHY/VgAKCRBy2EO4nU3X VqG9D/9fNrDvTyCrpYq0HNFrrS4afwRF/4T5hZMlA5mgXJr/gqjM1HPzErCXda4uBfeZOzk9J3m iooFTgdxMeFpbZffwtcylCqcNMlyQhithe2eBARwzUWJ+kHDeAz8YsWmtXRgVHGmvctyTCe3suI x1z+iK4ocJ+WOLAyziB0D1ctyDsfJl344WLQ0SLppYqyS5rr+0ul4PyPxmt9Wb4rEiu6UhAwbKx FfHk6DYqUucxPSV1fIN633YxN52O6UpfQffeuEGlbz7PfpIJtqAivRpBiQ7ULa94+dkfb423G71 29uSkndnJEHU6UWyat9VcmBO6QSp7tS4NxxEqNDjJk1F4JeP34JLnKA5/7F8KNYhNRJmNK1X0tv j6gqP3gdF96yV9nfbq/Lsyo2UvkTZw9MbJjPz1oFmSGvOWEylKPpkKTxIF6FwVGQ+spmoD4lrRx j+CuFzP7Di8WjTkzCRGaIyZTjp66HsGinTY/yIWHh0ZMFhxtk6/DC0vMr/ygvm2rnPfIQquQJke lCrWmJOV5EYVrKgUQ1af1DxJr3nIQru7FsTpFW+UaB1FpaHl+vhFySY3+fctM5hbyuTQDkV4Ibc m65TDGFsoo+8tLnM4MjRtNvQhYbRw3AVriWz6eIFQrYoIGk67wxZXdbtFzVG458vYjCoy/cYmJW FkVmEXCTLMyBG3Q== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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?1767344830572468347?= X-GMAIL-MSGID: =?utf-8?q?1767344830572468347?= MSM8226 uses a modified PLL lock sequence compared to MSM8974, which is based on the function dsi_pll_enable_seq_m in the msm-3.10 kernel. Worth noting that the msm-3.10 downstream kernel also will try other sequences in case this one doesn't work, but during testing it has shown that the _m sequence succeeds first time also: .pll_enable_seqs[0] = dsi_pll_enable_seq_m, .pll_enable_seqs[1] = dsi_pll_enable_seq_m, .pll_enable_seqs[2] = dsi_pll_enable_seq_d, .pll_enable_seqs[3] = dsi_pll_enable_seq_d, .pll_enable_seqs[4] = dsi_pll_enable_seq_f1, .pll_enable_seqs[5] = dsi_pll_enable_seq_c, .pll_enable_seqs[6] = dsi_pll_enable_seq_e, We may need to expand this in the future. Signed-off-by: Luca Weiss --- drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 + drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 3 +- drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c | 97 ++++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c index bb09cbe8ff86..9d5795c58a98 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.c @@ -541,6 +541,8 @@ static const struct of_device_id dsi_phy_dt_match[] = { .data = &dsi_phy_28nm_hpm_famb_cfgs }, { .compatible = "qcom,dsi-phy-28nm-lp", .data = &dsi_phy_28nm_lp_cfgs }, + { .compatible = "qcom,dsi-phy-28nm-8226", + .data = &dsi_phy_28nm_8226_cfgs }, #endif #ifdef CONFIG_DRM_MSM_DSI_20NM_PHY { .compatible = "qcom,dsi-phy-20nm", diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h index 7137a17ae523..8b640d174785 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h @@ -46,8 +46,9 @@ struct msm_dsi_phy_cfg { extern const struct msm_dsi_phy_cfg dsi_phy_28nm_hpm_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_28nm_hpm_famb_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_28nm_lp_cfgs; -extern const struct msm_dsi_phy_cfg dsi_phy_20nm_cfgs; +extern const struct msm_dsi_phy_cfg dsi_phy_28nm_8226_cfgs; extern const struct msm_dsi_phy_cfg dsi_phy_28nm_8960_cfgs; +extern const struct msm_dsi_phy_cfg dsi_phy_20nm_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_2290_cfgs; diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c index 4c1bf55c5f38..ceec7bb87bf1 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c @@ -37,6 +37,7 @@ /* v2.0.0 28nm LP implementation */ #define DSI_PHY_28NM_QUIRK_PHY_LP BIT(0) +#define DSI_PHY_28NM_QUIRK_PHY_8226 BIT(1) #define LPFR_LUT_SIZE 10 struct lpfr_cfg { @@ -377,6 +378,74 @@ static int dsi_pll_28nm_vco_prepare_hpm(struct clk_hw *hw) return ret; } +static int dsi_pll_28nm_vco_prepare_8226(struct clk_hw *hw) +{ + struct dsi_pll_28nm *pll_28nm = to_pll_28nm(hw); + struct device *dev = &pll_28nm->phy->pdev->dev; + void __iomem *base = pll_28nm->phy->pll_base; + u32 max_reads = 5, timeout_us = 100; + bool locked; + u32 val; + int i; + + DBG("id=%d", pll_28nm->phy->id); + + pll_28nm_software_reset(pll_28nm); + + /* + * PLL power up sequence. + * Add necessary delays recommended by hardware. + */ + dsi_phy_write(base + REG_DSI_28nm_PHY_PLL_CAL_CFG1, 0x34); + + val = DSI_28nm_PHY_PLL_GLB_CFG_PLL_PWRDN_B; + dsi_phy_write_udelay(base + REG_DSI_28nm_PHY_PLL_GLB_CFG, val, 200); + + val |= DSI_28nm_PHY_PLL_GLB_CFG_PLL_PWRGEN_PWRDN_B; + dsi_phy_write_udelay(base + REG_DSI_28nm_PHY_PLL_GLB_CFG, val, 200); + + val |= DSI_28nm_PHY_PLL_GLB_CFG_PLL_LDO_PWRDN_B; + val |= DSI_28nm_PHY_PLL_GLB_CFG_PLL_ENABLE; + dsi_phy_write_udelay(base + REG_DSI_28nm_PHY_PLL_GLB_CFG, val, 600); + + for (i = 0; i < 7; i++) { + /* DSI Uniphy lock detect setting */ + dsi_phy_write(base + REG_DSI_28nm_PHY_PLL_LKDET_CFG2, 0x0d); + dsi_phy_write_udelay(base + REG_DSI_28nm_PHY_PLL_LKDET_CFG2, + 0x0c, 100); + dsi_phy_write(base + REG_DSI_28nm_PHY_PLL_LKDET_CFG2, 0x0d); + + /* poll for PLL ready status */ + locked = pll_28nm_poll_for_ready(pll_28nm, + max_reads, timeout_us); + if (locked) + break; + + pll_28nm_software_reset(pll_28nm); + + /* + * PLL power up sequence. + * Add necessary delays recommended by hardware. + */ + dsi_phy_write_udelay(base + REG_DSI_28nm_PHY_PLL_PWRGEN_CFG, 0x00, 50); + + val = DSI_28nm_PHY_PLL_GLB_CFG_PLL_PWRDN_B; + val |= DSI_28nm_PHY_PLL_GLB_CFG_PLL_PWRGEN_PWRDN_B; + dsi_phy_write_udelay(base + REG_DSI_28nm_PHY_PLL_GLB_CFG, val, 100); + + val |= DSI_28nm_PHY_PLL_GLB_CFG_PLL_LDO_PWRDN_B; + val |= DSI_28nm_PHY_PLL_GLB_CFG_PLL_ENABLE; + dsi_phy_write_udelay(base + REG_DSI_28nm_PHY_PLL_GLB_CFG, val, 600); + } + + if (unlikely(!locked)) + DRM_DEV_ERROR(dev, "DSI PLL lock failed\n"); + else + DBG("DSI PLL Lock success"); + + return locked ? 0 : -EINVAL; +} + static int dsi_pll_28nm_vco_prepare_lp(struct clk_hw *hw) { struct dsi_pll_28nm *pll_28nm = to_pll_28nm(hw); @@ -471,6 +540,15 @@ static const struct clk_ops clk_ops_dsi_pll_28nm_vco_lp = { .is_enabled = dsi_pll_28nm_clk_is_enabled, }; +static const struct clk_ops clk_ops_dsi_pll_28nm_vco_8226 = { + .round_rate = dsi_pll_28nm_clk_round_rate, + .set_rate = dsi_pll_28nm_clk_set_rate, + .recalc_rate = dsi_pll_28nm_clk_recalc_rate, + .prepare = dsi_pll_28nm_vco_prepare_8226, + .unprepare = dsi_pll_28nm_vco_unprepare, + .is_enabled = dsi_pll_28nm_clk_is_enabled, +}; + /* * PLL Callbacks */ @@ -536,6 +614,8 @@ static int pll_28nm_register(struct dsi_pll_28nm *pll_28nm, struct clk_hw **prov if (pll_28nm->phy->cfg->quirks & DSI_PHY_28NM_QUIRK_PHY_LP) vco_init.ops = &clk_ops_dsi_pll_28nm_vco_lp; + else if (pll_28nm->phy->cfg->quirks & DSI_PHY_28NM_QUIRK_PHY_8226) + vco_init.ops = &clk_ops_dsi_pll_28nm_vco_8226; else vco_init.ops = &clk_ops_dsi_pll_28nm_vco_hpm; @@ -820,3 +900,20 @@ const struct msm_dsi_phy_cfg dsi_phy_28nm_lp_cfgs = { .quirks = DSI_PHY_28NM_QUIRK_PHY_LP, }; +const struct msm_dsi_phy_cfg dsi_phy_28nm_8226_cfgs = { + .has_phy_regulator = true, + .regulator_data = dsi_phy_28nm_regulators, + .num_regulators = ARRAY_SIZE(dsi_phy_28nm_regulators), + .ops = { + .enable = dsi_28nm_phy_enable, + .disable = dsi_28nm_phy_disable, + .pll_init = dsi_pll_28nm_init, + .save_pll_state = dsi_28nm_pll_save_state, + .restore_pll_state = dsi_28nm_pll_restore_state, + }, + .min_pll_rate = VCO_MIN_RATE, + .max_pll_rate = VCO_MAX_RATE, + .io_start = { 0xfd922b00 }, + .num_dsi_phy = 1, + .quirks = DSI_PHY_28NM_QUIRK_PHY_8226, +}; From patchwork Tue May 30 18:24:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 101062 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2378454vqr; Tue, 30 May 2023 11:27:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4847/7+If7MyzAb2/X6sw+edI0pXW1LPDkBEAGIKh0SSclwK2QjcG04ejNpb4HoeM2HrTH X-Received: by 2002:a05:6a20:7d96:b0:111:3998:7dd0 with SMTP id v22-20020a056a207d9600b0011139987dd0mr3918662pzj.17.1685471230992; Tue, 30 May 2023 11:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685471230; cv=none; d=google.com; s=arc-20160816; b=H+xme5YqtQ9vGNKjJcims5M2xVrhVhvzXd8DuVSyDGbsgA9TH9LrxYlAHpruT8V1eG 3fFcLkcr8nhb03A7SgHAxN6YJjnCGXrk8FRFyR4y3Fc30I45tP2KXrx7PX87mz9JQgWm vzXDy2Y4m8vq8/z/iNohaJAm4Fm6AWEVSv6+6Ofl6WAh8Dc56UT8blOSzoApOCvX8Gg0 kZgYi56x3NvpZTa0TW/cz5sbWjZXdJfCTxafH57NNjBWb/u+Ew5Vi2tVOOhfz0j6zd00 yQn4GVCm5GnaQ1RwReK1ySlpGBUWO8+McugcCbGqW4Gq0a24cLEKflj8zU9SgZQeUlOv ThFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=bb8gEt0u0PdwDJYaH0NuS8dkx//YPThvHjCy3duYvro=; b=egdgkckieDpAo1yAXncPhQD5cH7Tuue+LT9Z+7gkbBwiOTftI9vQXfugANQ1j+eeVC wN07S+Gg5CO/42yS5xhZOrXxcBnHjfvBns6nnZijvnk9kCcH5M2+IVzqVJWSA8doiO1E WaokLwYtAtSvxfVX+k4Eb/Qr8Bv90tM7iyU2eD1P7APWqrAG6okEZKe0iCZeKrgxtOgi Mp0sLMPq904F+wx69OBYNynz9uVISSHC5Yzs1FNSIeij9QpG7N0Dcs+8VLUvoO+Fhnyj KOKUcUTODxXJPAERkAa9gu+8PBGrL9PlKBJs7msRYftfP8Eu2o99mkhT2QsbZRgzFMyw 8vvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=PNuNaQPf; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g29-20020a63375d000000b0053fb50e49e5si1703215pgn.603.2023.05.30.11.26.57; Tue, 30 May 2023 11:27:10 -0700 (PDT) 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=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=PNuNaQPf; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233351AbjE3SYn (ORCPT + 99 others); Tue, 30 May 2023 14:24:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231690AbjE3SYf (ORCPT ); Tue, 30 May 2023 14:24:35 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A5BCA7; Tue, 30 May 2023 11:24:34 -0700 (PDT) Received: from [192.168.122.1] (84-115-214-73.cable.dynamic.surfer.at [84.115.214.73]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id A394ACFC44; Tue, 30 May 2023 18:24:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1685471072; bh=z/aQiTQcE2QuOfic75RRo/hFCpeXMEDvL82sQ0eB9MU=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=PNuNaQPfPXQXcBI3A0XralCb8FDrEGVTHYmJ3aCA10HzXvrQq0T06xM4qdA7AP/Kf Rs/LIrqV8Q/oGBuvhsJub9kXZDnNjm8OJIEXQ8s6F4sgXt/3jvZRsS495NrY5qT7gm p2PrPr2h/JIWbw214A1oylzKbjYO50YaA8oxpzJo= From: Luca Weiss Date: Tue, 30 May 2023 20:24:17 +0200 Subject: [PATCH v2 7/7] ARM: dts: qcom: msm8226: Add mdss nodes MIME-Version: 1.0 Message-Id: <20230308-msm8226-mdp-v2-7-e005b769ee28@z3ntu.xyz> References: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> In-Reply-To: <20230308-msm8226-mdp-v2-0-e005b769ee28@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Manikandan , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3445; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=z/aQiTQcE2QuOfic75RRo/hFCpeXMEDvL82sQ0eB9MU=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkdj9XQ26mD638qkdilZENNBfMnjNRu6b0TrM9i x5nSITiamCJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZHY/VwAKCRBy2EO4nU3X VnLUEACNBeNSCjbsj9aGEIRQvH3o2vtqRbOvDk1zU6BBbiSmbXGGieqeWgf9FXKZhiGQnUqICnG D387FPjOyiicfJ6MYqFNbcGgWiFQIbfTdcdBGXSkOxH1Kk3Issd3qQ1rhIhBKrjRMR+geDo/DAt XlxcxB+3/DVPPuvjLM0y5ZIKCqriFjP5zla9Y0qpGsvWrK3E4SqyyajciObw7ZiGWFkbM7rn4fY WyAqFoFStaRYCRl+etjNwL/hiiq/EO91rK+jUwTugLrJVJHoxtun+yeu24BI3cJz6/POGnpGKU2 y5aUG8C1AznkHXBOHTKBleqMRwr5SgjUstlCCiYiZtdO+7Vn4I7lIE31LMFx7C7/lgzFHvveRph TasTKWPQFROsT408+XGDL2gMaFf5884CEmACaEn+UWzI5KCSG/OpwUFI9AUimawI67VV21z0gS0 XNLPEw2N+7Qz/IubFzbMzlvnL4UDwZiW+vy4o+QqphcvK4wms6ke2co5aED9B/JFxrqYeMzFBcl vuDuFXJCFGtvM7UZlS6suSn0NZOOaEyW2SOrCFqbfuvNGWjuBa8SJ/CONwBlsxfEbLIET85jWti rGguMvuupfUzUS+YXnGFbcxOpGMgvWvHAfyCV6jj/WhxH22uouhYvUk1MqOVoq+Hvb8DOHyYIiG EewI8xHb5XplNzg== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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?1767344681595677385?= X-GMAIL-MSGID: =?utf-8?q?1767344681595677385?= Add the nodes that describe the mdss so that display can work on MSM8226. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-msm8226.dtsi | 127 ++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index 42acb9ddb8cc..c794f5ece1d1 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -636,6 +636,133 @@ smd-edge { label = "lpass"; }; }; + + mdss: display-subsystem@fd900000 { + compatible = "qcom,mdss"; + reg = <0xfd900000 0x100>, <0xfd924000 0x1000>; + reg-names = "mdss_phys", "vbif_phys"; + + power-domains = <&mmcc MDSS_GDSC>; + + clocks = <&mmcc MDSS_AHB_CLK>, + <&mmcc MDSS_AXI_CLK>, + <&mmcc MDSS_VSYNC_CLK>; + clock-names = "iface", + "bus", + "vsync"; + + interrupts = ; + + interrupt-controller; + #interrupt-cells = <1>; + + #address-cells = <1>; + #size-cells = <1>; + ranges; + + status = "disabled"; + + mdp: display-controller@fd900000 { + compatible = "qcom,msm8226-mdp5", "qcom,mdp5"; + reg = <0xfd900100 0x22000>; + reg-names = "mdp_phys"; + + interrupt-parent = <&mdss>; + interrupts = <0>; + + clocks = <&mmcc MDSS_AHB_CLK>, + <&mmcc MDSS_AXI_CLK>, + <&mmcc MDSS_MDP_CLK>, + <&mmcc MDSS_VSYNC_CLK>; + clock-names = "iface", + "bus", + "core", + "vsync"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + mdp5_intf1_out: endpoint { + remote-endpoint = <&dsi0_in>; + }; + }; + }; + }; + + dsi0: dsi@fd922800 { + compatible = "qcom,msm8226-dsi-ctrl", + "qcom,mdss-dsi-ctrl"; + reg = <0xfd922800 0x1f8>; + reg-names = "dsi_ctrl"; + + interrupt-parent = <&mdss>; + interrupts = <4>; + + assigned-clocks = <&mmcc BYTE0_CLK_SRC>, + <&mmcc PCLK0_CLK_SRC>; + assigned-clock-parents = <&dsi_phy0 0>, + <&dsi_phy0 1>; + + clocks = <&mmcc MDSS_MDP_CLK>, + <&mmcc MDSS_AHB_CLK>, + <&mmcc MDSS_AXI_CLK>, + <&mmcc MDSS_BYTE0_CLK>, + <&mmcc MDSS_PCLK0_CLK>, + <&mmcc MDSS_ESC0_CLK>, + <&mmcc MMSS_MISC_AHB_CLK>; + clock-names = "mdp_core", + "iface", + "bus", + "byte", + "pixel", + "core", + "core_mmss"; + + phys = <&dsi_phy0>; + + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dsi0_in: endpoint { + remote-endpoint = <&mdp5_intf1_out>; + }; + }; + + port@1 { + reg = <1>; + dsi0_out: endpoint { + }; + }; + }; + }; + + dsi_phy0: phy@fd922a00 { + compatible = "qcom,dsi-phy-28nm-8226"; + reg = <0xfd922a00 0xd4>, + <0xfd922b00 0x280>, + <0xfd922d80 0x30>; + reg-names = "dsi_pll", + "dsi_phy", + "dsi_phy_regulator"; + + #clock-cells = <1>; + #phy-cells = <0>; + + clocks = <&mmcc MDSS_AHB_CLK>, + <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "iface", + "ref"; + }; + }; }; timer {