Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2482869imm; Mon, 24 Sep 2018 05:15:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV60kIGyU+iWelnY2VhHJg0iqQWrrpHvuIvH2Ir4wWqs5tYAiP5dN0YTxvzVuo2fAfG601EPB X-Received: by 2002:a63:6d83:: with SMTP id i125-v6mr9226939pgc.215.1537791352347; Mon, 24 Sep 2018 05:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537791352; cv=none; d=google.com; s=arc-20160816; b=OHCTyOHNzRvwdPCNZGQk77qVvfSLR5Dul/h1QWI1mFPclVpvny9bkQQsd962LaRNd7 ptW1EDSSXidXmh5I1zSy31/MjXsj/aCHihvGpB3ck/eioiL+GeaiokYhm5kmWsI4Bfya mk6eq9wArhXFXMWqJ8Ycgtl0zFcp0uBU0tJBeTevP0SJfMrZudk2fqjVEtDieooCdJn4 NREVaDXj3vVLw4b10hjt0fSQf582/fWWdLvNeHCgerzWMKrDkmEwOzLsi+b5JcgOR8Yv slVWrDR0fvEACwr9QGCsySJa+5jF4tf0p95ogDM0wZpFaZswJgJ8jeclG/slqfRGAfHP 6rFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ENZf9WlZ9JcmInlc9Gwfp+dVJ9b/6YqEJuylq7nmdis=; b=l1PjmPJhqNTUgOF5HIOUrKP29POvn+1sboA+4TYzgjoMrFLAhnpmJvJWvuvCd5QZPt wVKLvy9UtEYEmwk+3Sa4369775Jz6QKkxWIMf4L1L5nBi/bR7nj0e7VOB4SCaPAvezGM dDRhiG+dd2n3KSYJ769nGBlbkK3QehxjXLB458e0AgUW9vyjKVwwrjfhE7P995hVENCe sJO+e9nVza4QZ/7df/lXiPyMnc28G99sK83ASvGtItd/jfZyJcq08mkj/aPIdd0SNQ2J VR29KmgB09LP/ucVWhYCQ94cqbg33iEQJc2bxGMLHtSiun6Vki7KRlbyuMrizH6Yb5fT IDhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=h+zPrCFH; 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 s130-v6si3555168pfc.81.2018.09.24.05.15.36; Mon, 24 Sep 2018 05:15:52 -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=h+zPrCFH; 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 S1731872AbeIXSQ1 (ORCPT + 99 others); Mon, 24 Sep 2018 14:16:27 -0400 Received: from mail-eopbgr40089.outbound.protection.outlook.com ([40.107.4.89]:49822 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731803AbeIXSQ0 (ORCPT ); Mon, 24 Sep 2018 14:16:26 -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=ENZf9WlZ9JcmInlc9Gwfp+dVJ9b/6YqEJuylq7nmdis=; b=h+zPrCFHgHiVXSGCLC8ZTqTaVOea0DD5Q8MfY3B+drXIkPRYq0RtC2LU8nOHVSqNqa/pLJnf5yh5fwKySTqkO0kn3p/Z+1pQ6EQ+tKk+3YUVjpfnPUuuZoOOSz+cJnX6r+SKoDsRmGDWl7tbGhJC8mQ6mXg8XjK6UqqJ83yO6JQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=vabhav.sharma@nxp.com; Received: from uefi-OptiPlex-790.ap.freescale.net (14.143.30.134) by VI1PR04MB4798.eurprd04.prod.outlook.com (2603:10a6:803:53::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Mon, 24 Sep 2018 12:14:27 +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 Cc: linux@armlinux.org.uk, V.Sethi@nxp.com, udit.kumar@nxp.com, Yogesh Gaur , Tang Yuantian , Vabhav Sharma Subject: [PATCH v3 4/6] drivers: clk-qoriq: Add clockgen support for lx2160a Date: Mon, 24 Sep 2018 05:38:59 +0530 Message-Id: <1537747741-6245-5-git-send-email-vabhav.sharma@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1537747741-6245-1-git-send-email-vabhav.sharma@nxp.com> References: <1537747741-6245-1-git-send-email-vabhav.sharma@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0011.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::21) To VI1PR04MB4798.eurprd04.prod.outlook.com (2603:10a6:803:53::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dc7a5141-5ccd-4f9b-6c23-08d6221748d2 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB4798; X-Microsoft-Exchange-Diagnostics: 1;VI1PR04MB4798;3:U+mxarV0zakVBtJaqnhk426VgjVPKjMgvqBT4bkR7e756p6iIEjMolr/GRL4dxTu81/gJOozgpBX2D05mE+SdpBVgMOYn7mLM2N+NaG/5XajZYOOod3AgZZ/TMWBlt++j3GhXLFrepZMhDv+MPqe4KcAskvrvGk84e2qNT6YeSuPfAXZnZg08hWG4RFoOqlWChMprvTUlXisJH0lzMXfuzgSsfsRoAzQxhbAXA1eMDR64Hl7K1GJTpiyjeqv1SJY;25:vw/N0KcAhqrHjWlzBGk39RbliL7KzH58p+uz/XLXmIamZ6diSd+9K+xNYwxvAd6Dta4fHIObmveSQG5iZFW0LZlfnbPBoce1e+4N4p1IM1UrBUouyPq+4degFXns5CHVTo+MEtFwjpbfJqLEHvji2vbs1KGnLYOfTrBdv4KqYDjgnD5eMXIffsWY60oPOYtYLAK4wVOWeezYwjJkMgj0WnzqhK2jsiVUt6hUIeMMY/ZXpSJMX98EssIo0tFDXnlqPiPOBg3LaxNOB1wV7wCsDD2uXk+IbZ2gw2hXAvViutSxL3Crzc0UwTzenfpyk+7CJMncgxNwWFz7jWQC2TokTA==;31:9AMzQSksgsFNHNC6Sms9asNMjBmYwq3QXYj4lvAkH9pUDYUpXrVciYvLbRhnwoZc0nU3PftqFJccMzua1C6fSO/LhYyZ99NrcNVK7mNDq7v5agYE9g4lUZIxKGnqgRd9ZlrOqTtQI+E3scs3LXdaNMSwtX8ys2jeRh0eurSlcVP3+4XoE20SztyqzHQhbsq9Qr5MzBbwcvG4TM7wCt9+vFPvqT78EPvO5cGNDzXp+bU= X-MS-TrafficTypeDiagnostic: VI1PR04MB4798: X-Microsoft-Exchange-Diagnostics: 1;VI1PR04MB4798;20:oybqXRkN5F0UNtrJE+a5+GM80yptUaP8iY0ab9l9fDLSO7lKN/J1PqFLBNyDMXEeF0+eoT+9AU7H3427qDPvV2hmPQeiL3xhWfn1/ppfMtkLrOnoh+3E3kYbEe7yCg1QqG7g+kCcFdE9YMVJxA15IjSiqjG7itwNh7QWpAtmH8aJquxIfhueGjKBB0ET2rsnwGYyVsE9RfjJuYlsvjjbEvIkdIetRE2+TMr33F529AgRnWztUe6O3zAhDz2idKGP9Z9d6sa5CiKEl8r90GFosF388rTi7WlSTkbCzP9bt04YeJdG3wRvDYZl+aO43Uyj3//Sr0Z1a3DLJoVmHQnC+0nFpONlL1zgZgK0nqqc0pjXeWgKV6KzAVsX/254v3AeAUcc9X/EMF8lxbXa0kdpJ4nYuXNGk8TeYtWPHce2CRkmSo+uKlZjl1w2b4uD2avlkv1UaTC3PqItlBhnxpundHWJFwSfHtkzDMmbOM7dlf0FgwprnGpza/++ZVV/0yPR;4:jIallgblV2c7nD856WQDj0C6pGFcAoW9FCKVzbVdk6TIj15cCwQpl3P7q/DuYOwbQzyVUj2JWR18sqXzzb8XAKtpVMGxGmGeVi7oKOxgJiwfJlp8N52oeTRPQznEzJvMb8y1wNXJW3NgmP+erZKra7MVpMKaimumO/wbV+u+fdWSenF7hVpFMOjiYNEgrj47p3GPpzoxdik0qU8ASZf6sKw/gz1qMPZCICCaaWkJVKBsrW9XTiiXfEM4Yg0u1maaUxV+oGk8xRSxkjqO5+AxykYP718mgJf+T+KAqw1IHy9n5ZhmjlQdFAx5IRqxvxcB X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201708071742011)(7699051);SRVR:VI1PR04MB4798;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB4798; X-Forefront-PRVS: 0805EC9467 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(376002)(39860400002)(346002)(366004)(136003)(396003)(199004)(189003)(4326008)(97736004)(5660300001)(6512007)(48376002)(6506007)(86362001)(47776003)(53936002)(386003)(6666003)(25786009)(52116002)(76176011)(51416003)(956004)(50466002)(186003)(7736002)(54906003)(81166006)(16586007)(7416002)(486006)(36756003)(50226002)(6116002)(44832011)(68736007)(5009440100003)(26005)(446003)(305945005)(11346002)(16526019)(2906002)(66066001)(478600001)(106356001)(81156014)(105586002)(8936002)(2616005)(316002)(3846002)(476003)(8676002)(6486002)(110426005)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4798;H:uefi-OptiPlex-790.ap.freescale.net;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-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR04MB4798;23:eEZihD4JBmtA1A55HYMYfEHhyPKyJXjIoiMIei10A?= =?us-ascii?Q?ntlpUBzi/Sil7q/vzqQBES0fm0d7hqHasLONujnFY/qcZJYgW28TFX/2fceg?= =?us-ascii?Q?MJQbIJNKpETEyeEXDmLZ4to11+z6x6nvTqsCZAvrychZHaRZEpARac4GKEph?= =?us-ascii?Q?KOWHoprZubnHfojAIwnRlnapL3cWfbRfjSDtS4hT9PHnKyxWvlYVv44o3hVM?= =?us-ascii?Q?LTJ8bom1EhKZZAT6ZJ95pYh68fO0uduhnzB2TPGB6gTgpmV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TqEI7gLMa6VLBMx0DnfmUJ8r5ghADP1Nb5fCmOZMQ==;5:9e2irt7p1PlTE+F/sfLEI55Ljlh6A1uCTqg9ChWKtAbHP2uEOHbwgU8Fq8G7dRcUFd+WYdBISDBofkT0BBTvsPev8jYSzCjligpcte+qW3R/nUeR/cKp4HdbpEtnFIDcydBq6nunCmwvsYwpxCLO356ErJ3oGvsK2pit3dr0Szk=;7:HXhw22Dz7olC+kStbmeKTsmR1cy/3QMTbd2X560cMP5jJp+KSL0S2XthNs2z92tO+lq+erHZKVZ3XRUIdSlOLvo+RqSg1cCiyFHRNaxKpPMaVkL3aZJZ+JRYzOP9LfckehWGeV6YEVrdMh3pgQx0jwk+uv/xn1GSc2NU279NS7mdhrKfnVkc3uXGA9I6KDkQYX+sOmcTSRTIWWMAn9Y8QUB7F+XUwJdcwhhyq7UmWlhBZHQ1TaxH+67JZz5PQiN3 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2018 12:14:27.5688 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dc7a5141-5ccd-4f9b-6c23-08d6221748d2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4798 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 --- 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 e152bfb..99675de 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, @@ -1424,6 +1435,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); /* Legacy nodes */ CLK_OF_DECLARE(qoriq_sysclk_1, "fsl,qoriq-sysclk-1.0", sysclk_init); diff --git a/drivers/cpufreq/qoriq-cpufreq.c b/drivers/cpufreq/qoriq-cpufreq.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[] __initconst = { { .compatible = "fsl,ls1046a-clockgen", }, { .compatible = "fsl,ls1088a-clockgen", }, { .compatible = "fsl,ls2080a-clockgen", }, + { .compatible = "fsl,lx2160a-clockgen", }, { .compatible = "fsl,p4080-clockgen", }, { .compatible = "fsl,qoriq-clockgen-1.0", }, { .compatible = "fsl,qoriq-clockgen-2.0", }, -- 2.7.4