From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=nuvoton.com (client-ip=212.199.177.27; helo=herzl.nuvoton.co.il; envelope-from=tomer.maimon@nuvoton.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Received: from herzl.nuvoton.co.il (212.199.177.27.static.012.net.il [212.199.177.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 473n1K1b3vzF391 for ; Fri, 1 Nov 2019 00:56:31 +1100 (AEDT) Received: from NTILML02.nuvoton.com (212.199.177.21.static.012.net.il [212.199.177.21]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id x9VDuJPV017945 for ; Thu, 31 Oct 2019 15:56:19 +0200 Received: from NTILML02.nuvoton.com (10.190.1.46) by NTILML02.nuvoton.com (10.190.1.46) with Microsoft SMTP Server (TLS) id 15.0.1130.7; Thu, 31 Oct 2019 15:56:18 +0200 Received: from taln70.nuvoton.co.il (10.191.1.70) by NTILML02.nuvoton.com (10.190.1.47) with Microsoft SMTP Server id 15.0.1130.7 via Frontend Transport; Thu, 31 Oct 2019 15:56:18 +0200 Received: from taln60.nuvoton.co.il (taln60 [10.191.1.180]) by taln70.nuvoton.co.il (Postfix) with ESMTP id CD7FF1A4; Thu, 31 Oct 2019 15:56:18 +0200 (IST) Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id AAFE160275; Thu, 31 Oct 2019 15:56:18 +0200 (IST) From: Tomer Maimon To: , , , , , , , CC: , , , Tomer Maimon Subject: [PATCH v3 0/3] reset: npcm: add NPCM reset driver support Date: Thu, 31 Oct 2019 15:56:14 +0200 Message-ID: <20191031135617.249303-1-tmaimon77@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Oct 2019 13:56:41 -0000 This patch set adds reset controller support for the Nuvoton NPCM Baseboard Management Controller (BMC). Apart of controlling all NPCM BMC reset module lines the NPCM reset driver support NPCM BMC software reset to restarting the NPCM BMC. Supporting NPCM USB-PHY reset as follow: NPCM BMC USB-PHY connected to two modules USB device (UDC) and USB host. If we will restart the USB-PHY at the UDC probe and later the USB host probe will restart USB-PHY again it will disable the UDC and vice versa. The solution is to reset the USB-PHY at the reset probe stage before the UDC and the USB host are initializing. NPCM reset driver tested on NPCM750 evaluation board. Addressed comments from:. - Philipp Zabel : https://lkml.org/lkml/2019/10/29/712 https://lkml.org/lkml/2019/10/29/713 https://lkml.org/lkml/2019/10/29/731 - kbuild test robot : https://lkml.org/lkml/2019/10/30/29 Changes since version 2: - Remove unnecessary details in the dt-binding documentation. - Modify device tree binding constants. - initialize gcr_regmap parameter to NULL. - Add of_xlate support. - Enable NPCM reset driver by default. - Remove unused header include. - Using devm_platform_ioremap_resource instead of_address_to_resource and devm_ioremap_resource. - Modify number of resets. - Using devm_reset_controller_register instead reset_controller_register. - Remove unnecessary probe print. Changes since version 1: - Check if gcr_regmap parameter initialized before using it. Tomer Maimon (3): dt-binding: reset: add NPCM reset controller documentation dt-bindings: reset: Add binding constants for NPCM7xx reset controller reset: npcm: add NPCM reset controller driver .../bindings/reset/nuvoton,npcm-reset.txt | 32 ++ drivers/reset/Kconfig | 7 + drivers/reset/Makefile | 1 + drivers/reset/reset-npcm.c | 281 ++++++++++++++++++ .../dt-bindings/reset/nuvoton,npcm7xx-reset.h | 91 ++++++ 5 files changed, 412 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/nuvoton,npcm-re= set.txt create mode 100644 drivers/reset/reset-npcm.c create mode 100644 include/dt-bindings/reset/nuvoton,npcm7xx-reset.h -- 2.22.0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The privileged confidential information contained in this email is intended= for use only by the addressees as indicated by the original sender of this= email. If you are not the addressee indicated in this email or are not res= ponsible for delivery of the email to such a person, please kindly reply to= the sender indicating this fact and delete all copies of it from your comp= uter and network server immediately. Your cooperation is highly appreciated= . It is advised that any unauthorized use of confidential information of Nu= voton is strictly prohibited; and any information in this email irrelevant = to the official business of Nuvoton shall be deemed as neither given nor en= dorsed by Nuvoton.