Received: by 10.192.165.148 with SMTP id m20csp1560708imm; Thu, 3 May 2018 01:16:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr8fk23dQq5qw6QBZgu0/31FdIUeb3elKPupRr7ZTQTAcUP1MhX0pqmzEPBW1AjJII7F+Id X-Received: by 2002:a17:902:5304:: with SMTP id b4-v6mr22487866pli.231.1525335360716; Thu, 03 May 2018 01:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525335360; cv=none; d=google.com; s=arc-20160816; b=obHcPq2iEzhq95GGU2oysZFXqk4kALYTb9tMNxjMtwa4xYwIBZGz05YU1i9aVUS2// GdqnDEDmF0RfL6/lPo2h/jyvkwGwf+bbHqug34pDUH5yi7Gt7Z+PMb0q61+pMxPfL9v/ geA+y2A6UxMrtbV+6wpMYbr945+ojZaSirWQI5YEcIWsq8s/OGXom7ReZbI0v2ARVqXL wrfMxBGx7JHe689WcYHFU68Q1ciSQvOOkX4d3FQgW8ll/LStEoc0TPRODl8SGPGWzZP7 GkG7MBA6LA3K/s8hh6gRBIJnBNo940XQlKI0YRSvWbAs7l3ICQJZjBHfnDaKHZ6P9uTM XtGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=lYu9tgQHQEMTSCphYpolLqXv9VYcIlht47PzYXE+h4Q=; b=P5KCDeE+129qyvVr6XRw7/BbvM5wB9ZVLDmoTcPHiULHOTdByDkJ41f7ODFsI1ceM/ t8HNdo4YeMHtG+3TukpSWAt/UwJ7SFRFu0BrThhwFNCA9wzxb4DnHNq2sJ86j+tI0ACL Qz4/aGpJO1Gk5KlWaARF2TTwCq0Q8UDlmNnj4KYAGbTaxu/KZQawmk5fvjnJUxUz1O3e Ay2wKNInr2QUYKJw2AwGD/S2/Zzu7b8tYUQe4jhL2EIj56Fbt1dEj/qbrzmgIyc6rBCF EcnQPFDJJwgGIHFZOCWAUP0ANWaIUQfoivRnIY9tTyzE/ZgnLTa/skDwvxo/jAUYfheW 7Xxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=mdaA2Jgz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12-v6si13659558plr.467.2018.05.03.01.15.46; Thu, 03 May 2018 01:16:00 -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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=mdaA2Jgz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751188AbeECIPc (ORCPT + 99 others); Thu, 3 May 2018 04:15:32 -0400 Received: from mail-by2nam01on0078.outbound.protection.outlook.com ([104.47.34.78]:27040 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750999AbeECIP2 (ORCPT ); Thu, 3 May 2018 04:15:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=lYu9tgQHQEMTSCphYpolLqXv9VYcIlht47PzYXE+h4Q=; b=mdaA2Jgzopi4ouQ32+dip5jx0L6KaD1wnfhEyVW/LswNCySPi2KBcWlgcch4fcQSB0hwm0rI4qq2y74vQXIUujKZOJD977Ix0ZIrebnRq5Q315kl7FCgO7ohkyvskgKZmmt2IoxiEJZPKoiLkrOOn45dyXOBMDMSWPxlto9C3lY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Akshu.Agrawal@amd.com; Received: from [10.136.128.133] (202.56.249.162) by BL0PR12MB2355.namprd12.prod.outlook.com (2603:10b6:207:4c::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.18; Thu, 3 May 2018 08:15:22 +0000 Subject: Re: [PATCH] clk: x86: Add ST oscout platform clock To: Stephen Boyd Cc: djkurtz@chromium.org, Alexander.Deucher@amd.com, Michael Turquette , =?UTF-8?Q?Christian_K=c3=b6nig?= , Dave Airlie , Shaoyun Liu , open list , "open list:COMMON CLK FRAMEWORK" References: <1525072055-17898-1-git-send-email-akshu.agrawal@amd.com> <152521188500.138124.10561048787941050422@swboyd.mtv.corp.google.com> From: "Agrawal, Akshu" Message-ID: Date: Thu, 3 May 2018 13:45:05 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <152521188500.138124.10561048787941050422@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [202.56.249.162] X-ClientProxiedBy: BM1PR0101CA0029.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::15) To BL0PR12MB2355.namprd12.prod.outlook.com (2603:10b6:207:4c::33) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:BL0PR12MB2355; X-Microsoft-Exchange-Diagnostics: 1;BL0PR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ybbeuFOSzRCnIMdY2rKqwIjnLVXUyqu0KJGzL2nVe/OpzEj3ojYTzyYdKfuIf4V5rSbfpA4N3u4RVDoWN1p1aWeje1qJ/wgCvz33lwrjsnJZi93YTe+UY+3eCr/dbLaJARxattcIWZvEz0OeEfoopRMGNaxR8B0BgwdmgKyWCdYFul+oD/e+yBDrLT8lX67N4Ghy75jkY2TOmpM2SZ59vPK6iax1FixaT3A3z+Bfl726nYgEy649yXFJU5xPAqW86KHWUJ4tuOJh2B0agw5O/XmLQzEPj/xS9JX8RRjC0HpU5RCRW2gnrABBJbwEqLDgvLq0Yhk6YEBqdzUoOR95zzLUe79uFT69HWrdSKHTYyj;4:arNDFGkLIw52sb7jRcrTylD+0RxXFCdZ3Inn0QTDKYCOe99M13N0AFJ/bJYinAr2vP8W7VQApdWDJfFigUAoCg9E73UA8aoxOpfqisb8iCT53eKD9lh9YmmpwfB0yv6qiVp3sPlIPKfipG9FsdQQj4r2Ah90PhIm4MhNh9I7ZHQLWJfF1i3G4tGKZQZaU7M422K6za30CtGQ21bbKIpc0HYP8oT35KxlD/rwVYnBedwEoOBPLuCLr7kpzSqHgSLvRTwWTLe9JVG+FFG36LtXFw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(6072148)(201708071742011);SRVR:BL0PR12MB2355;BCL:0;PCL:0;RULEID:;SRVR:BL0PR12MB2355; X-Forefront-PRVS: 066153096A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(366004)(346002)(39860400002)(376002)(39380400002)(396003)(199004)(377424004)(189003)(47776003)(52116002)(16526019)(575784001)(5660300001)(31696002)(86362001)(50466002)(53936002)(2906002)(16576012)(6666003)(54906003)(25786009)(316002)(3260700006)(58126008)(68736007)(6486002)(6116002)(77096007)(186003)(64126003)(386003)(11346002)(305945005)(65826007)(4326008)(2616005)(26005)(486006)(229853002)(3846002)(6246003)(7736002)(956004)(476003)(6916009)(446003)(65806001)(31686004)(230700001)(36756003)(72206003)(59450400001)(8676002)(97736004)(23676004)(65956001)(53546011)(8936002)(2486003)(67846002)(81156014)(106356001)(66066001)(52146003)(478600001)(105586002)(81166006)(76176011);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR12MB2355;H:[10.136.128.133];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTDBQUjEyTUIyMzU1OzIzOnRXbjZtclVnRW91cnNFUFN3OXFzZVJ0TmVy?= =?utf-8?B?ZFZsS0ZITnVZVWQxeUFFeWc4ako0cjZjVEs3UmlWOXE5WW5FYWozNWtCZndh?= =?utf-8?B?RVpoOTdiOWJjb2tDTk8xT2JBMFBCVHI3MktWcTFsOUZjSmVhcFVQTzd3Tkxy?= =?utf-8?B?UnV4V3l5d25ZY3VGeXlid2VmaTZKSWFTMjQ5dnhhUk5WN0pnNjh3STB1RkNZ?= =?utf-8?B?MzEwWU9wbHcyT09lU3MwYTU4bnBmcncwK09Ody9sanh6L0lmYzNseTBVWDhD?= =?utf-8?B?ZHdZOU4wNXFTeXFtN0hlb1YvKzlOVlRjT2tjSFJ4SnRQR3FPRVc4NXRZRFhq?= =?utf-8?B?djdLSG1LdW9mTXFzb0dmUlZpL2FJL1ZEMXVoNzhHY3VBM2FPZmRhd0hEY0E5?= =?utf-8?B?UFk2ZTRSYWFpeXMvc0c0cWxyWDlDMHB5anV3dFVlRTJhZEE4Q09SWFNFSk5I?= =?utf-8?B?SkVreWhNZ0RXNG4zbWo3b24rT0VjQ2hJM1VnbEF5RG1PWmR5K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Iz3xnwp70J1S59ZRy3HkmtU9CnGiMbseTm/tauh8Fg+lqcPLbRlskvyLmBkmD82oNpow0z8QOmb4jEi2O6;20:+JmamiUxOeu4BU2ora9gQB0Rk4kN8cDyWO04XlMKQX2byP5ya80UqLP6GVwTUWFbdFYROgHGJ18QcYyhInUxhUWGp+ibb4ZDSq7zqFd1SJdXTpsEDDe11oeMN+VU6fjc2aL7dWrA3LwO0TuCFyrYBSpcw+lgKBolMRYVS1a/1mJ0BsgEYpMKxjoq95cVPuP1qpK3bRiB7gV3mQLXU6HNwz0mCEkyaVHmDfD13ldVBgh8vyJtwstEzkeNIKbWfAdt X-MS-Office365-Filtering-Correlation-Id: 904ed895-a1ef-4c33-d0d8-08d5b0ce05d6 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2018 08:15:22.5664 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 904ed895-a1ef-4c33-d0d8-08d5b0ce05d6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB2355 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/2/2018 3:28 AM, Stephen Boyd wrote: > Quoting Akshu Agrawal (2018-04-30 00:06:53) >> diff --git a/drivers/clk/x86/Makefile b/drivers/clk/x86/Makefile >> index 1367afb..f7ebae1 100644 >> --- a/drivers/clk/x86/Makefile >> +++ b/drivers/clk/x86/Makefile >> @@ -1,3 +1,4 @@ >> clk-x86-lpss-objs := clk-lpt.o >> obj-$(CONFIG_X86_INTEL_LPSS) += clk-x86-lpss.o >> obj-$(CONFIG_PMC_ATOM) += clk-pmc-atom.o >> +obj-$(CONFIG_X86) += clk-st.o > > No desire to make a Kconfig for this driver so it isn't included all the > time on x86 devices that don't have this hardware? > Accepted, will use AMD specific config. >> diff --git a/drivers/clk/x86/clk-st.c b/drivers/clk/x86/clk-st.c >> new file mode 100644 >> index 0000000..6ac0dc5 >> --- /dev/null >> +++ b/drivers/clk/x86/clk-st.c >> @@ -0,0 +1,80 @@ >> +/* >> + * clock framework for AMD Stoney based clocks >> + * >> + * Copyright 2018 Advanced Micro Devices, Inc. >> + * >> + * Permission is hereby granted, free of charge, to any person obtaining a >> + * copy of this software and associated documentation files (the "Software"), >> + * to deal in the Software without restriction, including without limitation >> + * the rights to use, copy, modify, merge, publish, distribute, sublicense, >> + * and/or sell copies of the Software, and to permit persons to whom the >> + * Software is furnished to do so, subject to the following conditions: >> + * >> + * The above copyright notice and this permission notice shall be included in >> + * all copies or substantial portions of the Software. >> + * >> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR >> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, >> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL >> + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR >> + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, >> + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR >> + * OTHER DEALINGS IN THE SOFTWARE. > > Can you use the SPDX tags here? > Accepted. Will add in v2. >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +/* Clock Driving Strength 2 register */ >> +#define CLKDRVSTR2 0x28 >> +/* Clock Control 1 register */ >> +#define MISCCLKCNTL1 0x40 >> +/* Auxiliary clock1 enable bit */ >> +#define OSCCLKENB 2 >> +/* 25Mhz auxiliary output clock freq bit */ >> +#define OSCOUT1CLK25MHZ 16 >> + >> +static const char * const clk_oscout1_parents[] = { "clk48MHz", "clk25MHz" }; >> + >> +static int st_clk_probe(struct platform_device *pdev) >> +{ >> + struct st_clk_data *st_data; >> + struct clk *clk_48m; >> + struct clk *clk_25m; >> + struct clk *clk_oscout1_mux; >> + struct clk *clk_oscout1; >> + >> + st_data = dev_get_platdata(&pdev->dev); >> + if (!st_data || !st_data->base) >> + return -EINVAL; >> + >> + clk_48m = clk_register_fixed_rate(NULL, "clk48MHz", NULL, 0, >> + 48000000); >> + clk_25m = clk_register_fixed_rate(NULL, "clk25MHz", NULL, 0, >> + 25000000); >> + >> + clk_oscout1_mux = clk_register_mux(NULL, "oscout1_mux", >> + clk_oscout1_parents, ARRAY_SIZE(clk_oscout1_parents), >> + 0, st_data->base + CLKDRVSTR2, OSCOUT1CLK25MHZ, 3, 0, NULL); >> + >> + clk_set_parent(clk_oscout1_mux, clk_25m); >> + >> + clk_oscout1 = clk_register_gate(NULL, "oscout1", "oscout1_mux", >> + 0, st_data->base + MISCCLKCNTL1, OSCCLKENB, >> + CLK_GATE_SET_TO_DISABLE, NULL); >> + >> + clk_register_clkdev(clk_oscout1, "oscout1", NULL); > > Can you use the clk_hw registration and clkdev APIs? It would mean that > clk_set_parent() call up above would still be needed but I guess that's > OK. We don't currently have a way for non-DT based drivers to configure > the parents of a clk when it's registered. > Accepted, Changing in v2 to use clk_hw_register_. >> + >> + return 0; >> +} >> + >> diff --git a/include/linux/platform_data/clk-st.h b/include/linux/platform_data/clk-st.h >> new file mode 100644 >> index 0000000..5ede980 >> --- /dev/null >> +++ b/include/linux/platform_data/clk-st.h >> @@ -0,0 +1,32 @@ >> +/* >> + * clock framework for AMD Stoney based clock >> + * >> + * Copyright 2018 Advanced Micro Devices, Inc. >> + * >> + * Permission is hereby granted, free of charge, to any person obtaining a >> + * copy of this software and associated documentation files (the "Software"), >> + * to deal in the Software without restriction, including without limitation >> + * the rights to use, copy, modify, merge, publish, distribute, sublicense, >> + * and/or sell copies of the Software, and to permit persons to whom the >> + * Software is furnished to do so, subject to the following conditions: >> + * >> + * The above copyright notice and this permission notice shall be included in >> + * all copies or substantial portions of the Software. >> + * >> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR >> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, >> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL >> + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR >> + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, >> + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR >> + * OTHER DEALINGS IN THE SOFTWARE. >> + */ >> + >> +#ifndef __CLK_ST_H >> +#define __CLK_ST_H >> + >> +struct st_clk_data { >> + void __iomem *base; > > Can you include compiler.h in this file for the __iomem usage? > Accepted. Will add in v2. Thanks, Akshu