Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3517123ybg; Mon, 28 Oct 2019 14:12:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYgqUL2m7k5jAgW/uezKUYDRT+a0AB4ERLzMnpcfs3qRSXk9jg25SF71r8QvxEvudB7x9r X-Received: by 2002:a05:6402:304e:: with SMTP id bu14mr18760303edb.89.1572297136210; Mon, 28 Oct 2019 14:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572297136; cv=none; d=google.com; s=arc-20160816; b=J0ovNjhB/cNvp4y5/0pmqxl6MLEOkayE2FbNC3NJ7Y59UwIfwCFoBx2xTEByCPIHzy JJ9l3+sOc0j9x7GWEwIdpLWFu8WJ4Y/gk57LCw61oMAK2fSxR3IaGdQhkq5DagtHBe5k 0klfDJr2m3FhY33p3YTh/H+N+ZU6kKUApW2CMpGYaxEAIenygDiERuGqA8hO7JB5PIE+ Tre9VV2WO+XYXViF+4ItgDA6ihut+RZgFSGur2A8iEwZMyV8pc/Xs/rK8JbeHSsmeqzX ruNLYujSqFt/vQxJVC0b4WJZ27e1pb0nuL1ji+D0VXlcHLfBROo/BAHeu16vdGR8zqzu XY1Q== 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=5MELazhkzYVVPQ00TI2stGEzCKLxOTTKK0Mhv6PxQT8=; b=llVDkhn2rwsQ/iPDPpJUbdnsN0031HGjHlB46jl+7Ah4bIRkwnv2xQSOnGUah88o2d B0B+gFM8TnF8csTHaYxox4HeRqtFrSMTTnbuUesg3CDPF2ecrSwdmLwctfu8Q3h7jz+X 7/vvxjSwtvfh0kGATkS4jqQSBhJMXnbhEna9llgcZpGzBWVjgnPRjmdHqwZwe71jmKNX 743iKF5Y5e+M2MzoHaIeeuA0UTMobF9zWL1olUJspHEZf36fyNiz3aW5/RVV3d2hxZpr mNLiWzuwnOFtgfyXrDeA3hSUIEg2zUvGtctFdcy9EDjSbvuVuiuURiTpnGkoU+VeiTPe MMrQ== 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 c24si9088375edb.328.2019.10.28.14.11.52; Mon, 28 Oct 2019 14:12:16 -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 S2390556AbfJ1Py4 (ORCPT + 99 others); Mon, 28 Oct 2019 11:54:56 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:43559 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390222AbfJ1Pyz (ORCPT ); Mon, 28 Oct 2019 11:54:55 -0400 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 x9SFs4oj001372; Mon, 28 Oct 2019 17:54:05 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 704636026D; Mon, 28 Oct 2019 17:54:04 +0200 (IST) 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 v2 0/3] reset: npcm: add NPCM reset driver support Date: Mon, 28 Oct 2019 17:54:00 +0200 Message-Id: <20191028155403.134126-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. Addressed comments from:. - kbuild test robot : https://lkml.org/lkml/2019/10/27/768 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 | 35 +++ drivers/reset/Kconfig | 7 + drivers/reset/Makefile | 1 + drivers/reset/reset-npcm.c | 275 ++++++++++++++++++ .../dt-bindings/reset/nuvoton,npcm7xx-reset.h | 82 ++++++ 5 files changed, 400 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