Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2425381ybn; Thu, 26 Sep 2019 11:40:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDY2HXhvxY9kPDjcBBKV7El2XUJ/lDEq/pvIuyA0uEQJL3hXrnDM/GaNw+4HxFn4Nf0oLx X-Received: by 2002:a17:906:3543:: with SMTP id s3mr4484017eja.240.1569523214014; Thu, 26 Sep 2019 11:40:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569523214; cv=none; d=google.com; s=arc-20160816; b=zl98MdAE9H1JeDN4qyYRa4ve2Ch+ohiurLmeXX2oMJMqwKYbb/4ydzbHpuHBidsEw3 /kLVk0+AR4okOFVYPXWIl+uIcLsuHWVVji2rwnwNGBXeZllPFqJG/o10ofY5zKfxJBww hyHpCsogC/Z1qXBGwo71+Ec0zhEZapppXazGdyUkCAFE7WRBBoNjaFFXp14y2cfe9KKw 1uImQDi664e6bDsEHCTadp6NeeEhoADBExsU/efKfrNga/FMfqGKGkJBnW8w3SXhencC ewspFrVUN/TElM+6e1ykJiba/hUhFQAEEyZcfBfbHN3iF4lzPIndan53ia9fp9DqyKku 4fcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=4mc1QeDNiMS/IIzBV3K76Eduy0rLTrIWEub9va+2DZU=; b=y2qzNwxv2Q7gV0AcLri+JhYCWtxqRvRo3XQfdw9Wwq5Hf+nWkX57gn0+QnhXZ8SERt IL5E0zhsfT/MH5e5LZDKCiLpuLGSID7+mJpfdIoSyIigsOrn3kLkSnYMriLL97Xpyzwk igG/5XX18eE3OGZOwMrlgAPg0i3YmfYE8S03jWPxvdkNszADBSzSYjIo63ElRY+1Kz4u hIf5FcbYLaQ1K6KEMGlJDhsPRkHud5DczTDFckTJgUVi5ZZgTQayErE7YF1LWpVrE6HI yoh4YjCfF6Xp9hvBmmvPa7R9YL7cJEhCESQOcmLnBoPdAB5pEsfGXU1bNl5npOd2moK2 rLnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=h9Edz856; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e18si84055eds.68.2019.09.26.11.39.50; Thu, 26 Sep 2019 11:40:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=h9Edz856; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728454AbfIZShF (ORCPT + 99 others); Thu, 26 Sep 2019 14:37:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:39364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728413AbfIZShE (ORCPT ); Thu, 26 Sep 2019 14:37:04 -0400 Received: from localhost.localdomain (unknown [194.230.155.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 38AD820872; Thu, 26 Sep 2019 18:37:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569523023; bh=mp0cAdKqEqH/s9D+3ht8kbYbJ5u3i3m3qD9oNpDN+K4=; h=From:To:Cc:Subject:Date:From; b=h9Edz85612LyGIUz2DxRyySgApO6Tt3gb7FCJN5UBhbsJSfrIe/yWvrl1nlYoGuEs IZ4hJF6ntWeoZ3YD0fSUKRjxj2BWLCLtv2q6qip3DdKlZkwfl//fsqL7Q84QkCePh6 9/5293kg2lwsw7idmxCfCLhQb6oG30V/G0lRtxHY= From: Krzysztof Kozlowski To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski Subject: [PATCH] dt-bindings: timer: Use defines instead of numbers in Exynos MCT examples Date: Thu, 26 Sep 2019 20:36:43 +0200 Message-Id: <20190926183643.7118-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make the examples in Exynos Multi Core Timer bindings more readable and bring them closer to real DTS by using defines for interrupt flags. Suggested-by: Marek Szyprowski Signed-off-by: Krzysztof Kozlowski --- Rebased on top of: https://patchwork.kernel.org/project/linux-samsung-soc/list/?series=177667&state=* --- .../timer/samsung,exynos4210-mct.yaml | 37 ++++++++++++++----- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.yaml b/Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.yaml index bff3f54a398f..c4d152009f76 100644 --- a/Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.yaml +++ b/Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.yaml @@ -75,51 +75,68 @@ examples: // In this example, the IP contains two local timers, using separate // interrupts, so two local timer interrupts have been specified, // in addition to four global timer interrupts. + #include timer@10050000 { compatible = "samsung,exynos4210-mct"; reg = <0x10050000 0x800>; - interrupts = <0 57 0>, <0 69 0>, <0 70 0>, <0 71 0>, - <0 42 0>, <0 48 0>; + interrupts = , + , + , + , + , + ; }; - | // In this example, the timer interrupts are connected to two separate // interrupt controllers. Hence, an interrupts-extended is needed. + #include timer@101c0000 { compatible = "samsung,exynos4210-mct"; reg = <0x101C0000 0x800>; - interrupts-extended = <&gic 0 57 0>, - <&gic 0 69 0>, + interrupts-extended = <&gic GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>, + <&gic GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, <&combiner 12 6>, <&combiner 12 7>, - <&gic 0 42 0>, - <&gic 0 48 0>; + <&gic GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>, + <&gic GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; }; - | // In this example, the IP contains four local timers, but using // a per-processor interrupt to handle them. Only one first local // interrupt is specified. + #include timer@10050000 { compatible = "samsung,exynos4412-mct"; reg = <0x10050000 0x800>; - interrupts = <0 57 0>, <0 69 0>, <0 70 0>, <0 71 0>, - <0 42 0>; + interrupts = , + , + , + , + ; }; - | // In this example, the IP contains four local timers, but using // a per-processor interrupt to handle them. All the local timer // interrupts are specified. + #include timer@10050000 { compatible = "samsung,exynos4412-mct"; reg = <0x10050000 0x800>; - interrupts = <0 57 0>, <0 69 0>, <0 70 0>, <0 71 0>, - <0 42 0>, <0 42 0>, <0 42 0>, <0 42 0>; + interrupts = , + , + , + , + , + , + , + ; }; -- 2.17.1