Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp410817img; Tue, 26 Feb 2019 02:13:10 -0800 (PST) X-Google-Smtp-Source: AHgI3IaIifZzMoJ5T8x5IzpkOILinRyUWzG3Ur+i6PaYlS3e1tGInl94MZZ76/l6FY3Tn+7oAlYX X-Received: by 2002:aa7:8243:: with SMTP id e3mr11035423pfn.40.1551175990230; Tue, 26 Feb 2019 02:13:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551175990; cv=none; d=google.com; s=arc-20160816; b=h8Lwmn6vZCecyBGuuU0Oq12lwNq7gEw/I0dS0aLnbT7/bQSxFyIj+eyDMcBSz3d8Oa AhooRWA4Ls8SyhjqcBPo+jXH8g847fI60BUCJ4onPM/YhQPymdWg9+0SbbEK22YkTKlZ obyqlsXWq7JYeM1SBGiuwh9KNYYdO8nDKWoKmUA80BD5IwTWVHngKshNrtBHQp0pBm1s yfTiDsEWG1Kw7aplN3iWsrAbSi7Prs+pWEStE/WcitWo9RO30v5yNv4sZhh+ZCbiYDs2 wWo8AczWO9FkKdNcdaoOjw2aw0s7ZYaIaOs99IcMsyfaf0mzVRRHTMLxpBUJ5QUeLOuR eXKg== 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=Z6yx9+XmqFPikl/HnGKaf00f5Dt+SvH1gw7tqvo/SxY=; b=e7ORbnhW+V7e+C4GaYINOLZYZZ9gD031RYoTmt2Hr/0siV1TTQL6eF+dCDPbDio4Hh TXF6IYkWdkqXzGDekpjY2WSQZGEkkylCr1yCLk6cZrseeQU3reEhc2m+SlaJAxY6x9TK 7TrFBDDdzVdEXJ7onXRF5dz+F6DVu9i3RnOpneZppfw6Ns4IQfwIWIL8oycHPd7pa/i+ aIkyOBfQO7L7hxICH4O83N+Oa/imln6SxLablDXjjfk6pO4wskhKYOKjjLHPR6giTymb Juy/77HuppNp8YuCHke7EqWT28M15I8kh1M3VgR3c2culsImEtu4tbmH9Tk6TCaZAL4t Zxkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=Aw7PpfGU; 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 d7si12407302pgb.116.2019.02.26.02.12.55; Tue, 26 Feb 2019 02:13:10 -0800 (PST) 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=Aw7PpfGU; 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 S1727808AbfBZKLP (ORCPT + 99 others); Tue, 26 Feb 2019 05:11:15 -0500 Received: from mail-eopbgr00071.outbound.protection.outlook.com ([40.107.0.71]:35300 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725940AbfBZKLP (ORCPT ); Tue, 26 Feb 2019 05:11:15 -0500 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=Z6yx9+XmqFPikl/HnGKaf00f5Dt+SvH1gw7tqvo/SxY=; b=Aw7PpfGU0KjthGZMl3Gi5WSTtyULdxmUco6FGV3JuSmEkRj/WH3Y/gZpDsZz+3+6YSasPnZ07GiALNkbXsRshTRO2EzyAh6lSbZzAF+K8oQ6pi0z66NmSqvYIyNkTtrvNTeUhEQIZQHSlm0Gh4QAJ6JEZzQkSyX5ajY5zd7+x1Q= Received: from VI1PR04MB4800.eurprd04.prod.outlook.com (20.177.48.221) by VI1PR04MB5277.eurprd04.prod.outlook.com (20.177.51.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.15; Tue, 26 Feb 2019 10:11:08 +0000 Received: from VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::7437:2195:ffd3:a33a]) by VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::7437:2195:ffd3:a33a%5]) with mapi id 15.20.1643.019; Tue, 26 Feb 2019 10:11:08 +0000 From: Vabhav Sharma To: "sudeep.holla@arm.com" , "oss@buserror.net" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" , "mturquette@baylibre.com" , "sboyd@kernel.org" , "rjw@rjwysocki.net" , "viresh.kumar@linaro.org" , "linux-clk@vger.kernel.org" , "linux-pm@vger.kernel.org" , "linux-kernel-owner@vger.kernel.org" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "gregkh@linuxfoundation.org" , "arnd@arndb.de" , "kstewart@linuxfoundation.org" , "yamada.masahiro@socionext.com" , Leo Li , "shawnguo@kernel.org" CC: "linux@armlinux.org.uk" , "adrian.hunter@intel.com" , "ulf.hansson@linaro.org" , Yogesh Narayan Gaur , Andy Tang , Vabhav Sharma Subject: [PATCH v1 4/4] clk: qoriq: Add clockgen support for lx2160a Thread-Topic: [PATCH v1 4/4] clk: qoriq: Add clockgen support for lx2160a Thread-Index: AQHUzbuXu37W8f+1a0WjYnXw55qsUA== Date: Tue, 26 Feb 2019 10:11:08 +0000 Message-ID: <1551132245-6089-5-git-send-email-vabhav.sharma@nxp.com> References: <1551132245-6089-1-git-send-email-vabhav.sharma@nxp.com> In-Reply-To: <1551132245-6089-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: BMXPR01CA0011.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::21) To VI1PR04MB4800.eurprd04.prod.outlook.com (2603:10a6:803:53::29) 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.65] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5c12fabf-c1da-4a60-45a3-08d69bd2b974 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:VI1PR04MB5277; x-ms-traffictypediagnostic: VI1PR04MB5277: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;VI1PR04MB5277;23:SgYx5HX5dVEQmQxbXrmsPJJRryBsJkZmdVa/ePW?= =?iso-8859-1?Q?7RJLb1yCrrTA3/h4JLL5Uw0JoQ8JHs1Olkx4IXqZZIk6eCP2+2KC06QK9z?= =?iso-8859-1?Q?N51Vwd1lEcDfPfneCwluJ40IeHS+J1TppPgOPpNymH93t8j6SuRdx7WpsI?= =?iso-8859-1?Q?eZfNAp5LDl+gfys/Btwjbsn0yG5uQsShEfcZgFcEo6bw57mH1bS/v+OKs8?= =?iso-8859-1?Q?3NmbyUIfvxDjljdRVBbQA1ol5P97uSRshotDvybA7ghIQ2eTAdme8XomXb?= =?iso-8859-1?Q?nVaLiTbmNxd7+LO4qBDicJxMlSI+tybxf07Z48hwH8yA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75BJNpvYDabuZzFCkcmOdqL0eslZZsUiA?= =?iso-8859-1?Q?yBsbv+QlRgVVqWqRNMcQgJfAzu9n6jci4WjVc7xITr+RRptxRYvnRKnFsS?= =?iso-8859-1?Q?O11gAUYWhZkkmZxuMm6U2PKwhu2BILtPuVll1lLcm8jKg=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 096029FF66 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(136003)(366004)(39860400002)(376002)(396003)(189003)(199004)(81156014)(81166006)(6512007)(8676002)(386003)(52116002)(53936002)(76176011)(6506007)(26005)(6486002)(6436002)(4326008)(102836004)(36756003)(50226002)(25786009)(2501003)(99286004)(66066001)(8936002)(105586002)(14454004)(106356001)(2906002)(256004)(6116002)(3846002)(305945005)(478600001)(7736002)(486006)(86362001)(44832011)(11346002)(476003)(2616005)(446003)(7416002)(68736007)(5660300002)(71190400001)(71200400001)(316002)(2201001)(186003)(97736004)(110136005)(54906003)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB5277;H:VI1PR04MB4800.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A: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: RrOEwimNC0lzv2V3L7yH4eNc0iQw/iSfAXF/HpYnfsgtqUDz4EIou/HMtWFZF1Q8bpUKWUE6t95LwieM7UVMgdlZXZ5LykCbmreysh//VxZ6mDdbsx3AqCxaHG1tYzjlBwbJT076V74Aftb4OnHTDQRSysxF8jDn/3FZvSBqIohGbjgQGcrarZEAOijDeoTsrZyU8Pb/QfeGM113M9v2z7KMl9I9CTJpbihoOTkSr3pqiOPcG0gp2HQYls2ajpb5YgUB6Se0LbmA7fh3rbxAneeqlVRZkPnhwoVLYCeKn19nwpq7shzVJrJ0IyVag3l9zhQjfx5FOIf5DMvIMoGFiOgW6MxWFSlrhc+R4IW9AzyqDfJKyi+XNTrPii4yht0yrsaHhNxooLAT/3mYgeuZxMMZYEPAfcGnt2mW0fHQhzU= 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: 5c12fabf-c1da-4a60-45a3-08d69bd2b974 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Feb 2019 10:11:02.7292 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5277 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yogesh Gaur Add clockgen support for lx2160a. Added entry for compat 'fsl,lx2160a-clockgen'. Signed-off-by: Tang Yuantian Signed-off-by: Yogesh Gaur Signed-off-by: Vabhav Sharma Acked-by: Stephen Boyd Acked-by: Viresh Kumar --- drivers/clk/clk-qoriq.c | 12 ++++++++++++ drivers/cpufreq/qoriq-cpufreq.c | 1 + 2 files changed, 13 insertions(+) diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c index e75194a..288e8f0c 100644 --- a/drivers/clk/clk-qoriq.c +++ b/drivers/clk/clk-qoriq.c @@ -570,6 +570,17 @@ static const struct clockgen_chipinfo chipinfo[] =3D { .flags =3D CG_VER3 | CG_LITTLE_ENDIAN, }, { + .compat =3D "fsl,lx2160a-clockgen", + .cmux_groups =3D { + &clockgen2_cmux_cga12, &clockgen2_cmux_cgb + }, + .cmux_to_group =3D { + 0, 0, 0, 0, 1, 1, 1, 1, -1 + }, + .pll_mask =3D 0x37, + .flags =3D CG_VER3 | CG_LITTLE_ENDIAN, + }, + { .compat =3D "fsl,p2041-clockgen", .guts_compat =3D "fsl,qoriq-device-config-1.0", .init_periph =3D p2041_init_periph, @@ -1426,6 +1437,7 @@ CLK_OF_DECLARE(qoriq_clockgen_ls1043a, "fsl,ls1043a-c= lockgen", clockgen_init); CLK_OF_DECLARE(qoriq_clockgen_ls1046a, "fsl,ls1046a-clockgen", clockgen_in= it); CLK_OF_DECLARE(qoriq_clockgen_ls1088a, "fsl,ls1088a-clockgen", clockgen_in= it); CLK_OF_DECLARE(qoriq_clockgen_ls2080a, "fsl,ls2080a-clockgen", clockgen_in= it); +CLK_OF_DECLARE(qoriq_clockgen_lx2160a, "fsl,lx2160a-clockgen", clockgen_in= it); 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); diff --git a/drivers/cpufreq/qoriq-cpufreq.c b/drivers/cpufreq/qoriq-cpufre= q.c index 3d773f6..83921b7 100644 --- a/drivers/cpufreq/qoriq-cpufreq.c +++ b/drivers/cpufreq/qoriq-cpufreq.c @@ -295,6 +295,7 @@ static const struct of_device_id node_matches[] __initc= onst =3D { { .compatible =3D "fsl,ls1046a-clockgen", }, { .compatible =3D "fsl,ls1088a-clockgen", }, { .compatible =3D "fsl,ls2080a-clockgen", }, + { .compatible =3D "fsl,lx2160a-clockgen", }, { .compatible =3D "fsl,p4080-clockgen", }, { .compatible =3D "fsl,qoriq-clockgen-1.0", }, { .compatible =3D "fsl,qoriq-clockgen-2.0", }, --=20 2.7.4