Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp18531imu; Thu, 8 Nov 2018 14:01:30 -0800 (PST) X-Google-Smtp-Source: AJdET5e2zQqRGcz6+dmSJMH3rm0PAAXUwL6TNEC9vzENGryo94qxOfTnDvSJ+ymXe+MAkktFJHD+ X-Received: by 2002:a17:902:7281:: with SMTP id d1-v6mr2443113pll.284.1541714489984; Thu, 08 Nov 2018 14:01:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541714489; cv=none; d=google.com; s=arc-20160816; b=bFEqKe5pk1AV28Mv7CGpV0UAikG/p16WhWqt56Gv+f89tpDJmn/bXlkcXbCPwJpv88 5EoUd2UJsDoDZFygcKzQBmAuxuyGicce8TtygblbWBTynjpLIZ4aUr6yRW0isIqBsZ7z 4gOhU9foW9xMYAktLah/s1235KwAIodKjTZ3pcQdb7tBTOau0qvxl48oTwJYE+PU6la5 nIJS04dUnrOfj/+ZkV8aZcaOHaZsv4JN7SFN13Mv6xBOS0cJ8Kdfl5kbSr8Tc7Egd81s 0PlLCWwz06O1qnZTsYNlaZIg95hzzI3MwUSKRBwWb2m8yYVsXunVZzPIYdb9JeFkU3zZ CFBQ== 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:from:date; bh=gxHHTpuq/WJ85At1Faqq//rowUOu6ThJRs8EqxJegnU=; b=uMt/M2ivyBltgFNHsxb2fSYCooccurLVzR4wJd6aeAOs8Q+2aF0tWYnPgXOcQZHdyO VhO57vwAK5Fu5AhI2QnVwkQXSXSwp1MILfRKEyy9hiwWlZeScvb3XEDC8mCSGXOd09h7 UfLVDY6yMuMlN88PLULta8OIJExozNw6vx4jVeJDoDO5lUaiayEnu5SDxen5R8FHySU9 3EOy1qF1ls+ze1OU9dISxHy1kkYvH63nFfQusUXgRz2Hz2yQLyvVATYNz7l1ayQVNkKm zs96kYgBWr+gngJYFfo6yOXKVYrr6+6X/QJERfrICDEAACLb7cP0yIWCGh+/OgJ5PO+B +9Fw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u131-v6si5122099pgc.465.2018.11.08.14.01.06; Thu, 08 Nov 2018 14:01:29 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730235AbeKIHhW (ORCPT + 99 others); Fri, 9 Nov 2018 02:37:22 -0500 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:48556 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730204AbeKIHhW (ORCPT ); Fri, 9 Nov 2018 02:37:22 -0500 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wA8LxCK1031744; Thu, 8 Nov 2018 15:59:44 -0600 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail1.cirrus.com (mail1.cirrus.com [141.131.3.20]) by mx0b-001ae601.pphosted.com with ESMTP id 2nm92chhys-1; Thu, 08 Nov 2018 15:59:43 -0600 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail1.cirrus.com (Postfix) with ESMTP id 4261C611E122; Thu, 8 Nov 2018 15:59:43 -0600 (CST) Received: from imbe.wolfsonmicro.main (198.61.95.81) by EX17.ad.cirrus.com (172.20.9.81) with Microsoft SMTP Server id 14.3.408.0; Thu, 8 Nov 2018 21:59:42 +0000 Received: from imbe.wolfsonmicro.main (imbe.wolfsonmicro.main [198.61.95.81]) by imbe.wolfsonmicro.main (8.14.4/8.14.4) with ESMTP id wA8Lxfij025214; Thu, 8 Nov 2018 21:59:41 GMT Date: Thu, 8 Nov 2018 21:59:41 +0000 From: Charles Keepax To: Mark Brown CC: , , , , , , , , , , , Subject: Re: [PATCH 2/6] regulator: lochnagar: Move driver to binding from DT Message-ID: <20181108215941.GU16508@imbe.wolfsonmicro.main> References: <20181108101405.14062-1-ckeepax@opensource.cirrus.com> <20181108101405.14062-3-ckeepax@opensource.cirrus.com> <20181108121629.GD6675@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20181108121629.GD6675@sirena.org.uk> User-Agent: Mutt/1.5.20 (2009-12-10) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811080185 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 08, 2018 at 12:16:29PM +0000, Mark Brown wrote: > On Thu, Nov 08, 2018 at 10:14:01AM +0000, Charles Keepax wrote: > > > +static const struct of_device_id lochnagar_of_match[] = { > > + { .compatible = "cirrus,lochnagar-regulator" }, > > + {}, > > +}; > > This is obviously just dumping the Linux driver model into the DT, the > regulators are clearly different. If you want to explicitly list the > regulators in DT it'd be better to reflect the hardware and enumerate > the regulators individually - you can use one driver for all the MICVDDs > and a separate one for VDDCORE for example. Agreed, would be relatively doable for regulators, might be a bit verbose for the clock, but I really don't see how to handle pinctrl. I guess I will wait and see what the other maintainers think but personally I would really be inclined to keep the binding the same as the last version if we can. Thanks, Charles