From patchwork Mon Mar 11 07:16:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10846825 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9CA0C17DF for ; Mon, 11 Mar 2019 07:16:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E37428D7D for ; Mon, 11 Mar 2019 07:16:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7259128D95; Mon, 11 Mar 2019 07:16:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1F7AD28D7D for ; Mon, 11 Mar 2019 07:16:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Yq9lwd6Dka72gRjL7qt/lABkOZpePjhBCeaiV7w2TNE=; b=hwPtLsOT6z5yvj s2lYAUJFdEtSQ0FssUJAPZktEaeluhZjadWeAuaI9jl3gJpyAlHy0LGr4Dl3DRo23h5nPT7gNrWEc KkgTGKvFhXYgzS0OZ2qs4xCVqbQf4xQcZlnCvKoKqlU/izReJtxUXxADo7JhLCuDVtajUFL1JIEZn DoIU3jP4GFxwnsTWdocr/I7lzhlATprmrRcN/Zt3n6VdcsFVvmhKYrlMZcl/8NN78gwknLouNE42j RAW4N4X8wb+wJ6cj7bbwo4aSipR+C6NE6zxHqS2fWZAsGUEvINAKjzwSWd7jyzvwrSE9pxgx+F8hz RctDNz7+0bkI8RA5ygLg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3FBC-0007aB-KZ; Mon, 11 Mar 2019 07:16:58 +0000 Received: from mail-eopbgr60044.outbound.protection.outlook.com ([40.107.6.44] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3FBA-0007ZL-3F for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2019 07:16:57 +0000 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=nKNxi5w5h4s7w2RAQp+5OVKgLRqN32HvIfBiALanVN4=; b=UW4+Y8EzRivSvbes2JUFzJvRKN4LtpeAVv47HSXITl8wfEW5Jd/OGwRNc5VHaRsHquaEo30wGUOROW0TYscNNXk0DJL8fIf7wkc4xVYQT+q2GFYMpb/z/qZ1LS2yDNT0Q8ZQcb1xvxD2ceVwNWe9p+srcg3Ez/7yxH/w77J5YlI= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3897.eurprd04.prod.outlook.com (52.134.73.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.19; Mon, 11 Mar 2019 07:16:09 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7%2]) with mapi id 15.20.1686.021; Mon, 11 Mar 2019 07:16:09 +0000 From: Anson Huang To: "thierry.reding@gmail.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux@armlinux.org.uk" , "stefan@agner.ch" , "otavio@ossystems.com.br" , Leonard Crestez , "schnitzeltony@gmail.com" , "jan.tuerk@emtrion.com" , Robin Gong , "linux-pwm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding Thread-Topic: [PATCH 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding Thread-Index: AQHU19pNiXy2wqURpE+vQV+7IcWGgQ== Date: Mon, 11 Mar 2019 07:16:09 +0000 Message-ID: <1552288273-31028-2-git-send-email-Anson.Huang@nxp.com> References: <1552288273-31028-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1552288273-31028-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0PR03CA0090.apcprd03.prod.outlook.com (2603:1096:203:72::30) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 64d3f851-277f-453b-2b7c-08d6a5f16f5d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB3PR0402MB3897; x-ms-traffictypediagnostic: DB3PR0402MB3897: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; DB3PR0402MB3897; 23:acicm5A0pmxP4K/w7zl/lbvH34YE7q6c7X5fQ?= =?iso-8859-1?q?Wqg+XatHEzGzCBv48?= =?iso-8859-1?q?5P8QHzINcXgyF5J3i0JYkkXvnJln777VJ4XR2cpMdSypGdS7zt6YTiABvzv+?= =?iso-8859-1?q?XSB63MTcfbrSGcvpx2RAl/Mi8uSj0fDTb8FR8UGxhYufi9E6NWgZ4ELpCPBj?= =?iso-8859-1?q?u0Qo4Y5QSrkSqqrNzXjKrd26/ls3yRVxRHjUbK5/lOtUvoKya7MJ4UAk3G0A?= =?iso-8859-1?q?XHhzJ1bB4Tx+SD7LNVdM4GxFbZiqfpDRUQPihVvlWHs7PiQbSbn7w+m2Qft/?= =?iso-8859-1?q?SvlMAtyiYliawLOlXJ7aBI854g+IL5qp6ZBJr95gYPMgVOiqXt48kjdRkzAh?= =?iso-8859-1?q?mtOKNoFQ80o9ZyBGHAnkI2mr4s2Ua1/OlViUHi++AHO9ScTakhvBnik7kjX2?= =?iso-8859-1?q?RlF1hghnn23holyfkB9Bg5qjjFIbmLxxAhFvgBaXKR90EFPBT8ji2wwYTzRu?= =?iso-8859-1?q?3J2R2I/sdkOL0ZahwfIOb/bC5jtzdWnWBMA/KPZhXr5TsC48OLm95bhZ/Jz3?= =?iso-8859-1?q?UcjV7BuB1RwGqD79xF+Ig3msNoV4/F1v9A5dZZu9xcWkeM8K+VjgMj6tl18u?= =?iso-8859-1?q?sQz5li+fyokbPxylXhnD5ssHOJY6OPlXPhI9coz2NeUmoYLnHz41uA5esTx8?= =?iso-8859-1?q?iMumRhEKiAJx0SivMAI1GJVna79kg6rHAHa0uwrYQqkNOMLcO9eNwOHVXqDY?= =?iso-8859-1?q?DO4obpgox9SZ8ca5ehh50ZSq2oojLogYFUQn1yF9pg6HxppS9pFZhW8KYBhu?= =?iso-8859-1?q?0A02GksYo5IJi8dATJ/mRebflFqP/qNztgmL1CW6qUDlPXBeaHFhYd82NlMW?= =?iso-8859-1?q?adkBc3pS4ji54RL/OuUP9ayJAoj0fFRVL2cUvQjWgd2geH4L+t2WlhAxYnPd?= =?iso-8859-1?q?wHPJbyvaQoQqDpDNjHZUt4Ti2OwfSvJ40l6FnwD1Jc0721iDCLNcaJQbD7ub?= =?iso-8859-1?q?k3ibEelZeRExMT8bEooQhsl7Woc8FREzk1VYablOfDsxY3pYuoRlnbCyNh4w?= =?iso-8859-1?q?4ab9mxGUzxvrqTicH3TTGtdMOn80tEcbYx4hAT4TysBr14Zo2xmOSWKOkl43?= =?iso-8859-1?q?jKUbucuILoCimcYoD1DIMQfw71Od/ui2fki8RXqhTpRAQHsXLIvCO5Af33xh?= =?iso-8859-1?q?LMlP9RZK5RTEPcOoIChGc35Qkbf6qDjp8wqmu1eXxXvL1fi9Q8jKEiGNzMgZ?= =?iso-8859-1?q?VMOQAfqo/0XOUkJEn0s82LcB0J4FsovL596DWE0791u3SL09ShETxVY8RiQ7?= =?iso-8859-1?q?R0koI=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09730BD177 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(136003)(366004)(396003)(346002)(39860400002)(199004)(189003)(478600001)(86362001)(53936002)(6512007)(71190400001)(71200400001)(76176011)(102836004)(386003)(6506007)(36756003)(68736007)(316002)(256004)(14454004)(2201001)(50226002)(305945005)(66066001)(6116002)(8936002)(105586002)(2501003)(5660300002)(6436002)(7416002)(3846002)(6486002)(26005)(7736002)(186003)(110136005)(52116002)(25786009)(99286004)(2616005)(476003)(446003)(11346002)(4326008)(81166006)(81156014)(8676002)(486006)(106356001)(2906002)(97736004)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0402MB3897; H:DB3PR0402MB3916.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: guIAZcZBabBdK9ZdtZo1cixbi6DXddnSjPAnzevFnG8cDeopzpADZ4pav+E6o2y4XgOo6kAYPa2gXwPtGz4Ns7CF22rxRMXj9Pb/p+/RgMnziyvDDBJnmN2+GrdY2EDDe78yHEnJCo1vLCJCF5mtoEJdm3eSdTVVD4a+V76Kc1k9pGjkuCbXNJu6ULh8eTy1llK09AZGC1kq+hiFYL+IKzNmnhVkQGMaTnYrirDozoZomMfrBq6UhF1t/xoU5cGb//PYl3bRZKIZ8oUyGTWCs+t6u7NV3FZQK0XjQJ5UQSrOjMpzMK8Dp0WSZz/m005rfbgSe8ugq7A0vhHxeWfhYeiYkJECd46Zf/CqqLORLzz7HkXcstJ1as44ZiEm7Lhdia06Fhp8KxOQpULp/2z0vKBXkx0Zaf6CmVkrWyJBqf0= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 64d3f851-277f-453b-2b7c-08d6a5f16f5d X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2019 07:16:09.6544 (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: DB3PR0402MB3897 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190311_001656_140533_6912FD7A X-CRM114-Status: GOOD ( 11.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dl-linux-imx Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add i.MX TPM(Low Power Timer/Pulse Width Modulation Module) PWM binding. Signed-off-by: Anson Huang --- .../devicetree/bindings/pwm/imx-tpm-pwm.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt diff --git a/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt b/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt new file mode 100644 index 0000000..ebec313 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt @@ -0,0 +1,23 @@ +Freescale i.MX TPM PWM controller + +Required properties: +- compatible : Should be "fsl,imx-tpm-pwm". +- reg: Physical base address and length of the controller's registers. +- #pwm-cells: Should be 2. See pwm.txt in this directory for a description of the cells format. +- clocks : The clock provided by the SoC to drive the PWM. +- interrupts: The interrupt for the pwm controller. + +Optional properties: +- fsl,pwm-number : PWM channel number, if not defined, i.MX TPM PWM driver will use 2 by default. + +Example: + +pwm0: tpm@40250000 { + compatible = "fsl,imx-tpm-pwm"; + reg = <0x40250000 0x1000>; + fsl,pwm-number = <6>; + assigned-clocks = <&clks IMX7ULP_CLK_LPTPM4>; + assigned-clock-parents = <&clks IMX7ULP_CLK_SOSC_BUS_CLK>; + clocks = <&clks IMX7ULP_CLK_LPTPM4>; + #pwm-cells = <2>; +};