Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3566093imc; Wed, 13 Mar 2019 23:29:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLVmf+INmo9c07ZERqCQlsjbPE1puMwQq/iqbq1SSclDUitf79NgNal4KR7dvN+QaH8vrW X-Received: by 2002:a17:902:6b03:: with SMTP id o3mr49522964plk.126.1552544962023; Wed, 13 Mar 2019 23:29:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552544962; cv=none; d=google.com; s=arc-20160816; b=GKnqDsrmy0GOXCmXoCUJCZAK/Wz3mEC0huKGBjaAkDCFt+aH8rUdbHX/q2HYyRt+Dl bjr35W+KcWFLK/wD+esWd4Ut8RypDcwE+Hz41WAlFJtRywjXITz94Ygr8cMuYYDSPdV2 /j32EB03Ndbn6lwTWrNH7eCYjVVUYne6t21APk6fSV4MPK/nkH2LEad9I5TSERFHyvCk a75j1R7zWVPTX4PEPuoRvJe9ajXXr7uDHvQmD2jhRapbLLXiHlFCeaSEQ8dDEkhG3VBg vKRADQGMad17h81ZoW6seaRULcC0sJpqaCYx8/fnDX6SNphNYB5X8HEYlqXeH2mkjzIt MNWA== 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=zXkT/kkQ0EdtKoEgxYvQratI8JUciNaFVgbdQOQoYhY=; b=t7wiHLlIXXviCQpI7goNNzjnXClie+WmKLpdxfTlkMwJyLQ8g7YDlN0EAi0DlegjVb d3LodrST+QW/S6hCL4535Q9cd3AgMu7bpGsoaPNYvS+c6hZF/Wnzdr2UZ8yexNsYdoKt 3jiS+M8uSNmQ90rxQbiiIDPKCxKue8UXpbMxl/Bjs+pcua7MNfV9xMVL68qH4x/SIg5F ckjXZ9JT5NvEa/Rc+QkconSVLW7BsRkECbyorNHdAnZr6CDWgcHUArq2Ht86esjsHirW z3v0kT8EpdQ7xgDv9pf3rCoyk31gMq8rvQjWmXe7HsyVQnbYXVgjd0PVmR5ALfdogYUK qSAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=UjpHcGqq; 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 q189si12263687pgq.240.2019.03.13.23.29.07; Wed, 13 Mar 2019 23:29:22 -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=UjpHcGqq; 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 S1727239AbfCNG2J (ORCPT + 99 others); Thu, 14 Mar 2019 02:28:09 -0400 Received: from mail-eopbgr130045.outbound.protection.outlook.com ([40.107.13.45]:6118 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727076AbfCNG2F (ORCPT ); Thu, 14 Mar 2019 02:28:05 -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=zXkT/kkQ0EdtKoEgxYvQratI8JUciNaFVgbdQOQoYhY=; b=UjpHcGqqB2hnvOzFsBB7NYHh0Vg892DQj3J512Va4uTHYtVX6BuTaBC6wDNM+yF0wEFHCgVPvWVaRdLOdgLrOpOf6hQeIOdE/uuDh5Ws3da+qwYrUY9Afm7KeWjRbreoLdJ3LdvjmgJN6G24tjWLvTsW/xthmVRGQE8xFPP8dpg= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3707.eurprd04.prod.outlook.com (52.134.65.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.18; Thu, 14 Mar 2019 06:27:32 +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.011; Thu, 14 Mar 2019 06:27:32 +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 V3 4/5] ARM: dts: imx7ulp: Add pwm0 support Thread-Topic: [PATCH V3 4/5] ARM: dts: imx7ulp: Add pwm0 support Thread-Index: AQHU2i8BvaANijVcvUeuH38EuLemKg== Date: Thu, 14 Mar 2019 06:27:32 +0000 Message-ID: <1552544534-5295-5-git-send-email-Anson.Huang@nxp.com> References: <1552544534-5295-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1552544534-5295-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: HK0PR03CA0031.apcprd03.prod.outlook.com (2603:1096:203:2f::19) 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: 380e14c2-9a6c-41d0-4509-08d6a846240c 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:DB3PR0402MB3707; x-ms-traffictypediagnostic: DB3PR0402MB3707: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;DB3PR0402MB3707;23:73tsYu31i8/r/MUNitvPEVNEKpXRLT+iDqt1/?= =?iso-8859-1?Q?c4NqgrlC1W5qcB7kanpx052zoZBqKT4+U+/T2VQGkmhlrLryCZFfjCLvIw?= =?iso-8859-1?Q?GiChcsotWlADqDrrf/LF3r1oQE71/Ja/L74LZFQOYIBJzuq+3ZsBmeMfe7?= =?iso-8859-1?Q?egx6nPoOfujTxxE0iLinewL/hTdvYW2Sj/FUDG6mKdoY6tEZG3G8PZO4sq?= =?iso-8859-1?Q?ArLlHlgzsmg71IegY7/BxnWpUvZiQKrS8ZsZZvYmTIzT5gmnb+LCkL6UAo?= =?iso-8859-1?Q?t8Ml58KKQV9czT+yCVd4DZACV3uv/8ZAT7kALD8daeDgIF+lHM2n7ctemE?= =?iso-8859-1?Q?64NzzcaF6XWvxC0vGXEXxsZk79r5PhfRKmOKgTnU1qroCpxQJRh0zu9bFg?= =?iso-8859-1?Q?vCdYhKYk88KyycuU0XcwE6O46l+Noo93afEXteXoctGNoPyuf9LYa2j7ir?= =?iso-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oft-antispam-prvs: x-forefront-prvs: 09760A0505 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(346002)(136003)(366004)(376002)(39860400002)(199004)(189003)(76176011)(478600001)(6436002)(26005)(97736004)(6506007)(476003)(7416002)(68736007)(8676002)(102836004)(386003)(446003)(81166006)(11346002)(81156014)(305945005)(486006)(14454004)(186003)(110136005)(2906002)(2616005)(106356001)(105586002)(7736002)(71190400001)(71200400001)(52116002)(316002)(2501003)(6116002)(3846002)(66066001)(14444005)(50226002)(4326008)(5660300002)(256004)(36756003)(99286004)(86362001)(8936002)(6486002)(2201001)(25786009)(6512007)(53936002)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3707;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: 3iwbZnNh1BN2Grm9+6CuD02RWm9jhFZs139FuwMORFQxfUCo7OrB4OS4Qt7bBI0UQqoAanZ+ZGipyenyRwM7jVKTPBKC29doOD/1GkmiUq7+VCmJf2BTCsPVDS/6tcViynKyprArPv+v/mXrBNvFCZilBle7y0Acy0tOO1dMoBb7lj2lPn39J13P/+Ibi/LqtG/vHWCZXPQdtEHsasgpv3YUiLTFAy6qzPKhV0vLS87sLwXBj4BhPvemE/cRmENE08TOHdZ6sDTfLWMYPJVkk4kyqhIduHGxuoucJG4l6L3UrdppoNCUo0UhwInnf8Gd9j7NRVY09AsQE310d65NgB9A8+PmG4Q8qsBGPWiow2HLLMFdlXan/8eEQlkIYMaMo7YjxZFuHhVxrGIcgwp9egcN1kVTfnTfCJEgd0yrxdU= 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: 380e14c2-9a6c-41d0-4509-08d6a846240c X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Mar 2019 06:27:32.7796 (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: DB3PR0402MB3707 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add i.MX7ULP EVK board PWM0 support. Signed-off-by: Anson Huang --- No changes since V2. --- arch/arm/boot/dts/imx7ulp-evk.dts | 12 ++++++++++++ arch/arm/boot/dts/imx7ulp.dtsi | 10 ++++++++++ 2 files changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-= evk.dts index a09026a..3f5ea18 100644 --- a/arch/arm/boot/dts/imx7ulp-evk.dts +++ b/arch/arm/boot/dts/imx7ulp-evk.dts @@ -40,6 +40,12 @@ status =3D "okay"; }; =20 +&pwm0 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_pwm0>; + status =3D "okay"; +}; + &usdhc0 { pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_usdhc0>; @@ -57,6 +63,12 @@ bias-pull-up; }; =20 + pinctrl_pwm0: pwm0grp { + fsl,pins =3D < + IMX7ULP_PAD_PTF2__TPM4_CH1 0x2 + >; + }; + pinctrl_usdhc0: usdhc0grp { fsl,pins =3D < IMX7ULP_PAD_PTD1__SDHC0_CMD 0x43 diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dts= i index fca6e50..6361c4e 100644 --- a/arch/arm/boot/dts/imx7ulp.dtsi +++ b/arch/arm/boot/dts/imx7ulp.dtsi @@ -124,6 +124,16 @@ status =3D "disabled"; }; =20 + pwm0: pwm@40250000 { + compatible =3D "fsl,imx-tpm-pwm"; + reg =3D <0x40250000 0x1000>; + assigned-clocks =3D <&pcc2 IMX7ULP_CLK_LPTPM4>; + assigned-clock-parents =3D <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>; + clocks =3D <&pcc2 IMX7ULP_CLK_LPTPM4>; + #pwm-cells =3D <2>; + status =3D "disabled"; + }; + tpm5: tpm@40260000 { compatible =3D "fsl,imx7ulp-tpm"; reg =3D <0x40260000 0x1000>; --=20 2.7.4