Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1100494img; Mon, 18 Mar 2019 23:51:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBJU4eDNn0pmbobZV2z1BKaTwY3goODJ1UJ4l7asF3+GPGWBXBX4RG8fZbHo/6Znh8zfHA X-Received: by 2002:a63:4f43:: with SMTP id p3mr399101pgl.207.1552978307233; Mon, 18 Mar 2019 23:51:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552978307; cv=none; d=google.com; s=arc-20160816; b=rh/kGMkcv4IR8hmTx/e2WGz2Ai3pEf6ePpIbI20YA8hgaXwgwzAAZ9BNowSjjISXFX Mu870a0cJp5GndzaBUFXiJmDxXs2j3T/d4mo+/bceqtUW0e99OvYq4+WSB4ZL/eQ4vC7 ndB/BPxuA8gvBp728kXxg83Uu4acSkO52UB3K6pq8gdB27pUGWHEI2xID1fxW/EZPI17 yi/mW+1MTYwWf1VCK5U6pn1HifOtknPpvwXGRMUFCTWepIvpueUsjsLGiSD/tycHbYL4 ZhuJBBx+N4kqik7+TTpHSdszHtmtint14uvb29zR0KB1HIjyV0pTrYbhaklSJrluxr6L WQdw== 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=SpkACA0L7frlxQM8bG7KE2jktMqhhcxK8nVbvVr8D6I=; b=AeFaiRrW5AfLtG8AXhxjven/SwportooBjP+fpwU0dhx/a2WWJqR5/o8MareWLjgB+ V6xq89X62ST5Lfm0Q6tDQ6j8TeWiMYSo1mLkHsmLM5aarfkxu8Khp7hyDNbfFRLkTlxo HhLAVQ/dB12UIDiRLEdUYDv4qza6W/Wn0f5jQd4w/CJ1mrz3/Aj9Ps8MLQf7E1Wyt1Fb 5eskywXAq+HK3Fz+wpCGrUYL6cnt0c9fub1sta/ZACr3s4U7szCx6LCmYlRU7tPcLPIH CzUKnrPBytrg4/lsc1SehmaXs0VMiAB16Fo6iBh1zvjK+hxAcNSt5/2Nsc78TRh10y27 tOYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=i2fphuwE; 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 u9si7201615pls.34.2019.03.18.23.51.32; Mon, 18 Mar 2019 23:51:47 -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=i2fphuwE; 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 S1727476AbfCSGuv (ORCPT + 99 others); Tue, 19 Mar 2019 02:50:51 -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 S1726232AbfCSGuu (ORCPT ); Tue, 19 Mar 2019 02:50:50 -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=SpkACA0L7frlxQM8bG7KE2jktMqhhcxK8nVbvVr8D6I=; b=i2fphuwEc8bMdDBIkXpqqXAfzqW349rioUFKsQbF2q8h0/IgsYeUBEl05lR1puHijlOJhy2LJBIer5RgprNDtzIygN4D72ZRj5wVinnzTWCw5N+zjBgYyz985I+G+3f6BTxqG5P6dWJqQMe+UyOVK3nXwRpfTF40E10nMxHXSnM= 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:36 +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:36 +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 4/5] ARM: dts: imx7ulp: Add pwm0 support Thread-Topic: [PATCH V6 4/5] ARM: dts: imx7ulp: Add pwm0 support Thread-Index: AQHU3iAIM+6v/EpQHU6qvziWi0cYLw== Date: Tue, 19 Mar 2019 06:50:26 +0000 Message-ID: <1552977898-5590-5-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: 6e5f0026-102d-46f2-40d8-08d6ac372aa5 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)(14444005)(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: HEAxRmhkMqkkETRCt43TmLEgABmazfNUKbmKj+AQUXEpb26ymUh5f7YXMkO5TIqItDpDOfuktdH4YAJ5CCzgGGLahvbzGifMoug5iujktq12GemxmJvRc55OIJcLoYknnnZTx6suOe8gFNOBlFCtm19lsWDjop3SVvcZT0nBPzWBhdzVuFiBLyNpOm0zF++duxlFOyWxInQwgd0req5Ef+KdzaX/j7sHmRephDFFGB0TYVFzK9/oPaxFyNykvJCCHb4NF8wmIKfvCCGUwqKu2xh10i1/H1vmMvVEV6oNPkevISVBUCeh6ynEmk7w3QarC7QAe3NsGWb0IvmCAgKxX3KyIGMTyXDx87uTUvS7jhW/uZrGOPyLO/aXKCwP6NXc+zIDcD9xFx8WmTeeKU0U0penX2zE2bCU9iDSrBsCNwY= 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: 6e5f0026-102d-46f2-40d8-08d6ac372aa5 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2019 06:50:26.0967 (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.MX7ULP EVK board PWM0 support. Signed-off-by: Anson Huang --- Changes since V5: - change #pwm-cells to 3. --- 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 eb349fd..15d04fb 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"; + 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 <3>; + status =3D "disabled"; + }; + tpm5: tpm@40260000 { compatible =3D "fsl,imx7ulp-tpm"; reg =3D <0x40260000 0x1000>; --=20 2.7.4