From patchwork Wed Apr 3 10:20:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 1075711 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="fr66GgJn"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44Z2CP1Mkjz9sSJ for ; Wed, 3 Apr 2019 21:20:32 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726183AbfDCKUb (ORCPT ); Wed, 3 Apr 2019 06:20:31 -0400 Received: from mail-eopbgr20079.outbound.protection.outlook.com ([40.107.2.79]:14350 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725963AbfDCKUb (ORCPT ); Wed, 3 Apr 2019 06:20:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MiSWBT8ptY9juWVOy+zF1jJ9M96a9tm8mY8GuMoCL3k=; b=fr66GgJnA6YTt8NBTrpLW1k3q4Z1sYxek4CGH1yas8cZXJ0PtHr9lszQdGYCNaHiLBioZ3kUlpexHPzPGOkRFGKak3+jiHTUK+4lHoQn4vZE8z/6r4YNnY5bOldM9V2wGjknJsNfh4BmX5Jz4XF1Rr+6fWlG5y4WJaiuZiTGFtM= Received: from VI1PR0402MB3519.eurprd04.prod.outlook.com (52.134.4.24) by VI1PR0402MB2750.eurprd04.prod.outlook.com (10.175.22.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.17; Wed, 3 Apr 2019 10:20:26 +0000 Received: from VI1PR0402MB3519.eurprd04.prod.outlook.com ([fe80::78bc:c1e8:3caf:656b]) by VI1PR0402MB3519.eurprd04.prod.outlook.com ([fe80::78bc:c1e8:3caf:656b%6]) with mapi id 15.20.1750.014; Wed, 3 Apr 2019 10:20:26 +0000 From: Jacky Bai To: "daniel.lezcano@linaro.org" , "tglx@linutronix.de" , "robh+dt@kernel.org" , "shawnguo@kernel.org" , "mark.rutland@arm.com" , Aisheng Dong CC: "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , dl-linux-imx Subject: [PATCH v3 1/2] dt-bindings: timer: Add binding doc for nxp system counter timer Thread-Topic: [PATCH v3 1/2] dt-bindings: timer: Add binding doc for nxp system counter timer Thread-Index: AQHU6gbaUMi6opXlLUCEb6pueveq7w== Date: Wed, 3 Apr 2019 10:20:25 +0000 Message-ID: <1554287101-16189-1-git-send-email-ping.bai@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 1.9.1 x-clientproxiedby: HK0PR03CA0112.apcprd03.prod.outlook.com (2603:1096:203:b0::28) To VI1PR0402MB3519.eurprd04.prod.outlook.com (2603:10a6:803:8::24) authentication-results: spf=none (sender IP is ) smtp.mailfrom=ping.bai@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9dad16ba-17a1-4070-2aba-08d6b81dfcce x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VI1PR0402MB2750; x-ms-traffictypediagnostic: VI1PR0402MB2750: x-microsoft-antispam-prvs: x-forefront-prvs: 0996D1900D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(136003)(346002)(376002)(39860400002)(189003)(199004)(99286004)(54906003)(478600001)(106356001)(3846002)(68736007)(81156014)(71200400001)(53936002)(36756003)(6486002)(6116002)(6436002)(81166006)(6512007)(8936002)(2501003)(86362001)(7736002)(105586002)(25786009)(2906002)(5660300002)(305945005)(4326008)(386003)(316002)(14454004)(14444005)(256004)(50226002)(26005)(186003)(52116002)(102836004)(8676002)(97736004)(66066001)(6506007)(2616005)(6636002)(476003)(71190400001)(486006)(110136005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB2750; H:VI1PR0402MB3519.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: qrSOJ+0s7h0Ngd0rgpixeP9az8/3j2IeeRaTvnwOg1/CQjTfU1uOgNIW/ASS8BBs0Pa8oRgUhgdhb1H0CtwaJJ2sZv2uIlvZ0XXDztXkliHTntWU3xUPcWqT4M4W5W2sGK7nbLFRKG6gPoKY9k0Zz96UYj45M3l0/knmYFWeaJznX7X4wTXn+YUUFoopwIEwi4+AvEy0bFShhFuqhm7UxKiriL91Hb5gXzUUbZ/qmUmsvIxkk4sq842ZVfxU8vW3e8NeYJgWpACDK1arbPORhs4EccAugCwbUad8YY++RP/+q5yRkjMgcz4atDIpVQUYLBnLiGXav2gdbBgTj13WmWkZ7M9zKnyOcLmj/5E3aUiIbl/tF7tHyJ5MCVndloB1ST9MJkfdMwaYezSCKlTyLcRNLgo2jfE9WNzwBbKUMgA= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9dad16ba-17a1-4070-2aba-08d6b81dfcce X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2019 10:20:26.0230 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2750 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Bai Ping Add the binding doc for nxp system counter timer module. Signed-off-by: Bai Ping Reviewed-by: Rob Herring --- change v1->v2 - remove the blank line at EOF change v2->v3 - update the binding example based on the driver change --- .../devicetree/bindings/timer/nxp,sysctr-timer.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/nxp,sysctr-timer.txt diff --git a/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.txt b/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.txt new file mode 100644 index 0000000..d576599 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.txt @@ -0,0 +1,25 @@ +NXP System Counter Module(sys_ctr) + +The system counter(sys_ctr) is a programmable system counter which provides +a shared time base to Cortex A15, A7, A53, A73, etc. it is intended for use in +applications where the counter is always powered and support multiple, +unrelated clocks. The compare frame inside can be used for timer purpose. + +Required properties: + +- compatible : should be "nxp,sysctr-timer" +- reg : Specifies the base physical address and size of the comapre + frame and the counter control, read & compare. +- interrupts : should be the first compare frames' interrupt +- clocks : Specifies the counter clock. +- clock-names: Specifies the clock's name of this module + +Example: + + system_counter: timer@306a0000 { + compatible = "nxp,sysctr-timer"; + reg = <0x306a0000 0x20000>;/* system-counter-rd & compare */ + clocks = <&clk_8m>; + clock-names = "per"; + interrupts = ; + };