Received: by 10.213.65.68 with SMTP id h4csp4248813imn; Tue, 10 Apr 2018 11:39:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+msyUpOcTClbs/vfinmaVIFgYXKkiWKwJzLs5xrYf0FE8J3Cv4qP9xa2K62H0+oBk5Jxlq X-Received: by 10.99.119.78 with SMTP id s75mr1113333pgc.238.1523385561052; Tue, 10 Apr 2018 11:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523385561; cv=none; d=google.com; s=arc-20160816; b=I+G/vJpS1PNjkTychIJZhCAHvDv4LOsVVAOdVUL71iSnH2deoBwItFTioJZeLLzHQf XJjlCnb1fgN79W+pgQTzU/qH3/P9h4uK/Rly4NUeG0VsisOll6XMy/IeT/jg/lyZRjPR pD8ahze9dBh0OLO1gjOx0VizWEu1YVrXoQdoOEBQW+08MmtLFUZey5q5RqGn1/0Qs3m4 TPe7MroaD7ZFRhp5hr+t3H8vW5oVK+BgMNj7wiL1xnCf3+sYWZJJ+UoqkSvFlY6NCpIF irXfqq9v2TIhYwrawbjmySUnNSdTMAOcTi8quBhdn4cgTlCSS91EbAnDrNL8mYUflN/f BjgA== 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:arc-authentication-results; bh=VM0b6/FbKsXsA9NEIzcEkRnUeF4o/EDxe9PEbAFQyQc=; b=yhZn1HnW+DAdDrMbiu03uOfHQg8KDCfW7oTKIs4mQ3dr+yuWYyfl914aTybHM4c+bI VBM9LD51Y5C825Vaqh9W+XA0qUP1UWDKzzl4m2UKtGTHwFM6LyaZLiHsC4qjXjCGaSAW 9ohH52QB2nj/q/2MrNhyFn/ATMzHy4j6CrPqQWsG736hW1CO0SqFUNvPwIddDb9AB71K JKRM3sMQ+AR2cRnjE8/emgqc3HvqQ/EMZAjpDme74zdgotivdM2bwGKmEfMn41nuP70R UKyMpJT1/9HiAwQGCYle4z1QUEusN7EcTLpbTViCkbZgUzilpEF//AMxS/ubQJNX2CS/ Gg9g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 18si2533268pfh.379.2018.04.10.11.38.43; Tue, 10 Apr 2018 11:39:20 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752372AbeDJSc7 (ORCPT + 99 others); Tue, 10 Apr 2018 14:32:59 -0400 Received: from mga06.intel.com ([134.134.136.31]:23464 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751836AbeDJScz (ORCPT ); Tue, 10 Apr 2018 14:32:55 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Apr 2018 11:32:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,433,1517904000"; d="scan'208";a="219323751" Received: from maru.jf.intel.com ([10.54.51.80]) by fmsmga006.fm.intel.com with ESMTP; 10 Apr 2018 11:32:53 -0700 From: Jae Hyun Yoo To: Alan Cox , Andrew Jeffery , Andrew Lunn , Andy Shevchenko , Arnd Bergmann , Benjamin Herrenschmidt , Fengguang Wu , Greg KH , Guenter Roeck , Haiyue Wang , James Feist , Jason M Biils , Jean Delvare , Joel Stanley , Julia Cartwright , Miguel Ojeda , Milton Miller II , Pavel Machek , Randy Dunlap , Stef van Os , Sumeet R Pawnikar , Vernon Mauery Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org, Jae Hyun Yoo Subject: [PATCH v3 04/10] Documentations: dt-bindings: Add a document of PECI adapter driver for Aspeed AST24xx/25xx SoCs Date: Tue, 10 Apr 2018 11:32:06 -0700 Message-Id: <20180410183212.16787-5-jae.hyun.yoo@linux.intel.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180410183212.16787-1-jae.hyun.yoo@linux.intel.com> References: <20180410183212.16787-1-jae.hyun.yoo@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds a dt-bindings document of PECI adapter driver for Aspeed AST24xx/25xx SoCs. Signed-off-by: Jae Hyun Yoo Reviewed-by: Haiyue Wang Reviewed-by: James Feist Reviewed-by: Vernon Mauery Cc: Alan Cox Cc: Andrew Jeffery Cc: Andrew Lunn Cc: Andy Shevchenko Cc: Arnd Bergmann Cc: Benjamin Herrenschmidt Cc: Fengguang Wu Cc: Greg KH Cc: Guenter Roeck Cc: Jason M Biils Cc: Jean Delvare Cc: Joel Stanley Cc: Julia Cartwright Cc: Miguel Ojeda Cc: Milton Miller II Cc: Pavel Machek Cc: Randy Dunlap Cc: Stef van Os Cc: Sumeet R Pawnikar --- .../devicetree/bindings/peci/peci-aspeed.txt | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/peci/peci-aspeed.txt diff --git a/Documentation/devicetree/bindings/peci/peci-aspeed.txt b/Documentation/devicetree/bindings/peci/peci-aspeed.txt new file mode 100644 index 000000000000..4598bb8c20fa --- /dev/null +++ b/Documentation/devicetree/bindings/peci/peci-aspeed.txt @@ -0,0 +1,60 @@ +Device tree configuration for PECI buses on the AST24XX and AST25XX SoCs. + +Required properties: +- compatible : Should be "aspeed,ast2400-peci" or "aspeed,ast2500-peci" + - aspeed,ast2400-peci: Aspeed AST2400 family PECI + controller + - aspeed,ast2500-peci: Aspeed AST2500 family PECI + controller +- reg : Should contain PECI controller registers location and + length. +- #address-cells : Should be <1>. +- #size-cells : Should be <0>. +- interrupts : Should contain PECI controller interrupt. +- clocks : Should contain clock source for PECI controller. + Should reference clkin. +- clock_frequency : Should contain the operation frequency of PECI controller + in units of Hz. + 187500 ~ 24000000 + +Optional properties: +- msg-timing-nego : Message timing negotiation period. This value will + determine the period of message timing negotiation to be + issued by PECI controller. The unit of the programmed + value is four times of PECI clock period. + 0 ~ 255 (default: 1) +- addr-timing-nego : Address timing negotiation period. This value will + determine the period of address timing negotiation to be + issued by PECI controller. The unit of the programmed + value is four times of PECI clock period. + 0 ~ 255 (default: 1) +- rd-sampling-point : Read sampling point selection. The whole period of a bit + time will be divided into 16 time frames. This value will + determine the time frame in which the controller will + sample PECI signal for data read back. Usually in the + middle of a bit time is the best. + 0 ~ 15 (default: 8) +- cmd_timeout_ms : Command timeout in units of ms. + 1 ~ 60000 (default: 1000) + +Example: + peci: peci@1e78b000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x1e78b000 0x60>; + + peci0: peci-bus@0 { + compatible = "aspeed,ast2500-peci"; + reg = <0x0 0x60>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = <15>; + clocks = <&clk_clkin>; + clock-frequency = <24000000>; + msg-timing-nego = <1>; + addr-timing-nego = <1>; + rd-sampling-point = <8>; + cmd-timeout-ms = <1000>; + }; + }; -- 2.16.2