Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5240383imm; Tue, 26 Jun 2018 08:05:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLPY+63JtjuVQAuyO/lkThMu4TwRDhA7vP+egMw7jGQ+Fb1qrgFI9IyV1Qt6VoLnp28Txex X-Received: by 2002:a17:902:280b:: with SMTP id e11-v6mr2019786plb.298.1530025543940; Tue, 26 Jun 2018 08:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530025543; cv=none; d=google.com; s=arc-20160816; b=ukS0TimBNekSuGdFyBD3yjPeG1eTJawl0nRwFjj9MS/MXCV2C00vQfoaomXP3DnWEZ qptVownnuqe54sYXn/hqHBHQrFM8tNbut8Fo6vsNeG/rMYXC0B8SVevwrAludVGHVF7K YFER72GDnKiziE1EYVFCyiYyzC+T5YUfqngYpTwGtN7DDom2BV2asRG4zsumOlxB2E6g VUR+0kJJeQKBTFHkCZrcz2zkx55XUq6T94RyntP5XJViSPmDgUcfz6wnGROZhPwm31Ro 2vIXlas8FeeCezsBdxDp11px5bVzBWBQap/di2ep+NDSpWE/cvpXBPKPDZX3KMTZuwXd ZXhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=PPxoC714EHfdlLREb5zGDm3RwPh1+8N27ku3U40cOCQ=; b=IcFDHSiLx7njdHaI+I/OYKGlLfEV39SUus6a/tWY0+Wqk4KQ1/x9TOVEMobhyDGr2O WZ5d030nLoBRej4JJQ1YsluzDCbem92dx1c4Th/0Xgf4yaxQP73yLFCLH20JIQKjqlC8 pCtJTzN3fCztmX43tVSJGZ5oF+NsECKllu/Km45ZCo5OCr8sdlY3l9qw5RsLMOglwUXR 8Vf2Y2zLymke58Z6Ldk+YDrxTGHOlyupo+3fKQOs8fTdg9OKf21Aw1IGQo0/W4BMEJgl 4wrbYtaVb8fMZ1sOFoNLXKnePDfasj17Oku6e6e1hztL629XkpZiaiU8TAJI+gsJprJH h5DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0dy5hTmE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4-v6si1612388pga.379.2018.06.26.08.05.21; Tue, 26 Jun 2018 08:05:43 -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; dkim=pass header.i=@kernel.org header.s=default header.b=0dy5hTmE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751950AbeFZPD6 (ORCPT + 99 others); Tue, 26 Jun 2018 11:03:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:41560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751072AbeFZPDy (ORCPT ); Tue, 26 Jun 2018 11:03:54 -0400 Received: from mail-it0-f54.google.com (mail-it0-f54.google.com [209.85.214.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 844E226CC6; Tue, 26 Jun 2018 15:03:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530025433; bh=54OLBR43CgMIHqaa1Y5x4+gzttcLVTIx8RD1cZhJ+Pw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0dy5hTmE4PB/CBTppgHNH0Iz8dZoYMACnenjZE0h4iRPeMqtE3X4J+eUo3zDb0HHB KHwhl0pRzwT6joX6xQ3aKudKWK2RTt0Dx9bxwwn8vGLWz5J9U4Qor0J3X5rU772uZE 9A8xonMdOVJwjV6VW488NX1jHeitxhYb1NWWm+UM= Received: by mail-it0-f54.google.com with SMTP id v83-v6so2787025itc.3; Tue, 26 Jun 2018 08:03:53 -0700 (PDT) X-Gm-Message-State: APt69E1wjnB2jxzjoq6ijXFskw1umTlX9IdCSxeBHBovQrcBCEF+yTG7 q8y1U+K5KlGYPSz/tGS9OGqgyQTrKJXbkmVOFg== X-Received: by 2002:a24:798f:: with SMTP id z137-v6mr1653068itc.19.1530025432814; Tue, 26 Jun 2018 08:03:52 -0700 (PDT) MIME-Version: 1.0 References: <20180624124155.82412-1-tmaimon77@gmail.com> <20180624124155.82412-2-tmaimon77@gmail.com> <20180625171417.GA16379@rob-hp-laptop> In-Reply-To: From: Rob Herring Date: Tue, 26 Jun 2018 09:03:41 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 1/2] dt-binding: hwmon: Add NPCM7xx PWM and Fan controller documentation To: Tomer Maimon Cc: Mark Rutland , Jean Delvare , Guenter Roeck , Avi Fishman , Nancy Yuen , Brendan Higgins , Patrick Venture , Joel Stanley , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Linux HWMON List , OpenBMC Maillist Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 25, 2018 at 4:20 PM Tomer Maimon wrote: > > Hi Rob, > > > On 25 June 2018 at 20:14, Rob Herring wrote: >> >> On Sun, Jun 24, 2018 at 03:41:54PM +0300, Tomer Maimon wrote: >> > Added device tree binding documentation for Nuvoton BMC >> > NPCM7xx Pulse Width Modulation (PWM) and Fan tach controller. >> > The PWM controller can support upto 8 PWM output ports. >> > The Fan tach controller can support upto 16 tachometer inputs. >> > >> > Signed-off-by: Tomer Maimon >> > --- >> > .../devicetree/bindings/hwmon/npcm750-pwm-fan.txt | 84 ++++++++++++++++++++++ >> > 1 file changed, 84 insertions(+) >> > create mode 100644 Documentation/devicetree/bindings/hwmon/npcm750-pwm-fan.txt >> > >> > diff --git a/Documentation/devicetree/bindings/hwmon/npcm750-pwm-fan.txt b/Documentation/devicetree/bindings/hwmon/npcm750-pwm-fan.txt >> > new file mode 100644 >> > index 000000000000..a9eacda34f92 >> > --- /dev/null >> > +++ b/Documentation/devicetree/bindings/hwmon/npcm750-pwm-fan.txt >> > @@ -0,0 +1,84 @@ >> > +Nuvoton NPCM7xx PWM and Fan Tacho controller device driver >> >> Bindings are for h/w, not drivers. >> >> > + >> > +The NPCM7xx has two identical Pulse-width modulation (PWM) controller modules, >> > +Each PWM module has four PWM controller outputs, Totally 8 PWM controller outputs. >> > + >> > +The NPCM7xx has eight identical Fan tachometer controller modules, >> > +Each Fan module has two Fan controller inputs, Totally 16 Fan controller inputs. >> >> Have you looked at other fan ctrlr bindings?f This looks like similar >> h/w to ASpeed. Really, I'd like to see a common doc that describes the > > > We do not have the same H/W as Aspeed, I believe in the near future we will need to add > more DT properties that will used only in the NPCM7xx module. I didn't say it was the same. Both are multi-channel PWMs with tach inputs. Presumably, they can attach to the same types of fans as there are only a limited number of types of fans and none of them are specific to any fan controller. >> structure and common properties. > > > what do you mean by common structure and common properties? When we have multiple bindings for the same class of device/hw, we define all the common parts in a common binding doc. This often doesn't happen at first, so we end up with a variety of bindings until we see some commonality. In this case, for structure, having sub-nodes for fans. As fans are not specific to the controllers, their node should not be defined by the controller binding. It's also how you describe the fan type, number of fans, the PWM connections, the tach connections, etc. Rob