Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3355690ybi; Tue, 2 Jul 2019 06:28:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbn6BuwldVstcM1okSfeXqKDTfMzKhPAbTO8vt6x4/avbiF/kAtF7TOM16BJd0kMBfWki8 X-Received: by 2002:a17:902:b944:: with SMTP id h4mr26804929pls.179.1562074134279; Tue, 02 Jul 2019 06:28:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562074134; cv=none; d=google.com; s=arc-20160816; b=ENEU2qSDRJMt7+uG67znzWX/qcMmbiG6Nusog+OI+88SXuvU1TfG5t4JBPEHvI8Eq+ l7aPsieBUR1txT3jIqKeKZqNOr1m9wxobJCQykKqfcUv7eF7yPItBaD5cBQXIuaBn8Me Aei75tcqJsEg7q3L8MHy3I9K26V487SL9+atKeDyzMVK7Q8242xDAKZ+8bKFGLw79hZl Pwqj7x4b+Cq7ri8UyMMMHpOrEMvyXH2fM9k/69Ojes8LzjJ1x4j5pXtFM31jvzXmtEBm JCdArTtN7c+TuJLRs3tr53fKI8Bc13DxqJVTYDC95cR/c6PcpuNzCW+yCyg8muYqadSS GpqQ== 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-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=v2sFENHdro1MQTXqOLxcQZM7uadcKrlVA7327KPnKy8=; b=Nw64bfbHsj06GuYlIGVAW1jma79au5vZ96T05VmT1XWrQGFyXE0ft360vnaLnecL6k PI84H3zIscURJlJLRwUboKMBSLnUpWgjtBJNSxGmZBs8zoNGANNjMgvOBQCVoSrXZD44 1D9ntEDbPTzt7V3AfI2IW8ZyAU1MwawTWYZXhjz8dijwdFBvkb9adcQeMsyVCeZ6kYV1 wwxIb/9HLiGK3J3JXBCat1pyQmRL1Gw8B+aGvsTRdrqBNa4xaT0e9cPpXWnG/PB2ospy WhjU6yLl43DXb0+BIUCo4fYemt4Zt6X5/ZxAekXFHzXAx2QfRfo6B5NUeRvNvNfrhskr V4WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=D8MOWe75; 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 k12si12702823pgh.263.2019.07.02.06.28.39; Tue, 02 Jul 2019 06:28:54 -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=selector2 header.b=D8MOWe75; 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 S1727049AbfGBN0x (ORCPT + 99 others); Tue, 2 Jul 2019 09:26:53 -0400 Received: from mail-eopbgr50048.outbound.protection.outlook.com ([40.107.5.48]:47843 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725922AbfGBN0x (ORCPT ); Tue, 2 Jul 2019 09:26:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v2sFENHdro1MQTXqOLxcQZM7uadcKrlVA7327KPnKy8=; b=D8MOWe75Gg396a87xkE+jVreyCrky+hZrqkIWwCMXflSOEQfl6nJd6Iqd+jhWq0se5S1+gfyPeSq2UCJFPzeNt77Wtn6vh41W0igo2x6dgeizHz1O/Pin72iZ0ItQ+qCs1f+nl0rAVxNMbSF1kWC9W8JekPaYt4CdFZxAP+o2xQ= Received: from AM0PR04MB5779.eurprd04.prod.outlook.com (20.178.202.151) by AM0PR04MB4531.eurprd04.prod.outlook.com (52.135.148.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.20; Tue, 2 Jul 2019 13:26:48 +0000 Received: from AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::a126:d121:200:367]) by AM0PR04MB5779.eurprd04.prod.outlook.com ([fe80::a126:d121:200:367%7]) with mapi id 15.20.2032.019; Tue, 2 Jul 2019 13:26:48 +0000 From: Abel Vesa To: Daniel Baluta CC: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Fabio Estevam , Anson Huang , dl-linux-imx , Lucas Stach , Devicetree List , linux-arm-kernel , Linux Kernel Mailing List , Daniel Baluta Subject: Re: [PATCH] arm64: dts: imx8mm: Init rates and parents configs for clocks Thread-Topic: [PATCH] arm64: dts: imx8mm: Init rates and parents configs for clocks Thread-Index: AQHVK1megDe+rycO90eH0dSjd64Cw6at402AgAl5mIA= Date: Tue, 2 Jul 2019 13:26:48 +0000 Message-ID: <20190702132647.3kyfl5gx6ghdiizl@fsr-ub1664-175> References: <1561469191-26840-1-git-send-email-abel.vesa@nxp.com> In-Reply-To: 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=abel.vesa@nxp.com; x-originating-ip: [89.37.124.34] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 77343d10-fe6e-438a-80e3-08d6fef0efd2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:AM0PR04MB4531; x-ms-traffictypediagnostic: AM0PR04MB4531: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 008663486A x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(7916004)(4636009)(346002)(396003)(39860400002)(136003)(376002)(366004)(199004)(189003)(53546011)(6506007)(26005)(186003)(6116002)(7736002)(68736007)(3846002)(8676002)(256004)(14454004)(33716001)(102836004)(71190400001)(8936002)(305945005)(81156014)(1076003)(5660300002)(9686003)(53936002)(86362001)(229853002)(6512007)(6486002)(6916009)(316002)(71200400001)(6436002)(81166006)(66946007)(486006)(73956011)(446003)(66556008)(76116006)(476003)(66476007)(64756008)(66446008)(44832011)(11346002)(25786009)(6246003)(91956017)(54906003)(4326008)(99286004)(76176011)(66066001)(2906002)(478600001)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4531;H:AM0PR04MB5779.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: Y82NC/1iNxbPUm6T8qHBDPTmf6UGQp7cXiJgEic32ZXB7yDzTTt33gJyr/RtR/R/o0tJZ3S51I7urpLcgPruGVWvM7lOsu3z1YnK15+APC0HiZ0nytzxnyhO8ldmlCLkUVVysbvTCUSWmFWVz/hsNaEsmP132QpRz6DX5+p25sVUo/dYfxpiCnMvU8pgFQrxawe4kwYW40jfF8QpGFTy8+/baVOxm3ZjyoQnHLRVeLwtKvePv+nigKkdO65I5QuvQYWGZNvE9+d6QzQ5DOQLj2r1MOd8Yh++LnXD+OowbgtFnp5elWNn8P3u0BLbuXDJlYnekzmNcdr/T/ptaacn9ALRppAgxcJkSIdHAR5oIVFwCFujXJcz47YWyPLmKTXld0sXvvZmn3tevK7RzN2/BaTg7wsnL2JhzcIonO2ynaE= Content-Type: text/plain; charset="us-ascii" Content-ID: <68D9BFBA281D044CB62C7880411AF8C1@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 77343d10-fe6e-438a-80e3-08d6fef0efd2 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2019 13:26:48.7840 (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-CrossTenant-userprincipalname: abel.vesa@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4531 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-06-26 15:45:15, Daniel Baluta wrote: > On Tue, Jun 25, 2019 at 4:42 PM Abel Vesa wrote: > > > > Add the initial configuration for clocks that need default parent and r= ate > > setting. This is based on the vendor tree clock provider parents and ra= tes > > configuration except this is doing the setup in dts rather than using c= lock > > consumer API in a clock provider driver. > > > > Signed-off-by: Abel Vesa > > --- > > arch/arm64/boot/dts/freescale/imx8mm.dtsi | 36 +++++++++++++++++++++++= ++++++++ > > 1 file changed, 36 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boo= t/dts/freescale/imx8mm.dtsi > > index 232a741..ab92108 100644 > > --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi > > +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi > > @@ -451,6 +451,42 @@ > > <&clk_ext3>, <&clk_ext4>; > > clock-names =3D "osc_32k", "osc_24m", "= clk_ext1", "clk_ext2", > > "clk_ext3", "clk_ext4"; > > + assigned-clocks =3D <&clk IMX8MM_CLK_AU= DIO_AHB>, > > + <&clk IMX8MM_CLK_IPG_AU= DIO_ROOT>, > > + <&clk IMX8MM_SYS_PLL3>, > > + <&clk IMX8MM_VIDEO_PLL1= >, > > + <&clk IMX8MM_CLK_NOC>, > > + <&clk IMX8MM_CLK_PCIE1_= CTRL>, > > + <&clk IMX8MM_CLK_PCIE1_= PHY>, > > + <&clk IMX8MM_CLK_CSI1_C= ORE>, > > + <&clk IMX8MM_CLK_CSI1_P= HY_REF>, > > + <&clk IMX8MM_CLK_CSI1_E= SC>, > > + <&clk IMX8MM_CLK_DISP_A= XI>, > > + <&clk IMX8MM_CLK_DISP_A= PB>; > > + assigned-clock-parents =3D <&clk IMX8MM= _SYS_PLL1_800M>, > > + <0>, > Isn't there a macro for 0? (dummy clock?) I don't know about any such macro. If you're referring to IMX8MM_CLK_DUMMY, that can't be used here since all I want here is to skip setting a parent t= o the IMX8MM_CLK_IPG_AUDIO_ROOT. If I use IMX8MM_CLK_DUMMY (along with &clk) it will set the parent to IMX8MM_CLK_DUMMY and that's not what's needed her= e. This is in accordance to the documentation: Documentation/devicetree/bindings/clock/clock-bindings.txt: "To skip setting parent or rate of a clock its corresponding entry should b= e set to 0, or can be omitted if it is not followed by any non-zero entry." >=20 >=20 > > + <0>, > > + <0>, > > + <&clk IMX8MM_SYS_PLL3_O= UT>, > > + <&clk IMX8MM_SYS_PLL2_2= 50M>, > > + <&clk IMX8MM_SYS_PLL2_1= 00M>, > > + <&clk IMX8MM_SYS_PLL2_1= 000M>, > > + <&clk IMX8MM_SYS_PLL2_1= 000M>, > > + <&clk IMX8MM_SYS_PLL1_8= 00M>, > > + <&clk IMX8MM_SYS_PLL2_1= 000M>, > > + <&clk IMX8MM_SYS_PLL1_8= 00M>; > > + assigned-clock-rates =3D <400000000>, > > + <400000000>, > > + <750000000>, > > + <594000000>, > > + <0>, > > + <0>, > > + <0>, > > + <0>, > > + <0>, > > + <0>, > > + <500000000>, > > + <200000000>; > > }; > > > > src: reset-controller@30390000 { > > -- > > 2.7.4 > >=