From patchwork Mon Nov 7 23:56:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 16781 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2373448wru; Mon, 7 Nov 2022 15:58:53 -0800 (PST) X-Google-Smtp-Source: AMsMyM6/ErpoEw9Q/rSQJ5a5X1Dsgrupelzz4NqbO63q3N1WoFXBRqEpSCHjkkEyB20y8Gvau8g4 X-Received: by 2002:aa7:810d:0:b0:563:1fa6:fecc with SMTP id b13-20020aa7810d000000b005631fa6feccmr53307865pfi.24.1667865532993; Mon, 07 Nov 2022 15:58:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667865532; cv=none; d=google.com; s=arc-20160816; b=d7k0vh9LYhWkVYD7B41kJSoytHowgMbxs5RgSu1HmcTlmlMWHSSU83/q484aMiz3Tx KSGqfxP4kQbWqLpR1Dye4W6cIxU7bbpiqf4ICGDZz03542BXVLsgoGxS4botAbt+T2yM hHUQRJclm2TZHrHwdXqD5vfWrACTHudE+X9tcar+C1ZkSYauMqqoonOr6IStzo9CPoIA +lADTBMrQdlOXBbX3NdtFrexRTuoSo1o9UI3Dy5gmOxLWVwnW0X5ts+e0qZFIg/8q94J tKKykZYUXZwxy2C21bkENzYRdzEWU2SFfGjigyS7qLkQzBCjh8T5y6suDIjUyMZY1vCB nIEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5H4aIH5vgrqEjkb0c4TPSI9rlEkjF0KuTX6JDaV2C+Q=; b=SSc9Qn+KTelerBZMEWdwGNgWQGvpMApjnqYRe4jTlX0bropp4bmEUOVTtqeJ1CNGyy K2UW/afQJfw4vj2mFHCRKbqcULq471L/bQJHX3A9627QcIA89yDiDwlqJL4ZIluiunBe yE6ml6DggZ4fQ1bv0p5gvMH5oE5oNUQE9ftw4ochWJn/R++gatApXlg8lKX0DmQKG/v3 JfzhJfOlGAQtKhLfiIMo7YQVAaSJRZ0gNFDeBDeaGockuz6laA2gTAiyryu5mPkWrCGM 1eHTriUi7O8MYSCBQSJUAgNtF55mtJatyZPHr2BtWXofIdnaBnUAiHcP+Jm77LuKSMEJ xWSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I8vHBi1w; 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 p11-20020a62ab0b000000b00540d5753591si10258916pff.299.2022.11.07.15.58.40; Mon, 07 Nov 2022 15:58:52 -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=pass header.i=@linaro.org header.s=google header.b=I8vHBi1w; 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 S233048AbiKGX5c (ORCPT + 99 others); Mon, 7 Nov 2022 18:57:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232846AbiKGX5N (ORCPT ); Mon, 7 Nov 2022 18:57:13 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62EE927CC0 for ; Mon, 7 Nov 2022 15:57:06 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id t25-20020a1c7719000000b003cfa34ea516so64796wmi.1 for ; Mon, 07 Nov 2022 15:57:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5H4aIH5vgrqEjkb0c4TPSI9rlEkjF0KuTX6JDaV2C+Q=; b=I8vHBi1wTF81RoXMibJDd+V1bea1cticVTZR4pKMBnuwoTwzVwfXple4alROtnU9tR P3wwltR+nDb6g+v+MJ+OxP5WniGWwjPRvbhc6W36L/uBwYdhLSi37N71OpLpIvs2qqx9 IJf/JnQ1a3Rg+EuHzmJJM4A0sVT1d8Gq5Om6cLIKGUnibvbj/jXFmXm0zx2Rbg5NL5oJ ZQRA0PQtl0405XEhs6Or3yw4i/OwF54BKP5Uwp5XAjVQbZ4tKR2pU4HDuCqC4S0sL1j9 p86GrpOSi45B+6Gj8wsE26GqdQGt8LNx3hlr1DPZ4DjIsFtavBOHF6Dyw6kZR5ZrzaDK lADw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5H4aIH5vgrqEjkb0c4TPSI9rlEkjF0KuTX6JDaV2C+Q=; b=iaRotSjTYycYxeZZvJL1qIY4GYcFPcJqMUuVbiJ1/6p75oD9XcYzK5/en3NOD+vzDj wYCnaBwQHX0/4PEeGevUvZbPr5uMZS3cfAS4Glinzz6xhyf1sZDscxuMiIBIoejOHhlO gkiqMtgFryjZaLb/8464HZyFvClE13CHq3q5jVaSz6Na1vdqk6lfnJW4RmtBVIyAtyLX dtKeFbKBrZ9m81IlaEj5OUU82NYDOyJM1FRu3Ho2yYsSHU5y+b0SlIkk8CGiFXlCMyMD eiXvzlk645NVO1Y3BfQ4H2zpRi4jD7+Ydxpifas0cCTnqSYW2ckhfDuxiH3FgrYtlpke Rm7g== X-Gm-Message-State: ACrzQf0Svws+bGlrniedLUanDxOE81RyXhB7AzbX9SMmIAfWt6yXUkA0 ozUKF8NriqB4EGtpD3MSbTOEbg== X-Received: by 2002:a05:600c:548a:b0:3cf:a358:ee3 with SMTP id iv10-20020a05600c548a00b003cfa3580ee3mr8953419wmb.12.1667865424999; Mon, 07 Nov 2022 15:57:04 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id b18-20020a056000055200b00236545edc91sm8386161wrf.76.2022.11.07.15.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 15:57:04 -0800 (PST) From: Bryan O'Donoghue To: robdclark@gmail.com, quic_abhinavk@quicinc.com, dmitry.baryshkov@linaro.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, quic_mkrishn@quicinc.com, linux-arm-msm@vger.kernel.org Cc: Bryan O'Donoghue , Sean Paul , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 08/18] dt-bindings: msm: dsi-controller-main: Document clocks on a per compatible basis Date: Mon, 7 Nov 2022 23:56:44 +0000 Message-Id: <20221107235654.1769462-9-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221107235654.1769462-1-bryan.odonoghue@linaro.org> References: <20221107235654.1769462-1-bryan.odonoghue@linaro.org> 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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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?1748883769248759217?= X-GMAIL-MSGID: =?utf-8?q?1748883769248759217?= Each compatible has a different set of clocks which are associated with it. Add in the list of clocks for each compatible. Cc: Rob Clark Cc: Abhinav Kumar Cc: Dmitry Baryshkov Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Cc: Rob Herring Cc: Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: freedreno@lists.freedesktop.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Bryan O'Donoghue --- .../display/msm/dsi-controller-main.yaml | 177 +++++++++++++++--- 1 file changed, 150 insertions(+), 27 deletions(-) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml b/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml index 9db3e63acda3d..c975df0ca22fc 100644 --- a/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml +++ b/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml @@ -9,24 +9,22 @@ title: Qualcomm Display DSI controller maintainers: - Krishna Manikandan -allOf: - - $ref: "../dsi-controller.yaml#" - properties: compatible: - enum: - - qcom,dsi-ctrl-6g-qcm2290 - - qcom,mdss-dsi-ctrl - - qcom,mdss-dsi-ctrl-apq8064 - - qcom,mdss-dsi-ctrl-msm8916 - - qcom,mdss-dsi-ctrl-msm8974 - - qcom,mdss-dsi-ctrl-msm8996 - - qcom,mdss-dsi-ctrl-sc7180 - - qcom,mdss-dsi-ctrl-sc7280 - - qcom,mdss-dsi-ctrl-sdm630 - - qcom,mdss-dsi-ctrl-sdm660 - - qcom,mdss-dsi-ctrl-sdm845 - - qcom,mdss-dsi-ctrl-sm8250 + items: + - enum: + - qcom,dsi-ctrl-6g-qcm2290 + - qcom,mdss-dsi-ctrl-apq8064 + - qcom,mdss-dsi-ctrl-msm8916 + - qcom,mdss-dsi-ctrl-msm8974 + - qcom,mdss-dsi-ctrl-msm8996 + - qcom,mdss-dsi-ctrl-sc7180 + - qcom,mdss-dsi-ctrl-sc7280 + - qcom,mdss-dsi-ctrl-sdm630 + - qcom,mdss-dsi-ctrl-sdm660 + - qcom,mdss-dsi-ctrl-sdm845 + - qcom,mdss-dsi-ctrl-sm8250 + - const: qcom,mdss-dsi-ctrl reg: maxItems: 1 @@ -51,17 +49,8 @@ properties: minItems: 6 clock-names: - items: - - const: byte - - const: byte_intf - - const: pixel - - const: core - - const: iface - - const: bus - - const: core_mmss - - const: mdp_core - - const: mnoc minItems: 6 + maxItems: 9 phys: maxItems: 1 @@ -169,6 +158,140 @@ required: - vddio-supply - vdda-supply +allOf: + - $ref: "../dsi-controller.yaml#" + - if: + properties: + compatible: + contains: + enum: + - qcom,mdss-dsi-ctrl-apq8064 + then: + properties: + clocks: + maxItems: 7 + clock-names: + items: + - const: iface + - const: bus + - const: core_mmss + - const: src + - const: byte + - const: pixel + - const: core + - if: + properties: + compatible: + contains: + enum: + - qcom,mdss-dsi-ctrl-msm8916 + then: + properties: + clocks: + maxItems: 6 + clock-names: + items: + - const: mdp_core + - const: iface + - const: bus + - const: byte + - const: pixel + - const: core + - if: + properties: + compatible: + contains: + enum: + - qcom,mdss-dsi-ctrl-msm8974 + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: iface + - const: bus + - const: vsync + - if: + properties: + compatible: + contains: + enum: + - qcom,mdss-dsi-ctrl-msm8996 + then: + properties: + clocks: + maxItems: 7 + clock-names: + items: + - const: mdp_core + - const: byte + - const: iface + - const: bus + - const: core_mmss + - const: pixel + - const: core + - if: + properties: + compatible: + contains: + enum: + - qcom,mdss-dsi-ctrl-sc7180 + - qcom,mdss-dsi-ctrl-sc7280 + - qcom,mdss-dsi-ctrl-sm8250 + then: + properties: + clocks: + maxItems: 6 + clock-names: + items: + - const: byte + - const: byte_intf + - const: pixel + - const: core + - const: iface + - const: bus + - if: + properties: + compatible: + contains: + enum: + - qcom,mdss-dsi-ctrl-sdm630 + - qcom,mdss-dsi-ctrl-sdm660 + then: + properties: + clocks: + maxItems: 9 + clock-names: + items: + - const: mdp_core + - const: byte + - const: byte_intf + - const: mnoc + - const: iface + - const: bus + - const: core_mmss + - const: pixel + - const: core + - if: + properties: + compatible: + contains: + enum: + - qcom,mdss-dsi-ctrl-sdm845 + then: + properties: + clocks: + maxItems: 6 + clock-names: + items: + - const: byte + - const: byte_intf + - const: pixel + - const: core + - const: iface + - const: bus + additionalProperties: false examples: @@ -179,7 +302,7 @@ examples: #include dsi@ae94000 { - compatible = "qcom,mdss-dsi-ctrl"; + compatible = "qcom,mdss-dsi-ctrl-sc7180", "qcom,mdss-dsi-ctrl"; reg = <0x0ae94000 0x400>; reg-names = "dsi_ctrl";