Received: by 10.223.185.116 with SMTP id b49csp1039606wrg; Wed, 21 Feb 2018 11:01:56 -0800 (PST) X-Google-Smtp-Source: AH8x2243hCl7LhbldDS2JfcwBELbBCr4Nm6tC/ZRCxAdJNYKQmypeybSrGzVSlc4rip5Za8i9++S X-Received: by 10.99.158.17 with SMTP id s17mr3546732pgd.64.1519239716045; Wed, 21 Feb 2018 11:01:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519239716; cv=none; d=google.com; s=arc-20160816; b=bghtO4BVW8xwYLRNrxnqed070ynfQBG5EEdZ99SdE4dYaC7Y2rt6S0btCtIafThgdM wJfpmPDE9X/0xF/xb6jnR95mxg57zTWoU8rncDY5MwX7HjAlVM4trGmjW4xeKID45+0b +k5u6cr5wx7BHSZScHCj2sx89nqV5wZS+JDJBbnVotPR0KAub70XKif48uRl9Ma1Broi OQEs96sqoiv1YMea//uKuDhBNZA7g21RYuCfsZjPYsCL/Rxx2If/E1lLN8BjDTpjJCMb /BE+5DE/hLy7qRlmV3BN0ZngjcsFNXGUe7q8c3Ag6PmunGZAmsH4WN38DVKL3Ho8V+9V PRfA== 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=yM4xAM47Dzrk9o8lf+w1P0injSJiW/h8o38I6A13apo=; b=NoAOnlcLY07y+WbE0OFTbCNsjGbRYSJPHH/LIqWNzOLkzkljea5SDlPcqisMe7IYb7 1mYDuZ2wgyu4FRDGHwYEllIcfQRy1zphfXwjFdB6GwE31NICjUsjZXWBEdilRjStZAZR UAMVdYJduzGVEMGo6vr9ggWmWkzNFkJIl98K5G7aFYybMY1s4LFOi/QBxK3oMHYqAYLV QL9RzTXRbXp06K0T2W58ce9cfSiLuy0ACQkBzfyyBhaSxjwkefuyIs7OZVqnFqhlEGp4 QKWQL3saHuGo05phK7S7WPQvAdSKCWzyLLkwsgzHXl6wXdXP1D72CNbiXul3ilq4BgpH 6Usw== 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 r7si1634044pgq.645.2018.02.21.11.01.41; Wed, 21 Feb 2018 11:01:56 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934797AbeBUQTF (ORCPT + 99 others); Wed, 21 Feb 2018 11:19:05 -0500 Received: from mga05.intel.com ([192.55.52.43]:1804 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932174AbeBUQQR (ORCPT ); Wed, 21 Feb 2018 11:16:17 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Feb 2018 08:16:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,543,1511856000"; d="scan'208";a="29617842" Received: from maru.jf.intel.com ([10.54.51.80]) by orsmga003.jf.intel.com with ESMTP; 21 Feb 2018 08:16:17 -0800 From: Jae Hyun Yoo To: joel@jms.id.au, andrew@aj.id.au, arnd@arndb.de, gregkh@linuxfoundation.org, jdelvare@suse.com, linux@roeck-us.net, benh@kernel.crashing.org, andrew@lunn.ch 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 v2 2/8] [PATCH 2/8] Documentations: dt-bindings: Add a document of PECI adapter driver for Aspeed AST24xx/25xx SoCs Date: Wed, 21 Feb 2018 08:16:00 -0800 Message-Id: <20180221161606.32247-3-jae.hyun.yoo@linux.intel.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180221161606.32247-1-jae.hyun.yoo@linux.intel.com> References: <20180221161606.32247-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 --- .../devicetree/bindings/peci/peci-aspeed.txt | 73 ++++++++++++++++++++++ 1 file changed, 73 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..8a86f346d550 --- /dev/null +++ b/Documentation/devicetree/bindings/peci/peci-aspeed.txt @@ -0,0 +1,73 @@ +Device tree configuration for PECI buses on the AST24XX and AST25XX SoCs. + +Required properties: +- compatible + "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 registers location and length. + +- #address-cells + Should be <1>. + +- #size-cells + Should be <0>. + +- interrupts + Should contain PECI interrupt. + +- clocks + Should contain clock source for PECI hardware module. Should reference + clkin clock. + +- clock_frequency + Should contain the operation frequency of PECI hardware module. + 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 which time frame + this 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>; + }; + }; \ No newline at end of file -- 2.16.1