Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1378393ybh; Thu, 23 Jul 2020 07:28:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwYQ0GgKCVEvLYuPu5/B78n9AtwKIh1CjX+wGnTsX7cZutqH4A5IwucVLsQIKPkbK6qkLf X-Received: by 2002:aa7:d043:: with SMTP id n3mr4580316edo.102.1595514493330; Thu, 23 Jul 2020 07:28:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1595514493; cv=pass; d=google.com; s=arc-20160816; b=hgDgPWYwlncmfkrslGoiYIA1z8S/GEm1Pm58wwOB6hwbo5sRJWEvx2gd9htH8UbOzD DlsAvX/egopiNhPeh3yBS6QfA5HQHTkGeInM0pFod4m6KOhb8515QqPmWAWviCyEVeh3 avqDPRz6V8ZAh2wPzb6EVlbZu6W55NZLT7wExysANgemzO8OQbgrnXfne/b4kWZYEwN/ +HGo8fuqa7TXr3/ctMxx+ILjqDBf47NfyidOglk1Sgab0QG+f6KGK1h+HYLsQHMFbYE4 RdQzuphN7Zm2Uj16DLPc1tq33ftDF7UCVdNztdLQ7W7OsR4n+Qv5p/M3b1ikkWPPvO8u +vuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:wdcipoutbound:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:ironport-sdr:dkim-signature; bh=FZYtCM7MSi4vbD+2NG5qAzPEcrA1EbyRdRBLFvNpzSU=; b=UZAWPQnviXhLtFz15e0emJcRY9Y6VQQtPLlOxAfTPz5QxFmU0I+zCASbt2sLQ8Rrk+ 7MG8mktS++3oZCGMUfdTApC1u2puZQ0ZnyGXn6T+uJ+ZajQw9RGbk4MbPKYtKEThevFv IVHYx8gtewV/X2oWxYsIJw5ylXvOr/rLEDh2LEGSLefZ1P76ijJ43OG8yT8ZoQSmeczG DyeQs0V7AFgD1MSXF+SRFPIo39+CoRfTztRhFJGA8LU6AA04nSEbCtp1f2eYhOAfiR6a RqqPiJog9yHMuUmRhHVSG9gXNhr47uPIpHGJ5998LC8qv0nDNKb6PNLi1feZPyPqsI9W IQ4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=SxI0ewMd; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=gENvNjHC; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si2039605edr.578.2020.07.23.07.27.50; Thu, 23 Jul 2020 07:28:13 -0700 (PDT) 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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=SxI0ewMd; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=gENvNjHC; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729476AbgGWOZJ (ORCPT + 99 others); Thu, 23 Jul 2020 10:25:09 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:16807 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729471AbgGWOZH (ORCPT ); Thu, 23 Jul 2020 10:25:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1595514307; x=1627050307; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=Bu7QYu+rmbl1BgD5j/YqNPU0EHoH6IymWIqTKqf27Og=; b=SxI0ewMdEX8KvuZlTiKBRQ6FcsIkZBV0xu2E+OLyCSD7n9NXzXtOtlQd eAs5lBrruVn29b5bVa/bM0q6Gy7EyHIH9KWwPHdnf7rHeWrJx3yKzC0Hm YoVUsgxOksnqdyV5oj0BDFebZjhoDykA5YgOwLmBQVweFRyh/CPXnkuCD TY1HBoluHgXSD7RZIomDd41Qe0FR5jTq7cKfn7DS7uxNzTW0xd6jJ6f8T j0uWJ5Vwc2eM4+6MFZq26eXxpqWdjSx7ifpH8FFZ3Rzo8639sCtEEWL7I k8ktEXjHWo5vebtAqffz9WJcP7UYhngzEkQndzg/uPnVsZCYpspXMUfVF w==; IronPort-SDR: kT8Pq+IKCnn3+xMVzXKQOAW0Ac6XQScQa0PBAUiKuGe70GWqfA9vLhDNhdqG1XZUaE3ll+Jes2 iuFB+D5bazYK6l8wouQqGEw4LjjJkwFtateEdR3u9ruyGhw7W+dT9ssPES6VVOum0EJ1O9MZMK oxHuqKPbQVoI5/w9Mhy1RKGU3H+d3fgTwPdtBc5dsbxK/st0MbP6YLvWvd9e19q1gZaZVvUk0t jk1AnZ60sGdU4pclZtLgyRqCzBvCq3uDjpVxWQzkN6ArFbcxYumXYqK7FKaKBLwLtO27FYB2DB wkw= X-IronPort-AV: E=Sophos;i="5.75,386,1589212800"; d="scan'208";a="144473072" Received: from mail-bl2nam02lp2053.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([104.47.38.53]) by ob1.hgst.iphmx.com with ESMTP; 23 Jul 2020 22:25:03 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HqNg9r1HFkdzRxYjWCClgkLsrCi0i0jQWzSDdarhT3oNjq/IZgBYz9jBKkkD9CWiPxFx+jmjQ8nPLPOOb0mO4SaMRwfNk+x186OZ2ZsiFH+gor4fh3uDwgJZrtlEkLibIKfx7VU9o1LZfkPrLut4VsikakcX09QmfQqAsPj/KWLYVs7XU+3tivA+speW9Z6lDzxD+BMAWjWllN7ljLg6Y2+R5c0G0KfjGTHH3ZJqz5Q9K6mDls2mOZMEmFNf1BWyiI7UnhgvhVx6CB0d58AxqrZxwQezvNRI9r2W6f9exvOuEXdIxQJ2woA9oGpcIyp9mw9+5SM7RJIo5J770K7h7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FZYtCM7MSi4vbD+2NG5qAzPEcrA1EbyRdRBLFvNpzSU=; b=WvmRY7qvHkdpOn85vonfvOLbKXDbGl0BqB9tx7RPx9zJyYPjE19iEHQBG+Ssosgu3ft/83tjIHf+nrIoOohvGPbpmC258XuA5C6KUzE49Y6sCNkcyZb9ulVClOg5JUrhcWE40dYTtJiJ3Fs8wM6V4STpEU+RIlvSRt3rge+BJEmHDsZFszl8oabm5PjlBaHRRtHO5d7wPuwh6t3wqi7Uh9FvoYmH8dsDBnv6gy5gEI7myuVhJEDEevcoOZRNmzijHtN7pqywRCF9f0cgDY79xnsI/sl+Ba5z5JHGOLq6/MLoBAbaLbnEEr4MD+hghmoutIPLx981xQT98dyZeqw/GQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FZYtCM7MSi4vbD+2NG5qAzPEcrA1EbyRdRBLFvNpzSU=; b=gENvNjHCvcEKrNZdrxmGTSR0m8LSev/N9UcOZDCyk1M0lNX307nW8KIDLw+QnLzKmZgJvzmcm2064FlRqrKBnIQcj1Ei9unZNUMu01M70ot2bl2ohDciIX2OXSdbCqvfVK1BwNJgQhSSirLySDQ/rn+iy6BSJtk90yBEaa89OA8= Authentication-Results: dabbelt.com; dkim=none (message not signed) header.d=none;dabbelt.com; dmarc=none action=none header.from=wdc.com; Received: from DM6PR04MB6201.namprd04.prod.outlook.com (2603:10b6:5:127::32) by DM6PR04MB6682.namprd04.prod.outlook.com (2603:10b6:5:247::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.23; Thu, 23 Jul 2020 14:25:02 +0000 Received: from DM6PR04MB6201.namprd04.prod.outlook.com ([fe80::e0a4:aa82:1847:dea5]) by DM6PR04MB6201.namprd04.prod.outlook.com ([fe80::e0a4:aa82:1847:dea5%7]) with mapi id 15.20.3216.023; Thu, 23 Jul 2020 14:25:02 +0000 From: Anup Patel To: Palmer Dabbelt , Paul Walmsley , Albert Ou , Rob Herring , Daniel Lezcano , Thomas Gleixner Cc: Damien Le Moal , Atish Patra , Alistair Francis , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Anup Patel , Palmer Dabbelt , Emil Renner Berhing Subject: [PATCH v5 4/4] dt-bindings: timer: Add CLINT bindings Date: Thu, 23 Jul 2020 19:54:09 +0530 Message-Id: <20200723142409.47057-5-anup.patel@wdc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723142409.47057-1-anup.patel@wdc.com> References: <20200723142409.47057-1-anup.patel@wdc.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BMXPR01CA0068.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:2c::32) To DM6PR04MB6201.namprd04.prod.outlook.com (2603:10b6:5:127::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from wdc.com (103.56.183.159) by BMXPR01CA0068.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:2c::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.22 via Frontend Transport; Thu, 23 Jul 2020 14:24:56 +0000 X-Mailer: git-send-email 2.25.1 X-Originating-IP: [103.56.183.159] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4598c208-0cc2-4437-3268-08d82f142fdd X-MS-TrafficTypeDiagnostic: DM6PR04MB6682: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: WDCIPOUTBOUND: EOP-TRUE X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Xo4/fJ0OtcXRgO2+98owj6C0nVXsHRYtXkFt0QxBZQj5vVtDqQzdhuv5QDaO+FrpS7ggMN/rgYcu0td+XA74z+UJ4iUMKnIg4uYlB73XvFgBUsrAROUXSG9E2CyIi3xu/NofLexdzgMtNxko0EeXgBtcvJZrcrI+nvvn4MxQf/HHjFPapXc7WPpLmyXd7LflAlNtOLW/2ASFDiZkyKMIDoT8DSPAnrVjXir7d6hIfTFqXkunvF4VWbcPIlDLNLnHFZKBCa7htUfWZfbHedThOdCGC5XOq7+9kMZMsJBfn4OT2v/nHq4dc8EJ5lVaFHTDqRI6WyoMppglpBbdG4kAyJuO+WARdse4VhafTaiX8t8tTQPcDaRU/NhVpbIJSv7jMOQHSNqj9PZKKixm1dj5kYkvbFnZicJirYlSKtSpPF7GxJgbJWfJsgbfYDi+8jooyTu4ZA2HRJlTlyyWmBQ9+w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR04MB6201.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(396003)(39860400002)(376002)(346002)(366004)(136003)(4326008)(5660300002)(36756003)(478600001)(7416002)(83380400001)(44832011)(55016002)(966005)(956004)(2616005)(2906002)(316002)(16526019)(8886007)(6666004)(52116002)(7696005)(66556008)(66946007)(66476007)(26005)(8676002)(54906003)(86362001)(186003)(8936002)(1076003)(110136005)(473944003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: TMbSEb079f+1gV3SNSpVLPE3F2TU4v/q85siwbVKCn7e6tmTv6SouHlpVcqBalOh9OuDRaRC9iWiuuI+wcSRlAHIYFxtEqeB3XoEBCuoXWxwsZ4qOPzJ6esVEvtlamq7bZPCI23ClusbKNmvehVOKH7yqqQpMxrnIYxm78JqjeYdDbDIIf4T+d7VcQ+Llw7OPu9MAXlg7hkktqUDp8IYaPBdSAtTv2Rfv70V+x9kbUW+WhPcYyX/KpjvWUalBhqsCOrGetOX/iyU3MndNruxWhHLDFLMh3ALW74EQk0yA43ujg8IMqONy9UvUwn2WnGxtmJGSp1x//7pCyGXFAEu7ruaUct000Yh9AcAIrC9094iR8tnzSxPzrVHbw1ygzPmdhw2BG3p6+roGwAiICYci2hOeklZebJEXmOmIP4YgUDNYFTUX/qTuHwE8deAunGjN0SyLdYokJdLbWCywOZ3ClBzPM/oxarKe5k0KofKPIQ= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4598c208-0cc2-4437-3268-08d82f142fdd X-MS-Exchange-CrossTenant-AuthSource: DM6PR04MB6201.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2020 14:25:02.3211 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wox7ri7EBWehyd1jNeH/igYJ0OcCNgnD6cc+Onjf3S4RgAvzfeDtjulYNM44kUM0pgKsaVIt8xMNEE2PY8jHdg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB6682 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We add DT bindings documentation for CLINT device. Signed-off-by: Anup Patel Reviewed-by: Palmer Dabbelt Tested-by: Emil Renner Berhing --- .../bindings/timer/sifive,clint.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/sifive,clint.yaml diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml new file mode 100644 index 000000000000..8ad115611860 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/sifive,clint.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SiFive Core Local Interruptor + +maintainers: + - Palmer Dabbelt + - Anup Patel + +description: + SiFive (and other RISC-V) SOCs include an implementation of the SiFive + Core Local Interruptor (CLINT) for M-mode timer and M-mode inter-processor + interrupts. It directly connects to the timer and inter-processor interrupt + lines of various HARTs (or CPUs) so RISC-V per-HART (or per-CPU) local + interrupt controller is the parent interrupt controller for CLINT device. + The clock frequency of CLINT is specified via "timebase-frequency" DT + property of "/cpus" DT node. The "timebase-frequency" DT property is + described in Documentation/devicetree/bindings/riscv/cpus.yaml + +properties: + compatible: + items: + - const: sifive,clint0 + - const: sifive,fu540-c000-clint + + description: + Should be "sifive,-clint" and "sifive,clint". + Supported compatible strings are - + "sifive,fu540-c000-clint" for the SiFive CLINT v0 as integrated + onto the SiFive FU540 chip, and "sifive,clint0" for the SiFive + CLINT v0 IP block with no chip integration tweaks. + Please refer to sifive-blocks-ip-versioning.txt for details + + reg: + maxItems: 1 + + interrupts-extended: + minItems: 1 + +required: + - compatible + - reg + - interrupts-extended + +examples: + - | + clint@2000000 { + compatible = "sifive,clint0", "sifive,fu540-c000-clint"; + interrupts-extended = <&cpu1intc 3 &cpu1intc 7 + &cpu2intc 3 &cpu2intc 7 + &cpu3intc 3 &cpu3intc 7 + &cpu4intc 3 &cpu4intc 7>; + reg = <0x2000000 0x4000000>; + }; +... -- 2.25.1