Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4018185ybg; Fri, 25 Oct 2019 12:09:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC+M0rHc8fhxAm6iHDz6ZFvH+7e/nJuwVMS98h/8tNliIRW6dJa49yzlr4GKnSwN6IF8GZ X-Received: by 2002:a17:906:3049:: with SMTP id d9mr4975530ejd.288.1572030584391; Fri, 25 Oct 2019 12:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572030584; cv=none; d=google.com; s=arc-20160816; b=EqYWOTxcd2DchELeKrZELA+y7YH7z1UaKvzYIdpkcpEee2Lq+50T2vZM6zGghkJy5k puZCfVDPrgunTL87bbtLqkGW3huF9sZEHOZeenQo/w80oOc/zPu40Gfq8dydepOJdqWj t/ethu+6Sc8v0NSM7CN3a9lO5vNqA5pdR8cenuJVEnkFOQ4unLHtA+61ur97D+/7XaCd caWTgQabUAVrq3XijgWU2ReXKFCR0BZz9bzddPk2IyecD8suDVeeBmuZ8tz8FKPdxXFe TUx6zOq0y3ts3JwOfUwypx00HrGBoqANaO+tUN9O6q5FEINkd2X/reA0iCZuMEovQ0ph Sxtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=9IfNV0eb+thw5b7nqco0YZBu8PqrNuATJzYwuET7sgs=; b=RjOe+NioUq8wrgshDRo7X3sjLgRtRWjServ420r9FBSgojVZNp2zHUE1VRkGAT9Xcg YaAaFRyBngEvCMwwcpFYdBaW9DdX6ZI25XKMvARTmux6U/FDDd0RksoYvHVPhHKlxRxK 0KqlT+jpfvWi34uvSWciEgV/IJYjpYQyui6lJ56k94aBKqFtd0dx6jdA7oHnFtJUlvHS qEyqnDLF79MV0I6hS8byvj9Ai7jZJSAsN8L3TdfdKaunkIWTZjwSymgEzY+C0LwmHVSf SHNFFj1TcUfbNZ7/Ukdz5M9I58bgaW81iXngaKV9J9KypEDLbJLNn1U/TSOmO6qUqTXD 5yhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si1808252ejw.226.2019.10.25.12.09.21; Fri, 25 Oct 2019 12:09:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729888AbfJXWCB (ORCPT + 99 others); Thu, 24 Oct 2019 18:02:01 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:43370 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726046AbfJXWCA (ORCPT ); Thu, 24 Oct 2019 18:02:00 -0400 X-Greylist: delayed 804 seconds by postgrey-1.27 at vger.kernel.org; Thu, 24 Oct 2019 18:02:00 EDT Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id x9OLlm0R022490; Fri, 25 Oct 2019 00:47:48 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id E7FE56026D; Fri, 25 Oct 2019 00:47:47 +0300 (IDT) From: Tomer Maimon To: p.zabel@pengutronix.de, robh+dt@kernel.org, mark.rutland@arm.com, yuenn@google.com, venture@google.com, benjaminfair@google.com, avifishman70@gmail.com, joel@jms.id.au Cc: openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Tomer Maimon Subject: [PATCH v1 0/3] reset: npcm: add NPCM reset driver support Date: Fri, 25 Oct 2019 00:47:43 +0300 Message-Id: <20191024214746.88431-1-tmaimon77@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 | 35 +++ drivers/reset/Kconfig | 7 + drivers/reset/Makefile | 1 + drivers/reset/reset-npcm.c | 273 ++++++++++++++++++ .../dt-bindings/reset/nuvoton,npcm7xx-reset.h | 82 ++++++ 5 files changed, 398 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/nuvoton,npcm-reset.txt create mode 100644 drivers/reset/reset-npcm.c create mode 100644 include/dt-bindings/reset/nuvoton,npcm7xx-reset.h -- 2.22.0