Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1376822imm; Tue, 3 Jul 2018 10:02:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfR8RBK2Jju/+Mw9qTVdIh73wFf/EdYhAQy8nbDZ2o+IKmaJEk33bSfTzotsNDZp/z8RlBH X-Received: by 2002:a17:902:be04:: with SMTP id r4-v6mr12896843pls.324.1530637377097; Tue, 03 Jul 2018 10:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530637377; cv=none; d=google.com; s=arc-20160816; b=SVjjpliG3d35gPoRX4+Pu9JLTmInwAmThWmWiJD52fIrBrmVQeUBwG/SwcCqfNewKr oF07lJyeoyqmTQMaYJheZTAgMk0KlY99onCcqB0NG6bL/FVyHawciqUb79h8aGjIQBTi bjHpJ0wukn4xp4hOuoUPlJZXdQTmnpsMH+G4xtM/3NQUv/7SXsmCvopNvriiPF3imMVz Q+c1BWIn7k1Ey12+ButggXeb0iUPVbB9qHJ+N42NN9SqOTLUkBDEsFJyiaQHzbT7n4AU m+5x3MOyn0Ds9Ue/r8qKCG6sowgYaFQYQBUloordyBIReCkifKl84G+qy7bwj+jrcDT8 R/yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=mMiMbdJYemv0EQI3fBC7ErCVSVOE1TSd8+JVlr9z8AU=; b=n8oZl31EogTL1G2pPxy7TpAd0OiWQUxXpWwQmR6Sr/7eMufWMlNKOW+T/612tTF0e+ 1FjvXDjE06ReljkORzbWB/5nWYjHGF3+Pi99dIa5V8PG5rtqRukg/NKw3ihF60vb7RlE UFgiBGyfhjdfCluXuvME4gZUdL7I3qAs5kD24taDwXpWwForAbmcgpIvaxFIvbJxNJCs 8fj3fbp8CikJx/Npjp5YMqBuy8692OaYBWA8IWSanPQ8fM65/DuU3s+JZ8Qc2PNvAtLQ 748H0F8E+/CtNZLAC7fENcxVf/EYybH5vMa3+Ka0jlBXWK03RZMalITAQ141bM4CL8mV e4KQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q10-v6si1378173pgd.108.2018.07.03.10.02.42; Tue, 03 Jul 2018 10:02:57 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933929AbeGCRBx (ORCPT + 99 others); Tue, 3 Jul 2018 13:01:53 -0400 Received: from mga11.intel.com ([192.55.52.93]:19254 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752997AbeGCRBw (ORCPT ); Tue, 3 Jul 2018 13:01:52 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2018 10:01:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,304,1526367600"; d="scan'208";a="52356691" Received: from yoojae-mobl1.amr.corp.intel.com (HELO [10.7.153.143]) ([10.7.153.143]) by fmsmga008.fm.intel.com with ESMTP; 03 Jul 2018 10:01:50 -0700 Subject: Re: [PATCH linux-next v6 04/13] dt-bindings: Add a document of PECI adapter driver for ASPEED AST24xx/25xx SoCs To: Rob Herring Cc: Jason M Biils , Mark Rutland , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Benjamin Herrenschmidt , Greg KH , Milton Miller II , Pavel Machek , Robin Murphy , Ryan Chen References: <20180621193721.20588-1-jae.hyun.yoo@linux.intel.com> <20180621194024.20771-1-jae.hyun.yoo@linux.intel.com> <20180703165148.GA11628@rob-hp-laptop> From: Jae Hyun Yoo Message-ID: <7f7d1045-ca1f-6086-8fce-ceab53568bcd@linux.intel.com> Date: Tue, 3 Jul 2018 10:01:50 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180703165148.GA11628@rob-hp-laptop> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Thanks a lot for the review. Please check my inline answer. On 7/3/2018 9:51 AM, Rob Herring wrote: > On Thu, Jun 21, 2018 at 12:40:24PM -0700, Jae Hyun Yoo wrote: >> 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: Benjamin Herrenschmidt >> Cc: Greg KH >> Cc: Jason M Biils >> Cc: Milton Miller II >> Cc: Pavel Machek >> Cc: Robin Murphy >> Cc: Ryan Chen >> --- >> .../devicetree/bindings/peci/peci-aspeed.txt | 57 +++++++++++++++++++ >> 1 file changed, 57 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..8c35f905589d >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/peci/peci-aspeed.txt >> @@ -0,0 +1,57 @@ >> +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 > > Just this is sufficient: > > Should be one of: > "aspeed,ast2400-peci" > "aspeed,ast2500-peci" > > With that, > > Reviewed-by: Rob Herring > Thanks! I'll change it as you commented out. Jae >> +- reg : Should contain PECI controller registers location and >> + length. >> +- #address-cells : Should be <1> required to define a client address. >> +- #size-cells : Should be <0> required to define a client address. >> +- interrupts : Should contain PECI controller interrupt. >> +- clocks : Should contain clock source for PECI controller. Should >> + reference the external oscillator clock in the second >> + cell. >> +- resets : Should contain phandle to reset controller with the reset >> + number in the second cell. >> +- clock-frequency : Should contain the operation frequency of PECI controller >> + in units of Hz. >> + 187500 ~ 24000000 >> + >> +Optional properties: >> +- msg-timing : 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 : 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: >> + peci0: peci-bus@0 { >> + compatible = "aspeed,ast2500-peci"; >> + reg = <0x0 0x60>; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + interrupts = <15>; >> + clocks = <&syscon ASPEED_CLK_GATE_REFCLK>; >> + resets = <&syscon ASPEED_RESET_PECI>; >> + clock-frequency = <24000000>; >> + msg-timing = <1>; >> + addr-timing = <1>; >> + rd-sampling-point = <8>; >> + cmd-timeout-ms = <1000>; >> + }; >> -- >> 2.17.1 >>