Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5764155pxb; Sun, 7 Nov 2021 19:50:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJztSDqhFpcI5woWs4yM/ihAwq7V84cyi+vsKw2vOheIC9FiCXkyJSIDFNgJHEIEk3TffdVV X-Received: by 2002:a92:d706:: with SMTP id m6mr50887414iln.155.1636343416131; Sun, 07 Nov 2021 19:50:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636343416; cv=none; d=google.com; s=arc-20160816; b=Jn8lkDfAzCRQjXOGkQvDGj2wJyl6wZ8EsS/P1HCCb/cEu/U0qRg9PUpxQ6+m0iqdVx JYmeXDr98NX4plpm7ykK3Ei5TXGXhtFfRgh6h6tR5HGDdnZx1Prayo8W98JDzCZf/Yu/ n47nl3dendWrXmdae2p8fX7ff/FR2IbRaL2vZGQ2Uf0rIEtVz+rkSaWfyoVboP9wo/bL +fxKlGl/JAxERZbtieYZ9kfHmrwGSaGDBv9H0usQfySvEom0AB5evaBY0nEheKpn1uBb n65WPVFCfJNN0r8+xKK8zjFWhQR10JDa7jWRM6gQsKwLcwTBs925DUgxAddrwMDn88AS 1q5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nZiUTPwWjkOdBHnULu9dBeBF/zY+4JoUi8RSPmG0iiA=; b=HuZwrUqzKoCw6AFkmjmVeC0FvHhNT19MmgKtSEhZWWVzc+R+vGQBEK4MuacC8tq+hq MlGBPv3RdMM/oksPSAoONTG5aEg25orhzx+YdcM98IxNvbQU225kMUvWRDp3xzXpZybq LOmrRvSIjgiYxNeDXnchhnz2niCl5JevDEKyeZme9CT62+5X6j7pqdeqT/vf4ir/zYOx +zdvMhAz70mN5Ufl+5wcJgG317Qugx1Y6IL1fteYQ6qEq9GZif/SPnnC6nqXv0LSPmK6 r6/SvdNPJVYgWzIo7+4DUw+sMvw+Y6Y1mce6VSQxp81vJkvvruzrGXakBG7mf6QXnZDK 47Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FeTRKWrf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si24597714ios.7.2021.11.07.19.50.03; Sun, 07 Nov 2021 19:50:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FeTRKWrf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236485AbhKGUch (ORCPT + 99 others); Sun, 7 Nov 2021 15:32:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236457AbhKGUcd (ORCPT ); Sun, 7 Nov 2021 15:32:33 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 768B1C061746 for ; Sun, 7 Nov 2021 12:29:50 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id j10so6103044lfu.4 for ; Sun, 07 Nov 2021 12:29:50 -0800 (PST) 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=nZiUTPwWjkOdBHnULu9dBeBF/zY+4JoUi8RSPmG0iiA=; b=FeTRKWrf1EcOADes4il6+1ExbX+gdlwMW/ismfIc+/8SatZ6TsM6OGOd9w+5pAQ2rK 3/73FA4/5gKyCCdr25TErb2fNhukBiS3SvG+WwI/wCJfS9bN0KnbRQY6hN+GS5jgNtir n1x5vcrNu5BWlhzucZEspUS7l1fbAufLc3OHIvzwtAw1749yCyl5Tq4nUwUFltPczhx9 g2bnY4bFp4vspcz7Ku8DsprIizk85EpbYzodwY694uchVR9Zd2Bevd2c3Nf6L8/HlLIS 0TUlQ25rgFh2e6oyA3nWE8jv2zurcztW9YxJfKPluijrlts1IquB5kgTC5BmDPspN3sf czXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nZiUTPwWjkOdBHnULu9dBeBF/zY+4JoUi8RSPmG0iiA=; b=kctkyqki6n93OLU3MHdud1oW6kggI+UOuqzTmDKxrhrbEAtYOS1vBYLjg9SHbIG798 VHFWByiIUtpKX4i+GhoWV+UTfm7QAaMGDozHt8Evcxgkd7SRniuJG2Us7hAsumbXqY92 rU7Whue4YadiTU4IeXxicmJY2o7GuwUU5GFNbQR/Py7s2ZETIXJiJlq9+/6qqmkJ+6yQ Oeq902/F7jOiWINcoa8Bu5nHoNSCurb9Fp28XgIpBPiEmKtwr9EjFhnf0+yPTYZHQbkk WLr4cCfDVuAtJs3yfWpgMgNdUl3ccRxRmZeNf9qab8/FV53eLmwxHIqpt/Xgtq/swBxv xL1A== X-Gm-Message-State: AOAM532a2Gr9YY3G1hA4smRFpXDsaCDABuxT7Va3VRQWAKmrZ8v48jzK 3FQNZ1bgub0J2ZudBbf0VZ71WA== X-Received: by 2002:a05:6512:220d:: with SMTP id h13mr46645691lfu.326.1636316988883; Sun, 07 Nov 2021 12:29:48 -0800 (PST) Received: from localhost ([31.134.121.151]) by smtp.gmail.com with ESMTPSA id k12sm1571487lfg.31.2021.11.07.12.29.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 12:29:48 -0800 (PST) From: Sam Protsenko To: Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v3 02/12] dt-bindings: watchdog: Document Exynos850 watchdog bindings Date: Sun, 7 Nov 2021 22:29:33 +0200 Message-Id: <20211107202943.8859-3-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211107202943.8859-1-semen.protsenko@linaro.org> References: <20211107202943.8859-1-semen.protsenko@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Exynos850 SoC has two CPU clusters: - cluster 0: contains CPUs #0, #1, #2, #3 - cluster 1: contains CPUs #4, #5, #6, #7 Each cluster has its own dedicated watchdog timer. Those WDT instances are controlled using different bits in PMU registers, new "samsung,index" property is added to tell the driver which bits to use for defined watchdog node. Also on Exynos850 the peripheral clock and the source clock are two different clocks. Provide a way to specify two clocks in watchdog device tree node. Signed-off-by: Sam Protsenko --- Changes in v3: - Renamed "samsung,index" property to more descriptive "samsung,cluster-index" - Disabled "samsung,cluster-index" property for SoCs other than Exynos850 Changes in v2: - Stated explicitly that Exynos850 driver requires 2 clocks - Used single compatible for Exynos850 - Added "index" property to specify CPU cluster index - Fixed a typo in commit message: dedicater -> dedicated .../bindings/watchdog/samsung-wdt.yaml | 45 +++++++++++++++++-- 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml index 93cd77a6e92c..b08373336b16 100644 --- a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml @@ -22,25 +22,32 @@ properties: - samsung,exynos5250-wdt # for Exynos5250 - samsung,exynos5420-wdt # for Exynos5420 - samsung,exynos7-wdt # for Exynos7 + - samsung,exynos850-wdt # for Exynos850 reg: maxItems: 1 clocks: - maxItems: 1 + minItems: 1 + maxItems: 2 clock-names: - items: - - const: watchdog + minItems: 1 + maxItems: 2 interrupts: maxItems: 1 + samsung,cluster-index: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Index of CPU cluster on which watchdog is running (in case of Exynos850) + samsung,syscon-phandle: $ref: /schemas/types.yaml#/definitions/phandle description: Phandle to the PMU system controller node (in case of Exynos5250, - Exynos5420 and Exynos7). + Exynos5420, Exynos7 and Exynos850). required: - compatible @@ -59,9 +66,39 @@ allOf: - samsung,exynos5250-wdt - samsung,exynos5420-wdt - samsung,exynos7-wdt + - samsung,exynos850-wdt then: required: - samsung,syscon-phandle + - if: + properties: + compatible: + contains: + enum: + - samsung,exynos850-wdt + then: + properties: + clocks: + items: + - description: Bus clock, used for register interface + - description: Source clock (driving watchdog counter) + clock-names: + items: + - const: watchdog + - const: watchdog_src + samsung,cluster-index: + enum: [0, 1] + required: + - samsung,cluster-index + else: + properties: + clocks: + items: + - description: Bus clock, which is also a source clock + clock-names: + items: + - const: watchdog + samsung,cluster-index: false unevaluatedProperties: false -- 2.30.2