From patchwork Fri Oct 5 08:55:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Bansal X-Patchwork-Id: 10627301 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B524014BD for ; Fri, 5 Oct 2018 03:25:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A221C29593 for ; Fri, 5 Oct 2018 03:25:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9324E2959A; Fri, 5 Oct 2018 03:25:07 +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=0.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DATE_IN_FUTURE_03_06,DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E4D0D29593 for ; Fri, 5 Oct 2018 03:25:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=C4hy9WK+J86vaDkSfZ8mmEhz7jHTTnDYlNzdUrqyCSE=; b=glrBI2WoyTvS8I GUwP+yZY6ItRmG9mylohUcbzQ/650g6p00uwttRyPKih8Lx2BMxPwUGE6wDunLfMMqIY8TuPNY9np dfAbZWmzU0ahqo0w7Rq8bcLoDX0351LPeikciBfBjH29+BihARoh9Sz0pSx2KkDmp32/wG6DZa9V3 3bFdH5lI2Xz+WkJX+fcX4U5lV6MFh9UDRg/qGINcRW/A0MuBChmxKF0qDC0+PNi/fhQx37GvhsXPr NxfaYMqdAAXjWZbQsr778bHTOUZU/ScqeZBQ+bVIucgCoLl3s+WCHB2bx5UT1UomhanBRdulX9hs3 8hXYnyxSn418dsoKzpKg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g8GjU-0004Dk-7Y; Fri, 05 Oct 2018 03:24:52 +0000 Received: from mail-am5eur03on0612.outbound.protection.outlook.com ([2a01:111:f400:fe08::612] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g8GiL-0003gV-Ez for linux-arm-kernel@lists.infradead.org; Fri, 05 Oct 2018 03:23:52 +0000 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=F9sk7M1fY6KAWkHFHr6aWAAlsBCdoFLU8jQChbLc7vU=; b=TbHYQ2J3TN/ZYk/VMsb0IbGMm9Vv7RDFi0DW4u1x5Citncxc1LGqWP+KHqUtkZKLiQOy0opwKxMJbdqte/vCy6tSQSxLFd+iaSTgbLS0wNJxFxC9lflstLFRD2MhbbnhwqWWjGULfWHI9qcoURm30AeO0rlF9CyL+ivMqSDYOBM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=pankaj.bansal@nxp.com; Received: from uefi-workstation-2.ap.freescale.net (14.143.30.134) by HE1PR0402MB3324.eurprd04.prod.outlook.com (2603:10a6:7:81::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.22; Fri, 5 Oct 2018 03:23:25 +0000 From: Pankaj Bansal To: Leo Li Subject: [PATCH 2/2] fsl: add i2c controlled qixis driver Date: Fri, 5 Oct 2018 14:25:05 +0530 Message-Id: <20181005085505.29024-3-pankaj.bansal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181005085505.29024-1-pankaj.bansal@nxp.com> References: <20181005085505.29024-1-pankaj.bansal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR01CA0081.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1::21) To HE1PR0402MB3324.eurprd04.prod.outlook.com (2603:10a6:7:81::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1009993-abf0-4e88-5eba-08d62a71ea4e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:HE1PR0402MB3324; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0402MB3324; 3:R+/y9rwxQWJbsMjGdSmPRrDHRVoBggk/PBskr0duzJgTsYYyEUEkd53kP1hlAzNLiDCE59KtmyxZ6GI9JtEz4+xCgtLexhlZbBQDjFNBXx07d0wexMB+i8agcWsB/uyjJjhV1HfOnYFikFeDEFuHyjBRJQ/4kbbvb174zzcKAaxHu0FOdVgU+qYtMpvjXwQtF8YoO/V0A1GvxEBdwsRWjtt8cORm71FXhrCwZphT50YbCulfhzHM8xd+1g66ZJlC; 25:Lw19hom2yt0mWqouJtRi+jCn+pP3XfkDZLY/JJCHwn6vhXi82vq5aMFJ6ACrDySXyJ2lfK9jTd+qVdbmukrdvcyHOB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PUnxiy; 4:JEFHFDzpKWGRmU9GLTPF0sUn4nW6JzomasbDRw7QMG57MF1ZoKlzXVYRXrd73uk8wHx5eMbBNkCdTL/YPqKZqFBkOXhXdEsVVXHfD+OWq/jKc1D2Uhd/6wz7TQtpX6LIvw8/U2jXvTI8hrkb7KPNk1Fe/5UHF6ZpnyjwtL11GZ4UxOXCg6kBHqBAvF0qEouWtsGlGnXH44ftf5+RfRmJInkKxVEubPUPbAc17uJGgbYAuG7o8EHzUqy5A0tQMMylpzJKmgVyNwEA5E2k9nzCl/4iffvcp1xbR391kE58PkkR3jFkvcwDq3ZZkSfnE0lukhTAWJwhwtFrPgrCikCSzTeHD0TaAqnfTMYVyqsqZBo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132)(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201708071742011)(7699051); SRVR:HE1PR0402MB3324; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0402MB3324; X-Forefront-PRVS: 0816F1D86E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(346002)(136003)(376002)(396003)(199004)(189003)(2616005)(186003)(81156014)(81166006)(478600001)(1076002)(6486002)(52116002)(50226002)(8936002)(386003)(55236004)(97736004)(5009440100003)(6506007)(107886003)(6862004)(316002)(8676002)(5660300001)(16526019)(51416003)(26005)(446003)(66066001)(44832011)(105586002)(11346002)(76176011)(106356001)(476003)(48376002)(6512007)(6116002)(3846002)(16586007)(6636002)(7736002)(4326008)(486006)(37006003)(53936002)(68736007)(54906003)(956004)(25786009)(50466002)(36756003)(305945005)(86362001)(6666003)(47776003)(2906002)(575784001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0402MB3324; H:uefi-workstation-2.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; HE1PR0402MB3324; 23:OqbHDhvfHPTQmF7x1mmsX3l2ojBfyq6HsHjtNWK?= Zygv6RL1fMOegxL8eNoiMIBVnTXhKl2boPl9vH9VyPBAvyglcHNyCy0ZcIdC53NsaAtoKf4GxAmU/ymNzWmgP7ticbd9Gxcueyz/tBaR4n6cLuPGo4GdMeuNOBgczC1cJ5Mv5UeJyJGPppYCPh7zkIxpCLDNtTSnhwdYOJUgal+z/Zu0gbx6fx5bJDZ55VbCKI46EN6ODpJWc0buk4wpF+iITOauTjC9OXbh7uZnrDAyybyq2yeEyzkSkPa3IttnitYCXfSaEiJKQ+zA606700WU9dshmfwCjFzWu19gUFmosiSNpLygDOE06JKZaImeQXRV4EejOrUe+hNWHYDrLb0Vecyt7V4wPEOGFptOWCzUPp73BKkhNFFhLWxkGqxuCBRO5VkPWcNuiMf5eFa4T1ZJrE0x4Hp2gbN2gNVHN33oKwLY4lpPvCxlvvJDnLGVYi1oKovBpAEFyyPXhK48aV2NG+eesC2FsN1OdvDO/KHB6MOrbMXNxyzuXmxKysiw8W62VQZsNcBbZPkR7B9oZ6X5fJ3KWtsYSqds7KT/lHhveR/lSwXTq+tj4siF2Py1SRzj+PMYa4klYJ5W6st0TmZNZ8r+kPeNkDrtP+g1QEVHWfJcY820gUKkcnHpQ9WtghBfUQmxhNJaLUGIgFQed/sADfBeNHO0WsmIbgtk5pE6c0Nob+/6VMmiSmdIYlvMfNwqfDbk095LtAKxYpsX54M7o4YcuJBBKHZ/giKLSpBRkmVcnHaak+43NkraKT03MtXvQ6NvymnIDzuZtct82AloqxsNsC1ofHdzD/d46hms/q8C6FivLSk/R3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BfIKlB0IgHCsMIBhrbRo5BcBJ3ohEEk+bIeWd5KURxrZH4b3974kWiCi1INtwCdV4hWNTIb903lMZ1QPIuIr653Uo0CZX5LD3Gr4/XY9217HcofAGcN2kX8rLeVS0Fzpm+LTNirrfAfES7UV3eZ7KsfwI44GgIjFzCaBeo6mqWp8qGWPHEZ4kfpn89HK4GhZZ6C3dRXKoXFfCSEWs6nHahR6aSjfMR86mSMUvxbXCftsO4Jy1buTKkgjiYGsgYw1fzDZ52oquEAfh7e6XeNcm1Qxqm24DV/lEBrUOh9iZ9BwTjtYP3ahynfBseXCAmSff/ly9F6J3fkGPL/v+NU0SZTtnL0cnQ4kxg==; 5:e5/67fhjFE2S1Ce8Fe8AFczFeo17zb5z8GlDqD4MkI+YeBUBH5i4NMWD2U5AJ04y6i1xDI8Yvftzbsp1su7ShiNvHLFu7+8coOj6jOjVwSJcXVinLuWS4yPVVyhRYnOq7LGE3JUZGDLdZ8lrwkIF5YvFizV3OxVBibGIrDc9Qls=; 7:C+LYrGhOoHhD6eaADqd9tgBec6BE4e87v3RCM6CPlgIYeoBol/SEqKCRWzIcHZjvQnbt8ihlt2+soLRgGpmRvz2OXS+1wegOyB1PNs6GipF45j+QaBT4f7xd82vbXhFWFUN4yPK+PXFBb4sTqpYc8iBKEXvrsbGnutKz4QSTGdJ/r3h0G3mOlViwRTzZCb/12pj/DqS52u7rWBlAHitrexwiOZ7TRJnRNdKhFfq0qsawJkLfe2lORqC4IDi3rh71 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2018 03:23:25.6429 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1009993-abf0-4e88-5eba-08d62a71ea4e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB3324 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181004_202341_520155_3C420209 X-CRM114-Status: GOOD ( 15.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandru Marginean , Pankaj Bansal , linuxppc-dev@lists.ozlabs.org, Wang Dongsheng , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP FPGA on LX2160AQDS/LX2160ARDB connected on I2C bus, so add qixis driver which is basically an i2c client driver to control FPGA. Signed-off-by: Wang Dongsheng Signed-off-by: Pankaj Bansal --- drivers/soc/fsl/Kconfig | 9 ++++ drivers/soc/fsl/Makefile | 1 + drivers/soc/fsl/qixis_ctrl.c | 75 ++++++++++++++++++++++++++++++++ include/linux/fsl/qixis_ctrl.h | 20 +++++++++ 4 files changed, 105 insertions(+) diff --git a/drivers/soc/fsl/Kconfig b/drivers/soc/fsl/Kconfig index 8f80e8bbf29e..c355c2cbbd45 100644 --- a/drivers/soc/fsl/Kconfig +++ b/drivers/soc/fsl/Kconfig @@ -28,4 +28,13 @@ config FSL_MC_DPIO other DPAA2 objects. This driver does not expose the DPIO objects individually, but groups them under a service layer API. + +config FSL_QIXIS + tristate "QIXIS system controller driver" + select REGMAP_I2C + default n + help + Say y here to enable QIXIS system controller api. The qixis driver + provides FPGA functions to control system. + endmenu diff --git a/drivers/soc/fsl/Makefile b/drivers/soc/fsl/Makefile index 803ef1bfb5ff..47e0cfc66ca4 100644 --- a/drivers/soc/fsl/Makefile +++ b/drivers/soc/fsl/Makefile @@ -5,5 +5,6 @@ obj-$(CONFIG_FSL_DPAA) += qbman/ obj-$(CONFIG_QUICC_ENGINE) += qe/ obj-$(CONFIG_CPM) += qe/ +obj-$(CONFIG_FSL_QIXIS) += qixis_ctrl.o obj-$(CONFIG_FSL_GUTS) += guts.o obj-$(CONFIG_FSL_MC_DPIO) += dpio/ diff --git a/drivers/soc/fsl/qixis_ctrl.c b/drivers/soc/fsl/qixis_ctrl.c new file mode 100644 index 000000000000..b94649fb9726 --- /dev/null +++ b/drivers/soc/fsl/qixis_ctrl.c @@ -0,0 +1,75 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/* Freescale QIXIS system controller driver. + * + * Copyright 2015 Freescale Semiconductor, Inc. + * Copyright 2018 NXP + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +static struct regmap *qixis_regmap; + +static struct regmap_config qixis_regmap_config = { + .reg_bits = 8, + .val_bits = 8, +}; + +static int fsl_qixis_i2c_probe(struct i2c_client *client) +{ + struct platform_device *pdev; + struct device_node *child; + u32 qver; + + if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA)) + return -EOPNOTSUPP; + + qixis_regmap = regmap_init_i2c(client, &qixis_regmap_config); + + /* create platform device for each of the child node of FPGA node */ + for_each_child_of_node(client->dev.of_node, child) { + pdev = of_platform_device_create(child, NULL, &client->dev); + }; + + regmap_read(qixis_regmap, offsetof(struct fsl_qixis_regs, qixis_ver), + &qver); + + pr_info("Freescale QIXIS Version: 0x%08x\n", qver); + + return 0; +} + +static int fsl_qixis_i2c_remove(struct i2c_client *client) +{ + return 0; +} + +static const struct of_device_id fsl_qixis_of_match[] = { + { .compatible = "fsl,fpga-qixis-i2c" }, + {} +}; +MODULE_DEVICE_TABLE(of, fsl_qixis_of_match); + +static struct i2c_driver fsl_qixis_i2c_driver = { + .driver = { + .name = "qixis_ctrl", + .owner = THIS_MODULE, + .of_match_table = of_match_ptr(fsl_qixis_of_match), + }, + .probe_new = fsl_qixis_i2c_probe, + .remove = fsl_qixis_i2c_remove, +}; +module_i2c_driver(fsl_qixis_i2c_driver); + +MODULE_AUTHOR("Wang Dongsheng "); +MODULE_DESCRIPTION("Freescale QIXIS system controller driver"); +MODULE_LICENSE("GPL v2"); diff --git a/include/linux/fsl/qixis_ctrl.h b/include/linux/fsl/qixis_ctrl.h new file mode 100644 index 000000000000..00e80ef21adc --- /dev/null +++ b/include/linux/fsl/qixis_ctrl.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0+ + * + * Definitions for Freescale QIXIS system controller. + * + * Copyright 2015 Freescale Semiconductor, Inc. + * Copyright 2018 NXP + */ + +#ifndef _FSL_QIXIS_CTRL_H_ +#define _FSL_QIXIS_CTRL_H_ + +/* QIXIS MAP */ +struct fsl_qixis_regs { + u8 id; /* Identification Registers */ + u8 version; /* Version Register */ + u8 qixis_ver; /* QIXIS Version Register */ + u8 reserved1[0x1f]; +}; + +#endif