Received: by 10.192.165.156 with SMTP id m28csp1449086imm; Wed, 18 Apr 2018 09:47:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx48vWiARnpLICw8IqUKm2YHNhzueJ3uuPVL5qjTVvwnS9huhU1enBlcivd9p2qgK0bmeojfV X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr2720846plu.22.1524070044466; Wed, 18 Apr 2018 09:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524070044; cv=none; d=google.com; s=arc-20160816; b=aFJTQnE+z7ixtFTuFuvZPQUpu9BUpRDJvUytU8sg6gD0xA/6KEzPH/q8sJo5x4VEY2 BfPvEs81lowwqSX8Qna2r74u/cfTh2ziFVopOOjq9ZjKhpEJFZczMdloh+CJ2MnZym2q k5UWFBR/DOU1wQjGsFm+txce2IMgu96aFRnR7K624u3P+M5DXhyZvDFtKkl6A2Nnk2PA JIN3+N9/NZl9vkbbYsCHndIMX9W16xNjsT4hjvXPjm+rfOVdntyIxVS8Jcqk7ciEuJtq eug4JktuUCAoWrS62nStfKsTeYiXfZ5xa9oZO162qCxqrcVl+RbPRAr2pwCFJ1f9+XMA LQ5g== 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=HCIYGiTj164u5mT2HZhCcwnQSewrnLembcLs+oPMxUE=; b=ZpgnUD4G0jI9L3tQ5yABcoiBALQ6/qxC8DlNsqlIdmAGPrsmcck+UJKj4fAlGcONiq F7FA2X1BG0E70hla4z1FPeHW6B80QKjfMtJDoCT+gpFOvDHNcrW802GFZoMnHOlMAKHR vGSjqATCqKYzXYUQxlWz7dqB/EjPg5sbElL6ZL7x+oDhy+cXI+GVQzFJb1wCFz7CFCPx lvwCXkw7qUciuD8seJda8Yf9dosbIfSk8YrUQACzSwyeBrYOzVx3c5NkSLEVdd0jcKrW lnfwBtqxQ5AcVdnJ3+D2LeSsDlcc1GYMf45x/xAGhgJotysOAMaX4y+tH3LSpBV7SINI Gd6w== 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 w12si1359939pgm.565.2018.04.18.09.47.10; Wed, 18 Apr 2018 09:47:24 -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 S1752283AbeDRQqB (ORCPT + 99 others); Wed, 18 Apr 2018 12:46:01 -0400 Received: from mga17.intel.com ([192.55.52.151]:16556 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751335AbeDRQp6 (ORCPT ); Wed, 18 Apr 2018 12:45:58 -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 fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Apr 2018 09:45:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,466,1517904000"; d="scan'208";a="33564808" Received: from yoojae-mobl1.amr.corp.intel.com (HELO [10.7.153.150]) ([10.7.153.150]) by fmsmga008.fm.intel.com with ESMTP; 18 Apr 2018 09:45:57 -0700 Subject: Re: [PATCH v3 04/10] Documentations: dt-bindings: Add a document of PECI adapter driver for Aspeed AST24xx/25xx SoCs To: Rob Herring Cc: 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 , "linux-kernel@vger.kernel.org" , linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Linux HWMON List , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , OpenBMC Maillist References: <20180410183212.16787-1-jae.hyun.yoo@linux.intel.com> <20180410183212.16787-5-jae.hyun.yoo@linux.intel.com> <20180416181035.rcjvt4rlrwaj5yxf@rob-hp-laptop> <53ff5b2b-eba8-8311-64a9-abd4bc72226d@linux.intel.com> <584aca6c-c87a-ff7a-2fdc-3c742236be60@linux.intel.com> From: Jae Hyun Yoo Message-ID: <7ff3b23c-7dc8-865f-4069-c53642aaf1ab@linux.intel.com> Date: Wed, 18 Apr 2018 09:45:56 -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: 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 On 4/18/2018 6:59 AM, Rob Herring wrote: > On Tue, Apr 17, 2018 at 5:06 PM, Jae Hyun Yoo > wrote: >> On 4/17/2018 11:16 AM, Jae Hyun Yoo wrote: >>> >>> On 4/17/2018 6:16 AM, Rob Herring wrote: >>>> >>>> On Mon, Apr 16, 2018 at 6:12 PM, Jae Hyun Yoo >>>> wrote: >>>>> >>>>> On 4/16/2018 11:10 AM, Rob Herring wrote: >>>>>> >>>>>> >>>>>> On Tue, Apr 10, 2018 at 11:32:06AM -0700, Jae Hyun Yoo wrote: >>>>>>> >>>>>>> >>>>>>> This commit adds a dt-bindings document of PECI adapter driver for >>>>>>> Aspeed >>>>>>> AST24xx/25xx SoCs. >>>> >>>> >>>> [...] >>>> >>>>>>> +- 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 >>>>>> >>>>>> >>>>>> >>>>>> This is the frequency of the bus or used to derive it? It would be >>>>>> better to specify the bus frequency instead and have the driver >>>>>> calculate its internal freq. And then use "bus-frequency" instead. >>>>>> >>>>> >>>>> I agree with you. Actually, it is being used for operation frequency >>>>> setting >>>>> of PECI controller module in SoC so it's different from the meaning of >>>>> "bus-frequency". I'll change it to "operation-frequency". >>>> >>>> >>>> No, now you've gone from a standard property name to something custom. >>>> Why do you need to set the frequency in DT if it is not related to the >>>> interface frequency? >>>> >>>> Rob >>>> >>> >>> Actually, the interface frequency is affected by the operation frequency >>> but there is no description of its relationship in datasheet. I'll check >>> again about the detail to ASPEED chip vendor and will use >>> 'bus-frequency' if available. >>> >> >> I investigated it more deeply. Basically, by the spec, PECI bus speed >> cannot be set as a fixed speed. A PECI bus can have a wide speed range >> from 2Kbps to 2Mbps which is dynamically set by a handshaking sequence >> between an originator and clients called 'timing negotiation' in spec. >> This timing negotiation behavior happens on every single transaction so the >> bus speed also can vary on every transactions. So I'm thinking a custom >> property name for it, 'peci-clk-frequency' if it is acceptable. > > Okay, seems bus-frequency is not appropriate here. So use > 'clock-frequency' (note the '-' not '_' as that is the standard > property). > > Rob > Thanks! I'll use 'clock-frequency' for it. Jae