From patchwork Thu Jul 23 15:26:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 11681223 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 304FE138C for ; Thu, 23 Jul 2020 15:29:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0743C2067D for ; Thu, 23 Jul 2020 15:29:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YgZ/kLoM"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZibBjkqe" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0743C2067D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=aJuSfsJGfP2fu/umsPE3/2LU7fQAlxI3GfJx3oYHL7c=; b=YgZ/kLoMyVQVU1ZjXhixlbwZh 0x4CdaOEyAgQiSJnYZOUuZNvJV8idYqbyPURxXbaQ0cPxQbpB3MhISqAec567kknaBoBPDs7Sj8jD C1ZYytc1QqRrvUUsmsUn0lJgIB+te+HoCqpLWZkTQNnoUrdtviDotqzfLLc7Oo8EleglJJZL3O1MW 4KtXvjQlowmQrdpQZM1+O6MtALUqEXQm0AhOkoEuRrOqYHi5KRAMqn27AKBrAbvmmIeNXnkElzEtc F8FqTDpBBSRV43y3moAu9qqkVpfvCKiYuHH1UQIgEc8JASyY4kLsWsMQXK8ibp1kBY391V3nv8its MNXIDtPjA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyd83-0007eo-Jo; Thu, 23 Jul 2020 15:27:27 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyd7Y-0007SR-Vj for linux-arm-kernel@lists.infradead.org; Thu, 23 Jul 2020 15:26:58 +0000 Received: by mail-wr1-x442.google.com with SMTP id a15so5556397wrh.10 for ; Thu, 23 Jul 2020 08:26:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8/f3+aWQD6jv0BacPrlT71wq4KzB+QZIhzZYF2sQn5E=; b=ZibBjkqePpOt6wdwejuWLwFNSiWg1V3RghiCXkrwZ2zbCXKNFcgMngbifiPD7ZtIaV CFUA1mvy/F3qhrX9YIPJSSK7Q8Fo7PxR7DTTvYzuxwE5/norGhp3rzrM3aKgsreCQxpS gKcQCwfO7PqBQOJ+9jYGEOZzc8BbHwaX8G89pODVWQCyEX5sLYkDzrgtxzOiKQ29i/gQ SIGKnrd/qVDvMLdd8i4EmC2OX//b5pZBDRK5adLOz/qQBYM2Cndq6lSgFo+lJB4ATZf5 R3UnYH8RMDu4xBC++zoGIK5FvqM07FPesWZRz/y0saCEQPXrBPpDcKcCemI+MZEn06lQ QVeQ== 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:content-transfer-encoding; bh=8/f3+aWQD6jv0BacPrlT71wq4KzB+QZIhzZYF2sQn5E=; b=Y9jvdL/wGA+4Uh4yseE8RP8abEkUKTR9ZWj7ak2Xjl/zj3Cv3XoFIPB7cN059+SYvg 54qA3oUtilZmXXyAOZLfQ9FUlfLpxD6GFN33aBPXVb0vZpFzh0+XKDQ6kI1XNszoMRz1 akQcAI/v8wc46Y6rHHVTzjbGMgLTNLTNqQXrGaXtRGih7BwMhiCSN4KZxmBgwvrQksYD wWyuFXPI5f1INReQswOLSkWFfw4+n4qKsmh/Yh/3o9U2RVipO/xugyonOBn6v18iBlNd K6xQMVFaFZ9gix60T1RvezYFxR6uZtGzYePV8JJLP6lCG9RU7OM6vydzJz+XQDMOHgdJ uM4A== X-Gm-Message-State: AOAM5336r8icEuELBkAjlhHoQDaiUPXWAP8s97eI857PUSJY+ou1BZcU jLcPnJW8Hla+xHj0zLk9rdMpmojbAYh1cg== X-Google-Smtp-Source: ABdhPJyn+xE4PapUaCreq7vHX+H11qIZL6P1+k5pEK9vPxvIc+2dE+6m1P5/FmInnfl2ePCjghmB9Q== X-Received: by 2002:a5d:4e92:: with SMTP id e18mr4588679wru.107.1595518015861; Thu, 23 Jul 2020 08:26:55 -0700 (PDT) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:dca7:8d30:33fa:daac]) by smtp.gmail.com with ESMTPSA id g145sm5963491wmg.23.2020.07.23.08.26.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 08:26:55 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Subject: [PATCH 02/16] dt-bindings: microchip: atmel, at91rm9200-tcb: add sama5d2 compatible Date: Thu, 23 Jul 2020 17:26:22 +0200 Message-Id: <20200723152639.639771-2-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723152639.639771-1-daniel.lezcano@linaro.org> References: <1b1122f4-bce9-f349-e602-ed8e14cbb501@linaro.org> <20200723152639.639771-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200723_112657_250312_F90A111D X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:442 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Alexandre Belloni , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , Ludovic Desroches , Rob Herring , "moderated list:ARM/Microchip AT91 SoC support" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Alexandre Belloni The sama5d2 TC block TIMER_CLOCK1 is different from the at91sam9x5 one. Instead of being MCK / 2, it is the TCB GCLK. Reviewed-by: Rob Herring Signed-off-by: Alexandre Belloni Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200710230813.1005150-3-alexandre.belloni@bootlin.com --- .../soc/microchip/atmel,at91rm9200-tcb.yaml | 42 +++++++++++++++---- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml b/Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml index 9d680e0b9109..d226fd7d5258 100644 --- a/Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml +++ b/Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml @@ -19,6 +19,7 @@ properties: - enum: - atmel,at91rm9200-tcb - atmel,at91sam9x5-tcb + - atmel,sama5d2-tcb - const: simple-mfd - const: syscon @@ -36,15 +37,6 @@ properties: description: List of clock names. Always includes t0_clk and slow clk. Also includes t1_clk and t2_clk if a clock per channel is available. - oneOf: - - items: - - const: t0_clk - - const: slow_clk - - items: - - const: t0_clk - - const: t1_clk - - const: t2_clk - - const: slow_clk minItems: 2 maxItems: 4 @@ -75,6 +67,38 @@ patternProperties: - compatible - reg +allOf: + - if: + properties: + compatible: + contains: + const: atmel,sama5d2-tcb + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: t0_clk + - const: gclk + - const: slow_clk + else: + properties: + clocks: + minItems: 2 + maxItems: 4 + clock-names: + oneOf: + - items: + - const: t0_clk + - const: slow_clk + - items: + - const: t0_clk + - const: t1_clk + - const: t2_clk + - const: slow_clk + required: - compatible - reg