Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp375996ybx; Wed, 6 Nov 2019 02:02:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxwC29aXjK8fm5gkRg+Eu78FsE1+hHaRzAGeeyRhJctBKC5j/DPeeqxoALpLzZf/eGrzbZn X-Received: by 2002:a17:906:958b:: with SMTP id r11mr15853257ejx.332.1573034564749; Wed, 06 Nov 2019 02:02:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573034564; cv=none; d=google.com; s=arc-20160816; b=X6koRpn+sj3Nh5FF+w3lE01RbbZJ3UIpzgbEwgbZTIrC4Evlqh1lZFkeN0GSG9nx62 RUbiVusc9Stq/kRSN0jW84e+MsckX220HPVcNERWAbG5ONxpZ4/UqYUi7kBLybRISv1v nGxLMJaG+Q3n4HpZs1Jwd2yxLT/Pd5cCZT9rD9Lb/YLP7FIAZ5XCnRTXlCA74xJ5IH+H d7x2ku+PSL+c6uvQAHiUD7pkqZ3a4r/CYdyp/9MfBXVjASh7tLKgpbSmK6yJLBXMwPna f/HA4nf22MXVg0Wr9E7tVWMvDjmaVPuycys1ZaKK46oc/Je0nWRtoku2R2A9kUw9cF46 PyYg== 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=DfaSwWlX85y9on0vWBoJLgnwSnu72JJ4+tbMKf22q1I=; b=g57KyjQhE79jvsVatSfHA01suPB+5Bls6lHJmdCks7JaNRyXbcdJys9yWejfkArA1b q91JcActtADuxJdIWil2Jc7CgqYO79hNzia6TYFAs4ZBoSxI1mVJp/c12jvHa09tBLnh TpFVnijm4HeV256ARL3NjgRE6q0uNGZBqkV1XVrisCYfoCN5PF7cBpuFhGHyVDZ3HoR7 KMnXTehTBfTUBSvjEfFmBLU/Upw0Vho3npmrWxkbbkxIpqcnBF0FX0LNO2fK70F1ZZzO ozg0mcnDB8JzEja4PWYRLBoRpeNbflpxm7rWmm3Bx2nPHEtVi981h3elB0CGWEC4jmsO ASfA== 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 jt21si781745ejb.390.2019.11.06.02.02.20; Wed, 06 Nov 2019 02:02:44 -0800 (PST) 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 S1731096AbfKFJ7X (ORCPT + 99 others); Wed, 6 Nov 2019 04:59:23 -0500 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:43996 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727628AbfKFJ7W (ORCPT ); Wed, 6 Nov 2019 04:59:22 -0500 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 xA69wXsP021265; Wed, 6 Nov 2019 11:58:34 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id C3B4E60275; Wed, 6 Nov 2019 11:58:33 +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 v4 0/3] reset: npcm: add NPCM reset driver support Date: Wed, 6 Nov 2019 11:58:29 +0200 Message-Id: <20191106095832.236766-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:. - Rob Herring : https://lkml.org/lkml/2019/11/5/918 Changes since version 3: - Modify to dt-bindings in the commit subject. - Remove footer from all the sent patches. 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-bindings: 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-reset.txt create mode 100644 drivers/reset/reset-npcm.c create mode 100644 include/dt-bindings/reset/nuvoton,npcm7xx-reset.h -- 2.22.0