From patchwork Fri Oct 5 08:55:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pankaj Bansal X-Patchwork-Id: 10627299 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 3D2C216B1 for ; Fri, 5 Oct 2018 03:24:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DAB529586 for ; Fri, 5 Oct 2018 03:24:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2030E29599; Fri, 5 Oct 2018 03:24:28 +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=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 B6FD829586 for ; Fri, 5 Oct 2018 03:24:27 +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=D2ATaiiUNPjTO0zGQdut3D/sydIWxpFrTR91afJg5Tg=; b=Nr/TBJnv2A6g5i HaroqL3KGLizekgVTnqwh++Fg6H8ekGjbiEDCGNm0eAfE9xmTv5Zas9zxfDDfw7MUVJr/FEOtVRDf NOgXDhSWHOSENGdVoqaEiUBGrrQzKw+FjN0sp/H+IraINOwy1+55I76kWRsJDNZHh2yYGyu/ty4ZU lwMozgXt2pEw3YiLm9MvxklX2vIB4iCHTOeog/3oh46vt46JN+uS7ID/EKodpR3DDzPTR2as9ojwH LaKx3h2xdw0pUM8hZwRAz4zf5wwpFxlTWkCJRqcd89WM4Ayi3Tl1KzyWY4DMVmIypJM1NbY99y2P6 jzM0bcSYFftEKuwAeKog==; 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 1g8Gip-0003vT-Bo; Fri, 05 Oct 2018 03:24:11 +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 1g8GiJ-0003gV-Ox for linux-arm-kernel@lists.infradead.org; Fri, 05 Oct 2018 03:23:41 +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=QUim4c+5vEG2lxNl6E0QOrHS9P++4YI70Xuzl8/ib7A=; b=WFMNeTKIH+a/Zhf9p3ioTVxCDTUQk6/QRFZyIaxORWVBdJloqj0nWoiuRXMH4bpd0VuEZT8TlHJJCIDEweqhmW71kOsEGSjLu3FVlcAXvKU5N9zYP2W6AV3OxK8ROWNbVYRBQL4YERMlK77QXwLZinV5RFvP1VmIEEiy/MV37vk= 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:23 +0000 From: Pankaj Bansal To: Leo Li Subject: [PATCH 1/2] dt-bindings: soc: fsl: Document Qixis FPGA usage Date: Fri, 5 Oct 2018 14:25:04 +0530 Message-Id: <20181005085505.29024-2-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: db0e8539-533c-4fa0-6b24-08d62a71e937 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:e7jGirJcRPM9taGGwDBblixFbqvBl0M/MMI1XTuGwFMRctyJKI/D4RpWiikaRFVeL0pr6uuLkd/qxW0T/hl8NOUBe6X0BCaAjvOxz9+LowJA/sRKhbNv4MGl4UxyI4KWgrif/6kG3+sdGCbKhE6Q24BaNLqYIw/TQziD6szOomNnLZqlLfuOwyk38D5XmNEx4d0Xk+/t7Dy8sR9fSJ//wgpgwo1vfTMPSvxhPPyV+bFyzVks05BxxXhgGhHEJZ4L; 25:3zhYFowfbY6eBvkSpGkZg0GCz4QNTahIxxKv++I0alX0P2624CpZqM1X+pN0l72CF38g0bkwS+mH8U0Jj3Bs8md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E8j0EMZRD3S; 4:btdO1wvw/LgwjzErCKlpDc94vohf8fB99pMNNH/gspRDjip7il04HWUqb4HEn2enJudGXSRwbQDEB2UhCIynTye8KBh4LMTkwLULCn70HBe0+u056Bh3TUwKWu4BdNT7NY2d4o3bwv5AGpqdUoc/NOXXNziFOywtnazILeul0V7pLMZdlqINRiSF3ZVbA1+adnWPBziBvUTGpH0poUHMLW6u9ZiAyGNgmuaU4vBqo6LIupVwIsJ8SQ7WKI5xf2FD8U7X6PiYgHGZ9X8G59mxumUHj8WcGr9K57tLpCKz9GE/DKlWIW9rQD8dBdLGwxThBiIjKCw1pcFTeDGGzMCN9g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(72170088055959); 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)(23676004)(81156014)(81166006)(478600001)(1076002)(6486002)(52116002)(50226002)(8936002)(386003)(55236004)(97736004)(5009440100003)(6506007)(6862004)(316002)(8676002)(5660300001)(16526019)(26005)(446003)(66066001)(44832011)(105586002)(11346002)(76176011)(106356001)(476003)(6512007)(6116002)(3846002)(6636002)(7736002)(4326008)(486006)(37006003)(53936002)(68736007)(54906003)(956004)(25786009)(2870700001)(50466002)(36756003)(305945005)(86362001)(6666003)(47776003)(2906002)(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: =?utf-8?q?1=3BHE1PR0402MB3324=3B23=3AklDhI?= =?utf-8?q?eVUxxHX8fkhpTxhwqm7cO7N6W08j93yNvi00Ihmariof34JH7IH56KE58QQh0nWvX?= =?utf-8?q?WhFU8bccnikKuUu+Y0RfpRU2lB1TYvMQmcWpElHLzcam9mLqxld2TnIjfNpmMnS9U?= =?utf-8?q?4N8nEqBqQz5KgQyJ5Sp516aHZet/ZctMOuOsUmgY4k1dPJFQTN2tHkkgv4eOIYx5B?= =?utf-8?q?DvY+7HnaXz8GA0/CRMtlXL5uOtmh9Jyx/E3V4HPfC/u15jtG6xZswgJbNpSvMh6fz?= =?utf-8?q?i/ZzF4mIdbFkymPhYCS+UGLFgpKY1AUs1LrUBZxEawti28GlDn9GZvHwk76+jNrA9?= =?utf-8?q?K3TQM3KArI5Jn4YEIdHbNOSVBWiZNuUmLML4+9CHjByybjGXzAEa1QzSZw5wN1gPQ?= =?utf-8?q?hgJEPuHl/RVyjQQ1MgtfC1B/KTIm7DiTrdEmJYPr1F6cqltRGTe9FG9MU6oENYhL3?= =?utf-8?q?0E0wRtUUFLS1YEjr3txL3Bxb1m59KiEOapc1y0T1HW6vpTOsRk86v5pBOZvdQ5/f7?= =?utf-8?q?QsyTtslwbLWO4buqysiGV9xHsTw3JbB+HZs6KO0SLeMZ6mqbSfJ4fDxkeKufqi45l?= =?utf-8?q?XiQzTUYw3LYBShoNtzjuP0aAMGTBnHARQZEKzeYyqQ6u9LpRX7bNpAYiwggpBLQ9N?= =?utf-8?q?/xTdmW4yRVTl5ZzI0CgGFyJXvcLSzvzbitkPGRCM+qD84hsJ/90BLlDrKyZd6Ezzx?= =?utf-8?q?ZYOW7MhTL74yhiwM1Zf2QimmIqHrBWd3nziBiiKojr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ft-Exchange-Diagnostics: 1; HE1PR0402MB3324; 6:G9eUt3hmFy0i+VWEVszfOfmCLmgTimCTiN+D9Brg2ovE7CruV/flC4AOF37kEQaRon75qjutTIKfrBXJ9rw8ddMLsY09QqbGya7LR0mSw31s+ai0e9fo57h/nv4oApApm8QhKYcxYcH5wFHIz4VY9QMRGRd0IBwexTV4rq6RYsiVChA37sA6b59AxQf4WNepxjx/rmjJEG5LUvgcriORicauy0buXFaKrYi02TXJFM7oFpb3hQXdFnwkdTCCEWdUaNY/0vGqWb81QL6rdOMo1bcgSQYCAiP8YGKlvKYc+Weks59w7nU0MONS3y+b8Kxm1jTCJ6J0Vt1ADQ2sY63LWhERy11Tl/EqwDDaGY09vB9Z3U16g5fGM+2M8AM9eDpPVnmZLWOTmkA9uagp5Xg2IcYCysE60WdTjjRAVTdzSQcJBji58sGp4oWHA7PYj3tLxUA6Ml3NBEn1oznmzM2g7Q==; 5:AhPXygOgdQuoOfLN+XnqaPXuBm+ffs95x8P6O9QXiermj3Yhn27cIeVX0l0bU1+QdpIgLzQJag5dPDXmheaAueuQQF3lWEXCeHhVG0iZOgzlT8QpN8j4ivMJ+WJLejjsD54YUq2ZGOkSpo4AmsIeZ6EtwE/pPoaeKp+kS4ATej0=; 7:gQLTbMynyXgrXG+xK7RRAEKzXomZPMhk7n4vVTjzIEwja2U/HNJuNc88DQDvz/TmbfHnw2GSk9GwrOo/37IgW8j20rVn211AM8yOXPdzhYghHkUt3AyNXixIhb9X4ccJxqazxYDHfDM3HTUcH0p/PLto3EcOLd6u0Yib1M2h6QzTVD2ehpRqPLdG3O+kh9tXXcFloK0QygOBGVyehfMTQd9m+TGD/4AVC6ziTGYcGbHPhW3AKtG9oXQrDMzNh4lL SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2018 03:23:23.9085 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: db0e8539-533c-4fa0-6b24-08d62a71e937 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_202339_814721_0E3911E5 X-CRM114-Status: GOOD ( 10.70 ) 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, 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 an FPGA-based system controller, called “Qixis”, which manages several critical system features, including: • Reset sequencing • Power supply configuration • Board configuration • hardware configuration The qixis registers are accessible over one or more system-specific interfaces, typically I2C, JTAG or an embedded processor. Signed-off-by: Pankaj Bansal --- .../bindings/soc/fsl/qixis_ctrl.txt | 33 ++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/fsl/qixis_ctrl.txt b/Documentation/devicetree/bindings/soc/fsl/qixis_ctrl.txt new file mode 100644 index 000000000000..bc2950cab71d --- /dev/null +++ b/Documentation/devicetree/bindings/soc/fsl/qixis_ctrl.txt @@ -0,0 +1,33 @@ +* QIXIS FPGA block + +an FPGA-based system controller, called “Qixis”, which +manages several critical system features, including: +• Configuration switch monitoring +• Power on/off sequencing +• Reset sequencing +• Power supply configuration +• Board configuration +• hardware configuration +• Background power data collection (DCM) +• Fault monitoring +• RCW bypass SRAM (replace flash RCW with internal RCW) (NOR only) +• Dedicated functional validation blocks (POSt/IRS, triggered event, and so on) +• I2C master for remote board control even with no DUT available + +The qixis registers are accessible over one or more system-specific interfaces, +typically I2C, JTAG or an embedded processor. + +Required properties: + + - compatible : string, must contain "fsl,fpga-qixis-i2c" + - reg : i2c address of the qixis device. + +Examples: + /* The FPGA node */ + fpga@66 { + compatible = "fsl,lx2160aqds-fpga", "fsl,fpga-qixis-i2c"; + reg = <0x66>; + #address-cells = <1>; + #size-cells = <0>; + } + 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/uyjJjhV1HfOnYFikFeDEFuHy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+2ZqdbEOhO+eIwrvaWxbbf3NIzIQTkHgRWswT5Hjt73JLYn7uUIIQ9MPMm8C3BwIHh5N+HPzEJbe3osphpuXgQjxFxfHK9j5rpkZ7HNxiGW/Gw02wbmfez7iRt3HqPrOg4KUiIjgskkjv1CTvy9ulDFiM241Qf1rRjfrN2BQVbXkDTRFcCCYO6mMySTu0alQxcE8gPUnxiy; 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+g1QE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ArrivalTime: 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