Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1500984ybh; Mon, 13 Jul 2020 22:33:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEDuUr4N8OdAfOkzfKgiAGon39bNSxfpg8ZkyYdz5YapYT9Az60NQh+Xe2LG3xSN3Jf9eq X-Received: by 2002:a05:6402:888:: with SMTP id e8mr2836741edy.210.1594704816359; Mon, 13 Jul 2020 22:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594704816; cv=none; d=google.com; s=arc-20160816; b=zRbNKJEp/dCwkItFj5H3mnHStljW2mPJJ0WWQn7u6tMZCT8ENQXuEHbE3LkvBItoxz 68dQuxxDBnjbizy+MMm0/FeueVeFskpITzYiCTck60mOoUcZqtEJ6PBV0czrqv1Om5eT 0CHtMqQ1TycjfT93fmFM/KvlWqN5BlR884I2a0JhXoL5JDXcflwjEPnjg0GKqYzlJK+o PlloVV8GzvjOSIxSnm7F4I9SYArh/F7iNbjpdr1F+BptJrUJv7uadhkmPApuBurEnqL9 jCeqya+HkwHd75MhRy+fVAt+nJAs47521JIoKsBuhVJBHhyK0VkrD+fWHxZh4GGJn6r0 UqVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=zdBHZ+EAU8pfWbtAXMZV0DzjgHkkGIQTni+JehQPWMY=; b=CJzctYjgbBmzQ8IA3NJLkAbCqBvq+euKx+gN8afhyszG6iXQFWc1I6vgQ3x5FRPBHb k0+j1/mddZD0wBDOxRQNHUcXNws7FBHzFbp+DF2ASVKkWRtad8o5UJiCq6DdMFMEKkeq P9h9l6eaKrzyzmWlY54ktVbhkISqQyiOYHG1YgZiwm+b72DFEIqfxwaeVA1PbDX3zcET ZdaQtsVaeQbcOR4ibwQGWCGmUC8AwWdzEGO/p5iBmg95xlG0IRkDWJwZMSnt0u5Lshu9 18MW8ehmc4wfZo4mY37lKCnTz7GXCnH1JfXH/RC6uYZHa5+EDSFcCjUVK9tWlrGqyrtw N8jQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g4si10167767edq.459.2020.07.13.22.33.13; Mon, 13 Jul 2020 22:33:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726458AbgGNFdG (ORCPT + 99 others); Tue, 14 Jul 2020 01:33:06 -0400 Received: from mga05.intel.com ([192.55.52.43]:55493 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726384AbgGNFdF (ORCPT ); Tue, 14 Jul 2020 01:33:05 -0400 IronPort-SDR: yAnxvbBwHlM+WfbJTVsS6MdkDrrFxTq5cMQu76w3teMaVyFluWMJqXypZTanFE9QoHSzwBni9X In0hlTPHlqHA== X-IronPort-AV: E=McAfee;i="6000,8403,9681"; a="233663854" X-IronPort-AV: E=Sophos;i="5.75,350,1589266800"; d="scan'208";a="233663854" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2020 22:33:05 -0700 IronPort-SDR: aDD1C1O4sqMlQQpAgdX8Ubkii5NHmQDCEZKGR//L+tb/3L9XUP/tPGA+UJCwWRAc/b+vovC09l Cy8acKKkmifg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,350,1589266800"; d="scan'208";a="324445520" Received: from linux.intel.com ([10.54.29.200]) by FMSMGA003.fm.intel.com with ESMTP; 13 Jul 2020 22:33:05 -0700 Received: from [10.215.165.139] (rtanwar-MOBL.gar.corp.intel.com [10.215.165.139]) by linux.intel.com (Postfix) with ESMTP id 57D3758080E; Mon, 13 Jul 2020 22:32:59 -0700 (PDT) Subject: Re: [PATCH v4 1/2] Add DT bindings YAML schema for PWM fan controller of LGM SoC To: Rob Herring Cc: u.kleine-koenig@pengutronix.de, linux-pwm@vger.kernel.org, thierry.reding@gmail.com, p.zabel@pengutronix.de, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, andriy.shevchenko@intel.com, songjun.Wu@intel.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, rahul.tanwar.linux@gmail.com References: <20200713164600.GA359372@bogus> From: "Tanwar, Rahul" Message-ID: Date: Tue, 14 Jul 2020 13:32:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200713164600.GA359372@bogus> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 14/7/2020 12:46 am, Rob Herring wrote: > On Tue, Jun 30, 2020 at 03:55:31PM +0800, Rahul Tanwar wrote: >> Intel's LGM(Lightning Mountain) SoC contains a PWM fan controller >> which is only used to control the fan attached to the system. This >> PWM controller does not have any other consumer other than fan. >> Add DT bindings documentation for this PWM fan controller. >> >> Signed-off-by: Rahul Tanwar >> --- >> .../devicetree/bindings/pwm/intel,lgm-pwm.yaml | 50 ++++++++++++++++++++++ >> 1 file changed, 50 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/pwm/intel,lgm-pwm.yaml >> >> diff --git a/Documentation/devicetree/bindings/pwm/intel,lgm-pwm.yaml b/Documentation/devicetree/bindings/pwm/intel,lgm-pwm.yaml >> new file mode 100644 >> index 000000000000..120bf3d85a24 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/pwm/intel,lgm-pwm.yaml >> @@ -0,0 +1,50 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/pwm/intel,lgm-pwm.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: LGM SoC PWM fan controller >> + >> +maintainers: >> + - Rahul Tanwar >> + >> +properties: >> + compatible: >> + const: intel,lgm-pwm >> + >> + reg: >> + maxItems: 1 >> + >> + clocks: >> + maxItems: 1 >> + >> + resets: >> + maxItems: 1 >> + >> + intel,fan-wire: >> + $ref: '/schemas/types.yaml#/definitions/uint32' >> + description: Specifies fan mode. Default when unspecified is 2. >> + >> + intel,max-rpm: >> + $ref: '/schemas/types.yaml#/definitions/uint32' >> + description: >> + Specifies maximum RPM of fan attached to the system. >> + Default when unspecified is 4000. > These are properties of the fan, not the PWM. And probably if you > need these properties then others would too, so they should be > common. Look at the pwm-fan.txt binding. I checked pwm-fan.txt. I don't find any common property which matches our fan properties of fan wire mode & max-rpm. Are you suggesting to add these properties additionally in pwm-fan.txt as new common properties and then use newly added generic name in our driver? Also, we have a dedicated PWM fan controller. So do you think this driver belongs to drivers/hwmon instead of drivers/pwm? Thanks. Regards, RahulÂ