From patchwork Tue Oct 10 06:27:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamlakant Patel X-Patchwork-Id: 9995079 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 03DEE603B5 for ; Tue, 10 Oct 2017 06:27:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E66AA27CAF for ; Tue, 10 Oct 2017 06:27:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB34C27D0C; Tue, 10 Oct 2017 06:27:35 +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 5D30D27CAF for ; Tue, 10 Oct 2017 06:27:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751859AbdJJG1e (ORCPT ); Tue, 10 Oct 2017 02:27:34 -0400 Received: from mail-sn1nam02on0067.outbound.protection.outlook.com ([104.47.36.67]:21680 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751810AbdJJG1d (ORCPT ); Tue, 10 Oct 2017 02:27:33 -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=ghFZ02kckWOT0R9EewTCfH2qxNH/odkn1k7jVeSSSUc=; b=JzZ3B/5l8oQJVczi9uOy4sXp2UWGnDQ2KffRpQlkd1y5Tdb00mglvOkSh6/YISDID7NxobLDQhvUUYb2VQEWt8TEp6w8OSy/RKVeZvwM29wbSirPwmdtrqMVbsAfW23vBodzE8wOqol1LfLRzTp/Qf7ENoibmWvhR1veh8hCUEA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Kamlakant.Patel@cavium.com; Received: from localhost.localdomain (111.93.218.67) by SN1PR07MB2142.namprd07.prod.outlook.com (10.164.47.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 10 Oct 2017 06:27:28 +0000 From: Kamlakant Patel To: linux-acpi@vger.kernel.org, linux-i2c@vger.kernel.org Cc: Jayachandran C , Wolfram Sang , Mika Westerberg , "Rafael J. Wysocki" , Kamlakant Patel Subject: [PATCH v2 1/3] ACPI / APD: Add clock frequency for ThunderX2 I2C controller Date: Tue, 10 Oct 2017 11:57:54 +0530 Message-Id: <1507616876-17189-2-git-send-email-kamlakant.patel@cavium.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507616876-17189-1-git-send-email-kamlakant.patel@cavium.com> References: <1507616876-17189-1-git-send-email-kamlakant.patel@cavium.com> MIME-Version: 1.0 X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR01CA0102.INDPRD01.PROD.OUTLOOK.COM (10.174.144.18) To SN1PR07MB2142.namprd07.prod.outlook.com (10.164.47.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9a1bec96-a9f5-4c4e-fff8-08d50fa7fc9a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:SN1PR07MB2142; X-Microsoft-Exchange-Diagnostics: 1; SN1PR07MB2142; 3:AdqySrut3Byr6Oo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G9NyakrOYPY7AI7zhlKtJ34cCa4IKFYyVC5f/jWM2UyiCAmDy+u8w02tChEPAxSz44qqYXEXwJu3MLfvH6WMFsBMd7NWCvxLwEustevgOtFxpOcWK50xPNEiifpchGOPgiU+R8XEZ5TU+hFn38Y4/R8hfhQlrq6ZeGdMoygLr8RJ3tuZJCm1o2b6PbweF2iTTCLiedQ0wygsvuCdcuMw2sF/kefGzK4l5sCK7QdswWt/RwDMxrMRNr50oz8FmlnZt8Ki+bAZwhfybPRFMUMIuc8sm24nzPPRa82Gj6TzF0MdtL7WrRpE6FEHUTt8X856uA3PzS2aR; 4:/0QzIT6vMDw98LoCePEsFaHxVMdxREk/hkkq27hK7sD2g+6stqxcYvlscLCGa87j1Jk3z0yqz6OCDMQN92KAQzMpN+6Qy3FBY6qqqRh4UDcdXMipNILSuNor6rYvKWciHHnk7tGDRlyuRr/IWZAm56AeUoIy7DF1NhXduc8R50o6zoeIznZTLhzp6XSJSBeEwo0Qw4Zm2sM+9VmGNdksKOPxsSIBCbW/WhrgSwBOXTDRMuzQN7ItbKZ79GcB0n8x3dVGUuZt17e1cd8ELcPhhyV1HqrW0jO12xViWX97zAA= X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); 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)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6041248)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN1PR07MB2142; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN1PR07MB2142; X-Forefront-PRVS: 04569283F9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(376002)(346002)(189002)(199003)(68736007)(54906003)(48376002)(316002)(5003940100001)(5660300001)(16586007)(2906002)(97736004)(478600001)(33646002)(2950100002)(50226002)(50986999)(7736002)(72206003)(66066001)(8676002)(189998001)(8936002)(6116002)(76176999)(53936002)(3846002)(105586002)(5009440100003)(36756003)(106356001)(575784001)(6666003)(86362001)(50466002)(81166006)(4326008)(25786009)(305945005)(81156014)(107886003)(101416001)(6512007)(16526018)(6506006)(6486002)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR07MB2142; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; SN1PR07MB2142; 23:wdx0fFSpeKJ8sBJOqYlFj9craN0jnRGp555askN2y?= =?us-ascii?Q?mUMco9MpW6BGewGtwGjuVsXNDQE94pXuRy2W7hZ89LvrQVtbCbA3hQ+Mxh3Q?= =?us-ascii?Q?yyVBUU2EMJJoTdbaOOd+0npgmXy2DZQmOBQsVbiIEhoDSiQnroaCscV+1LhU?= =?us-ascii?Q?xZ6QIx+q+HNupr/bIV3OvrYpggPoH6JwiCQN9Cugf/9spxfGvbIYfrJmTxVH?= =?us-ascii?Q?9GCrmCRf0mo9ZgKRaO5dZySRygZZf+NoYLcuHZLNJqayKtXDSI6RWVUfZpfN?= =?us-ascii?Q?RPhdadd5YdxC2en/FmYtHbq1UDhvOP9T7ZTHbfIGqAfqq2Z4BtzKKW+MEOD6?= =?us-ascii?Q?x4zBm1U9FB1QDMNsyMB8j/ls6J1ikKnx82SbMv0CIsoIKHA+It6Zoq1NhbYD?= =?us-ascii?Q?/B5CdDFt4hC1dZ9I2GD+6zll1oWzDEMY5UQG5LmKlBcM/0VKBzAj0CAuEEyc?= =?us-ascii?Q?b6NeG2XzCHnbo1Rd/Lba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ha2s1uvpoPuXUgQH4ejTLCb0bLfBW/chErAngkBBFVfsckwRCTOBig7JQOa4IdDcPXz8PB2jaBVCu+4idLanMyc5rgoxQbxOUF6zBPZ1Ad9zUJpOfKXNCxsyddeOUTXVm04PIAhxGwpq497dtkYVRaLPSEBk7inWlMV0IliOT2nXwnkIowZ9KRkyMSNtBx7A==; 5:/Fn0UzNv3+7L+3kyszKXKxIkgmVelKrCzSzDGJaeSfDZ/pZag0iscfaG6T7SYsvamTF74Lrp1TZo3C3JfHsxFk/UGw9DjbCAdfg3RswIXHw3bfTPQQ9aHqzYcYcIhAVlyBB6LhNJRTCTGqvh9dqzsQ==; 24:kWwDjXlIcQplbEQr19UcOHux67yYg3Q6BSRp0fgDxQBOrEw6TbI92oW1HS7RM5zVFopyP6+0gJBNkAW68Xo9WPkZrwwxyv7yAGfj6ffHNss=; 7:GwsalD/IjFIVfNPdsFtHIqmGojBUcalSEDpBLd92jAHOMxTCBIFqNn89Jo9UzzR1+q6Lut4Qm2turFR8CUktJAlPTvTNHLe1DF0eNtJxg4uM/z5PiaYpmtzxY8txO7EA0A2R+IHN7tOK1mtNcpdkpkVujkNy456MvjUrjdNaVfoTb6GAYHB4bQk08lXWkO5TMlx5N/36+rDS+qGffJlyIORLcxu9p0kKNeYwkG/PrP4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2017 06:27:28.6326 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2142 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 Acked-by: Rafael J. Wysocki --- 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 d5999eb..d553b00 100644 --- a/drivers/acpi/acpi_apd.c +++ b/drivers/acpi/acpi_apd.c @@ -116,6 +116,10 @@ static const struct apd_device_desc hip08_i2c_desc = { .setup = acpi_apd_setup, .fixed_clk_rate = 250000000, }; +static const struct apd_device_desc thunderx2_i2c_desc = { + .setup = acpi_apd_setup, + .fixed_clk_rate = 125000000, +}; #endif #else @@ -180,6 +184,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) }, { "HISI02A1", APD_ADDR(hip07_i2c_desc) }, { "HISI02A2", APD_ADDR(hip08_i2c_desc) }, #endif