From patchwork Tue May 4 18:49:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 12238469 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38AFDC433B4 for ; Tue, 4 May 2021 18:51:50 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B519E610E9 for ; Tue, 4 May 2021 18:51:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B519E610E9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=seco.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=bE6nb41J5ydy4NLhGOcYwsaW0iXQW+ZO1uSFP4tyMjg=; b=dz/7QNkmkVModymCn1PA3P6aR3 mgCYVJEKcGaxIogI3hKDHdQsS/3fihkFpicCzz+us6i6LB6iL4oHcVT/aXnQ88+v2/eu6k9l+aobJ iFCnWKLWTw3KOo7uktojceBMLmFQt/eOkSrFs0tue0x7Z7NcCboIqBfs4UHfqCfuQWS0HoiTX6ZsI +y9yk6GXWfMt/2UsM6EITlR1/Ei0xpQi7sZ5AfUjWTyOeAteH9Ad6gRQ1qI5PhwioGe5F9iWaBt+S akOP4msi4x7ZKdiwUgtOO+ejCIflYOU2AQj/iIf+KVdrzCiHqZ9HOjRpq1/Gi7aFho1G5AgvPzB68 SppyCoDQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1le07C-00Gp3p-Uh; Tue, 04 May 2021 18:49:51 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1le079-00Gp3M-Oq for linux-arm-kernel@desiato.infradead.org; Tue, 04 May 2021 18:49:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=7OuNDm/M8pFW5GR8Cd1cF1ndTH7+81ik8rRZxwO2a4o=; b=bhGVNaY4iwyF9ShF80bgeoBF/Q L5TBiu6Q+ofwYiqjZG9fs5qb+r1tleb3xMiNIrD8tgr/Oii/eaKx3NjOILvLE4AIb9va5gmMzHKLp StLrj96Ia/4ScZ6+Qu9D+y2JkzwCluRdUxvA9EcpZPts0kEA2BMJ2vf87Ad7nCllsggaUd3ApywA7 V3Dy72rS1iVx6S+tSPXRmiou71POIsj7pqtJ/fDeLkRuKXbjBIww8EiqFrlnWWA45C765Hj4bbYzE 4wf9IGn3D5+1Hyf3EIhiwH4/6NywsMH/RqtTv6LP6tJg+/yu3PEd2/2Qzip9bYh0Z85qchBA6QeMj lRR2hQiA==; Received: from mail-db8eur05on2076.outbound.protection.outlook.com ([40.107.20.76] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1le076-004BqJ-Ge for linux-arm-kernel@lists.infradead.org; Tue, 04 May 2021 18:49:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jf5RZw31Vm6M9Ani+28XUP5AaqWn4Pl/p/lX0Xx0iamCwsxn1cxRijxQwQT/zxxKdpqviukl77bBd1Su0Am30WNG9em2/vSG1pQlK3cNoFvh17zTJs5yLWfn3gm+ccciAqSYkCmqR2EeGpt9TOVvcAgQCNQp+YYxi0WK356+98joXhbhE6lfeQGGGdayfS2c6TaGEXzgFe9cCKA1jFeZce/Y/uet/OmIM9tnor1kVb50p6nGKH4pQ1EwuQK9JccfmOFIh5OgrJZ0rF781Dmgmte39z5kD2rD5AzNiUK77N7LU+0oAr+O97KLCBXCdGJYZ6Ffu2QlsNW2UWlgy4uzjQ== 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=7OuNDm/M8pFW5GR8Cd1cF1ndTH7+81ik8rRZxwO2a4o=; b=n7catU4JNoIUBNbMJVdMleTnE4GFlGkvcicy0yKBMM4mtPujv6UKRjaL6CWa1MTUUWPB483TL/BDBup7LbQOtgvV8ExabY6ADU1DrWmzznGT3Pu+uuc8My6dZniNVprpK/Kil6A75juPo0Feq3EqxM2gO8ItbJXeSXFJOIE+IQsKxq8m0C5ZUdyvHUy3GfcuErhO6+YEDmetgDoZzHftFWf5HEYBFZCmRSQvVULTQXVGxNAr4nrgdPpkJGuiEP2+JhcI2Mtb8xs+vF4YS/xKKWi1zNiBwAjPGh7IVP5kJ+NtvhBMkeQqQX7kbX7jvIRjLQ/z9C70dkBbozAEaxuzFA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secospa.onmicrosoft.com; s=selector2-secospa-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7OuNDm/M8pFW5GR8Cd1cF1ndTH7+81ik8rRZxwO2a4o=; b=xkT3xl2iCkqo4zbi/1sV4WM6mRTbpe4XKALC/KohDbcJPLAOiMCZrMa29cCtrmBdpsoldKPYPDyhBI8v1GOzZJqr6Cy2Z+an0KiUw65RH2tFiwRddKTIiq0e99vg33mwv+TeKRKnF7eDMve8qe6nwMN9/nQmQNqItEkguMQ53n4= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) by DB9PR03MB7276.eurprd03.prod.outlook.com (2603:10a6:10:1fd::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.24; Tue, 4 May 2021 18:49:39 +0000 Received: from DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::40d5:3554:c709:6b1b]) by DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::40d5:3554:c709:6b1b%5]) with mapi id 15.20.4087.044; Tue, 4 May 2021 18:49:39 +0000 From: Sean Anderson To: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, michal.simek@xilinx.com, Alvaro Gamez , Sean Anderson , Rob Herring Subject: [PATCH v2 1/2] dt-bindings: pwm: Add Xilinx AXI Timer Date: Tue, 4 May 2021 14:49:24 -0400 Message-Id: <20210504184925.3399934-1-sean.anderson@seco.com> X-Mailer: git-send-email 2.25.1 X-Originating-IP: [50.195.82.171] X-ClientProxiedBy: MN2PR04CA0015.namprd04.prod.outlook.com (2603:10b6:208:d4::28) To DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from plantagenet.inhand.com (50.195.82.171) by MN2PR04CA0015.namprd04.prod.outlook.com (2603:10b6:208:d4::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Tue, 4 May 2021 18:49:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 94f2edbc-e887-4983-e3c5-08d90f2d5f17 X-MS-TrafficTypeDiagnostic: DB9PR03MB7276: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1265; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QmWPNSLYBXbgR9Jao1RJcx5pQA/6IW+cm9qcqrF13KlP3e+W1NP6eQHIniG4xfR1w/77NsOwlVjexALBsTooZchmcPtNgsbgygDZ8ikmeOH0ovpjMkL0J5h38Xv9jKdqxFtoTRHpPb1xYCpspaodXfhWasvRV4qxEh5nK0YU/JvvR7kVSqqC+UbfBksnnEx7TornuBsRI19JVZ/JIwo6F7xDeBEYNXgK7NBK/iJF62Jyt9X0Gi/q1DOJKv6Lyh6qYcvx6p9X6B39R51j40Np9mY7DW/B/i5JmyBEQ+/YqIf32qZeSkkcwjVvxYIIYzgT5A+LGvr8PTW2os2M2+a/je0zAqu4LZcjZmh7tfR1z7HB3AKvM9eZa0UmUvkHKdDjkeriQ+F+HdRBDOTzF1x5YqZKBVYfP9WFqfyiTb59QDXYha4MK+Dc1UxTikCBOWVEdyNZpSV2GJMx81pOl8QlwBGOElPz05bc2ZHQ/UH//Mn71SgDV5QzWsVO997zdrYoepKau+4NPoGCHF7fgGOKtpZLwEdgsj3eJohtdQnOI+0cUxLQLB4bllxZ5ipRFWS4nKfi1Vyt2NYyKwct+NZAL1mLhc1LKEBkJ5wHX45YpqpRDET/ZWnX9PvvyORfhzcoeb3wE5+V0YvlcdFhnjN8JRydfeU2KFXOUgvTLrEX/jazmnC6pGCVgl3wOlTgKEK1idRsdZDAp+B6y63SpNETin6CzTLpjqYbleRuQ4/gjNs= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR03MB4523.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(346002)(396003)(39830400003)(376002)(38350700002)(38100700002)(66946007)(66556008)(2906002)(5660300002)(66476007)(44832011)(26005)(52116002)(478600001)(6486002)(6506007)(8936002)(16526019)(6666004)(966005)(186003)(2616005)(83380400001)(8676002)(86362001)(4326008)(956004)(36756003)(6512007)(1076003)(316002)(54906003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 9NlCeI1Sw5juLUeSzUwG7nGOXauWnoMErJYDnF9MbfRmOgiDCpBdw8oBkZgy1fBOotnVlmNqb1j8IG9lTnywHsSD4bltuu7n+97NhDgkbHDbjucm1IgKJuzB6VatuEVHVpgGEz/4I/YwBXa68TXeTA9+RxokHB+PSNlqImGcNMBuT5i9ZCHbkctmjpRXmEj3pdmNMxMoyEP+RD4CgqDIQCPwwiJx5D1fc+5D4zr3xCfU3HRiwfQC+Fedt1idiWH4kHWZ7J0DiayO2656q/IOxn4NqNrc3seT+PoU9B7/Vb7z2Sazl+2+hc7bzH3l4/KkxHbfWN35ALA+iBSY/AgsaXVlc2/wi2cmO4aQVQBgWiQQLLLMPBuauSI5LmFoFZIdUOCYpdEloMT6AlFrjyw+lP76TC3rdJ9fL4xYQpvAEmTeE9UNEx+pwiH6EGEPSP8Tv7uSmevWvknOrS92e9zDThQ847QMYhFUG7LoC1KtMHlDuq2XLH1sKWCaoSasDJc851U5Wl9r9qQVgJsTase///RCOVPrPl73+RIhvGuwkGXN7h0ovSTXsQ/L14gC5JESdfV79JAU0fOLAUiTRu6PK5Ugrry22i0j9aQdxZVAzU6gcO1TF6uDZJFgh88XAPvmIF1a+yPqQvTq7jMfjeARJ0EhkXADaWnj5oWEh9kG+SUplXn9WFvzErxIPlXyuJvXv/IUwpHLTLVWolmT2Hh0bxOXh31qc84iqg6v+DuvUGW2sdw4uFDwCPS6xt367grUJUTOu7dvVL7DRX6QFTSYWbW8Qt06zc0KEy3C4+H8uqdFs68wAApxkChkk4l1E7N3fU3u/roW1L4M+KU6h2a5IrSyct7BY+YPcZzSBwGwxM4i17rb4BByJfVIDbLCrGUWsQ9fVaxrqKl4hDRzdu8fe3tfXR3ZV39roc05KqWM/bBkp9i3KG/DBz3vuub4aec+q0QlI/qJeEQciukIjF3aNi2gcHqkfWxVPBNZQYp0HbsyEwlpsOmcc7Yza+1dLtVPEVXTA1givz2MzpPCWfd1HLNfEDLyhXwrydtT9WZ39gMUpysf4L+vK+RXjpEDDesFzInxmbOOI24ynvfjXz74ePki9nqIcfnZZFvWYpJI1TE5TYxKWHnXbZOek5gzR0ATjRrIK+QkfsvJThBb6xx7205ehHUA3nxOWUQHjKGtPO9r12yfkBilyaLaVsSW9mV6Cz7hwEw9/B8i8NTy8OmS3JDwPlTW/mFknqine3WFVtUER00VXF57pF5WgR2jgFJsY1/muQpU5iTO+tbZV/N3HoPltxbfdb5INxM5Ys/ahisHKnvBiB4sNKdyHsv9YglT X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: 94f2edbc-e887-4983-e3c5-08d90f2d5f17 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4523.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2021 18:49:39.4371 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UDXyyz/bTlImyu/a9qwwa2lyLn1PeMraZ6YRld5EAJloqHulvuTqYmiJObYT/LHBL3qY0sJ40n/q9C3+2QWj/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR03MB7276 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210504_114944_658753_2A5201FB X-CRM114-Status: GOOD ( 14.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds a binding for the Xilinx LogiCORE IP AXI Timer. This device is a "soft" block, so it has many parameters which would not be configurable in most hardware. This binding is usually automatically generated by Xilinx's tools, so the names and values of properties must be kept as they are. Signed-off-by: Sean Anderson --- Changes in v2: - Use 32-bit addresses for example binding .../bindings/pwm/xlnx,axi-timer.yaml | 91 +++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/xlnx,axi-timer.yaml diff --git a/Documentation/devicetree/bindings/pwm/xlnx,axi-timer.yaml b/Documentation/devicetree/bindings/pwm/xlnx,axi-timer.yaml new file mode 100644 index 000000000000..bd014134c322 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/xlnx,axi-timer.yaml @@ -0,0 +1,91 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/xlnx,axi-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Xilinx LogiCORE IP AXI Timer Device Tree Binding + +maintainers: + - Sean Anderson + +properties: + compatible: + items: + - const: xlnx,axi-timer-2.0 + - const: xlnx,xps-timer-1.00.a + + clocks: + maxItems: 1 + + clock-names: + const: s_axi_aclk + + reg: + maxItems: 1 + + xlnx,count-width: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 8 + maximum: 32 + description: + The width of the counters, in bits. + + xlnx,gen0-assert: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 0, 1 ] + description: + The polarity of the generateout0 signal. 0 for active-low, 1 for active-high. + + xlnx,gen1-assert: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 0, 1 ] + description: + The polarity of the generateout1 signal. 0 for active-low, 1 for active-high. + + xlnx,one-timer-only: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 0, 1 ] + description: + Whether only one timer is present in this block. + + xlnx,trig0-assert: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 0, 1 ] + description: + The polarity of the capturetrig0 signal. 0 for active-low, 1 for active-high. + + xlnx,trig1-assert: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 0, 1 ] + description: + The polarity of the capturetrig1 signal. 0 for active-low, 1 for active-high. + +required: + - compatible + - clocks + - reg + - xlnx,count-width + - xlnx,gen0-assert + - xlnx,gen1-assert + - xlnx,one-timer-only + - xlnx,trig0-assert + - xlnx,trig1-assert + +additionalProperties: true + +examples: + - | + axi_timer_0: timer@800e0000 { + clock-frequency = <99999001>; + clock-names = "s_axi_aclk"; + clocks = <&zynqmp_clk 71>; + compatible = "xlnx,axi-timer-2.0", "xlnx,xps-timer-1.00.a"; + reg = <0x800e0000 0x10000>; + xlnx,count-width = <0x20>; + xlnx,gen0-assert = <0x1>; + xlnx,gen1-assert = <0x1>; + xlnx,one-timer-only = <0x0>; + xlnx,trig0-assert = <0x1>; + xlnx,trig1-assert = <0x1>; + };