Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4685655pxv; Tue, 20 Jul 2021 09:18:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy6Jd07qmrkvyR6TlUm8N0MBOVTGVaP/5c/E1+AGt6vnSg0A8HjqswaCsYMLJQvUk8K8cX X-Received: by 2002:a05:6402:31a6:: with SMTP id dj6mr42494426edb.248.1626797899918; Tue, 20 Jul 2021 09:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626797899; cv=none; d=google.com; s=arc-20160816; b=Ehx8koBasSArfv77RbwfivemVIMqdHuDi6Gfhbo++wimwbUKsmJgjT4Z5Am9zFZXbc GnjUC5UIvIWj7Dn4WfuQ/5eiq+QJGrVSxwG/cWO12pk121NTDu40bzMwvfqjAweyNsU/ 6gUewv31sYQtuPC1+H2JUKAHOkPPKsZnfNH+Gq+P3+BYwG9Zeb3l5Bt4kzFBzG7AdI2J qGn9juI3iobuoqXv82jheXhdT09SrJIqiS8NZ0hZH+7Ud18nCBkl5/I93viXhK0f8iiu wCRimkppU8OJymgVCWY17mIQfvX137rRNpft3qOFTvISCZL4FzhJ50sQnqEKElHRO2Pw i+uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pVCv+JmIPRuD56E6LjWFf8ij0FQMIIJAhgyKZFkghdo=; b=YKh9NlmtDZs8z+KXSxSgxMy3IuTN3qoHyajSSPKLxe5pdt5UwDRfIf8dw3vKMaz2Ci YspdVnw+nCBVg+jLr4Y7XCDStkniG4xBWe3FJ3z7PpTMS1QMaFDyxERciwdtKRjPoCQT etrl7OA9yJwsUG0a/HGnFXQ1rrzWEkGUqb9cQOj1cTU7VaLuVQQh10rqI7zfI+lvmXNn brlOJnnwyIv4jBTGEzeB/jpxg22YkKwODyWCUD4CUfn+K8T2E1xRTfBzN4VTte+myoMV fZLP/sJnvBpvSQDREhAIiyHgCIDvwQfLn22MIQw/WXtnN0W6GhCvGzua/kL3pCyDMB4e aegQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="KDpF/Quy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si24432373eju.362.2021.07.20.09.17.56; Tue, 20 Jul 2021 09:18:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="KDpF/Quy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234599AbhGTPdq (ORCPT + 99 others); Tue, 20 Jul 2021 11:33:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232356AbhGTP22 (ORCPT ); Tue, 20 Jul 2021 11:28:28 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81CDDC061766 for ; Tue, 20 Jul 2021 09:09:06 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id u1so26652259wrs.1 for ; Tue, 20 Jul 2021 09:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=pVCv+JmIPRuD56E6LjWFf8ij0FQMIIJAhgyKZFkghdo=; b=KDpF/QuyH2EEa4BxevRhhQRc3tL81pg7UjwtIzvYVL5SLu8YVOJrJ9pS9/7kTefrcU u1e+/YKV6+TzGoOi77/Pc96ewWe86kIvh9NLH9csdUUuVKG3vR+N8dYoMMNQkxq7aRtz ETSXIp3GvVbfdPbRpafp1gXsMp86+41dnN5bI1HmJZqLepvzGWX52EQVP+bDehb9GVs+ gpxnKY7qFSkIJBwbSMun3krCYFY3yCImcKBVRmkoISIENvPECjvK+asWRIfXiNI+dS7P pjKhCguoDdH51b6rCn0onhpZBgiDq/PMw8EiUI8Hlq4A88Oa5lkETUWcmtlwI/EJhqmA 3W/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=pVCv+JmIPRuD56E6LjWFf8ij0FQMIIJAhgyKZFkghdo=; b=Y+h81U6SCLHrNoXWFxUWk57M6Be++Znz030glLv5qVX8+TO3aBc7cugvO2hToIUpKJ /f1UNzmkId8Gd6mpf30TIDKSh8wtSHjQsPlpSLL1OjxEcHr3v73DmV2whS7r0zqIYycJ zdu8QjFaSZbF+A/Tfl53KBpEpXA06XFwoau7BWp/9tRr5zlE3t6Yo0MoEafU77hfjEix hvp6FM+ZTAsHyY8gK04AUVa/Vr7xgsUZO5rDIFn3hYZksFVOExMC6FCEHD29MbwIqdgc MCSvrG22rumx7fx0y6RXe17kvaTKWz4E44yN3M7/3xaFSKfRYs8w8QF52aJ0Gjh2R1Z0 WX9Q== X-Gm-Message-State: AOAM533l/0/evR2OwHh4SHAXkB6lhnfQG24MDSTLa7CCklJJ5VlPZOml 3i45lEX7tALGzqgVcvCYf30qXA== X-Received: by 2002:adf:eb4c:: with SMTP id u12mr38140595wrn.111.1626797345081; Tue, 20 Jul 2021 09:09:05 -0700 (PDT) Received: from google.com ([31.124.24.141]) by smtp.gmail.com with ESMTPSA id q19sm2676239wmq.38.2021.07.20.09.09.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 09:09:04 -0700 (PDT) Date: Tue, 20 Jul 2021 17:09:02 +0100 From: Lee Jones To: Mark Brown Cc: Alistair Francis , robh+dt@kernel.org, lgirdwood@gmail.com, linux-imx@nxp.com, kernel@pengutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alistair23@gmail.com Subject: Re: [PATCH v7 1/6] mfd: sy7636a: Initial commit Message-ID: References: <20210708115804.212-1-alistair@alistair23.me> <20210720152351.GC5042@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210720152351.GC5042@sirena.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Jul 2021, Mark Brown wrote: > On Tue, Jul 20, 2021 at 03:53:25PM +0100, Lee Jones wrote: > > On Thu, 08 Jul 2021, Alistair Francis wrote: > > > > +static const struct mfd_cell sy7636a_cells[] = { > > > + { .name = "sy7636a-regulator", }, > > > + { .name = "sy7636a-temperature", }, > > > + { .name = "sy7636a-thermal", }, > > > +}; > > > If you put these in the Device Tree, you can use "simple-mfd-i2c" > > At least the regulator probably shouldn't be - this is just a Linux > specific grouping of devices, it's not really directly a block in the > hardware in a way that's platform independent. I've seen (and authored) regulator support in DT before. What's changed? They're controlled by registers, right? Is the problem that the registers are usually split? -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog