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 30C33C47DD9 for ; Mon, 22 Jan 2024 16:05: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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DPdB720b65JgVXuO30lRNaKBBsdla07itc7NeD6F0Mc=; b=Cekv8Ij/EG9gpm zvzIk7X+eDZwqtRPAuVEQdDcBzjP4PwyYFCZWmStSBJLUG7cn1Q+Fe1C/k7z1UOBogxXL8AHQhMbp 7kbSp9uzFGHnHGF+OChTailmbl8xF0bVbJWQAhNcCapCwvrPRSAzwGujw2aN8/YEsCAwHCzqKlXf/ pGv3d7kPAynkcHySVNp2trsk/Ee8dWyLYL08k3dnHyhWjyI5VqhpNiqCZVqJdvbIfzG0uXX92ZZom fZzcxUdTAJE3OnGRnpaHmb0CvHH0ozAJZAQgBAg/IBsHDsdI4HxxYsNqBu8Zgne1nH7TwZlilg5r6 Xmf1fATUnw9APh+nSbtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRwmw-00CrnZ-0a; Mon, 22 Jan 2024 16:04:42 +0000 Received: from mailrelay1-1.pub.mailoutpod2-cph3.one.com ([2a02:2350:5:400::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rRwmt-00Crll-0p for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2024 16:04:41 +0000 X-HalOne-ID: efe2261e-b93f-11ee-beae-5586173dc714 Received: from mailrelay4.pub.mailoutpod3-cph3.one.com (unknown [104.37.34.41]) by mailrelay1.pub.mailoutpod2-cph3.one.com (Halon) with ESMTPS id efe2261e-b93f-11ee-beae-5586173dc714; Mon, 22 Jan 2024 16:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa2; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=xAGeSXO7EYCYJmljPUEN1rFUpiw71f4rCC8gSgFu1n8=; b=HZRfxWW7RKvIzlLrWQDFVCTBUG5Jn1GeeZVFbfHhTfHQ1bK6ANABb9Ao3YCp7+9OkCan+DgMbN0gB 7Z6KlrAcBHvLa52KHKbxsUqobDFzMYHyLl6dfJGWrIEFQIKuMaMeLya7L4Eh72a62yQva2BsUtXYIi +gdaDjCy4jtdh6K9Xj57QU5JN2kgd5whs5nSSgDF4oLqiLpM91y1BC+FQTSm91Qy+iPBuudeeBL0By 3oqdvR5O2eBoJfSzKzc2UkKgr4HXz9su5ap3kEIpK0h0Q+C7KIITFpAYbR3Qv8tCLRpzgdQthfnm38 QbWPO99YbFnwplbHV2K64bQXu/dELTQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed2; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=xAGeSXO7EYCYJmljPUEN1rFUpiw71f4rCC8gSgFu1n8=; b=bKfCDk0HafSg+g3RaIu9TrzIt2gHb++4e++SaoHzG8BuWLN7Mzyav7YHusF+tvo7FeLOMboYIg9IK gXQFr1jBg== X-HalOne-ID: ee3a7b61-b93f-11ee-a7a3-9f04b458b84a Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay4.pub.mailoutpod3-cph3.one.com (Halon) with ESMTPSA id ee3a7b61-b93f-11ee-a7a3-9f04b458b84a; Mon, 22 Jan 2024 16:04:34 +0000 (UTC) Date: Mon, 22 Jan 2024 17:04:33 +0100 From: Sam Ravnborg To: Dharma.B@microchip.com Subject: Re: [PATCH v3 0/3] Convert Microchip's HLCDC Text based DT bindings to JSON schema Message-ID: <20240122160433.GB511247@ravnborg.org> References: <20240118092612.117491-1-dharma.b@microchip.com> <20240118193040.GA223383@ravnborg.org> <20240119195151.GB938671-robh@kernel.org> <20240120132356.GA345206@ravnborg.org> <6c6e4ddc-b3df-484e-961f-6efbd52defd6@microchip.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <6c6e4ddc-b3df-484e-961f-6efbd52defd6@microchip.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240122_080439_436753_B3F04F3F X-CRM114-Status: GOOD ( 26.44 ) 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: , Cc: conor+dt@kernel.org, robh@kernel.org, Linux4Microchip@microchip.com, tzimmermann@suse.de, alexandre.belloni@bootlin.com, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, lee@kernel.org, bbrezillon@kernel.org, dri-devel@lists.freedesktop.org, claudiu.beznea@tuxon.dev, Conor.Dooley@microchip.com, thierry.reding@gmail.com, mripard@kernel.org, krzysztof.kozlowski+dt@linaro.org, u.kleine-koenig@pengutronix.de, daniel@ffwll.ch, airlied@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 Hi Dharma, On Mon, Jan 22, 2024 at 03:52:17AM +0000, Dharma.B@microchip.com wrote: > On 20/01/24 6:53 pm, Sam Ravnborg wrote: > > [You don't often get email from sam@ravnborg.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] > > > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > Hi Sam & Rob, > > Hi Dharma & Rob. > > > >>> To make the DT binding backward compatible you likely need to add a few > >>> compatible that otherwise would have been left out - but that should do > >>> the trick. > >>> > >>> The current atmel hlcdc driver that is split in three is IMO an > >>> over-engineering, and the driver could benefit merging it all in one. > >>> And the binding should not prevent this. > >> > >> I agree on all this, but a conversion is not really the time to redesign > >> things. Trust me, I've wanted to on lots of conversions. It should be > >> possible to simplify the driver side while keeping the DT as-is. Just > >> make the display driver bind to the MFD node instead. After that, then > >> one could look at flattening everything to 1 node. > > > > Understood and thinking a bit about it fully agreed as well. > > Dharma - please see my comments only as ideas for the future, and > > ignore them in this fine rewrite you do. > > > > Sam > Based on your insights, I'm contemplating the decision to merge Patch 2 > [PWM binding] with Patch 3[MFD binding]. It seems redundant given that > we already have a PWM node example in the MFD binding. > > Instead of introducing a new PWM binding, > pwm: > $ref: /schemas/pwm/atmel,hlcdc-pwm.yaml > > I will update the existing MFD binding as follows: > > properties: > compatible: > const: atmel,hlcdc-pwm > > "#pwm-cells": > const: 3 > > required: > - compatible > - "#pwm-cells" > As already commented, this looks nice. But as Rob said, this should be a 1:1 conversion from text to yaml, and then clean-up can come in the second step. Sam _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel