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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 E04B8C47DAF for ; Mon, 22 Jan 2024 16:04:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D194810F4F4; Mon, 22 Jan 2024 16:04:18 +0000 (UTC) Received: from mailrelay3-1.pub.mailoutpod3-cph3.one.com (mailrelay3-1.pub.mailoutpod3-cph3.one.com [46.30.211.242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5289B10F4F4 for ; Mon, 22 Jan 2024 16:04:17 +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=laeWsP4RFv5KrL7g+IvrtMdtqBtJukqz8LuUfm2cqgI=; b=qUQJeHqi1WuJ4lhrw5ihDWeVdSiAgtYVgv81VZBeIjSglVSVFt/ADgsBl119lt2Dnphw3ttzVhafa uSZD4IeWk9lam27GfjTB9sXT6/ItVF6PVJe6Qygg3RUiqKGhe1+JDjPfHXCNJ7/gas8D67bQ0rY0ut 8g6fo9wB6JkO8jxXfdGTqT2OrwUYGFuQMfwFC1tXEW6eN9FZ/VcIlvgvONHlLuKVpMIJhLrR6hIh2K km5+6hPxyTD7lTrOLkdMmXJAGWbE5je92oOEPRxcDz3nG9Wn8ROy/q9pKw+FUlSyiP5eoPhlM5oaae Nc2A//Qhcf/lsvmY8q1ck6Y/vGBrDmw== 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=laeWsP4RFv5KrL7g+IvrtMdtqBtJukqz8LuUfm2cqgI=; b=O+VHH8W5rEReTZpoQlWdBy6/b3ITx3LfYx2BE0xKkB0xpp/q+ziY5fGddcGdfTcRLuU5v7gq3TkFe H8KNl7ZAA== X-HalOne-ID: aac18610-b93f-11ee-b8c2-ff813d2dbafc Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay3.pub.mailoutpod3-cph3.one.com (Halon) with ESMTPSA id aac18610-b93f-11ee-b8c2-ff813d2dbafc; Mon, 22 Jan 2024 16:02:42 +0000 (UTC) Date: Mon, 22 Jan 2024 17:02:40 +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: <20240122160240.GA511247@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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6c6e4ddc-b3df-484e-961f-6efbd52defd6@microchip.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: conor+dt@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, Nicolas.Ferre@microchip.com, 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 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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" > Good idea, this looks like a nice simplification. Sam