From patchwork Fri May 26 03:32:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 100543 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp66096qge; Thu, 25 May 2017 20:32:54 -0700 (PDT) X-Received: by 10.84.197.131 with SMTP id n3mr38838962pld.170.1495769574194; Thu, 25 May 2017 20:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495769574; cv=none; d=google.com; s=arc-20160816; b=laz/UuOLJUmRtsB8TTXbrQphRgOsp1gGbbwwDEbSk7pgYbqGjm757QWUNtuQ3ZjTJv bptKsy35DFZopgL57TxzlDk5Q8titWNLTWC6W+KAMXjf0JCAsUIwS/nMJImkifM2S9G3 1ybb095QtmRrUQXFMZHuvj4ZoqdNJH98k9n9pNKUMLL1GEtBlptS5ub9rWbd5qm+Ht9k dU5EBq7pljJnBdl0XgGOWXkYuX90qDkWtI6AvFqq30YVpy1qQ+brJVQBhyz11dn/TjmA EEo30Elj1DZXwQZttemyfHjRBngqXydab9i8agxX2E1woxYK0p/Nmj8kfm2tjM5Y53wa FfAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=U4PVtFRl6PTwkhbLyEKYpvg4jaT2es8WoavQj6bvKwI=; b=tbugYjTOotJXy9gJmf4LSbWu86sMfMq1oW6zt379VSasyYXTuU8r5CtYpdQEFYpy7d V2r9oCl83iSndGadTlSu804nKn2zJM3wx86QR8Y4H55js/4rBLbZXLHT2Rm/Z9OTBIrh iVQstqKItsYe00c67MSCIqh9ejnb2FzmsOXz93YTgXNLnG94IugIh8Hwx+/cBCeJhXlL DsI3jTmhsSY2QKZh8fOCgWK27RKZui4Yi1jr3h039CkW5R4mMCoFFeimai2XBULAgSkj 24SLvwbo12J+E0aMI+y0U3uTURKp2FAjAklj15uSZDUrZI4ioVYq6c9JQ+ljj8olBWYy 32kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p19si29599988pgk.125.2017.05.25.20.32.53; Thu, 25 May 2017 20:32:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S939711AbdEZDc2 (ORCPT + 7 others); Thu, 25 May 2017 23:32:28 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:33313 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S939040AbdEZDc1 (ORCPT ); Thu, 25 May 2017 23:32:27 -0400 Received: by mail-pf0-f180.google.com with SMTP id e193so185035960pfh.0; Thu, 25 May 2017 20:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=0C2yYaupPTgN1UK/hpyr6/4tV1o0qhbPG42pC4Pchjk=; b=c3XNcVyyjgkFICd6K4mx6FnL1BhpkHQDOHxeTGRdEExqZESi+0S2Ff96WhmbnHslK+ 9LsUAXQm0DoQndl6Bka+Y62zQwRPGG2lJp3nvMhkLTeDnO23fyvGsfNMa1lPs7hvh5IH Rq8SYV49b2q8oHczY5Ya9mwosKG3GnPWqArdrX7Kg8eX90J4aQHgVP3Br0Nfshz9d4If DBQGTqQ93ukCw8SEuoDXvaqvbjDS6t2Fbyd79hEKdoxl7ot7uRj4PrQq7nJYh700Q9fd f3n/GcFxD7B2Ug7lzxPbnwEZ8Uf2t4wwIWVATzrpcnqyeAykKWH6dI1AOY9pt1EexDya REQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=0C2yYaupPTgN1UK/hpyr6/4tV1o0qhbPG42pC4Pchjk=; b=HRyvty9w1PdSA8h8JXR1rJX8i6L2AmfzxbYXxEfSNNbAXBJgBk7UORfmCoOnT2bC/y 4sbvu9D8k5HdZvwxFwwWd1enVNVUZ/11HsQBQNzHoobcCcNUU8xpTXxoZyqvs9vX44y+ 2fJpndj3a91RQ9PDVMmXZ6jLhzK9oM20J1bRaOA/A01SBsWuvu4csGI/ce5Xx7TCYML+ p9o7U6uA7gmQjzTOSQAxvQgBWLx6nI/7c00YuPsbcDdbMqDHrarLhCo2SkecnfD+ZbVg 3DupHKPV+2phV1q1dMdpQblPKOHgw/HhJ10he+CWHq47GNjbPiTaH+89peVlBQYcIqh3 aGbg== X-Gm-Message-State: AODbwcC93TD259ZK+vkbK/wDycM/XtAbtXL3F0O+k1NXXNfBcSpa0gQL 5zT+OeCZ5uVfeYzeYLnzDQ== X-Received: by 10.98.157.207 with SMTP id a76mr49194099pfk.17.1495769546946; Thu, 25 May 2017 20:32:26 -0700 (PDT) Received: from aurora.jms.id.au (bh02i525f01.au.ibm.com. [202.81.18.30]) by smtp.gmail.com with ESMTPSA id l186sm14859425pgd.42.2017.05.25.20.32.21 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 25 May 2017 20:32:26 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Fri, 26 May 2017 13:32:17 +1000 From: Joel Stanley To: Philipp Zabel , Rob Herring , Mark Rutland Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Herrenschmidt , Andrew Jeffery Subject: [PATCH 0/2] reset: Basic reset controller Date: Fri, 26 May 2017 13:32:12 +1000 Message-Id: <20170526033214.8081-1-joel@jms.id.au> X-Mailer: git-send-email 2.11.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hello, In the Aspeed SoCs we have some reset registers spread out in various parts of the soc: in the system controller IP, as well as other peripherals. I need to be able to deassert those resets before other drivers work. In writing a driver to do this I realised it was very generic. So instead I've sent a generic driver that can be used by the device tree to clear reset lines described by single bits in a register. Let me know what you think of the idea. I've tested this driver on our SoC to release the UART reset. Joel Stanley (2): dt-bindings: reset: Add bindings for basic reset controller reset: Add basic single-register reset driver .../devicetree/bindings/reset/reset-basic.txt | 31 ++++++ drivers/reset/Kconfig | 6 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-basic.c | 109 +++++++++++++++++++++ 4 files changed, 147 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/reset-basic.txt create mode 100644 drivers/reset/reset-basic.c -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html