From patchwork Wed Dec 18 19:10:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 931 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CD9603F08E for ; Wed, 18 Dec 2019 20:10:35 +0100 (CET) Received: by mail-il1-f199.google.com with SMTP id x2sf2538249ilk.18 for ; Wed, 18 Dec 2019 11:10:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576696235; cv=pass; d=google.com; s=arc-20160816; b=g0PHR9fG0WpV9hdoEO851QidbxzJZuHJMhuXhDYR/XdKCLkEKuNGtfjLNt0sJxSF8l JZ1b2UB2rS+NXnL6qQW1vmr2Ga6IORoV9Z+aap/5kCs4BBInUT0C5kYaaUDmZoLbcGx5 fWztKjsWinm95TcoT7+EpnOLzdOyeS1Mmv2P9QpzEPgL6OKNv8Ht+DXhzCBnB9Ooz5Pw TS1ZhBnxM7pVzGHviB0u5kdWxgM7KbXzDSwF8tPgtls6gMsMUriesb44k3xqPBr56M8f H+0x/J+cmbc3KbyQNytDwpsD3KA4qKOlF8a2IDaBUi4CTSgdFCd6+WTJVGMLHxPc6RCX 4qVA== 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=MCL7sKivI5Rs/8LVydDeE6Z6WdCykJ8eALaif5Ncmr8=; b=SAu04+BpLZhqXf5k+D2c3bw1HAcbsG6yNGmdVxA3yDFRVjkz3p6oTEtV/42rK6y/J/ mudP0WWUSPA9N2P4XqtrOP/7YLI+R/KJX4vH+YUgSsFuBMsAFdZQgRQEwOd8EaNaAGm+ rsCLu3PG2pwxHginCPmKM+xmjZMqx4zGkvAfSkCkzKJBA8P+7KgFSCc6rTrHJEWmpyQd PRSpeg2QzbYqqAQo7zUhl1NyShIYMOCYKdhYU+CFCtC3u3e6HbNRdC08Wbq07O6w/PBA u/FIAsmCfAJUSlJgDR83hV4ynoMxFXXM9pVAK+EYCceJ4/VnvEucE1/Wn1aJ0LsCBhcx MFvw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RmE2gZ71; 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=MCL7sKivI5Rs/8LVydDeE6Z6WdCykJ8eALaif5Ncmr8=; b=hbeppDUVz+DP4rSxrXMUTpKKXUoeWtEvwI0i6my1S3U7JlpKET585FKxsFeiayxURX 5lcBFclS9aHIMDJ6XrWBgnTpOdcrG3SfHR2cdv3gOcfvs2/8x8uZ43vO+mEUP4RJ6pD/ GtFBRfHZbmJFkRNuNVXcx4r1FtOJXplUMTHuA= 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=MCL7sKivI5Rs/8LVydDeE6Z6WdCykJ8eALaif5Ncmr8=; b=boGJmZ2FH5mO7nZzL3xWEwuuqs90ldyl/lauF9CMm2RD1X9XujUXh3hiisnuwdlTn0 Ynx6SeSvbRN27Gc4KqfF8qZTN+Z89GzhFq1r0KAqEHU92TVZowQ5/NBdpBxjbvXRB6Gx A5id71Ih2yIUGm/Zlq+Yze5rUHNwXLnwnQ/PVekqrWdnC2mmJ53QUZETc0RKCtDPDLfQ utNAiMJ2y1OGDMFQxM0IdT2pCdDO6xZyAUJq/W8MYsM5LKvxqxYhwXJ9QiiGWcIs6eSo eeyk7AA8Y3nHSNiwsNdKmvDaW5hBxFGPBoahaa+pL7Hps8uWrH6pRJl2qEirpdmH0PAt RkPA== X-Gm-Message-State: APjAAAV61HBkRXrE2DIbl7YnV51xTWxricmtugYr3JVJ4KkVfQT09pqQ vrD2VgzCUl5H3DN5g1TjjaCyeUw3 X-Google-Smtp-Source: APXvYqzi0ZF6P16utJ5YD7eobJxkFiL9r1CmdPNC1Vb+1QzIRsOXeDgaZmLm6FIaVkihn+zn3djtMA== X-Received: by 2002:a92:8307:: with SMTP id f7mr3410792ild.73.1576696233753; Wed, 18 Dec 2019 11:10:33 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a02:85c7:: with SMTP id d65ls235285jai.2.gmail; Wed, 18 Dec 2019 11:10:32 -0800 (PST) X-Received: by 2002:a02:b80b:: with SMTP id o11mr3772634jam.105.1576696232598; Wed, 18 Dec 2019 11:10:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576696232; cv=none; d=google.com; s=arc-20160816; b=W1SBUWGAGskpTEj749kpxNEOb0du5cZAMK5Uiimvn3J4l48KtGZJxccacB6VMpCkUP 1egJaGSeVwytkfJNLlFraCtwLonz0YrchcjFhpVUWql5dN2bqiusHmjIjosByXSgUxnJ IZ1U0R0bGkxHaXR+uq9gw5F8ZSwxj39N8MPZIpcCjFTsp6dUUADsGZh9gr8g8MelOeAM 7joAiR4m4RRSWT/OeLNsQpLM2oMmYepELnGk8i4dZWAmBLSJh2vNWbPG9B1AmqKsxi8L zTt73akuMUyNnqHXwYpsYof4jwPa2wFPBJJfW20OeR1LZbqnHc+M7yGtAj8tldt+bF+5 Hnvw== 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=GQQ92FUtanEcYYn+9KkWeYqFv+lp7/wX47LWysjUtZE=; b=I4d4Meg4MlcFpjRrz4WH7+vesl9DySNd6eUEOyRkqbg3sSorZDSwHTRbM/zlDasXu0 uHsq2R+9mMDDXv0ms7m9RJks6zkRFKjOpQKmckkF087im8sBcWOvsMMcoJ0hlnMDeXXE 2KLTKcG9LUbSfELHe//Mc8zp6FN0UIgXhqUq+n3AOchkLRcLoYFkdNPSSvM3V4OfU4zx j3JF0jt/PLTf3eIudDet5M47Nr//9oZQaQlp7igJKJvB7uiGNohgP7Z6sn82Vn11KPYk L4880hNCK/aUodh+vSM8Hy2v2YrfMYEtg/AhKDf7Gae2ldQr3yLX1vzMkcPpjitJhyCv Ivww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RmE2gZ71; 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 v11sor2231143iom.89.2019.12.18.11.10.32 for (Google Transport Security); Wed, 18 Dec 2019 11:10:32 -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:a63:e80d:: with SMTP id s13mr4849217pgh.134.1576696232170; Wed, 18 Dec 2019 11:10:32 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:78ea:e014:edb4:e862]) by smtp.gmail.com with ESMTPSA id q7sm3745855pjd.3.2019.12.18.11.10.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 11:10:31 -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 v13 1/7] dt-bindings: sun6i-dsi: Document A64 MIPI-DSI controller Date: Thu, 19 Dec 2019 00:40:11 +0530 Message-Id: <20191218191017.2895-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191218191017.2895-1-jagan@amarulasolutions.com> References: <20191218191017.2895-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=RmE2gZ71; 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 v13: - Add if statement for A64 with single clock .../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: