Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp443647imm; Fri, 1 Jun 2018 03:53:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI1JPxHOBLztjRABuxLfk527K+pBtM2OYg4yH1ofqqUmFPR+aQElXsh1ye8qQPCMMSrgpyx X-Received: by 2002:a63:6b43:: with SMTP id g64-v6mr8421731pgc.337.1527850385454; Fri, 01 Jun 2018 03:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527850385; cv=none; d=google.com; s=arc-20160816; b=ciqIjOGFRAGxQS/XWbiP4WhfZSbWRfddODc23kW+Oe7cU5ruXZnI/KFsNhlHAGFo6X r8iT3CzBSVvf5EBZRlgSDFpmYaBOW7083WNdZhE4qdoF+7HkGkrbrAUoAeop8UukduTs QWQlseynX5lrxdiqIAH4ckofcmp2OvJWgYAuCAO/1UNd9/64j5bYfo5p/7VPiIvGwFEe RalyLTamSxHx9+BIUzKyCSBwQwEDsONEGiuRv1lNRTosxCnHloLt2QPk7p6b3RiYpQ2t 7fyK9DlCgpE0ybVVIDY6R9ZVpfGQ0Wo7ElRfCOw4nbIroo87/C2CrouJa5roNPL3Fd4V ZX+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature:arc-authentication-results; bh=iVauW7XA8xhv9nLHuQs5GK8kvX94D0Sm9naQeHfza2k=; b=e7mnHnmQDSvdt0U+OI6YgBXBaR7mfBVyXR2yLA7Y7jMj11T4wSYD6Z9HYL505YAAWh 2lmfQtqXPlzC055UJ54QObHtl6w2XFSVYk/WOEQ8GGwA4U01NYdwWIXwXj9R4PDhomyh A4VyO0rV2Q6QtwSh13+cvluj4O5helxfC2vJC+9B6jNFag7PUV21WIetEXmp4Hd40O5S t3UhABMF1p43binpyF1GEl21ifHuhZ8FX2PicCP/QbfxpCZwABHdgX4+43Zp6+gZFw1Q XPt8DADMZvS1U3P/573t9//9xkn/HZv81rkZJPRkyRpme6LEHJAOkNp3Za5vIc6YYk9E qlyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S4+LVTus; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b26-v6si14684661pgw.394.2018.06.01.03.52.50; Fri, 01 Jun 2018 03:53:05 -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=@gmail.com header.s=20161025 header.b=S4+LVTus; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751487AbeFAKvO (ORCPT + 99 others); Fri, 1 Jun 2018 06:51:14 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:33141 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750850AbeFAKvK (ORCPT ); Fri, 1 Jun 2018 06:51:10 -0400 Received: by mail-lf0-f65.google.com with SMTP id y20-v6so14178091lfy.0; Fri, 01 Jun 2018 03:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=iVauW7XA8xhv9nLHuQs5GK8kvX94D0Sm9naQeHfza2k=; b=S4+LVTusRLEJ3ilMq0s0U5Q3k8ENR8NUPn8kYNUzvZxJJCxHtDRsxHlh8EtvstwQWX iwehugxPrJhBPMizP7vw5wmnTVf+GEvzj4vyNBMOHAhnYG9iTQYFwuqkZGH0WL6A5onJ uPAYQHaRYdm9q0ZkZUu10k84nyYE5NhM6NfNmPkc73QsSbiMGfGvFcKclko/12Q2YL6/ Jy6d7Vs+fS6fBY73C2UXLoIQ/UBWa31HWK13IK5qdivohDy3tjLhjWFYj2KkS35tXOw/ xsUKoPrORXfRiduYooDk063TziA16sRsh8npPYfQhrLNgQBdWmX5Tr6lGQoRG5GEI9yJ sTwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=iVauW7XA8xhv9nLHuQs5GK8kvX94D0Sm9naQeHfza2k=; b=V63z62M2GdBDqTbEo78S+3sQTN1RwqOBwhOMFLP7PIxyEJROJmn4ABPv+cPaO9/d4X 7iUvd3clHzBeNON0V6/u6UfrA22nh5Ryl0Xopb3RRP5qzkLWNwpWlbh33Vi/ZoDtzhKE W0/eCgVl38RP93rQIvVIoM5knR2+EPP7BbVoAnyuzLVykaCCApQ0403p1aAgbKDtBfmk EUoGP3UB0nmK8l4/Lyx1wcl3khFSWDQcXvlgO9usMhN8SIsqsOCtkv1i8Dqw4AOicDFV bO+hf/lRB1BFshDtZi2Qef2u20agjGv/UyKPyejJCO1J7l6swVA7skyItwK5voI/9V5c FzeQ== X-Gm-Message-State: ALKqPwdb2s5au+gKAN940B5i/WbwvLLnxFeRGqQ3QiXafUzCVZE8baG1 wkusYZ4g3vA8ZgYOHmkKFHo= X-Received: by 2002:a2e:9b91:: with SMTP id z17-v6mr4287121lji.121.1527850268639; Fri, 01 Jun 2018 03:51:08 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.34]) by smtp.gmail.com with ESMTPSA id j18-v6sm3222576ljc.11.2018.06.01.03.51.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Jun 2018 03:51:07 -0700 (PDT) From: Matti Vaittinen X-Google-Original-From: Matti Vaittinen Date: Fri, 1 Jun 2018 13:51:05 +0300 To: Stephen Boyd 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 Subject: Re: [PATCH v4 2/6] mfd: bd71837: Devicetree bindings for ROHM BD71837 PMIC Message-ID: <20180601105105.GD5150@localhost.localdomain> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152777867392.144038.18188452389972834689@swboyd.mtv.corp.google.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 07:57:53AM -0700, Stephen Boyd wrote: > Quoting Rob Herring (2018-05-31 07:07:24) > > On Thu, May 31, 2018 at 5:23 AM, Matti Vaittinen > > wrote: > > > On Thu, May 31, 2018 at 10:17:17AM +0300, Matti Vaittinen wrote: > > >> Hello Rob, > > >> > > >> Thanks for the review! > > >> > > >> On Wed, May 30, 2018 at 10:01:29PM -0500, Rob Herring wrote: > > >> > On Wed, May 30, 2018 at 11:42:03AM +0300, Matti Vaittinen wrote: > > >> > > Document devicetree bindings for ROHM BD71837 PMIC MFD. > > >> > > + - interrupts : The interrupt line the device is connected to. > > >> > > + - interrupt-controller : Marks the device node as an interrupt controller. > > >> > > > >> > What sub blocks have interrupts? > > >> > > >> The PMIC can generate interrupts from events which cause it to reset. > > >> Eg, irq from watchdog line change, power button pushes, reset request > > >> via register interface etc. I don't know any generic handling for these > > >> interrupts. In "normal" use-case this PMIC is powering the processor > > >> where driver is running and I do not see reasonable handling because > > >> power-reset is going to follow the irq. > > >> > > > > > > Oh, but when reading this I understand that the interrupt-controller > > > property should at least be optional. > > > > 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 = of_clk_add_hw_provider(parent->of_node, of_clk_hw_simple_get, hw); 4. remove the clkdev I will cook new set of patches with all suggested changes but it may be I don't get it ready for posting untill next week. Br, Matti Vaittinen