From patchwork Sat Dec 23 13:05:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 122684 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3412227qgn; Sat, 23 Dec 2017 05:06:01 -0800 (PST) X-Google-Smtp-Source: ACJfBotVR6eUL/NuLomU5QVjlsrBUWVmCL7gzhQZrGF71HDbccPL5T03HTJUxY94/arphRmMyUer X-Received: by 10.84.225.132 with SMTP id u4mr17067917plj.120.1514034361885; Sat, 23 Dec 2017 05:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514034361; cv=none; d=google.com; s=arc-20160816; b=QgSL6Y9CkmX8lq0mMU39puYMzouzQUtfU73JXgk8sWy7F0MVZf90msBDqhlVHXf8um L8QiImRwUDvICWwCkfh3nxY/BmnFjnZuvCI6MzBFziC3qkVI1BWV/NFDsokBPDLk7471 xUzRTyXo2jL62C2hUQVYbuP3cUJWdWckUApZmJ+vbDeTVYGyXA3fNbf9H6f0/cYKZCOU hiLu4n+bYzweL+IubZGSzwmSRAHjNYK2Pryxkc/Aurv8kiONerntMcPt/cZ1RdQmjO5N cmXLNCQPJWlEipK46K/m0sSmxMYXC30x1r5zTqVebFmYAjTCLeW8ILKc9uoZ1LGEWdzm 6shA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=k+PmJOrwqHL/DIBilGUTx4DQBvXaR+NAj3T9sPVWElw=; b=nI8AN8ttOfQwhjw8vo7aYOQBYrBJD4wMI+REyNpN/w8feWyGNUq92dhOXN4PbNd0Mh WAy7/+a0q23OlxZ8SmyrdkY+dLZg3CAbIUBvUKPUfnjC0kGYOF/t6vi8OPyiC05CtuGz vrRUqMeQVutt613ZbkLvWcxps3rbHpaHdNcfWmyWWyVQiv8HBZRnUO7BriqrM9qphdL6 GQxOKVgiH0J3+iwkOG6kshaKz4MQc93/iW3BNWlYuwIj1s7GQhu0JMPDYINGRVBHD6Ak iz3mlCkctlMUpJbTAmTW8zcTIIDQ4Ca8kBP7ajq3hkTLLS0zVbZnHU1Nr3DpMinUd0Nf xZPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=o3PfiTUq; 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 3si18549076pfl.282.2017.12.23.05.06.01; Sat, 23 Dec 2017 05:06:01 -0800 (PST) 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 header.s=20161025 header.b=o3PfiTUq; 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 S1753346AbdLWNF6 (ORCPT + 6 others); Sat, 23 Dec 2017 08:05:58 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35382 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753240AbdLWNFz (ORCPT ); Sat, 23 Dec 2017 08:05:55 -0500 Received: by mail-pg0-f68.google.com with SMTP id q20so15505964pgv.2; Sat, 23 Dec 2017 05:05:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Oc/XGl3ncgTqpFkMvWNIZ7mGgadmtD55+zt/97JNjzk=; b=o3PfiTUqz63so0qt+0BCdN9TnZtBtCq7bl9hREoYLtVSyo9szN0oW9jL7Bb2igyQvw SsyvdpG5oMin6KP0DvC3ltrDlJP0JRa1tYhlU3uAtcNRwNt9SLFWITqQoCFrTSlf8TyP L/74349dg0iO4sn7ZvkRXmlYhI0IuMW+EHg3CC9M1oYj6ZsntQUXXVjxoPXivzD5ioAz LtbIGffD1e1dyIl8Z6f08xP1DvNGJw8pgfwiVJn2v9dKqwCmehYmkvWbjVyh7weDn/4p zdzmFYn5j+elkCGcPH3dWUeEM6d0VUHoFLW8CEHjdW4TYXbqZ5UGiuQ5b9C50q1bw21r MJ1w== 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 :in-reply-to:references; bh=Oc/XGl3ncgTqpFkMvWNIZ7mGgadmtD55+zt/97JNjzk=; b=Erdaktz866mykjNJjWPNbjXWvXEG0UVi3dmKyNFtrQ/0IyX6R19HPa+Ie9aKogHKKR 3fLLcFfD31zQfSzkaEYwJg9K6RCFf965o85hJbx4PTto+dxdd11aRGY7GzV04ZZJqyxv FHYSrHh+tAf6lNDvcj7kmhVShR08ATtWgRrMqQl171j1VcWxpkKHeVN3V2sv5UvPqLI/ sL7UjP76EQHjfsJrrDOepNLrY9DEmO+RDXtOkmzsvrqhE4AQn1LAn5HkDaKy35HIcHvo QS58cROdArPuNG6rWZIAwNfKG1Jw+ODZmyq7DjBVoZuzauuTs7aUld3TaRzhFxCaj86b XTew== X-Gm-Message-State: AKGB3mLEdkCOVqLqnYvlnHkJuHgXWTBA/+hGYJCxxWxLCn4kt/aXfh/T i9rq83XwMN/fFuCC5KZpvmM= X-Received: by 10.98.63.221 with SMTP id z90mr17619149pfj.101.1514034354986; Sat, 23 Dec 2017 05:05:54 -0800 (PST) Received: from aurora.jms.id.au ([45.124.203.15]) by smtp.gmail.com with ESMTPSA id e187sm50410320pfg.23.2017.12.23.05.05.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Dec 2017 05:05:53 -0800 (PST) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Sat, 23 Dec 2017 23:35:42 +1030 From: Joel Stanley To: Guenter Roeck , Rob Herring Cc: Philipp Zabel , Mykola Kostenok , Jaghathiswari Rankappagounder Natarajan , Patrick Venture , Andrew Jeffery , devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: hwmon: aspeed-pwm-tacho: Add reset node Date: Sat, 23 Dec 2017 23:35:27 +1030 Message-Id: <20171223130528.5346-2-joel@jms.id.au> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171223130528.5346-1-joel@jms.id.au> References: <20171223130528.5346-1-joel@jms.id.au> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The device tree bindings are updated to document the resets phandle, and the example is updated to match what is expected for both the reset and clock phandle. Note that the bindings should have always had the reset controller, as the hardware is unusable without it. Acked-by: Rob Herring Signed-off-by: Joel Stanley --- .../devicetree/bindings/hwmon/aspeed-pwm-tacho.txt | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) -- 2.15.1 -- 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 diff --git a/Documentation/devicetree/bindings/hwmon/aspeed-pwm-tacho.txt b/Documentation/devicetree/bindings/hwmon/aspeed-pwm-tacho.txt index 367c8203213b..3ac02988a1a5 100644 --- a/Documentation/devicetree/bindings/hwmon/aspeed-pwm-tacho.txt +++ b/Documentation/devicetree/bindings/hwmon/aspeed-pwm-tacho.txt @@ -22,8 +22,9 @@ Required properties for pwm-tacho node: - compatible : should be "aspeed,ast2400-pwm-tacho" for AST2400 and "aspeed,ast2500-pwm-tacho" for AST2500. -- clocks : a fixed clock providing input clock frequency(PWM - and Fan Tach clock) +- clocks : phandle to clock provider with the clock number in the second cell + +- resets : phandle to reset controller with the reset number in the second cell fan subnode format: =================== @@ -48,19 +49,14 @@ Required properties for each child node: Examples: -pwm_tacho_fixed_clk: fixedclk { - compatible = "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <24000000>; -}; - pwm_tacho: pwmtachocontroller@1e786000 { #address-cells = <1>; #size-cells = <1>; #cooling-cells = <2>; reg = <0x1E786000 0x1000>; compatible = "aspeed,ast2500-pwm-tacho"; - clocks = <&pwm_tacho_fixed_clk>; + clocks = <&syscon ASPEED_CLK_APB>; + resets = <&syscon ASPEED_RESET_PWM>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>;