From patchwork Sun Dec 22 13:22:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 951 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 416B13F042 for ; Sun, 22 Dec 2019 14:29:33 +0100 (CET) Received: by mail-pf1-f198.google.com with SMTP id z19sf7190856pfn.18 for ; Sun, 22 Dec 2019 05:29:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577021372; cv=pass; d=google.com; s=arc-20160816; b=MWEkz/F7wOTs+LX3v5FtsrA4e7XTN+obZyHqKcC3yZjkoGM7tphv6k/uFecwRMAFGB I3sU5dqv2fb8JCfiz3/DtaAS2Gilkpx5msQLQuCsJezEHtv+wJauG9bnSRKP86WiRD6K rV1o4dW99B9MG0OomBiIoynULtiEugB4oWqHrFK671Nca7ENQxnTAjziU+WE3kZGDmr5 qLLJHkXmzocZRobYbfF42ZSe59lUZOjhXBk+2ME/4/uctEPfXXrthMmyrSvvrrejlYSF 232PjCqxXSmZXKRdzVu3fqM62UX7sBEt1Rhg55IRyklBkZpNrt7SNGMz63dUxoWsuR43 jWEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=uANYhzE33RxmbhZkEPF/vgG9uoHWxhnr6DTX92ERI2o=; b=hx0Mqz/3H81/u1+4uYd6VeQsmuUfyU5N4givvfX+8y26/30oHioeFLrp7JTiPmVplO mCWaCGiOiOsNEN+0K9OM2ZM6MKERZcSZQbdVRAvG+SIpeYvoNHQjVNVNEmQUh6ek79Sh DbRWO7YnI/iZI4lkAB/cX3tPx1STqxwy0iAW/QZvcSTKABmDVaDz1K5aVSlD2F0m2MXz IXSvDghkiYuyxUst3TRwnee2S2T7cjyqYvohSOErrYkztPXCx2Q0nkUFrrAWvWTJpZi0 4P8dq6YuiEfUR9MjYPWlinK5RTez8UsRdsZTIHmKErsCHjmeC/Q6R1qMZk1v1cQL1sqW xuRA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="CrIi6L/+"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=uANYhzE33RxmbhZkEPF/vgG9uoHWxhnr6DTX92ERI2o=; b=kl1yCb3zwnVoZUj4rx7jpMLVxHPb2f3mjudLziBTGHFZ4UwzsE+RtexVMwUnNB4yw8 4tr1brb09Ed5jEKvhaGWFF5512X8BxqwctcguXuvqgrPoaQTfvjHzpK6M2G75LxZkK1p humcaY0TeAlavchzZgFvwtBL23A/0AoSK/n34= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=uANYhzE33RxmbhZkEPF/vgG9uoHWxhnr6DTX92ERI2o=; b=qTGOfXfmxx3PySAfqufyWGIrrAcQke3Gy10z/0slbSD1+mxVc1tD9R8mNAuqh+4S6s E2chkm674QS8S9fTThbIzHhEjqfHGPqXKa9wwcORfZAZ5zLKis7DzPq35h8JggQoYji8 5iRpg1WAdXr06Lev8Gi3MB1cQq4GRtWXKnMsUDfhQkT6tkgL4IfVUXaem2SS7pfkDMM2 vE1twRTCz/CKr/amw/DtezZo7Ea7teyxRYwuuE23vGk/T/OtVf2Nfw1Jyhces+FO7sTV 3rXEs1WbC70oJmo6lTnBpEt+HxsNMvoEZgTLIXxuFGTnLyAA9V7EboG0oIQ/2IoIpIkl 2uuw== X-Gm-Message-State: APjAAAUuEniLWjIiWDxAD1YRfSDw9YSmXc6pQ8qbDJM8uC5PuEIdEzpj C+2uWAPUl9FRbY8v+tNbtZw6H3iH X-Google-Smtp-Source: APXvYqz6lAgo8OLr5Pe96yAXFF19P3IoViC4UEa5aTiEV9hckBM4ZaRmXNTn26c/BtY97kpvG+M4Gg== X-Received: by 2002:a65:4203:: with SMTP id c3mr25840012pgq.368.1577021371718; Sun, 22 Dec 2019 05:29:31 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:6791:: with SMTP id e17ls3283745pgr.14.gmail; Sun, 22 Dec 2019 05:29:31 -0800 (PST) X-Received: by 2002:a62:258:: with SMTP id 85mr28577741pfc.254.1577021371245; Sun, 22 Dec 2019 05:29:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577021371; cv=none; d=google.com; s=arc-20160816; b=QVeqW7jDv3+XueHbQzeoKwhlHMiX1E7ha4fOnSGbB5ye7+Fw2fV2hp1gzSa9TvRdfd lB061tzX1d4MF7uqffTHKTOKbCaFbyFRg0AkvZqbN/zQNyWGooH8wuct1uc4wrwQKchW Id8+se7oz3Rdrcq92pOBdiUNd3wdv80dtXTX7M9zRtA4zaGcU5MCtU7/0MhXMJr3x5vx aqNdWEKcCo/UNww/Sj1dqZhi6Ds4Y4/lMIbzZ1GA3KG8yypFogb/gxyKDnfRvH+7YxXE pDYnK7ZTAx7Rc7Zm8j+HfVtlKKN6bjob5v0Yfvr2X4Xd4fbX/nmzM6D62odZsMseQ6FL Vh7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=yZ8n1dFGNqx9MjMWepdptN60E7TYxz6HFWUIoiztPpA=; b=XPJwDQ11alS8dogRKbR/47AUXV/JTFF/0AEpt26hLXUQEGCzNP1R9EKffer8ylvE+F TXzdTLSpIX7JkDu/3sBzsfpsdZlv/527HKZRjE/2Aao/80ELUjAKFxlFmYR6ONpo+Roj qAd1qZUEUctqiLCmNU7b/V7RzYpmKA1xTvBhFwAkh53TZQdzMCB3zedTYEN0v+lgn9sN +SQwSUWE2TkzAU5nYqBChOnvULKnECY6aTW+J3qGS+pYlqTQ+PV9Vx0QywsjgCzDt7Pl axUQlVBsVUPWv2pkX+USkXMEdKBl9nzmIp51O2z/btXYL3rZYzCV5S1j43cSlUhm1KXU zgNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="CrIi6L/+"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 2sor17153426pld.70.2019.12.22.05.29.31 for (Google Transport Security); Sun, 22 Dec 2019 05:29:31 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:9c1:: with SMTP id 59mr28516972pjo.65.1577021370933; Sun, 22 Dec 2019 05:29:30 -0800 (PST) Received: from localhost.localdomain ([49.206.202.16]) by smtp.gmail.com with ESMTPSA id o2sm12073058pjo.26.2019.12.22.05.29.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2019 05:29:30 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland Cc: michael@amarulasolutions.com, Icenowy Zheng , linux-sunxi , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v14 1/7] dt-bindings: sun6i-dsi: Document A64 MIPI-DSI controller Date: Sun, 22 Dec 2019 18:52:23 +0530 Message-Id: <20191222132229.30276-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191222132229.30276-1-jagan@amarulasolutions.com> References: <20191222132229.30276-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="CrIi6L/+"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The MIPI DSI controller in Allwinner A64 is similar to A33. But unlike A33, A64 doesn't have DSI_SCLK gating so it is valid to have separate compatible for A64 on the same driver. DSI_SCLK uses mod clock-names on dt-bindings, so the same is not required for A64. On that note - A64 require minimum of 1 clock like the bus clock - A33 require minimum of 2 clocks like both bus, mod clocks So, update dt-bindings so-that it can document both A33, A64 bindings requirements. Reviewed-by: Rob Herring Signed-off-by: Jagan Teki --- Changes for v14: - none .../display/allwinner,sun6i-a31-mipi-dsi.yaml | 33 +++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml b/Documentation/devicetree/bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml index dafc0980c4fa..d41ecb5e7f7c 100644 --- a/Documentation/devicetree/bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml +++ b/Documentation/devicetree/bindings/display/allwinner,sun6i-a31-mipi-dsi.yaml @@ -15,7 +15,9 @@ properties: "#size-cells": true compatible: - const: allwinner,sun6i-a31-mipi-dsi + enum: + - allwinner,sun6i-a31-mipi-dsi + - allwinner,sun50i-a64-mipi-dsi reg: maxItems: 1 @@ -24,6 +26,8 @@ properties: maxItems: 1 clocks: + minItems: 1 + maxItems: 2 items: - description: Bus Clock - description: Module Clock @@ -63,13 +67,38 @@ required: - reg - interrupts - clocks - - clock-names - phys - phy-names - resets - vcc-dsi-supply - port +allOf: + - if: + properties: + compatible: + contains: + const: allwinner,sun6i-a31-mipi-dsi + + then: + properties: + clocks: + minItems: 2 + + required: + - clock-names + + - if: + properties: + compatible: + contains: + const: allwinner,sun50i-a64-mipi-dsi + + then: + properties: + clocks: + minItems: 1 + additionalProperties: false examples: