Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp700663imm; Thu, 31 May 2018 07:58:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK28f/pIlLRSquJCNCUk9qbF+ly1O5RO3ytmxXHHYe6Xuyq/dMHpkUvLrzTXoD3MK0y3zdj X-Received: by 2002:a17:902:8:: with SMTP id 8-v6mr7196406pla.287.1527778715560; Thu, 31 May 2018 07:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527778715; cv=none; d=google.com; s=arc-20160816; b=U6cP6PLxzZdc7qsY/3lctIb3Af1uQ5iNJpi7apmf9X6vlcETO7/x4p46rwwTl9K1bc PvnvyDpBDYFnqY+/F2NvNWllIYlD9foyHqrzh/AiHxHNFTR8wxa96SBkzPSWY7yAAulY AxjeQmDv1UEn1Gj/0rvCUwkA/L+q0ZpqZf2JfJxhnqANVhI6TtCcpQdknQgUMx2NUSnq kGXElHK1oOGkYNh/WqhWKTon7h2xWyubDdZb8EaZzXJhL6OJzz5MKXl/Wcc3dVIRhvo7 08IBywj8MfYqXjX+bDCOj5DljU9VWDTeq8LmP6XymTRT4VT+uazWiB17K0LHIT6yz/i6 Xgmg== 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=MvgIZl99yo3MMP6WIaSQN/ELdfDFLUd3Y96+f3Gy/ko=; b=sUiGOjCz77032N0wTcXKcYhg7TGlegqcNGXLcV2XK1xr7z9LdUSKl5ZLEyG0V90Mmg m4FcuSf9tXewHFb4Zn8JucP0rtvJfQVEKrWJYr06wXq8kHBv4EsqkdGRs7R3vbVguJpk JoOQ+bUx1zP7OHO5I9WQeU5FywYOUfL7j/O8HHo4MrBLKZRKHRPzq3bhudAu0L2mxFed e1LsFtTOCyHH1t0CQKFOvfnNnbV1bmU0KF3Vy7gsbZ30X8PkkOl7urt7SnKcxCQU7G34 LK/H5QzQoO7HXMV4l0XoAegJpYIz1v9oQ8VFduS5XpDvNmPMcpzpKbpeJHjwahf6NcSg iOpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bKbzUyHs; 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 v2-v6si25210452plo.577.2018.05.31.07.58.21; Thu, 31 May 2018 07:58:35 -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=bKbzUyHs; 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 S1755421AbeEaO55 (ORCPT + 99 others); Thu, 31 May 2018 10:57:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:44580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754986AbeEaO5z (ORCPT ); Thu, 31 May 2018 10:57:55 -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 9E7FE208A6; Thu, 31 May 2018 14:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527778674; bh=gM/rLtdxr9ApuOIYe+gv24VB7P0seB15eE8cVeHsX1I=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=bKbzUyHsSQGFQc+J8QSAwI40qW6k1zUUTMS2W5T3gMl33HsRiVhqpsfdfdmnF6D63 TbZy/595f5O76vgmw0uH6it8zNUQyNeKNTxa5zfS9ffrFYuebSdH1A1KnkSWx7Vajf gYUyB6RUk4vUbvtzUQRS4wACy3Xbwa/2eBtOozho= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Matti Vaittinen , Rob Herring From: Stephen Boyd In-Reply-To: Cc: 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> Message-ID: <152777867392.144038.18188452389972834689@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: Thu, 31 May 2018 07:57:53 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 conne= cted 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.