From patchwork Fri Feb 25 15:36:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12760489 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4684C433EF for ; Fri, 25 Feb 2022 15:37:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242176AbiBYPiG (ORCPT ); Fri, 25 Feb 2022 10:38:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242181AbiBYPiF (ORCPT ); Fri, 25 Feb 2022 10:38:05 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 857F44ECF0 for ; Fri, 25 Feb 2022 07:37:31 -0800 (PST) Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id E80DD3F1BC for ; Fri, 25 Feb 2022 15:37:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1645803448; bh=DH1NoDQWkkmBpO6rD7PN1xLEKF0Vshadk2vJi0dTvdU=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=jxUNSSzD0TL7jvZKy9N/5kIoWezzcxy3+Tb6TSsa0ndlTEm6oYlHARpHjTxqdiuE1 lBVLimB1prMPCIFIlciEoq9agIeuWzR7dBkqIyW2Ismv7YGQRnBuIRlHO2sib5L2/+ aYXu5uoQciaPPp9LS4MWIaxZH1j7w2BdGuPU9XygUFNeCbWajVXpJjb70whBZFlyX3 vWFDl6HFKg5BTpQypFXoMQk8WMoFP7Aw0QJKJODLycX2e4CNvF2eqXBWeZC1J7UjBh J++pdHvkEdLnV4lWd2PxFgojBulpLeoBRSOWc28waQDKwAYpJR1nrwPvkcYp9j5ZCj JJD2iCBvwZjIQ== Received: by mail-wm1-f70.google.com with SMTP id f189-20020a1c38c6000000b0037d1bee4847so1700763wma.9 for ; Fri, 25 Feb 2022 07:37:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=DH1NoDQWkkmBpO6rD7PN1xLEKF0Vshadk2vJi0dTvdU=; b=wMVkgdtTPKLxtBet4qiw26os4hT2fUACOGNfSuDdDTI2SgkZdB293sPHEAjchmPmCy FxiX3/p8l/NBJSubBojnvgCHjEuFNkQhUj2iNCDffaUzzbqOAgLtndz3Z54XPxu/m7tf SD/QTOtkDtjTAoKPemyLwGfvKEXUm05lwxc6a6gTz6ikxp6IqBvNDWPC3Mn7pLq1q8GL PNi7/W2sotf3Nuchp0BCzko4teGm8DgICtMe3TB44z5FRK3ucpaXitR1Ej38fAbOPCLU ORXpvZHXRSeVKvE5iZSrFXwVteP50iExQdrQXsxnXuNilwp8wzl0/7a7+QtI4iYOeccz fhdA== X-Gm-Message-State: AOAM531LiiHRVVvYMAtJz1HWg5pzbPYdO7UKIeksdmBmZ0dY8XlF7Cju jW+Fdoob6txXjI2zv6hf6y8L4yRJzJ4H95tbq/xBxCwxEKK7EYFbPB9XCB9uC7x3LLs+ICKetER U1XchMNyihtqSMR0yabRbHtgZPoCD1JJSSRyphFSJxDBxyxgm X-Received: by 2002:adf:f691:0:b0:1ed:f546:bd81 with SMTP id v17-20020adff691000000b001edf546bd81mr6474381wrp.542.1645803448601; Fri, 25 Feb 2022 07:37:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDdXxzBIgGt45TJgFU8stqqgn9WKVBbpQ29snMfUo6EUQ2DHKvlAK26yT08CtmXZ6jA7cqHg== X-Received: by 2002:adf:f691:0:b0:1ed:f546:bd81 with SMTP id v17-20020adff691000000b001edf546bd81mr6474367wrp.542.1645803448438; Fri, 25 Feb 2022 07:37:28 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id p15-20020adfce0f000000b001edc0bcf875sm2647168wrn.102.2022.02.25.07.37.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 07:37:27 -0800 (PST) From: Krzysztof Kozlowski To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Alim Akhtar , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: timer: exynos4210-mct: describe known hardware and its interrupts Date: Fri, 25 Feb 2022 16:36:48 +0100 Message-Id: <20220225153650.289923-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Most of the Samsung Exynos SoCs use almost the same Multi-Core Timer block, so only two compatibles were used so far (for Exynos4210 and Exynos4412 flavors) with Exynos4210-one being used in most of the SoCs. However the Exynos4210 flavor actually differs by number of interrupts. Add new compatibles, maintaining backward compatibility with Exynos4210, and constraints for number of interrupts. This allows to exactly match the Exynos MCT hardware. Signed-off-by: Krzysztof Kozlowski --- .../timer/samsung,exynos4210-mct.yaml | 55 ++++++++++++++++++- 1 file changed, 52 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.yaml b/Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.yaml index f11cbc7ccc14..d4e23fd7a1da 100644 --- a/Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.yaml +++ b/Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.yaml @@ -19,9 +19,20 @@ description: |+ properties: compatible: - enum: - - samsung,exynos4210-mct - - samsung,exynos4412-mct + oneOf: + - enum: + - samsung,exynos4210-mct + - samsung,exynos4412-mct + - items: + - enum: + - samsung,exynos3250-mct + - samsung,exynos5250-mct + - samsung,exynos5260-mct + - samsung,exynos5420-mct + - samsung,exynos5433-mct + - samsung,exynos850-mct + - tesla,fsd-mct + - const: samsung,exynos4210-mct clocks: minItems: 2 @@ -63,6 +74,44 @@ required: - interrupts - reg +allOf: + - if: + properties: + compatible: + contains: + const: samsung,exynos3250-mct + then: + properties: + interrupts: + minItems: 8 + maxItems: 8 + + - if: + properties: + compatible: + contains: + const: samsung,exynos5250-mct + then: + properties: + interrupts: + minItems: 6 + maxItems: 6 + + - if: + properties: + compatible: + contains: + enum: + - samsung,exynos5260-mct + - samsung,exynos5420-mct + - samsung,exynos5433-mct + - samsung,exynos850-mct + then: + properties: + interrupts: + minItems: 12 + maxItems: 12 + additionalProperties: false examples: