From patchwork Fri Apr 26 06:53:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vabhav Sharma X-Patchwork-Id: 10918407 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8498914D5 for ; Fri, 26 Apr 2019 06:53:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 748ED28AB0 for ; Fri, 26 Apr 2019 06:53:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6890628B22; Fri, 26 Apr 2019 06:53:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 022E628AB0 for ; Fri, 26 Apr 2019 06:53:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725996AbfDZGxm (ORCPT ); Fri, 26 Apr 2019 02:53:42 -0400 Received: from mail-eopbgr40045.outbound.protection.outlook.com ([40.107.4.45]:44771 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725893AbfDZGxm (ORCPT ); Fri, 26 Apr 2019 02:53:42 -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=WDYTaVAZSg7zapxRu1QeU8TgZlNrN8xGKGlOs6aQyl8=; b=H/hAgi6TIO66P1Wf0isQV/96efu2+O3Ww4A5bKniZkRi/hgVESOV+FQWVv+PevP6/fBoLoS+eGOUhe6EAR1zduapQiQ3gohFo4KrM0+0+XzBrY9bEO/sAmRVLvPjEtBnrec+zV8XwVokfFVznWSnRxCGPI+DE/PffWJ0wfl54Vs= Received: from AM6PR04MB4789.eurprd04.prod.outlook.com (20.177.32.218) by AM6PR04MB6294.eurprd04.prod.outlook.com (20.179.7.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.12; Fri, 26 Apr 2019 06:53:38 +0000 Received: from AM6PR04MB4789.eurprd04.prod.outlook.com ([fe80::2c:6837:2927:a618]) by AM6PR04MB4789.eurprd04.prod.outlook.com ([fe80::2c:6837:2927:a618%3]) with mapi id 15.20.1813.017; Fri, 26 Apr 2019 06:53:38 +0000 From: Vabhav Sharma To: "linux-kernel@vger.kernel.org" , "linux-clk@vger.kernel.org" CC: "sboyd@kernel.org" , "mturquette@baylibre.com" , Vabhav Sharma , Andy Tang , Yogesh Narayan Gaur Subject: [PATCH v4] clk: qoriq: add support for lx2160a Thread-Topic: [PATCH v4] clk: qoriq: add support for lx2160a Thread-Index: AQHU+/zGE8MPZcMnA0GP8h3OejDbYA== Date: Fri, 26 Apr 2019 06:53:38 +0000 Message-ID: <1556261624-20504-1-git-send-email-vabhav.sharma@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR0101CA0007.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::17) To AM6PR04MB4789.eurprd04.prod.outlook.com (2603:10a6:20b:3::26) authentication-results: spf=none (sender IP is ) smtp.mailfrom=vabhav.sharma@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.9.1 x-originating-ip: [92.120.1.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: adccf153-552e-4302-7f71-08d6ca13e8e4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:AM6PR04MB6294; x-ms-traffictypediagnostic: AM6PR04MB6294: x-microsoft-antispam-prvs: x-forefront-prvs: 001968DD50 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(396003)(39860400002)(346002)(366004)(136003)(199004)(189003)(68736007)(2501003)(81156014)(86362001)(2616005)(256004)(26005)(4326008)(486006)(316002)(44832011)(186003)(8676002)(476003)(66066001)(6506007)(386003)(6486002)(36756003)(2906002)(6436002)(6116002)(3846002)(478600001)(66476007)(102836004)(54906003)(99286004)(25786009)(73956011)(66946007)(5660300002)(66556008)(64756008)(66446008)(110136005)(7736002)(8936002)(6512007)(52116002)(305945005)(81166006)(71200400001)(50226002)(14454004)(53936002)(97736004)(71190400001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB6294;H:AM6PR04MB4789.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: K4VuOCJyX1JmJ0f57gzTAjH057Rd2anntePv/X0uJUzywUDfoYF/LybOqFEyl5NBSZF+mbcXHJa3krB2oKSbqDKGle9IozS0RIeqBlwLfRSt7dwwuXRPnrWD7ZFAX5k28rVLeOrnc39+i3pDmMAw+bbxVpoOJm8RjVQOVbiWSpfnmsVrh1Hum+O0JEDtnBylurG+YZ/f7BOtHOIxO4HpsFOgclUAmYF3l0qwMjdrRX6gAV5y2mWAgn27434SEyAilZgv/0wXK3iyygjOx7fSyPsDdTrfE3js62Yn8e53IQoo1Moz8dQ/QvvPpAyfrOaT8ciI2J4EN80r9leEp3rArIDBB3W2YpRVF5JEI0wOYp4mKr/ZuVQW3zM9mM1ugBGBipVkpVzT/3JclWoG6uaGMoAadmSZWC9F6oe5eThZprA= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: adccf153-552e-4302-7f71-08d6ca13e8e4 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2019 06:53:38.3584 (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: AM6PR04MB6294 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add clockgen support and configuration for NXP SoC lx2160a with compatible property as "fsl,lx2160a-clockgen". Signed-off-by: Tang Yuantian Signed-off-by: Yogesh Gaur Signed-off-by: Vabhav Sharma Acked-by: Scott Wood Acked-by: Stephen Boyd Acked-by: Viresh Kumar Acked-by: Scott Wood Acked-by: Stephen Boyd Acked-by: Viresh Kumar --- Changes for v4: - Incorporated review comments from Stephen Boyd Changes for v3: - Incorporated review comments of Rafael J. Wysocki - Updated commit message Changes for v2: - Subject line updated drivers/clk/clk-qoriq.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c index 3d51d7c..1a15201 100644 --- a/drivers/clk/clk-qoriq.c +++ b/drivers/clk/clk-qoriq.c @@ -570,6 +570,17 @@ static const struct clockgen_chipinfo chipinfo[] = { .flags = CG_VER3 | CG_LITTLE_ENDIAN, }, { + .compat = "fsl,lx2160a-clockgen", + .cmux_groups = { + &clockgen2_cmux_cga12, &clockgen2_cmux_cgb + }, + .cmux_to_group = { + 0, 0, 0, 0, 1, 1, 1, 1, -1 + }, + .pll_mask = 0x37, + .flags = CG_VER3 | CG_LITTLE_ENDIAN, + }, + { .compat = "fsl,p2041-clockgen", .guts_compat = "fsl,qoriq-device-config-1.0", .init_periph = p2041_init_periph, @@ -1427,6 +1438,7 @@ CLK_OF_DECLARE(qoriq_clockgen_ls1043a, "fsl,ls1043a-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_ls1046a, "fsl,ls1046a-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_ls1088a, "fsl,ls1088a-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_ls2080a, "fsl,ls2080a-clockgen", clockgen_init); +CLK_OF_DECLARE(qoriq_clockgen_lx2160a, "fsl,lx2160a-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_p2041, "fsl,p2041-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_p3041, "fsl,p3041-clockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_p4080, "fsl,p4080-clockgen", clockgen_init);