From patchwork Tue May 23 07:46:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 97903 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1990769vqo; Tue, 23 May 2023 01:53:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5IQH/Bobwto+g+r+Cm8mXYZvnNaysFtX2u1y7ejKkL+e7RLpISxzPuC19ZgoufDV8sjGXu X-Received: by 2002:a05:6a20:440b:b0:10b:e88f:598f with SMTP id ce11-20020a056a20440b00b0010be88f598fmr5452239pzb.51.1684832012881; Tue, 23 May 2023 01:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684832012; cv=none; d=google.com; s=arc-20160816; b=fNiNBqVqisKTw/n2sVa/YRF3FH4W5ZF0WgIVSG61SKq7EtT+UYPZE9QKDJgTDUHrL1 ao0hS7rTQ/xpbj6jU4jO0gHb0FuzCt00tweFJTVBHHPg5p7gxEf8skiO53G5L7DJi40y XR/h7+z75VXuoSl5rWA5rIAJiT5QC+2FoszRSBxL402wy+L8vrWzJIHHiqwTuxMwoHdC E7N2IrVDm5zGmx5c1NdhJGEY+gY3QRratuNV90MshJrDeBM8BsIcmXJeC8sZar18ynhI epbaboQEOZxCzSsmX8ML90cjrNXbhY83rmzndNgsTiB4jYlbRYVf0QSysgSFqZ7PMj7l APWA== 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=NO5fRgfBpga7Z40GIKnv5Lmg/IglAEvXvStQNi4ygG0=; b=Tz7xaLcakGpgnynN8EHgntx+FIzMCPUQvOcTy95x3Eon8gE8RUQ1hJvuYR2RV2WKcK Fza98l3fyFsNIL3mgD/Or2RcKh4XjSn21bobtv3/G4zboAXfy5NNUGK0VdxrHsIM2gUr xn4AlnFuKI9tq+NdfMa+awNfkzn70ZdPDLF7tLTrTDDuoeDymSpYKRf5bTzpxarx7b6r EnthAXs04FT/C58xrlu5em9pMHkmSZFC9hw6n+rR8dq+GoK0+xGLRC1gBXnX2fIwNUj1 h45djbyC31u5d/CMo/1L4Yvq804c7nPltQyxeLTRm4SMKOdzw8me3oodPHgYJ5ox9jD7 kY5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UEbFqDKU; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t189-20020a6381c6000000b005302f7ebd3esi1890521pgd.800.2023.05.23.01.53.17; Tue, 23 May 2023 01:53:32 -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=@linaro.org header.s=google header.b=UEbFqDKU; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235457AbjEWIdS (ORCPT + 99 others); Tue, 23 May 2023 04:33:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232466AbjEWIcp (ORCPT ); Tue, 23 May 2023 04:32:45 -0400 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B0AB359B for ; Tue, 23 May 2023 01:28:48 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2af2451b3f1so53583041fa.2 for ; Tue, 23 May 2023 01:28:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684830435; x=1687422435; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=NO5fRgfBpga7Z40GIKnv5Lmg/IglAEvXvStQNi4ygG0=; b=UEbFqDKUw+e3aBwwFoelRQkjFj0UVbG+Yl88T5I2KFjP5qEwbmwU0p0WuMgfSq08Tv g9ebd6QkwSx2GS2cKyR8w+fsnkQbU6GsCCJG4Ae26QpMde7rz8r0S0CzRf/GC0he36aW w5p772AIKG0AZ0nFt306k3BYLmmQU2ByxDNk8uJmaABTylIxHDcQmsV3eM1DRKd+qcRW D++HwDAGRrLlSzJjNynQnXiqyMBmtPs6dnKh89ek85+PWquG1o7qPghJMyVTLqQVCGAa JHeymehhWCvr5vNzh5NYtOgzJf61GR/vIqwjsl7PiTJlmyDPRq3XhGCxoQp72fIJCcTO kjrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684830435; x=1687422435; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NO5fRgfBpga7Z40GIKnv5Lmg/IglAEvXvStQNi4ygG0=; b=CztS7kyL4OvJHEQ0ndb8jRKqKS16Jka1oAQb5omJ2X8Udlgvr9idEvtPq5ioKYUrNP 49MPlUzprF6EJHhdzS1fyShUjMlIeFZAludoNt5tbncrO/A2lIB52ikzwA+X9pPralkD 9O51Kf695oDK9OHdPtKgRCn7bGaZaM4j2DXk6Ht/x04FkyxCeZYBoKrBMHMRWs1Pw5tB 6x2trJhEFmgVFMfOPm30qDzH5xduSVrTLQ5mIJV/FRHGta/LLT/e0yWx5n3jmzE4JCKd 0RucjVbtZfCXGliiGR7zZOW96i59m7fpfeREdhG/ESAoPzG1kqAlkGnXwE7QVjn05P3w na1A== X-Gm-Message-State: AC+VfDxyG3Hs83iTItIg4I3qmprj0zuQTWgaK1TBu01txkGVNjGjUiX8 nHEaRNOVI2IGRbkv9o97MIvqU1nGjcI5TZvOKb4= X-Received: by 2002:a19:ae1a:0:b0:4e9:cfd2:e2d with SMTP id f26-20020a19ae1a000000b004e9cfd20e2dmr4270367lfc.65.1684828010333; Tue, 23 May 2023 00:46:50 -0700 (PDT) Received: from [192.168.1.101] (abyk138.neoplus.adsl.tpnet.pl. [83.9.30.138]) by smtp.gmail.com with ESMTPSA id t9-20020ac25489000000b004eb0c51780bsm1257070lfk.29.2023.05.23.00.46.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 00:46:49 -0700 (PDT) From: Konrad Dybcio Date: Tue, 23 May 2023 09:46:14 +0200 Subject: [PATCH v5 03/12] dt-bindings: display/msm: sc7180-dpu: Describe SM6350 and SM6375 MIME-Version: 1.0 Message-Id: <20230411-topic-straitlagoon_mdss-v5-3-998b4d2f7dd1@linaro.org> References: <20230411-topic-straitlagoon_mdss-v5-0-998b4d2f7dd1@linaro.org> In-Reply-To: <20230411-topic-straitlagoon_mdss-v5-0-998b4d2f7dd1@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Krishna Manikandan , Will Deacon , Robin Murphy , Joerg Roedel , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1684828003; l=2117; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=0YTG0EAw+lDImyg5bB4Ke78N5DjTkdTQlY35rQdmXMI=; b=PHp0G4FhTqfvDuJ0a+D+2q6mMJa+Nwdr6F7LU3/mfGPFYlmLMf1YqUCyHEpLozcE6jCwyOP7y msjNM7JwYKCDFZGP5JteN8dX5wBsbcRqZuN/4W3O7Otz7m5nz44afFt X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable 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?1766674412966198320?= X-GMAIL-MSGID: =?utf-8?q?1766674412966198320?= SC7180, SM6350 and SM6375 use a rather similar hw setup for DPU, with the main exception being that the last one requires an additional throttle clock. It is not well understood yet, but failing to toggle it on makes the display hardware stall and not output any frames. Document SM6350 and SM6375 DPU. Signed-off-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- .../bindings/display/msm/qcom,sc7180-dpu.yaml | 23 +++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/msm/qcom,sc7180-dpu.yaml b/Documentation/devicetree/bindings/display/msm/qcom,sc7180-dpu.yaml index 1fb8321d9ee8..630b11480496 100644 --- a/Documentation/devicetree/bindings/display/msm/qcom,sc7180-dpu.yaml +++ b/Documentation/devicetree/bindings/display/msm/qcom,sc7180-dpu.yaml @@ -13,7 +13,10 @@ $ref: /schemas/display/msm/dpu-common.yaml# properties: compatible: - const: qcom,sc7180-dpu + enum: + - qcom,sc7180-dpu + - qcom,sm6350-dpu + - qcom,sm6375-dpu reg: items: @@ -26,6 +29,7 @@ properties: - const: vbif clocks: + minItems: 6 items: - description: Display hf axi clock - description: Display ahb clock @@ -33,8 +37,10 @@ properties: - description: Display lut clock - description: Display core clock - description: Display vsync clock + - description: Display core throttle clock clock-names: + minItems: 6 items: - const: bus - const: iface @@ -42,6 +48,7 @@ properties: - const: lut - const: core - const: vsync + - const: throttle required: - compatible @@ -52,6 +59,20 @@ required: unevaluatedProperties: false +allOf: + - if: + properties: + compatible: + const: qcom,sm6375-dpu + + then: + properties: + clocks: + minItems: 7 + + clock-names: + minItems: 7 + examples: - | #include