Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1101102img; Mon, 18 Mar 2019 23:52:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwLziGTQOPd1pGf/VWbR+vW8aBNkVyErjosOwwUpOQmW+sQIKucw2Y/JNVkcK6Qhss2lSS X-Received: by 2002:a17:902:e701:: with SMTP id co1mr453758plb.61.1552978370926; Mon, 18 Mar 2019 23:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552978370; cv=none; d=google.com; s=arc-20160816; b=aLr54USk3X7+q8bangN9BgvQLqUMhIStv3bfObTRyXXepRairL23oQ1Er6XilKxLPu Yc5NQ1duCjgE54KhI2bnFyQpBlMqRLlUJx4wZYo9TzBVF9X45Mpvov36zrjkrjSMjxkX 2/n6ESbO9Y0F8K2lONqFZ2H44uIVb0NZATDmFI5tzr2plT7p3s9Eub8QonItMWv9wFEx obbA7z7KR9q1Qn4HTjyfPUHkMcoUxO0DS+1cWpZQ3SNM7oqIC20tOXCBBATdTp1bzuMK z7ewkZspUVK/vTGMKnxgVPFAreKQiumFWYf/tNkqn+PvNbVLkoUGf+uiHPqYLQeFWT4g Tbsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=QYrfdCybAFnNgD9DH8DV4chU4OPX+5rBcPx14fH7wTk=; b=LmEngnsTV/gSthKsfkHRsqYVv4g++5kpNoPJCgPrR8StLy2GFK7U0mN7m500phCw4J pLlYeqDdOn1IxAeU+3T70vThaxBrs4jyV50koiOhfFIe0yoOw6I0ikzn9+PEQCGS/Z0N yHChGIkTpT3x13vdzmN+lGEyVoFLICrMXm7IwSt+s2PWKWJDNWifpPJIhJS0G05ZAUBf SzKdVUu8xIpHOb9M2y1Xry9ffm94HWJCA+Zunev7tf7er2A0hNCJV+18DXMwgoNyA2yt XxO9hKfEgrowM3CY24evTpjH+wzoQ9Q8iBMmFxOhKheJrdGmtXdQ4kpvlvy1dLbi/ZYQ ijrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=v9NBPp9+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i38si11909433plb.194.2019.03.18.23.52.34; Mon, 18 Mar 2019 23:52:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=v9NBPp9+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727247AbfCSGuk (ORCPT + 99 others); Tue, 19 Mar 2019 02:50:40 -0400 Received: from mail-eopbgr20057.outbound.protection.outlook.com ([40.107.2.57]:21732 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726457AbfCSGuk (ORCPT ); Tue, 19 Mar 2019 02:50:40 -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=QYrfdCybAFnNgD9DH8DV4chU4OPX+5rBcPx14fH7wTk=; b=v9NBPp9+cwYWlS7PZOAidV2mQ3FikDuCtOwGAoVKz+OXM1obTfWG8tUG0MweYs8qHXJxxHUXI9ZkjRiEnR8A0YYP6NJMw7WG+9a9ZUKgH01jfthGx2nfRB0vrAgaokdhzH43LxUhzmy6fGPyynBD8vqrtqjyce2M1243nFxxrCk= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3788.eurprd04.prod.outlook.com (52.134.72.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.14; Tue, 19 Mar 2019 06:50:34 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::f1b4:a1fb:cfd1:3f08]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::f1b4:a1fb:cfd1:3f08%6]) with mapi id 15.20.1709.015; Tue, 19 Mar 2019 06:50:34 +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" , "u.kleine-koenig@pengutronix.de" CC: dl-linux-imx Subject: [PATCH V6 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding Thread-Topic: [PATCH V6 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding Thread-Index: AQHU3h/8vPmt411kB02aOAUpMTuiLA== Date: Tue, 19 Mar 2019 06:50:06 +0000 Message-ID: <1552977898-5590-2-git-send-email-Anson.Huang@nxp.com> References: <1552977898-5590-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1552977898-5590-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: HK0PR03CA0082.apcprd03.prod.outlook.com (2603:1096:203:72::22) 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: 4420ee99-016c-4615-fdf5-08d6ac371eec 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:DB3PR0402MB3788; x-ms-traffictypediagnostic: DB3PR0402MB3788: x-microsoft-antispam-prvs: x-forefront-prvs: 0981815F2F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(376002)(39860400002)(346002)(396003)(136003)(199004)(189003)(6506007)(50226002)(25786009)(8936002)(14454004)(26005)(76176011)(256004)(386003)(4326008)(99286004)(110136005)(305945005)(8676002)(81166006)(68736007)(102836004)(446003)(81156014)(316002)(7416002)(7736002)(186003)(2501003)(105586002)(106356001)(6486002)(11346002)(97736004)(6436002)(2616005)(3846002)(486006)(2906002)(476003)(71200400001)(66066001)(52116002)(478600001)(5660300002)(6666004)(71190400001)(6116002)(2201001)(86362001)(36756003)(53936002)(6512007)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3788;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: iKxdZYqKCNAtkeAwEX9i8Hzo9bi4T8jBNGWkHg4xtUuOETzBMREYlsha7V5fEH9k3BtglspmXiSzRSXxa8oxOD94oBdtOOTIGGoukc6YxgEzQNO5qfNoO/2pmIzVJa7CZwQA8l75vHMCip8RyKRs+dN6q3PHoMPoRo5aXtD6OIdsW4SvRFgFdyzBv4w3K0n3m3HoTg3R72hEP6Qjbl4MIdmHwVQdqoVmExZCsk1EIXci6ZCQ4Z3mdlndVA8bcR7ZeXMuhaOfuIYGebq/lrSPUxxB5XrM6MxHzDI9Rij28M5eU//csRTC4WUENirqlLxSy/tIQ4HnJ/dSaWxzst0IBU+YrosSoSvlKaDuTK2qaocjPRNv1p+Z/q9Pc0/nEI9Dc48CCO8kvCxUdgUaVeZsWvQJMNilDTSBq9nRNBCOixc= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4420ee99-016c-4615-fdf5-08d6ac371eec X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2019 06:50:06.4692 (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: DB3PR0402MB3788 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add i.MX TPM(Low Power Timer/Pulse Width Modulation Module) PWM binding. Signed-off-by: Anson Huang --- Changes since V5: - improve compatible string; - change #pwm-cells to 3; - "pwm" -> "PWM"; --- .../devicetree/bindings/pwm/imx-tpm-pwm.txt | 22 ++++++++++++++++++= ++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt diff --git a/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt b/Docume= ntation/devicetree/bindings/pwm/imx-tpm-pwm.txt new file mode 100644 index 0000000..94f1ad5 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/imx-tpm-pwm.txt @@ -0,0 +1,22 @@ +Freescale i.MX TPM PWM controller + +Required properties: +- compatible : Should be "fsl,imx-tpm". +- reg: Physical base address and length of the controller's registers. +- #pwm-cells: Should be 3. 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. + +Note: The TPM counter and period counter are shared between multiple chann= els, so all channels +should use same period setting. + +Example: + +pwm0: tpm@40250000 { + compatible =3D "fsl,imx-tpm"; + reg =3D <0x40250000 0x1000>; + assigned-clocks =3D <&clks IMX7ULP_CLK_LPTPM4>; + assigned-clock-parents =3D <&clks IMX7ULP_CLK_SOSC_BUS_CLK>; + clocks =3D <&clks IMX7ULP_CLK_LPTPM4>; + #pwm-cells =3D <3>; +}; --=20 2.7.4