From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Marijn Suijten <marijn.suijten@somainline.org>
Cc: Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Rob Clark <robdclark@gmail.com>, Sean Paul <sean@poorly.run>,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Stephen Boyd <swboyd@chromium.org>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org
Subject: Re: [PATCH v5 1/4] dt-bindings: display/msm: convert MDP5 schema to YAML format
Date: Tue, 10 Jan 2023 06:40:27 +0200 [thread overview]
Message-ID: <997dbd09-03d6-d60d-1dce-db0bc6415582@linaro.org> (raw)
In-Reply-To: <20230109074947.5vnfrn6shzpm6iqi@SoMainline.org>
On 09/01/2023 09:49, Marijn Suijten wrote:
> On 2023-01-09 07:01:49, Dmitry Baryshkov wrote:
>> Convert the mdp5.txt into the yaml format. Changes to the existing (txt) schema:
>> - MSM8996 has additional "iommu" clock, define it separately
>> - Add new properties used on some of platforms:
>> - interconnects, interconnect-names
>> - iommus
>> - power-domains
>> - operating-points-v2, opp-table
>>
>> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>> ---
>> .../devicetree/bindings/display/msm/mdp5.txt | 132 -----------------
>> .../bindings/display/msm/qcom,mdp5.yaml | 138 ++++++++++++++++++
>> 2 files changed, 138 insertions(+), 132 deletions(-)
>> delete mode 100644 Documentation/devicetree/bindings/display/msm/mdp5.txt
>> create mode 100644 Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/display/msm/mdp5.txt b/Documentation/devicetree/bindings/display/msm/mdp5.txt
>> deleted file mode 100644
>> index 65d03c58dee6..000000000000
>> --- a/Documentation/devicetree/bindings/display/msm/mdp5.txt
>> +++ /dev/null
>> @@ -1,132 +0,0 @@
>> -Qualcomm adreno/snapdragon MDP5 display controller
>> -
>> -Description:
>> -
>> -This is the bindings documentation for the MDP5 display
>> -controller found in SoCs like MSM8974, APQ8084, MSM8916, MSM8994 and MSM8996.
>> -
>> -MDP5:
>> -Required properties:
>> -- compatible:
>> - * "qcom,mdp5" - MDP5
>> -- reg: Physical base address and length of the controller's registers.
>> -- reg-names: The names of register regions. The following regions are required:
>> - * "mdp_phys"
>> -- interrupts: Interrupt line from MDP5 to MDSS interrupt controller.
>> -- clocks: device clocks. See ../clocks/clock-bindings.txt for details.
>> -- clock-names: the following clocks are required.
>> -- * "bus"
>> -- * "iface"
>> -- * "core"
>> -- * "vsync"
>> -- ports: contains the list of output ports from MDP. These connect to interfaces
>> - that are external to the MDP hardware, such as HDMI, DSI, EDP etc (LVDS is a
>> - special case since it is a part of the MDP block itself).
>> -
>> - Each output port contains an endpoint that describes how it is connected to an
>> - external interface. These are described by the standard properties documented
>> - here:
>> - Documentation/devicetree/bindings/graph.txt
>> - Documentation/devicetree/bindings/media/video-interfaces.txt
>> -
>> - The availability of output ports can vary across SoC revisions:
>> -
>> - For MSM8974 and APQ8084:
>> - Port 0 -> MDP_INTF0 (eDP)
>> - Port 1 -> MDP_INTF1 (DSI1)
>> - Port 2 -> MDP_INTF2 (DSI2)
>> - Port 3 -> MDP_INTF3 (HDMI)
>> -
>> - For MSM8916:
>> - Port 0 -> MDP_INTF1 (DSI1)
>> -
>> - For MSM8994 and MSM8996:
>> - Port 0 -> MDP_INTF1 (DSI1)
>> - Port 1 -> MDP_INTF2 (DSI2)
>> - Port 2 -> MDP_INTF3 (HDMI)
>> -
>> -Optional properties:
>> -- clock-names: the following clocks are optional:
>> - * "lut"
>> - * "tbu"
>> - * "tbu_rt"
>> -
>> -Example:
>> -
>> -/ {
>> - ...
>> -
>> - mdss: mdss@1a00000 {
>> - compatible = "qcom,mdss";
>> - reg = <0x1a00000 0x1000>,
>> - <0x1ac8000 0x3000>;
>> - reg-names = "mdss_phys", "vbif_phys";
>> -
>> - power-domains = <&gcc MDSS_GDSC>;
>> -
>> - clocks = <&gcc GCC_MDSS_AHB_CLK>,
>> - <&gcc GCC_MDSS_AXI_CLK>,
>> - <&gcc GCC_MDSS_VSYNC_CLK>;
>> - clock-names = "iface",
>> - "bus",
>> - "vsync"
>> -
>> - interrupts = <0 72 0>;
>> -
>> - interrupt-controller;
>> - #interrupt-cells = <1>;
>> -
>> - #address-cells = <1>;
>> - #size-cells = <1>;
>> - ranges;
>> -
>> - mdp: mdp@1a01000 {
>> - compatible = "qcom,mdp5";
>> - reg = <0x1a01000 0x90000>;
>> - reg-names = "mdp_phys";
>> -
>> - interrupt-parent = <&mdss>;
>> - interrupts = <0 0>;
>> -
>> - clocks = <&gcc GCC_MDSS_AHB_CLK>,
>> - <&gcc GCC_MDSS_AXI_CLK>,
>> - <&gcc GCC_MDSS_MDP_CLK>,
>> - <&gcc GCC_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@1a98000 {
>> - ...
>> - ports {
>> - ...
>> - port@0 {
>> - reg = <0>;
>> - dsi0_in: endpoint {
>> - remote-endpoint = <&mdp5_intf1_out>;
>> - };
>> - };
>> - ...
>> - };
>> - ...
>> - };
>> -
>> - dsi_phy0: dsi-phy@1a98300 {
>> - ...
>> - };
>> - };
>> -};
>> diff --git a/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml b/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml
>> new file mode 100644
>> index 000000000000..cbcbe8b47e9b
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml
>> @@ -0,0 +1,138 @@
>> +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/display/msm/qcom,mdp5.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Qualcomm Adreno/Snapdragon Mobile Display controller (MDP5)
>> +
>> +description: >
>> + MDP5 display controller found in SoCs like MSM8974, APQ8084, MSM8916, MSM8994
>> + and MSM8996.
>> +
>> +maintainers:
>> + - Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>> + - Rob Clark <robdclark@gmail.com>
>> +
>> +properties:
>> + compatible:
>> + const: qcom,mdp5
>> +
>> + reg:
>> + maxItems: 1
>> +
>> + reg-names:
>> + items:
>> + - const: mdp_phys
>> +
>> + interrupts:
>> + maxItems: 1
>> +
>> + clocks:
>> + minItems: 4
>> + maxItems: 7
>> +
>> + clock-names:
>> + oneOf:
>> + - minItems: 4
>> + items:
>> + - const: iface
>> + - const: bus
>> + - const: core
>> + - const: vsync
>> + - const: lut
>> + - const: tbu
>> + - const: tbu_rt
>> + #MSM8996 has additional iommu clock
>> + - items:
>> + - const: iface
>> + - const: bus
>> + - const: core
>> + - const: iommu
>> + - const: vsync
>> +
>> + interconnects:
>> + minItems: 1
>> + items:
>> + - description: Interconnect path from mdp0 (or a single mdp) port to the data bus
>> + - description: Interconnect path from mdp1 port to the data bus
>> + - description: Interconnect path from rotator port to the data bus
>> +
>> + interconnect-names:
>> + minItems: 1
>> + items:
>> + - const: mdp0-mem
>> + - const: mdp1-mem
>> + - const: rotator-mem
>> +
>> + iommus:
>> + items:
>> + - description: Phandle to apps_smmu node with SID mask for Hard-Fail port0
>
> As Krzysztof has said many times, these documents describe the hardware,
> not the DT format. Drop the "phandle" part.
Ack
>
>> + power-domains:
>> + maxItems: 1
>> +
>> + operating-points-v2: true
>> + opp-table:
>> + type: object
>> +
>> + ports:
>> + $ref: /schemas/graph.yaml#/properties/ports
>> + description: |
>
> Should multiline descriptions be treated as a oneline string with `>`?
Ack, I'm fine with either of them, let's use the >
>
>> + Contains the list of output ports from DPU device. These ports
>> + connect to interfaces that are external to the DPU hardware,
>> + such as DSI, DP etc. MDP5 devices support up to 4 ports::
>
> How do these double colons render? Is this intentional?
double colons is an escape for a single colon if I remember correcly.
BTW: how to render the DT schema?
>
> - Marijn
>
>> + one or two DSI ports, HDMI and eDP.
>> +
>> + patternProperties:
>> + "^port@[0-3]+$":
>> + $ref: /schemas/graph.yaml#/properties/port
>> +
>> + # at least one port is required
>> + required:
>> + - port@0
>> +
>> +required:
>> + - compatible
>> + - reg
>> + - reg-names
>> + - clocks
>> + - clock-names
>> + - ports
>> +
>> +additionalProperties: false
>> +
>> +examples:
>> + - |
>> + #include <dt-bindings/clock/qcom,gcc-msm8916.h>
>> + #include <dt-bindings/interrupt-controller/arm-gic.h>
>> + display-controller@1a01000 {
>> + compatible = "qcom,mdp5";
>> + reg = <0x1a01000 0x90000>;
>> + reg-names = "mdp_phys";
>> +
>> + interrupt-parent = <&mdss>;
>> + interrupts = <0>;
>> +
>> + clocks = <&gcc GCC_MDSS_AHB_CLK>,
>> + <&gcc GCC_MDSS_AXI_CLK>,
>> + <&gcc GCC_MDSS_MDP_CLK>,
>> + <&gcc GCC_MDSS_VSYNC_CLK>;
>> + clock-names = "iface",
>> + "bus",
>> + "core",
>> + "vsync";
>> +
>> + ports {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> +
>> + port@0 {
>> + reg = <0>;
>> + endpoint {
>> + remote-endpoint = <&dsi0_in>;
>> + };
>> + };
>> + };
>> + };
>> +...
>> --
>> 2.39.0
>>
--
With best wishes
Dmitry
next prev parent reply other threads:[~2023-01-10 4:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-09 5:01 [PATCH v5 0/4] dt-bindings: display/msm: convert MDP5 schema to YAML format Dmitry Baryshkov
2023-01-09 5:01 ` [PATCH v5 1/4] " Dmitry Baryshkov
2023-01-09 7:49 ` Marijn Suijten
2023-01-10 4:40 ` Dmitry Baryshkov [this message]
2023-01-11 22:29 ` Marijn Suijten
2023-01-11 22:31 ` Dmitry Baryshkov
2023-01-11 22:35 ` Marijn Suijten
2023-01-12 21:50 ` Rob Herring
2023-01-13 8:36 ` Dmitry Baryshkov
2023-01-24 11:20 ` Marijn Suijten
2023-01-09 14:30 ` Rob Herring
2023-01-09 5:01 ` [PATCH v5 2/4] dt-bindings: display/msm: add SoC-specific compats to qcom,mdp5.yaml Dmitry Baryshkov
2023-01-12 21:52 ` Rob Herring
2023-01-13 7:54 ` Dmitry Baryshkov
2023-01-09 5:01 ` [PATCH v5 3/4] ARM: dts: qcom-msm8974: add SoC specific compat string to mdp5 node Dmitry Baryshkov
2023-01-09 5:01 ` [PATCH v5 4/4] arm64: dts: qcom: add SoC specific compat strings to mdp5 nodes Dmitry Baryshkov
2023-01-19 2:16 ` (subset) [PATCH v5 0/4] dt-bindings: display/msm: convert MDP5 schema to YAML format Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=997dbd09-03d6-d60d-1dce-db0bc6415582@linaro.org \
--to=dmitry.baryshkov@linaro.org \
--cc=agross@kernel.org \
--cc=airlied@gmail.com \
--cc=andersson@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=quic_abhinavk@quicinc.com \
--cc=robdclark@gmail.com \
--cc=robh+dt@kernel.org \
--cc=sean@poorly.run \
--cc=swboyd@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).