Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp66535rdb; Mon, 22 Jan 2024 12:07:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVE4N0wptFAkSZH29HTkOxaaMePFslmwVoyFwLR8lejcrr4wfKzm9MF3+jHMfb6fi0ma3A X-Received: by 2002:a17:90a:72c5:b0:28d:f2c9:3ccd with SMTP id l5-20020a17090a72c500b0028df2c93ccdmr1812590pjk.83.1705954026404; Mon, 22 Jan 2024 12:07:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705954026; cv=pass; d=google.com; s=arc-20160816; b=csnvg+tp7LKY0Pbc4R01SUYUhinl3WdoBD68kTcFkky+y/RlyUPF/lwJJTPkkxsWLO 09y8Fd9BMwHZ9u1PC6c6I5BZww1NFIvQZFo04yVmWTcUzQ9YmJv711o8ZpPXDb+aXFGi qF2DkcghvK39B0e1/hu4Iaru6J735FasA5iwGDyH6OVI3OQaZ72UdJLVwAefihdk0Kvh MXW/33HVjhS+OCcDRSX560nhY0sniWFL5XhTcXE+0v/J8Y43xB6YMAK6h4Q8+Z7I2agh XprF21h0wusd1IHR7WPVxU8omdCEiZZifTj2ZR5umnS6SS2WcY6ogwWh+/fc+h9SgNA9 sVFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=laeWsP4RFv5KrL7g+IvrtMdtqBtJukqz8LuUfm2cqgI=; fh=q28BgaHeNDaTULdXu39XCv9iqwoQEBhECgbq7Tengsg=; b=RObpzpYQSONYH/jeZ8ECXVYIi5xJ3XASyr2Ps9M3i7bt5fShaKx6usm8hw5IxZCvDo saFglxad0cuMSTUXBCf+oJ/+yT6JRXMx3achneK3eTJPkv1v1waV0APXqC0y6ogQWS7I qI5XDF4+qfDR6PjvIdqF5QBsiLT+Y1yjANJKejaJbCH+Pw51SJ2HOUJqcocRzN2vtki3 M5r/RpOSZY3iMI7UWaeE6AhKhn/2qXN53yrVC032uTFDnPFK8kl1kzguCi1QzasHx+1X 7FRDeS7U2Vu3jBxqVra4/XWHioElS9X9gVUY/gIVSbknJiMfvTK5RQP1Pg7jcM4XBDQM dfKA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa2 header.b=qUQJeHqi; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed2 header.b=O+VHH8W5; arc=pass (i=1 dkim=pass dkdomain=ravnborg.org); spf=pass (google.com: domain of linux-kernel+bounces-33648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33648-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id il3-20020a17090b164300b0028ce48902cfsi8593006pjb.151.2024.01.22.12.07.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 12:07:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa2 header.b=qUQJeHqi; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed2 header.b=O+VHH8W5; arc=pass (i=1 dkim=pass dkdomain=ravnborg.org); spf=pass (google.com: domain of linux-kernel+bounces-33648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33648-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 98AE4289AFA for ; Mon, 22 Jan 2024 17:14:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62D8263120; Mon, 22 Jan 2024 16:03:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b="qUQJeHqi"; dkim=permerror (0-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b="O+VHH8W5" Received: from mailrelay3-1.pub.mailoutpod3-cph3.one.com (mailrelay3-1.pub.mailoutpod3-cph3.one.com [46.30.211.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 906C24D58D for ; Mon, 22 Jan 2024 16:03:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.30.211.242 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705939434; cv=none; b=oNVfnjXyE3KT67MD6502BnEG2gpxbUTM8SRVBUDXCu2dCa7iRV76IVY1lG6w08PdaapvsWf/gXTkE8uBNVJZ2+uIG7zdmVnqYdrCeeDrxdwRGpp8mvfR1xJuOYdjYe/h2Zd5wdEyQzAPpiUTeJ5ZhQMXqql7TiwTfMoC0/ZNdFs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705939434; c=relaxed/simple; bh=9D6ZQ2OZuJf5dffwus791inA7wfTVtusm8V+mFb8C0E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=osiTA+D9UzZQwLQSX8/f+dfGiK3Su0wg7OTrWq5Oo+/ecplArPM32YAgJJRNvbrRjfu3SWZqcMkoYW8LojToNkqqKHBtkew/Xnu5RrJROGcpDDGKU3dA/aR+GFwtZfYKPV+3gVT87wZOgd9VIfxn0Bol1WY/1JhAQHNrz+xOtsY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org; spf=none smtp.mailfrom=ravnborg.org; dkim=pass (2048-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b=qUQJeHqi; dkim=permerror (0-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b=O+VHH8W5; arc=none smtp.client-ip=46.30.211.242 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ravnborg.org 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 Cc: robh@kernel.org, Linux4Microchip@microchip.com, linux-pwm@vger.kernel.org, alexandre.belloni@bootlin.com, dri-devel@lists.freedesktop.org, Nicolas.Ferre@microchip.com, Conor.Dooley@microchip.com, thierry.reding@gmail.com, krzysztof.kozlowski+dt@linaro.org, claudiu.beznea@tuxon.dev, airlied@gmail.com, lee@kernel.org, u.kleine-koenig@pengutronix.de, devicetree@vger.kernel.org, conor+dt@kernel.org, tzimmermann@suse.de, mripard@kernel.org, linux-arm-kernel@lists.infradead.org, bbrezillon@kernel.org, linux-kernel@vger.kernel.org, daniel@ffwll.ch 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6c6e4ddc-b3df-484e-961f-6efbd52defd6@microchip.com> 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