From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 83217C433EF for ; Mon, 29 Nov 2021 11:44:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KxCd3ko0YYxVcOwM6+J0AALmd+0VvIhvKqtq8xH7GQc=; b=rH0qFecz1gP59R 5/aJYuZqK2ThpZWSZRkQMK+PjH7k/BV4qTOwjGN4MvKF1egpasD6sqLTvgcYFbxit1EnvOK/5XLJR vpcMTxtppukzy2iKU5yUPn7m6+sdeMv4FO9jtUlOBKRsE964AOTUezu4DcJwo7nAnTtCMMg2eGb4X GPrC+KR46H0N/HGu5wj2REyE7W4i3nYdb92mQy/GVh0wipzuWr7Ysj6u5FawYAfbroElXL83VRGtO bXa+kaG8fWlmeF5GdBFAe2nc3/xkI6pePPKd+ndgFsiQwt5QWQXL6vI3+67Czn+eyU+tMf/Jb05KH rtzxnFuxf5YYvhnLRWOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrf36-000Ypr-7p; Mon, 29 Nov 2021 11:42:20 +0000 Received: from mail-io1-xd32.google.com ([2607:f8b0:4864:20::d32]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrf32-000YpX-90 for linux-arm-kernel@lists.infradead.org; Mon, 29 Nov 2021 11:42:18 +0000 Received: by mail-io1-xd32.google.com with SMTP id x10so21029053ioj.9 for ; Mon, 29 Nov 2021 03:42:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8DiEIPxwmtabywojLIKrpLmvgw45b4iTNiO5soeMU6o=; b=RlrcsJqmeIn1gVO9rhY2FMWwJ6HFT9bGSa6QJMg3W1zfgG3X6N29gUWBNoiRhMzR0H OhxEEURqen1meCgpx2+/tCguWIy4qmdt6nLdr3k1jZ5KEgH9MuW3/WcQ9kUDWjL0Z5Vb LZTRTNWJ+vw20DB/YX/DRkdCIctfmF+FBK19dKA4OOPAby5NuHOYnx3M2bPHMOxOoy8l zeiPZPJelHREyqMNKB3VaUxahunobi9K/DleK4ipxolWqBpmCqDq1KgDE+CnhUnDjnrT 0Jq2Si7jcZBqaDE6WJ2P0wdTy4+Q/SQ3I2PP0MlrLorcL+mdD+MSAYdfTwx5jxcJJ+lY O4HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8DiEIPxwmtabywojLIKrpLmvgw45b4iTNiO5soeMU6o=; b=KabVyFPBb9fl39Gmb4a6xZe7YvEzdKbHr35I3hzxofK8YR8zZjoFr1rVnZ4OO1KqnK kFr3DOohVf9K9juEXetAsCfG/Zjmb5coq7KhIrR0uMvgp3leVaeZYE21pkrRPafdlyut 9JRPhgoDu6L8863EPo4Rbx/3t8pBqKoDoRmE3tDbDzhFBqq97wtFWHCTPjVwtReqIfyd +h0eKFqNam/psKd6NRDMTsI1+MNGp818nsZb669Xauvzpe/+mBh3AW3H5wGvw9K/Qwp1 bQB+YuJcNVE7fG4my9lmtPZj54/csgYWjAgG8gFGlE5BOmqCc4DL2KTbSnLsJm9CoEk/ Cw6Q== X-Gm-Message-State: AOAM531fPpPnzfridR9ZcAPRZ2L2cXVKl3t95xgEzXUckEPIZQ9ZqD5z dGmTSg7dG0cqUeZvtoGFufFChSGkAgug2E6cRC8= X-Google-Smtp-Source: ABdhPJxUPnrzd1fIgp0bQ0VcnIBdfu3Q8Kiyx+t/gkTv/ZX6M6t1J/JoW5a+5GXuOUyQJxaAnegpzFE5xO9ojxakKpk= X-Received: by 2002:a05:6638:32a2:: with SMTP id f34mr62596399jav.63.1638186134216; Mon, 29 Nov 2021 03:42:14 -0800 (PST) MIME-Version: 1.0 References: <20211110122948.188683-1-alistair@alistair23.me> <20211110122948.188683-2-alistair@alistair23.me> <20211117223950.3a7eaf7a@aktux> <20211125235935.5a1b7d33@aktux> In-Reply-To: <20211125235935.5a1b7d33@aktux> From: Alistair Francis Date: Mon, 29 Nov 2021 21:41:48 +1000 Message-ID: Subject: Re: [PATCH v15 1/8] dt-bindings: mfd: Initial commit of silergy, sy7636a.yaml To: Andreas Kemnade Cc: Alistair Francis , Lee Jones , Mark Brown , Sascha Hauer , lgirdwood@gmail.com, Rob Herring , Linux Kernel Mailing List , rui.zhang@intel.com, devicetree , linux-arm-kernel , Sascha Hauer , linux-hwmon@vger.kernel.org, amitk@kernel.org, linux-pm@vger.kernel.org, dl-linux-imx , Shawn Guo , Rob Herring X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211129_034216_380625_79D2F2D8 X-CRM114-Status: GOOD ( 44.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Nov 26, 2021 at 8:59 AM Andreas Kemnade wrote: > > On Tue, 23 Nov 2021 23:29:26 +1000 > Alistair Francis wrote: > > > On Thu, Nov 18, 2021 at 7:40 AM Andreas Kemnade wrote: > > > > > > On Wed, 10 Nov 2021 22:29:41 +1000 > > > Alistair Francis wrote: > > > > > > > Initial support for the Silergy SY7636A Power Management chip > > > > and regulator. > > > > > > > > Signed-off-by: Alistair Francis > > > > Reviewed-by: Rob Herring > > > > Acked-for-MFD-by: Lee Jones > > > > --- > > > > .../bindings/mfd/silergy,sy7636a.yaml | 79 +++++++++++++++++++ > > > > 1 file changed, 79 insertions(+) > > > > create mode 100644 Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml > > > > > > > > diff --git a/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml b/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml > > > > new file mode 100644 > > > > index 000000000000..0566f9498e2f > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml > > > [...] > > > > + regulators: > > > > + type: object > > > > + > > > > + properties: > > > > + compatible: > > > > + const: silergy,sy7636a-regulator > > > > + > > > > + vcom: > > > > + type: object > > > > + $ref: /schemas/regulator/regulator.yaml# > > > > + properties: > > > > + regulator-name: > > > > + const: vcom > > > > + > > > hmm, this is what? If I understand it correctly, vcom means some > > > voltage for compensation. On other comparable pmics (e.g. TPS65185 > > > which has also a sane public datasheet, MAX17135) I have seen some > > > methods to measure a voltage while the display is doing something > > > defined and then program this voltage non-volatile for compensation > > > during manufacturing. > > > > > > If I understand the code correctly all the bunch of voltages are > > > powered up if this one is enabled. > > > So at least a description should be suitable. > > > > > > The other comparable PMICs have at least regulators named VCOM, DISPLAY > > > (controls several regulators, started with delays configured via > > > registers) and V3P3. MAX17135 source can be found in NXP kernels, > > > TPS65185 in Kobo vendor kernels. > > > > > > So I would expect to see something similar here and a description or at > > > least not such a misleading name as vcom if it is for some reason not > > > feasible to separate the regulators. > > > > This is a vcom in the sense of voltage for compensation. We just > > currently don't support setting the vcom. > > > > I had a look at the Kobo code and this is similar to > > https://github.com/akemnade/linux/blob/kobo/epdc-pmic-5.15/drivers/regulator/sy7636-regulator.c#L614 > > > > So I think that vcom is still the appropriate name for this. > > > seems that you did not get me. If I understand the code behind it > correctly, it turns on all power rails (the +-15V stuff, VEE and so on) > with the defined delays, not just vcom because it sets > SY7636A_OPERATION_MODE_CRL_ONOFF. Controlling VCOM separately is possible > by using SY7636A_OPERATION_MODE_CRL_VCOMCTL in combintion with a > vcom_en gpio. > > I do not see a reason to turn on vcom only without the other higher > voltage rails, so the behaviour is not necessarily wrong but if I read > the binding documentation I would expect that just vcom is turned on. > That is the mismatch I am talking about. Ah! Ok I understand. I'll rename it to vdd then. Alistair > > If we agree on this idea that one regulator is enabling everything, I > would adapt my EPDC drm driver and tps65185 driver (which are both in > my clean up to be upstreamable-queue). > > Just another thing to compare with: > https://github.com/Freescale/linux-fslc/blob/4.1-2.0.x-imx/drivers/regulator/max17135-regulator.c > that seems to be the starting point for kobo vendor kernel epd pmics. > They seem to have taken the source and modified things. There we have > regulators with empty ops for that step-up converted stuff, a separate > vcom and a display regulator which really controls all of these step-up > things. > > Regards, > Andreas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel