From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=robh@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="0dy5hTmE"; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41FTp414FTzF1Gj for ; Wed, 27 Jun 2018 01:03:56 +1000 (AEST) Received: from mail-it0-f46.google.com (mail-it0-f46.google.com [209.85.214.46]) (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 8191826CB0 for ; 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-f46.google.com with SMTP id j129-v6so2790785ita.2 for ; Tue, 26 Jun 2018 08:03:53 -0700 (PDT) X-Gm-Message-State: APt69E3iggQVKIIhtBMgXJFAByvxMeP5aR165SLt5M5daVJkOGhIHjhu FX7r6rv0OcxbDMaLweFHnN1M1HehwEDwxYj0gg== X-Google-Smtp-Source: AAOMgpemXPgg0ELGMi4ewqhaYtBjUkt7eKP8a9dF2Plh/L9KxxcAGGQeMaas93LBuEQ93fldvXKf025izOlQyYc07uU= 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" X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2018 15:03:57 -0000 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