From patchwork Mon Oct 24 16:42:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 617947 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7453ECAAA1 for ; Mon, 24 Oct 2022 18:12:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231844AbiJXSMC (ORCPT ); Mon, 24 Oct 2022 14:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232346AbiJXSLi (ORCPT ); Mon, 24 Oct 2022 14:11:38 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBA071C9077 for ; Mon, 24 Oct 2022 09:53:06 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id f37so17671535lfv.8 for ; Mon, 24 Oct 2022 09:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=c08g93mBF9rHhNs3GF7QFErRxt7k1Q6/dC3x12TTUPQ=; b=yUK2myVCWVcO34uSWy0fHghoA84NZxDo5TJhxBYUNSM900bXaQ9hLJ9qNgrQyLQp5f +ELWvZryll9o+JUOYN7vMC9GLU9jJ7HBizm4RnFpYz3q5Br51TPu0ozqIUJrxMWc7Akm djiqSsIgFpriscJEeqouabdM1nCxmfTeelRKcci0kpBMRHX2GuCmMUn6g3qBursFVcC1 E0t2CUrmKZGZz8+qYPVYoJbVbCu+N/i8J1XEnWKSg4u/HZ4UVCDmOPXKSRtf5fVxkGj5 fITajnhGSR1/VqpiUunvYkEuU317Jv8asdwtEd79t+YbufbVsba1gv352qtZH32/jhju 6UvA== 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=c08g93mBF9rHhNs3GF7QFErRxt7k1Q6/dC3x12TTUPQ=; b=LbuToGlV+130r4a9SqpJ5MvRsg5tjbdL+AYAK0YAK9WL5Zkm57FTOur5ItTeIhXTdB SRZBgmGCCHDooIsJIWt8dy5opkRKKlwSk9nOQuO3+m3Yete74CXY9zQ/AQRcZraeIWcY mf0i6gqwdAX3bep2KrBnobN08urPvyMtKxcFsl9Vw7dGyuU/zuFK6/TQFQxHoc32geDb 9DuWY2BXA2bXL2jgMzsR887IPrPE4LvqSU3kxEavBOZ1HMwsLdJ+LrrRwS3loHivE041 oziXoHHpZE13Ck9j86+6rXgbYBgbuYswVbCpOv2y9KyWRpoRW76GvzsM0DyuA1x5umm4 ebzw== X-Gm-Message-State: ACrzQf0lAVnC8tMrxnc7Q6DKRNne9w+Ot91NZvfiMgIGbSlKtUQ6/Eeb bcYDGSg4KNqL/D8WfVErC1dB2w7b+geDrOT8 X-Google-Smtp-Source: AMsMyM6tFJiCqeATOg585ajkr5p5VpOPABLpiGqO7LfhXBC03jcNk0nMuWUmk3+wwHI9mYMZ/cL9HQ== X-Received: by 2002:a2e:a910:0:b0:261:b408:1169 with SMTP id j16-20020a2ea910000000b00261b4081169mr13085322ljq.360.1666629746968; Mon, 24 Oct 2022 09:42:26 -0700 (PDT) Received: from eriador.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id k14-20020ac2456e000000b004948378080csm4593978lfm.290.2022.10.24.09.42.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 09:42:26 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH v9 00/12] dt-bindings: display/msm: rework MDSS and DPU bindings Date: Mon, 24 Oct 2022 19:42:13 +0300 Message-Id: <20221024164225.3236654-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Create separate YAML schema for MDSS devicesd$ (both for MDP5 and DPU devices). Cleanup DPU schema files, so that they do not contain schema for both MDSS and DPU nodes. Apply misc small fixes to the DPU schema afterwards. Add schema for the MDSS and DPU on sm8250 platform. Soft dependency on [1] to define qcom,dsi-phy-14nm-2290 binding used in examples [1] https://lore.kernel.org/linux-arm-msm/20220924121900.222711-1-dmitry.baryshkov@linaro.org/ Changes since v8: - Dropped DSI/DSI-PHY examples from the first patch. Proper example generate a pile of warnings because of DSI schema deficiencies. I'll add these examples back, once DSI schema is fixed. Changes since v7: - Expanded examples to include MDSS child nodes (Krzysztof) Changes since v6: - Removed extra newlines (Krzysztof) - Added $ref to dpu-common.yaml#/ports/port@foo to enforce schema for the port nodes (Rob) - Removed unused allOf's (Rob) - Fixed repeated interconnects descriptions (Rob) - Fixed dpu-common.yaml and mdss-common.yaml descriptions (Rob) - Fixed intentation of examples (Krzysztof) - Renamed MDSS and DPU schema to follow compat names (Rob) Changes since v5: - Dropped the core clock from mdss.yaml. It will be handled in a separate patchset together with adding the clock itself. - Fixed a typo in two commit subjects (mdm -> msm). Changes since v4: - Created separate mdss-common.yaml - Rather than squashing everything into mdss.yaml, create individual schema files for MDSS devices. Changes since v3: - Changed mdss->(dpu, dsi, etc.) relationship into the tight binding depending on the mdss compatible string. - Added sm8250 dpu schema and added qcom,sm8250-mdss to mdss.yaml Changes since v2: - Added a patch to allow opp-table under the dpu* nodes. - Removed the c&p issue which allowed the @0 nodes under the MDSS device node. Changes since v1: - Renamed DPU device nodes from mdp@ to display-controller@ - Described removal of mistakenly mentioned "lut" clock - Switched mdss.yaml to use $ref instead of fixing compatible strings - Dropped mdp-opp-table description (renamed by Krzysztof in his patchset) - Reworked DPU's ports definitions. Dropped description of individual ports, left only /ports $ref and description in dpu-common.yaml. Dmitry Baryshkov (12): dt-bindings: display/msm: split qcom,mdss bindings dt-bindings: display/msm: add gcc-bus clock to dpu-smd845 dt-bindings: display/msm: add interconnects property to qcom,mdss-smd845 dt-bindings: display/msm: move common DPU properties to dpu-common.yaml dt-bindings: display/msm: move common MDSS properties to mdss-common.yaml dt-bindings: display/msm: split dpu-sc7180 into DPU and MDSS parts dt-bindings: display/msm: split dpu-sc7280 into DPU and MDSS parts dt-bindings: display/msm: split dpu-sdm845 into DPU and MDSS parts dt-bindings: display/msm: split dpu-msm8998 into DPU and MDSS parts dt-bindings: display/msm: split dpu-qcm2290 into DPU and MDSS parts dt-bindings: display/msm: add missing device nodes to mdss-* schemas dt-bindings: display/msm: add support for the display on SM8250 .../bindings/display/msm/dpu-common.yaml | 52 +++ .../bindings/display/msm/dpu-msm8998.yaml | 223 --------- .../bindings/display/msm/dpu-qcm2290.yaml | 222 --------- .../bindings/display/msm/dpu-sc7180.yaml | 235 ---------- .../bindings/display/msm/dpu-sc7280.yaml | 239 ---------- .../bindings/display/msm/dpu-sdm845.yaml | 217 --------- .../devicetree/bindings/display/msm/mdp5.txt | 30 +- .../bindings/display/msm/mdss-common.yaml | 83 ++++ .../bindings/display/msm/qcom,mdss.yaml | 196 ++++++++ .../display/msm/qcom,msm8998-dpu.yaml | 95 ++++ .../display/msm/qcom,msm8998-mdss.yaml | 268 +++++++++++ .../display/msm/qcom,qcm2290-dpu.yaml | 84 ++++ .../display/msm/qcom,qcm2290-mdss.yaml | 198 ++++++++ .../bindings/display/msm/qcom,sc7180-dpu.yaml | 95 ++++ .../display/msm/qcom,sc7180-mdss.yaml | 304 +++++++++++++ .../bindings/display/msm/qcom,sc7280-dpu.yaml | 98 ++++ .../display/msm/qcom,sc7280-mdss.yaml | 422 ++++++++++++++++++ .../bindings/display/msm/qcom,sdm845-dpu.yaml | 90 ++++ .../display/msm/qcom,sdm845-mdss.yaml | 270 +++++++++++ .../bindings/display/msm/qcom,sm8250-dpu.yaml | 92 ++++ .../display/msm/qcom,sm8250-mdss.yaml | 330 ++++++++++++++ 21 files changed, 2678 insertions(+), 1165 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/msm/dpu-common.yaml delete mode 100644 Documentation/devicetree/bindings/display/msm/dpu-msm8998.yaml delete mode 100644 Documentation/devicetree/bindings/display/msm/dpu-qcm2290.yaml delete mode 100644 Documentation/devicetree/bindings/display/msm/dpu-sc7180.yaml delete mode 100644 Documentation/devicetree/bindings/display/msm/dpu-sc7280.yaml delete mode 100644 Documentation/devicetree/bindings/display/msm/dpu-sdm845.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/mdss-common.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,msm8998-dpu.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,msm8998-mdss.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,qcm2290-dpu.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,qcm2290-mdss.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,sc7180-dpu.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,sc7180-mdss.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,sc7280-dpu.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,sc7280-mdss.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,sdm845-dpu.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,sdm845-mdss.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,sm8250-dpu.yaml create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,sm8250-mdss.yaml