Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1393645imm; Fri, 1 Jun 2018 23:31:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK3adoGS/c7KriLgffjt6BarfDVB9GgkEAAppBgxkgbMJ84KW24wuFLEikZ7/BwIFJTxibm X-Received: by 2002:a17:902:780a:: with SMTP id p10-v6mr14022057pll.281.1527921106562; Fri, 01 Jun 2018 23:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527921106; cv=none; d=google.com; s=arc-20160816; b=nAt45d9V4ZVk0gEohHDpykQnuVpAG4PEfkFawJ+ZpVY6Svq/9Kp47Kk/9lo7KiRecl mKUdgePxmOJKL+dxOxpvuTadRiGyn4bIDHgodTRyvu8TDqMNIliBA1l5MaeBLXdnAJqp RRkkYIYQNuCCklOD5aNZFkejCdo9LcjCdc8ScukCfpst3tg6LTFEf7OHkSNXnC3WVApK aH4rXAMvWpBN4rpTBQjns3Jkf5r9JC0MCI7dcmpca/TLj1SzlPDjxWYb6JhY2rp2HKv0 s/GdECoFYHeL+9XoiNeg2iTtgf4fcd209382Ndi8JcNL3eSgqJNIAsbaGAx5f+V2Nh5b iiQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=3XQbRjwSYIcYOv4abypOj91dHe/JcBgR2MGBXrFFsfI=; b=AUscQ67xpVD/ht5Edq+fkBOTNozWAugqlF9qQ4MGZv4bKWfMUHg0sEG2Mdtbywwhx8 aXhNla1FYtovON1f636iKGrX1LQlvntyVS3MAqbKQcq4CSbkmUVNUF8z2xQzTdXBX0AE esU7qZyl/5xgNHl9Qw3Lzv3ElcIrubEk03ipLv19w/OSTMS0Ovu+fjCDWueuc+BA7OUa 9sux+smMLgFeKO9HknH/viwWW6DC7yMgEmDPsTj+hB9aPdR6Kp/kirlOi+hIRwgnb2OO t+5gNoN8MGu+IN565no8jtbl/6a828mtsUDFu7KdjlUE1AYC7am3C+dq7I8pozE6r5Md t+ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DV/L5vov; 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 n4-v6si896526plp.128.2018.06.01.23.31.32; Fri, 01 Jun 2018 23:31:46 -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=DV/L5vov; 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 S1751691AbeFBGat (ORCPT + 99 others); Sat, 2 Jun 2018 02:30:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:53502 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750750AbeFBGao (ORCPT ); Sat, 2 Jun 2018 02:30:44 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 150F120875; Sat, 2 Jun 2018 06:30:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527921044; bh=V2oR56LWjBofU46org7DRaiNBco+dgwm8gF38sKKeY4=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=DV/L5vovnJfxJwBeko3VIkCt3ZYVtJIhPwSfPSNo+fdtyAByflPuHScta3YIk7yDy IH+W8imz8ezdp14HOEsh4LB7gMMteyWF+/qZy1N1Drpr+1SmAIYHGUXmMOvm7uWirD iTviaMWlxqYQ27pgiw7Hi97OpDrjfl3ySD/GS5xk= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Matti Vaittinen From: Stephen Boyd In-Reply-To: <20180601105105.GD5150@localhost.localdomain> Cc: Matti Vaittinen , Rob Herring , Matti Vaittinen , Michael Turquette , Mark Rutland , Lee Jones , Liam Girdwood , Mark Brown , linux-clk , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , mikko.mutanen@fi.rohmeurope.com, heikki.haikola@fi.rohmeurope.com References: <3b05ca98a671a762013c312f8b70543402ee7556.1527669443.git.matti.vaittinen@fi.rohmeurope.com> <20180531030129.GA16122@rob-hp-laptop> <20180531071717.GG13528@localhost.localdomain> <20180531102315.GA5150@localhost.localdomain> <152777867392.144038.18188452389972834689@swboyd.mtv.corp.google.com> <20180601105105.GD5150@localhost.localdomain> Message-ID: <152792104337.225090.2257556980786807638@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v4 2/6] mfd: bd71837: Devicetree bindings for ROHM BD71837 PMIC Date: Fri, 01 Jun 2018 23:30:43 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Matti Vaittinen (2018-06-01 03:51:05) > On Thu, May 31, 2018 at 07:57:53AM -0700, Stephen Boyd wrote: > > Quoting Rob Herring (2018-05-31 07:07:24) > > > = > > > I don't think it should. The h/w either has an interrupt controller or > > > it doesn't. My concern is you added it but nothing uses it which tells > > > me your binding is incomplete. I'd rather see complete bindings even > > > if you don't have drivers. For example, as-is, there's not really any > > > need for the clocks child node. You can just make the parent a clock > > > provider. But we need a complete picture of the h/w to make that > > > determination. > > > = > > = > > I don't see a reason to have the clk subnode either. > = > After some pondering - do you mean I could: > 1. remove clk binfing document and clk node. > 2. add clock-output-names etc to pmic node (and describe them in pmic > node binding document) > 3. use parent DT node in clk driver and do something like: > if (parent->of_node) > ret =3D of_clk_add_hw_provider(parent->of_node, of_clk_hw= _simple_get, > hw); > 4. remove the clkdev > = This sounds ok to me. As Rob said, a more complete picture of the hardware would make this easier.