Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp240633ybh; Wed, 15 Jul 2020 00:18:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMU3anXrMWSSftWz/6bTfxMmC0eXp7PHTLaWymN2JPbHN2+mhHNNPZfhwBn3BHyZ2hdkL6 X-Received: by 2002:a17:906:3b15:: with SMTP id g21mr7670734ejf.221.1594797494153; Wed, 15 Jul 2020 00:18:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594797494; cv=pass; d=google.com; s=arc-20160816; b=Cs7hzGsE0Ot0Pyo7jYbSS3yqjoFSTW+f2IjE5md9JoJd8eeEQZ3/1eJU8XT8BeB9eK E2F51BshcbZGZhVZhVMtOJIjNOmUR2StAkk66QtYTmYzQYlmH5NwlcO5L2ejJEzJGgy/ vIz1OU8O13MSo22HQY2NsXMphweU+58QnwQx+nU5yplP6jYp+RKYFQPi4BmnVNLVIlWV uBbBRa6SA3uVjA/OpJmcI5+X8XOoGGyX/Kt5krPxOt82BIlz6uCaMaWJdzPFpnGoXX/h OFqn9k5XVozQjAnWA+/XbrUPSI7tePyl7pL58OkdAnp5thoLYjm9Dx/A1c3xFrWg4slE NxQg== 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=czwHAYt3wkUgtuMNubzI18huGHe7j+CzqQ8bZ6r662Y=; b=kMHC5orbVfqG/UfVtUe2dQvILoKcuCHbOo4+EfBHrf/U3oARHJiwrSUmFnuFnno9ha h3eJEvegGPmUWezIlWQw8BK2pX183gHnJ7Px9L1MfzBy0XFwUEPSFgcBJdbXierjZaq4 6PdvclNxkLfsr0FOv3aOlCG2OPtMHlN2NAbcH9MZ4MHfsAy9nQYW7zeFLs29t7AgetoB DPWRqyAhfhxmRzTw8e47+xYBrSHcdkHDl07jJNM7aezw4ZkjuUeT9hGwY2jBeIRra7Hd SAEP2O3Q5JuOJu6v1MH8BMLNuNqRy+vUT9sLW37UurBKlTjBHlUkzhCJwJ2YpjGImkFU w/yA== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=pZK9IXLJ; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=TaPxJmP3; 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 cy13si759003edb.388.2020.07.15.00.17.49; Wed, 15 Jul 2020 00:18:14 -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=pZK9IXLJ; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=TaPxJmP3; 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 S1729189AbgGOHQB (ORCPT + 99 others); Wed, 15 Jul 2020 03:16:01 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:27534 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728883AbgGOHQA (ORCPT ); Wed, 15 Jul 2020 03:16:00 -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=1594797359; x=1626333359; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=1yoaZ/MUGy9x/gjE1/0KBb/ZS7OPD3BG648UJnheuqA=; b=pZK9IXLJRjgTKYtcbgmePPDZuXYPmeOUZyLc3ztFg3pk7RdetbZYd3Yl ViSMWP5mYWugddkzOlFkLlja+1CTVAO11Qe3B/FR0DwHV7UF9SNbU+M0S g1qdtZ29mVcmZB4EhxcsRC5cvflbCp2TlTZB6MEt2XlrLNV8tcZDZk8BJ 7QN4ogRN35vVvnlBWam2fHKGXkiYXoy7JH7bXRVkdL5zcMMMBaEDM7Dw6 Qo6aNFpIYdow0LIkGDyyLa9iWrv8nEJ7u70VS0MQUvppIWQqBidi145IB wuf5vrkWrm5b8UOmzpSerw/ykHSeNFhr8h8Yf1khYWBGlKdKJ1r38kH1z w==; IronPort-SDR: zOywFCWvoQRshbermBlnqhNOs+dUTqQaDvN99+ZvH7BvlA7rSYZuOZAQvGULtniiRekDxVlX/s mBEEx64FkU7qNcRQyQ6ghJ6IgJHeIQVT4sWNhI326J15OMU9IvFTleH98bT6WtHW0agrOrl6Aj LhzQZbT/ECbftNOdsnGP5oXLwG/w6jkpfx/41VVW20OBCRNoRbwyCM9ddwsMhJoUyOWvWhO/eh Hh2QxwnYlLmc+mwTupHnTmxM+zuQgOv2H43766Xp0+AP+iaEV3bGvc0x9gp2Ghyx4W4Gde2nnQ nOA= X-IronPort-AV: E=Sophos;i="5.75,354,1589212800"; d="scan'208";a="143799820" Received: from mail-sn1nam04lp2053.outbound.protection.outlook.com (HELO NAM04-SN1-obe.outbound.protection.outlook.com) ([104.47.44.53]) by ob1.hgst.iphmx.com with ESMTP; 15 Jul 2020 15:15:58 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HsH0H5gqpNvU5K6QJky2Jnm2gZYrOGOGYHr+Qew8h0Fkf7/R4ji8WcgZo8hSe0qbDoMq5g2bATPUBwDfLm4aHXBx0+lHL7Rryg5tOOoEqbqOjB0UjSNku7qYFv38FH27C8T8frftXSBKdta2hhSBPTuhh0g29XduLQHxrb9ef7gz5UnzkZTdDiD6QiXJUJHff+4thrDOfSMdmhdu5NVFvBU5b91OuUfXsMjS/DGtT2ytHn2I7WZdAOmrqTrHLnB2wuoPPxfAqaHdAgKfD+SWafid6rCMIJWQ57tqIu37exUKu2fe/atgMDbVQNhlWT6AoHxyxbq2tDz435APWGEzWw== 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=czwHAYt3wkUgtuMNubzI18huGHe7j+CzqQ8bZ6r662Y=; b=gkhpb1I+xTsttsS7ghTSxH+pqVuYl+Mn0+ZXOhJmPDET3tiMMjCVF53X+IS7JVq3FSZoJDQOV0jnnqDAJtjsawY5aAUhOz7KQY89fOZ6z2st+Xb+YBJ+hNfriK+YMJb/5ihYbyqBUcJQl66DGv3t6JpSWW1OqaVflvDJLmn8oGBUQNQWkQvtgoAuQxLSEIAPQGiW2KEYelLcKbUfAu2oVWQTPxDqlKRZeojaxHEZ7bYTZTkSSOwP6/NDeYs2CM1aPYmFz7gEnbe5DF7m1Rq4N3sU+gHm0OMsObR2FICko2t3g60RNJz+VB5mf75FWiZ5kJPfrNtHp8fjYIGQLJy5Bg== 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=czwHAYt3wkUgtuMNubzI18huGHe7j+CzqQ8bZ6r662Y=; b=TaPxJmP3JkRdPKHpEXr/xBuogbbiKWpLsPfak8GiMsluxj1EQ+BkHf7lS0q7Mk+7TuG1kuo2+HT/QL1o6XqVgAKOJ9zdNDNDHP7ENk2dPMZ+bJGzMdGSUbB1OM6HzkI07dhHURGHIIFGGpi9RgXwVjebyrCPsJLM+4nnf13OBCE= 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 DM6PR04MB4329.namprd04.prod.outlook.com (2603:10b6:5:9a::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17; Wed, 15 Jul 2020 07:15:56 +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.3174.026; Wed, 15 Jul 2020 07:15:56 +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 Subject: [PATCH v3 4/4] dt-bindings: timer: Add CLINT bindings Date: Wed, 15 Jul 2020 12:45:05 +0530 Message-Id: <20200715071506.10994-5-anup.patel@wdc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715071506.10994-1-anup.patel@wdc.com> References: <20200715071506.10994-1-anup.patel@wdc.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: PN1PR0101CA0047.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:c::33) 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.15.57.135) by PN1PR0101CA0047.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:c::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18 via Frontend Transport; Wed, 15 Jul 2020 07:15:51 +0000 X-Mailer: git-send-email 2.25.1 X-Originating-IP: [103.15.57.135] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 28026172-b822-4b50-19bb-08d8288eeaf2 X-MS-TrafficTypeDiagnostic: DM6PR04MB4329: 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: WsHKCFJu258MC/AaoAoupG2M+aegthAcEHKn8ToAJ+LgLq5MQkouWkIaIg3sjzmHNs9vBgZo+ej21b8G80H3nakRTSOU71+mlEy4cQz0lwHIpysW67Ga9NzgPETzsSyBUGAXiq9s5SAFWPG70NbB5lxjumHQcA2k3hCmYO5vqFfE5v2wP+22aoRhDWSQBXc3KTqV7ABvzaPLIYkySRy4b3E5yP+gKnWvYKkaYe8V9GEm3nMUH2QVGGYoiAcD4FlzWe4eRHF2T7rBUbKUT9545as8SvHY7VgYyT7OvJ0k8hFFaPDth/Rx9iCzmpUUiIC78sBHJ3a8fKuSjvpWZ04PrraqaDZJOoliZgLkUaLCK1EhFaGoIOijmOVQ8rbioKhgiNGoDGovjTptEC6JXZk/7Q== 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)(346002)(366004)(396003)(39860400002)(376002)(136003)(8936002)(16526019)(8886007)(186003)(44832011)(36756003)(7696005)(478600001)(26005)(66476007)(7416002)(66556008)(66946007)(54906003)(110136005)(52116002)(966005)(2616005)(316002)(956004)(6666004)(2906002)(86362001)(55016002)(1076003)(8676002)(83380400001)(4326008)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: bjmXX+mT0UdynPpPXP+2O4kocSeYkelM1klNDTjTAPutqgDNeLUHCHcuhU4VCoil7CUlFccxhItVVU0ewvo6QDrrUGiQohEpZjrAjPANSfyPx8Z8W/Wra3rkG6xNqRpGFBDzdCmHGbTxpKVKN4nIkhVU9eIdd/FKfxEQl5PQ6lDr7eQiO3LPg95/+/qm7Q+9PYRnbqD4u4AiDskrw6EVRoU4BBPR0FQfVLupyGS+tb2rm6FOzIVrV7jWAK2R7P9IonXyjEGDcZpVGSfVgZg8Q5ZfqYJiLLnJK9b44/ptMUnYuRBlW+BOQoTADwf9qNzpSkcT9axRulp+zClygahE4yvSFwUm6anYaK8X5K/3Uk297G0wodCfdw5bRSQj0Gm1j3Cmbt71xZEN3kr6hop2qkM0ukmYzJZZnMDFZ7W7m55eeZgcy+WrXPXuNLPXR9uUDwWeIp9Q5btVz9vY5DZnHIgIbrs7Ntnx4jqQW3YgYlM= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28026172-b822-4b50-19bb-08d8288eeaf2 X-MS-Exchange-CrossTenant-AuthSource: DM6PR04MB6201.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2020 07:15:56.7755 (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: g7zY8gNgB5dwCKhjpIW9g8jHlEk/sm3jB4WtuvusxBKPHhxP7+lJelsweZksuZgPpwCF45ijJHkdYZpdjGMVUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB4329 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 --- .../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..f5579a759ef5 --- /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,fu540-c000-clint + - const: sifive,clint0 + + 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 = <&cpu1-intc 3 &cpu1-intc 7 + &cpu2-intc 3 &cpu2-intc 7 + &cpu3-intc 3 &cpu3-intc 7 + &cpu4-intc 3 &cpu4-intc 7>; + reg = <0x2000000 0x4000000>; + }; +... -- 2.25.1