From patchwork Wed Sep 27 14:52:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamlakant Patel X-Patchwork-Id: 9974197 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 64077602D6 for ; Wed, 27 Sep 2017 14:52:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57D4A28BEA for ; Wed, 27 Sep 2017 14:52:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BCCD28CF6; Wed, 27 Sep 2017 14:52:37 +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=-5.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB, T_DKIM_INVALID 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 C178328BEA for ; Wed, 27 Sep 2017 14:52:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751886AbdI0Owf (ORCPT ); Wed, 27 Sep 2017 10:52:35 -0400 Received: from mail-sn1nam01on0064.outbound.protection.outlook.com ([104.47.32.64]:21856 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751293AbdI0Owb (ORCPT ); Wed, 27 Sep 2017 10:52:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=WUs9wfy0quima91+qGVRz6VAU8qQYf+3SEeewIibzAY=; b=VJ/NGY3YqZhLuMJ25YDWfKNHdY7+JOeCdqSKxLOHI8H8FHszd1TkQF8AiAg6GPIhWfhQGrCs7er0Ri+ijKRi0LQcku7SpKA2VX3JSWrMSaDzPgMs/uA+A/ULy4M/ETNYby86c2YTS4Qb9mUBmiNt0YLmyGe6dYUPLWGHnDUFHsY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Kamlakant.Patel@cavium.com; Received: from kamlakant--T110-II.caveonetworks.com (111.93.218.67) by BN4PR07MB2129.namprd07.prod.outlook.com (10.164.63.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 27 Sep 2017 14:52:28 +0000 From: Kamlakant Patel To: linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org Cc: Jayachandran C , Wolfram Sang , Mika Westerberg , Kamlakant Patel Subject: [PATCH 1/3] ACPI / APD: Add clock frequency for ThunderX2 I2C controller Date: Wed, 27 Sep 2017 20:22:21 +0530 Message-Id: <1506523943-8632-2-git-send-email-kamlakant.patel@cavium.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506523943-8632-1-git-send-email-kamlakant.patel@cavium.com> References: <1506523943-8632-1-git-send-email-kamlakant.patel@cavium.com> MIME-Version: 1.0 X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0043.INDPRD01.PROD.OUTLOOK.COM (10.174.214.29) To BN4PR07MB2129.namprd07.prod.outlook.com (10.164.63.11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d3373f6c-9849-400e-3fe9-08d505b760f1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BN4PR07MB2129; X-Microsoft-Exchange-Diagnostics: 1; BN4PR07MB2129; 3:vag1sis8mscTudz3K5lec0311Cmj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kDMQDTZpsT6VzWvWnafilsDSTShQ9t+VeUrGpGh8KK0Vgx8Wipx8dqSdNzMZPkT/D7585qUvSckBkliWWhXOpnExhgGMEdNnLtYeNrseEU2++UmMsBJZpKItG7das6kqChXO+n5EkUpNTREgV+dXb6wYIVmzePzF26I1E/049J7kjVWMHqfENOZ/Of7yKwJD7to2JLd3XyXzHGJTLY+s3QrohI/5Olc3WLPWnopcfs9k2FmrXT3t2jrhRUFnCq7nv3CNFf8YOCUkBQIE3lMHRXd4vR8j+ky9LpiRBBJLy2ImFnfahz6pz2H/NG16OPaL; 4:AWOHZfG30zQfKD3VbIYo5NKyZYzL+o/kv0T8WzqBcV94o1tWWW6j5KhVy5X0vrA3wDRGOSx+2od5/JY+84v/LRwMPaTRr4UguVknt//5Md5V7GsnkguqG79IPpRuXYAsGASzeNLjRCzhq1EsoX9S1QwgzLh81rNdkIpsODOLZTKfioRqn7Pya2sFccpcPEefUMQvJJBPLSqhApxu3OUPYqO2YO79QB56lUQdXUGj7epgT48EHsUIzrJGyBvpL1/m X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(6041248)(20161123558100)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN4PR07MB2129; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN4PR07MB2129; X-Forefront-PRVS: 04433051BF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(199003)(189002)(2950100002)(47776003)(33646002)(48376002)(8936002)(66066001)(68736007)(305945005)(76176999)(50986999)(69596002)(5009440100003)(54906003)(53936002)(105586002)(106356001)(50226002)(101416001)(25786009)(53416004)(6512007)(50466002)(16526017)(6506006)(81156014)(81166006)(8676002)(3846002)(6486002)(6116002)(16586007)(6666003)(5660300001)(4326008)(5003940100001)(107886003)(36756003)(316002)(97736004)(72206003)(7736002)(189998001)(478600001)(2906002)(86362001)(575784001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN4PR07MB2129; H:kamlakant--T110-II.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN4PR07MB2129; 23:oS8Cu+H6AsCSnopoT9tYxHQ9E9Z9llXH5aU+DlcTI?= =?us-ascii?Q?fc6ToZM+LPdx80E0nT5qWi0KlYlrDL+j1jYeBBaaJsW9EviJ0K1yPO4UHZVf?= =?us-ascii?Q?LgfZ/QFJDwXsmVRLhcCeMW/Az6lHEKy3E0IUnFyUSHY4JSX2V35ysTxcTu0w?= =?us-ascii?Q?U3amCUHPYDFk0BvFkz8+c9gRMIH0oAZ66vafwd1/JLtrzwzUlqCUWJ9oF7x8?= =?us-ascii?Q?/71JTr/vZq0FyWAKh7nj9xRmZAYriv5XXNZW4/9WO4J9DJmef5nvZUbDVoor?= =?us-ascii?Q?Q668Yr3xCbEi1pG7nJz0LKx/ZRvJUlxI+gENZkFxvZP35KKO0cvCUyaLn5jO?= =?us-ascii?Q?CKjVZjOrw1WSQvdgqlOTJYi4xuIngMQG9mVyHjlc6WtHqlxxzYDyL7hNaU8b?= =?us-ascii?Q?WrFW1tMkfX17Gp8ws9IjKMbqrwxogjXaW48qs9A/JFlXh1YdR+zcRZPXoeKg?= =?us-ascii?Q?TPY7sBABxdA31vqWRQKWLoMrBwx2bfKpY+YwSVkbDBoHdRQqEwNVAM/PAnft?= =?us-ascii?Q?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DizFxsnsEdUpLkCqXHFfO2fUPLUFPHiWcVyBe3G0TEASywvKuBrttbiqvJzYza98ZR7e6BJp2GPyhcWbad7ye3XJpUk9X4qaaMzeawJQf7Z7GN0gEMkKxIj5l3jJzjvYqZCumW2+xKG920SXUYqug==; 5:7JH3LUWJs8X60VVgysg0pIZygm1lnEIIRvDqLY8GLtMuTmBu4DsHuhpMVWXC07MTSQHC/BWhx/XDEYU5P9kV+ovednYeo3o/tnUvRNB29w1JxHp2sUIYbDtyQrChTHsaTNK0MjeWFj0WbgxUmy6GfA==; 24:TQl3lJC5/rWucaAqxrshZdBXtjQT6Ch77LzjrYoJV/+pRkFYFGGzpo1GIVXpIRuxoJPA4wxk/BkvriraCKD995YA4s+4CjZkyXN/mep9VOg=; 7:9JIR/1cDAEuDIPHTab1EgTsgmy/WlrtbwRcX5VROfvlh1nv9h9pnPKOYy/AX7/OC12x1nmoYk6AqBzaUN8yN8gZOQLxpUZ3dA1Wv5Gq2whA0ANXCnZO+jMVsTy5cL4MoZhGjzUKWiU8YZy4nolpXPqyMzeijqKrxFI2Zj1NQabrY3uYjHzxTpWxIdKGd1chRUGAecKM7lYyXw5T7nVoGCJDy7UmtSCOYYR6Y+notzB8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2017 14:52:28.7776 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN4PR07MB2129 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jayachandran C Add the input frequency of 125MHz for the ThunderX2 I2C controller block. The ACPI ID used is "CAV9007". Signed-off-by: Jayachandran C Signed-off-by: Kamlakant Patel Acked-by: Mika Westerberg --- drivers/acpi/acpi_apd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c index 17a1eb1..93acc9b 100644 --- a/drivers/acpi/acpi_apd.c +++ b/drivers/acpi/acpi_apd.c @@ -106,6 +106,10 @@ static const struct apd_device_desc vulcan_spi_desc = { .setup = acpi_apd_setup, .fixed_clk_rate = 133000000, }; +static const struct apd_device_desc thunderx2_i2c_desc = { + .setup = acpi_apd_setup, + .fixed_clk_rate = 125000000, +}; #endif #else @@ -170,6 +174,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = { { "APMC0D0F", APD_ADDR(xgene_i2c_desc) }, { "BRCM900D", APD_ADDR(vulcan_spi_desc) }, { "CAV900D", APD_ADDR(vulcan_spi_desc) }, + { "CAV9007", APD_ADDR(thunderx2_i2c_desc) }, #endif { } };