From patchwork Fri Oct 25 17:56:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 881 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2CC6E3F0E1 for ; Fri, 25 Oct 2019 19:56:51 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id m185sf2483513pfb.11 for ; Fri, 25 Oct 2019 10:56:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1572026210; cv=pass; d=google.com; s=arc-20160816; b=uD1I2qDj42W0vOk4M0OwAL7QnyLTdjlJxBBGDDzNbs0cbVdYjo1GPFXYtNMfWOaXPG X2AUTuh+b7wv0n4ba4D3AeTV39STQJr/dyGCc8YKZixf6Q66ltPBjvtNxCiSfAVJHRpu IjtQgOgJrjKDV7Gegwy27Cy3OiOc0Z5rlXsbIjtlGy1xURhu85XenB7KCjEcHiDws78b diHzyt4F6hUxkVNzdaJK+JZ/j7mO+7k6DtCQfWDLhZFIBjGXLCUnoCxaZIXgU39i+2mn i0B28ZnpgtH4quLKdA5VmxXTf2fAgZ4+YChfV5r/z0QLWnGC1IqkI88K1+Z9DPEs1xmv O//Q== 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=88vfdHTg0PYWio/ykO0Co6SWWjM03sOBWkJsEq4CWqk=; b=MQGsxXq2nDqnRPOz0RO7qOktU3Cb4FR+9+tCJYfCHrFxtrLOW2p1TreXfIG+y9yBSp tfjNIILuv5zu6R7TPznKL9ph9TdEZkGDLrlhUs4W89sDUMfNDVoqjoKV8uq9x5EXDOCV r8st9voFm54WFy3Lt6mi3iRsvTMJKhQKLogUzz6DA4YRK+bEdNmO15zdIKcYfLbuUFXS vRjqqz5NMwEm8DXS0+ny9l+v25OYISf9XX7jV6NDv/Zxi0lJymy+Tv+QuKgfF3YPAZEx RyMgRiXk8A8fi0rFMxOz7TiX2S+DpMYwsghQcOKvCdPPlvwMYGHGP3ziqJFEpd4Ecjx+ fTjw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=I4XfFKf3; 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=88vfdHTg0PYWio/ykO0Co6SWWjM03sOBWkJsEq4CWqk=; b=oPoHa8v5XAJXxtc65Hg8h+FjIcMUMIvnDB8ywnU/PIS4AWylNVbG4tvphxSproFT9A JKg1qkSj8nPkEvnXz+FafLg+CB+EJYF1u/+pxnuoL334YG9hWP1xNEIhrx5C8mrRjd3E Snfulzr2fQrc6g5/+6PdMzCM6OcFInCHJsdWU= 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=88vfdHTg0PYWio/ykO0Co6SWWjM03sOBWkJsEq4CWqk=; b=RVS3FpsHfpyPlxtVF3HtvCVZtcDtIJazu8FWA+dzr7d6sqofOUTJnUHuJu/A2dC6VV 7TThkhlm/DWS3WPX2CEjxVQ4a5dZ516iAV+bSLwd3evZ8MQeLz6XMO42tGPJhkJ6pGVR 8BTC/0sWmhP7s8ueYnRL/3SBL1IeR5Offp0jFkOj+VLneOvnoO6AYVTrY4F6LmC6iF69 QNQadSaaTwOenZvz+dKaQEm7pka1QmZPV9IjdoWXBZNlR09O0jqzJiNO227B99WzRoVc qup7pIPd7134EtutE1EYg+Zdb54wK6LilP8IMJEKEz+K4gfa2j8Bu2DQFGkVUsu1PaHx 1Bfw== X-Gm-Message-State: APjAAAUe8OPMszDvH0/TCFIIgr7Zh2VqjsQLzipOTX2G1o5ej1ggs/BH LpatgJStQDRW8vc+/iA3XYX+aURb X-Google-Smtp-Source: APXvYqzKyfzqYCYaZp6W1I2oTRjPrzIxZ1327GVPN/Y9zlc71+4ZHFje3IeDkfiQPXeV5+sxCB5t4Q== X-Received: by 2002:a17:90a:e001:: with SMTP id u1mr5787513pjy.102.1572026209800; Fri, 25 Oct 2019 10:56:49 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:5107:: with SMTP id f7ls3062645pfb.2.gmail; Fri, 25 Oct 2019 10:56:49 -0700 (PDT) X-Received: by 2002:a63:dd11:: with SMTP id t17mr5942446pgg.242.1572026209276; Fri, 25 Oct 2019 10:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572026209; cv=none; d=google.com; s=arc-20160816; b=Cq7dmgb5UgliITrAtQ4uVjmNp6PwkToeccdY+EQ/14qvNqT6SFoi3eKqPzGS+0MczR BpnrNYzbAZ4vsFzDrFrzVrChlUVY+xAVct1GwmcQxKymbHVmyDWiBtHb1cVNcqiLgPhw j4CFqfTlhobPSLT5S9WP2BjZ/kt1sx5I2WtbRYa7GVzU/eAtE2yan2I3blBmoMoVCI0I YiED111iRq2TRcymSGbf3wteM2WLJcktiApzwx7da+5h+poHutPqOH2wWM6gPlkZi4g3 R3ULPGSBnZoZGPctG8MKV+7m3vYUETtSkU6sbIf6oXz9eenezVSkL8uSPmYaupm+spO7 M9qw== 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=SvO1A1WodzP09Lr/d61c8nwX2ky0IL4uKfdfDnxUPmw=; b=IcsF3lmeqTyhRzo/Bm+WBh2MHPe2yS0KYe7FS3LyOGQuWQLEkolGQDWBBbi2PftoAv 7demjdbw/f14iWCCXtVQiKPpWlzeIrY+6rAvTOS1w24SxBzLNFO4JdRrsWy38BwyXfmI se508uhS/ud3qyuMM6vwXquEJnxHUZREB8xnttdHJOWnpHmgKmtGSM/MSeuJ2WYD0KQH iBbJvEu/XjsZCmmankszwTteQMdfYNpYQTPktcWbMAQ2avHlC6TegCz5NPe5eOPiFFL3 473/AZBNOxJiYBk3wk3FjDDiaXUcOo9sk4+J2osSqeVByAgiofY8awbBoqhFjM+LJSUs 3s0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=I4XfFKf3; 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 cu9sor3341808pjb.25.2019.10.25.10.56.49 for (Google Transport Security); Fri, 25 Oct 2019 10:56:49 -0700 (PDT) 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:fc93:: with SMTP id ci19mr5849047pjb.34.1572026208821; Fri, 25 Oct 2019 10:56:48 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id n15sm2926580pfq.146.2019.10.25.10.56.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 10:56:48 -0700 (PDT) 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 v11 1/7] dt-bindings: sun6i-dsi: Document A64 MIPI-DSI controller Date: Fri, 25 Oct 2019 23:26:19 +0530 Message-Id: <20191025175625.8011-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191025175625.8011-1-jagan@amarulasolutions.com> References: <20191025175625.8011-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=I4XfFKf3; 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. Signed-off-by: Jagan Teki Reviewed-by: Rob Herring --- .../display/allwinner,sun6i-a31-mipi-dsi.yaml | 20 +++++++++++++++++-- 1 file changed, 18 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..2b7016ca382c 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 + oneOf: + - const: allwinner,sun6i-a31-mipi-dsi + - const: 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,25 @@ 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 + additionalProperties: false examples: