Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754064AbeAICVE (ORCPT + 1 other); Mon, 8 Jan 2018 21:21:04 -0500 Received: from mail-ve1eur01on0056.outbound.protection.outlook.com ([104.47.1.56]:22767 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751770AbeAICVC (ORCPT ); Mon, 8 Jan 2018 21:21:02 -0500 From: Anson Huang To: Dong Aisheng CC: "linux-arm-kernel@lists.infradead.org" , "linux-clk@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , dl-linux-imx , "shawnguo@kernel.org" , "kernel@pengutronix.de" , Fabio Estevam , "mturquette@baylibre.com" , "sboyd@codeaurora.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "stefan@agner.ch" , "linux@armlinux.org.uk" Subject: RE: [PATCH 2/2] ARM: dts: imx7s: add snvs rtc clock Thread-Topic: [PATCH 2/2] ARM: dts: imx7s: add snvs rtc clock Thread-Index: AQHThS3Y9bIa8/9eYEqrsAwwBdeG2qNpz3+AgAD70rCAAAo0AIAAALeg Date: Tue, 9 Jan 2018 02:20:57 +0000 Message-ID: References: <1515078402-22135-1-git-send-email-Anson.Huang@nxp.com> <1515078402-22135-2-git-send-email-Anson.Huang@nxp.com> <20180108103915.GD32635@b29396-OptiPlex-7040> <20180109021704.GG32635@b29396-OptiPlex-7040> In-Reply-To: <20180109021704.GG32635@b29396-OptiPlex-7040> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-originating-ip: [199.59.231.64] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0401MB2637;7:weObLYa4kqjfRVzm3eKn2Nn/30oP3lj5Xy1DQnJl5ayL2MZNaJ7H1v3ueZFt6QwIGNAKjee0o2ek2jazOC6SjSFdVKKlmjQQdsvHQXsqmfMovlD/w/Il7pukvaRSD0sD4nvVmEmxChI7WUgJUZBg6fpW+pbqcWW0wkauGdymMy3/vOeUT2VRJ0Wu+6ansUeNNTgsaLu5GkV5M/JysPEUGnkIgFwUzX9HwUGwtTwtWzDViYZXEy0sUUpAzB9rPJqc x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: eebf927c-cb11-455a-ede1-08d557079e32 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:VI1PR0401MB2637; x-ms-traffictypediagnostic: VI1PR0401MB2637: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(9452136761055)(189930954265078)(185117386973197)(85827821059158)(258649278758335)(45079756050767); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231023)(944501075)(6055026)(6041268)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:VI1PR0401MB2637;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:VI1PR0401MB2637; x-forefront-prvs: 0547116B72 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(39380400002)(366004)(346002)(39860400002)(396003)(24454002)(13464003)(199004)(377424004)(189003)(93886005)(478600001)(6506007)(3846002)(6116002)(2900100001)(53546011)(105586002)(7696005)(59450400001)(76176011)(106356001)(102836004)(8936002)(25786009)(54906003)(5250100002)(7416002)(53936002)(33656002)(74316002)(39060400002)(14454004)(99286004)(316002)(97736004)(6306002)(5660300001)(9686003)(6916009)(1411001)(68736007)(305945005)(2950100002)(81166006)(45080400002)(7736002)(6246003)(81156014)(6436002)(66066001)(3280700002)(4326008)(966005)(86362001)(3660700001)(229853002)(2906002)(55016002)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB2637;H:AM3PR04MB1315.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-microsoft-antispam-message-info: tYTPlltoFEaxLjdNm1tMRqig8luvSpm5jAxLlucGkzRC44OOekGZ8phx9ngDDwjL/0oqvr50oY6n2vJj/pXDpA== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: eebf927c-cb11-455a-ede1-08d557079e32 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2018 02:20:57.2067 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2637 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Best Regards! Anson Huang > -----Original Message----- > From: Dong Aisheng [mailto:dongas86@gmail.com] > Sent: 2018-01-09 10:17 AM > To: Anson Huang > Cc: linux-arm-kernel@lists.infradead.org; linux-clk@vger.kernel.org; linux- > kernel@vger.kernel.org; devicetree@vger.kernel.org; dl-linux-imx imx@nxp.com>; shawnguo@kernel.org; kernel@pengutronix.de; Fabio > Estevam ; mturquette@baylibre.com; > sboyd@codeaurora.org; robh+dt@kernel.org; mark.rutland@arm.com; > stefan@agner.ch; linux@armlinux.org.uk > Subject: Re: [PATCH 2/2] ARM: dts: imx7s: add snvs rtc clock > > On Tue, Jan 09, 2018 at 01:43:25AM +0000, Anson Huang wrote: > > > > > > Best Regards! > > Anson Huang > > > > > > > -----Original Message----- > > > From: Dong Aisheng [mailto:dongas86@gmail.com] > > > Sent: 2018-01-08 6:39 PM > > > To: Anson Huang > > > Cc: linux-arm-kernel@lists.infradead.org; linux-clk@vger.kernel.org; > > > linux- kernel@vger.kernel.org; devicetree@vger.kernel.org; > > > dl-linux-imx ; shawnguo@kernel.org; > > > kernel@pengutronix.de; Fabio Estevam ; > > > mturquette@baylibre.com; sboyd@codeaurora.org; robh+dt@kernel.org; > > > mark.rutland@arm.com; stefan@agner.ch; linux@armlinux.org.uk > > > Subject: Re: [PATCH 2/2] ARM: dts: imx7s: add snvs rtc clock > > > > > > On Thu, Jan 04, 2018 at 11:06:42PM +0800, Anson Huang wrote: > > > > Add i.MX7 SNVS RTC clock. > > > > > > > > Signed-off-by: Anson Huang > > > > > > If this clock IMX7D_SNVS_CLK is used for all SNVS sub modules, then > > > snvs_poweroff and snvs_pwrkey should also rely on it, right? > > > > > > How about add them all in one time? > > > > > > BTW, syscon-poweroff seems still not introduce clock support and > > > fsl,sec-v4.0- pwrkey also does not handle clock, they may need to be added > later. > > > > > > Regards > > > Dong Aisheng > > > > Yes, I thought about it before sending patch, but currently the > > poweroff and pwrkey driver do NOT handle clocks, so I plan to add them later, > including handling clocks in driver and dtb. > > > > SNVS RTC binding doc does not claim a optional clock support, you probably > may need update the binding doc as well. > > BTW, Should mx6 platforms need the same fixes? > If yes, we'd better fix them all. I.MX6 platforms has no such SNVS CCGR clock gate, no need to change. OK, I will update the SNVS RTC binding doc and send out a V2 patch set. Anson. > > Regards > Dong Aisheng > > > Anson > > > > > > > > > --- > > > > arch/arm/boot/dts/imx7s.dtsi | 2 ++ > > > > 1 file changed, 2 insertions(+) > > > > > > > > diff --git a/arch/arm/boot/dts/imx7s.dtsi > > > > b/arch/arm/boot/dts/imx7s.dtsi index e718fd2..f9b97f3 100644 > > > > --- a/arch/arm/boot/dts/imx7s.dtsi > > > > +++ b/arch/arm/boot/dts/imx7s.dtsi > > > > @@ -534,6 +534,8 @@ > > > > offset = <0x34>; > > > > interrupts = > > IRQ_TYPE_LEVEL_HIGH>, > > > > > > IRQ_TYPE_LEVEL_HIGH>; > > > > + clocks = <&clks IMX7D_SNVS_CLK>; > > > > + clock-names = "snvs-rtc"; > > > > }; > > > > > > > > snvs_poweroff: snvs-poweroff { > > > > -- > > > > 1.9.1 > > > > > > > > -- > > > > To unsubscribe from this list: send the line "unsubscribe linux-clk" > > > > in the body of a message to majordomo@vger.kernel.org More > > > > majordomo info at > > > > https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2F > > > > vger > > > > .kernel.org%2Fmajordomo- > > > info.html&data=02%7C01%7CAnson.Huang%40nxp.com > > > > %7Cd10ff23b822b4cd16c2708d5568417c6%7C686ea1d3bc2b4c6fa92cd99c5 > c30 > > > 1635 > > > > %7C0%7C0%7C636510047707248763&sdata=FMx22hfKxs7YA%2F1zCVeYC > nVX > > > 9Ck4MmB9 > > > > GuolA51V2eg%3D&reserved=0