From patchwork Tue May 30 06:08:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 100691 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp69432qge; Mon, 29 May 2017 23:09:07 -0700 (PDT) X-Received: by 10.98.133.145 with SMTP id m17mr21948595pfk.164.1496124547720; Mon, 29 May 2017 23:09:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496124547; cv=none; d=google.com; s=arc-20160816; b=pyjoE7uZTT+BpB/y9Hvyy2v/UGyE0Xr4zVNtA+tN5hOj1loNIhJsuWaLtiwTg9pagm sCpu/+tO/UkGXrxWHWeiqvINj1narlLZu6hwnbBVGL6wWtbfOVrRpyfCok51BtkVSa+L yJOTNz4iyUFaC1Da7qHMNZN1l0xdtiMBLSfQzFJ+kbtfKgeMU5EXdV1q2Tufx4ivh9DZ n5/GFlrrMGfR1p5eIJSdCj+T5QYHduMR+IRVOJ08ghxpcWvqMN0Spx5M4NO9Zdi0bT+d cu391MO5RFoidx65oerTM9U+mSaDq7dz/504QG8gQ6sIfN+BeFhbuOeulBYcqhjNYXGB Mvgw== 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=ruuOL+4KkSQEW5WP3hSCHqjt1T853FFCoMEklTfaffY=; b=r3obeJolt8FC9d0LrtMRNll4loz8twZOSyfKFMjy2P79JCsk3Hqor98Ic5DeZww7FN +QrF0+pbVmdCtLOwFOJf7TfEKXDRahPMM1koAlnIxIQMKZRgy4PXzeApCUaNsw0RWp8x iqoJb+7wVakQDkKz5X3j3aceg0rM6MD/pv2GxnD32sNnWYA0bF5EK2uVhWcELI5zpDt4 Z1UdxZ6Iamlu72x3btxELnLbm1BjH+dBf0NHUUfjvXbnahoOHU0ttt61vRQSOdWWSgAJ n2zzLUReleBjBfMDy+5ZE1suIaQq0vI2q2Fk6I79twq0w7Tj10jdTm00DDPeryuUpVfQ g+wQ== 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 i20si12696727pfd.20.2017.05.29.23.09.06; Mon, 29 May 2017 23:09:07 -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 S1750913AbdE3GJF (ORCPT + 7 others); Tue, 30 May 2017 02:09:05 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35450 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750821AbdE3GJE (ORCPT ); Tue, 30 May 2017 02:09:04 -0400 Received: by mail-pf0-f194.google.com with SMTP id u26so15606056pfd.2; Mon, 29 May 2017 23:09:04 -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=jbBF7gZCXpfr+EGLp+tg23aehfQl5tvPFDp2jnyQFgo=; b=ZOIJjRaQHbEeKLMOgmANjY9AQIwRgX2oTJ8pnSw6EtgUzrRs59wJ4hcOS9ROes6NwF 0QnimvWW7Sda+Bq9KDSguMfYfONf5pmRCmyfe/FS+HfW0RtPCJZmzuSLgw91jqbvKdAQ 6akHfybVzDBk2PLYqHACuHndEbZCESwy+d1AxHtmbXWIFNADA3rFLWulyno/lg2MuiRg oUzcEBVLupW/2Sh45bAUZhk+42/JuJMhXOKpmMgNO6LHyUofr+unv6WDgZH0HSrk22l9 sZtma6e2DUw5D3fZInTybJKxaCcOJX3N70Cjor8sNJDACpctPKpbVGQNHI1OPtKQB4gQ YgvA== 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=jbBF7gZCXpfr+EGLp+tg23aehfQl5tvPFDp2jnyQFgo=; b=UnRBWsOk7McSUy/nPXK7CHCxo3H7EX2JT8+CZwOzzekf7oCTc26Yu6ylclsVIV+uDU 44JLP2QbdDDHIMVTguXDbdJ7RkeaKnaK8C+RmnmD39H9gC2TlNRREMGss8lWQDH4g3M3 0qWfbX3eawXsJz83RTmQG8MeQW+Q0ZUd/dM0iO/Zej+n5QWEY7WmEhI59+v4Zmr6ddwR 9As+7FCmLraLHJNfEOkKASvU+A8024z4lJdrkCNuinN+UQ+6esiSpcU6Fr1tdjrBrHc2 R6tVVbYlV2a3oWVoAQZhms4t6JO0gSlC9wJh4T5HNjBKIZohRLUYU9RrhFd4p+8I9/sb eJMQ== X-Gm-Message-State: AODbwcB5luVGKDpaCtYi/zg/y6iAm01U2m97opelIZcjZHWoa737hBV2 3JRAcBLeTFPpIuAbcrTd/A== X-Received: by 10.84.232.71 with SMTP id f7mr82083530pln.168.1496124544102; Mon, 29 May 2017 23:09:04 -0700 (PDT) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id e16sm19643711pfk.100.2017.05.29.23.08.59 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 29 May 2017 23:09:03 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Tue, 30 May 2017 15:38:56 +0930 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 v2 0/2] reset: Basic reset controller Date: Tue, 30 May 2017 15:38:49 +0930 Message-Id: <20170530060851.29923-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, This is v2 of the basic reset controller, which addresses the points that Philipp made. See the individual patches for changelogs. The original cover letter follows: 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. 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 | 43 ++++++++ drivers/reset/Kconfig | 7 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-basic.c | 113 +++++++++++++++++++++ 4 files changed, 164 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