Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1294304rdb; Fri, 19 Jan 2024 14:51:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9BHy31szWqe5DtdJQsiMFaYCfbDVKiSrjsVfRHVJZj8klCZzdEDJcU58lxOwf7ovy861d X-Received: by 2002:a17:906:6a0a:b0:a2f:de7:3bed with SMTP id qw10-20020a1709066a0a00b00a2f0de73bedmr149021ejc.67.1705704667647; Fri, 19 Jan 2024 14:51:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705704667; cv=pass; d=google.com; s=arc-20160816; b=qusQb4uGEsjk2GvlNhISK2uYseWFtWe60JHAD7z+bcdytFe9RlhwbMS0WAmIANi40C GMPgxiRhTTVOfWo7N6g7nZkr+AI+D8A9b98WYY4QHMmdBzFvJkAsR+sbG6hjEqFY7x+X BSrjXvdKzrQWUMJtS+DZ+TbtRPcl7X+GsmQSair8OtGgg7N6kT1aNkSMYOx1TOef8Lrr f1iLWqzIn8XBWmuIlqN2eZ+sEOQ1OjGS/0MgVbaXzqdzC7asKC3WT6ZWBMH3ZYMyF2ek Af80tmtP2pe0iItMxXKPqanP8hDj91r2CQ1wIlNSe/xDvjsxrIFWsi5ozpv3kid30up6 TUHg== 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=pO8iBfnjG9hH6vbSRTnXqbEv232F90DY50ha8PvFEd8=; fh=/0qt959Fk1ZvA9u0XP6E87Gg03DCn+vxQkCGox1yTHM=; b=mtRb/SItBQT/3/C+3i7p1yn149jgKLMD15hHCMfQ9LXos1w7wUkmpvsOdRU31SxB2J 4SLgv0clnW52/40s8OibjpRcieQFpRAZR/b67E0yOtHsmK+ctOXha0JfkAzoVZWSTXWh VVjUv50fAUegkuUKkThHkYMMk5sJ4nb+POxua1l9c7+XCwQFcDZybuzDggHs0UyR/qdG J+E7ahhm5kHdhdxJb8fqsO9i3pz72LbixaT5yVgJJxbNPZibQdy3Qn26tLEA64B9CWZh FUYkglFObfbIu9jN4lwUefrIzThFykyFJBY+v4lwLRpjpwuqnm9pYlyrQcsyLteOZU3C b2xw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa2 header.b=GjhB6wRa; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed2 header.b=5hc1wO07; arc=pass (i=1 dkim=pass dkdomain=ravnborg.org); spf=pass (google.com: domain of linux-kernel+bounces-31582-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31582-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ka5-20020a170907990500b00a1af9c5d853si8118728ejc.166.2024.01.19.14.51.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 14:51:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31582-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa2 header.b=GjhB6wRa; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed2 header.b=5hc1wO07; arc=pass (i=1 dkim=pass dkdomain=ravnborg.org); spf=pass (google.com: domain of linux-kernel+bounces-31582-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31582-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B975D1F2422F for ; Fri, 19 Jan 2024 21:35:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0912458220; Fri, 19 Jan 2024 21:35:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b="GjhB6wRa"; dkim=permerror (0-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b="5hc1wO07" Received: from mailrelay6-1.pub.mailoutpod2-cph3.one.com (mailrelay6-1.pub.mailoutpod2-cph3.one.com [46.30.211.181]) (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 7EAE757330 for ; Fri, 19 Jan 2024 21:34:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.30.211.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705700100; cv=none; b=ju5SLLUWmmgnTnytQf7b49NChEP97a+E0Ck8ZLzmtbVw9FGz9YG5Bk1s9MEICoLhFFmolVipj9q59PZX8Kf+LerrNdp0NY0Q3JZaNvn3XH8j1qRnejGeq6vcIFosXgC6IUJcd6DX7BAQp7Aq0JJ03eloYgGiJKjlubQFzIGkDPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705700100; c=relaxed/simple; bh=UNNRJRbDTngtJ5Pl/++i0CkHx4pdPunpIhyAAGeoHB8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q3luCX10OyqU7rj34xIwAkbIq6lGeo+vWWjA+rXLfGJXTOt/0Av1l/UaoCIiYRWyZ3m8MpSPxDo25tlWhn1r3dq399opUD8kAGvw4DxyRikzOD0ARTS6HTHDPFSlYIB9QUgk2zD3AfFv8GDNWrUfDc9U5H52Ms8n7Ztr2xhZBzc= 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=GjhB6wRa; dkim=permerror (0-bit key) header.d=ravnborg.org header.i=@ravnborg.org header.b=5hc1wO07; arc=none smtp.client-ip=46.30.211.181 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=pO8iBfnjG9hH6vbSRTnXqbEv232F90DY50ha8PvFEd8=; b=GjhB6wRaysDcllp1zsaNynkQl6JNvD+hw2s6dm55JB+H5rGwsfSuOcZwCpp/lTxl/tW2aDNE3z5MN cCvOWaF/N+ToEspVuSSnuBo8lOkUaVrjwSwe9Mao6GtlEfGoyVttyZq4CzBCuxJBNVPwITHT+XDF/d xCmbQtnQjMmh5WAe3LGVVn7hMkGrIbRdPEifGr3r3e5Vk0aYqyWLs8EoJEg0BLnf0pRNxtqOpifSLP DVUq8fj27NFfrJ8Zz/XqxG80zSTseJDWRryFpPf4WZbhGKwSVmENvDTHhLLoa0JpcuEViBFLJCmpXh r9GP2gowfi3qn7OXJhAZxLkYdx+O+5g== 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=pO8iBfnjG9hH6vbSRTnXqbEv232F90DY50ha8PvFEd8=; b=5hc1wO07ZIzFI0AGFuC0N6Bpa19KNWG4JJyX/eWazj1u2M5PzREmbIABVmM0wXHM4e5cZxcwJvtgo tXdJqTLCQ== X-HalOne-ID: 6d92ffab-b712-11ee-b81e-dfbeffc51846 Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay6.pub.mailoutpod2-cph3.one.com (Halon) with ESMTPSA id 6d92ffab-b712-11ee-b81e-dfbeffc51846; Fri, 19 Jan 2024 21:33:48 +0000 (UTC) Date: Fri, 19 Jan 2024 22:33:47 +0100 From: Sam Ravnborg To: Dharma.B@microchip.com Cc: 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, robh+dt@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: <20240119213347.GA304371@ravnborg.org> References: <20240118092612.117491-1-dharma.b@microchip.com> <20240118193040.GA223383@ravnborg.org> 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: Hi Dharma, On Fri, Jan 19, 2024 at 08:41:04AM +0000, Dharma.B@microchip.com wrote: > Hi Sam, > On 19/01/24 1:00 am, 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 Dharma et al. > > > > On Thu, Jan 18, 2024 at 02:56:09PM +0530, Dharma Balasubiramani wrote: > >> Converted the text bindings to YAML and validated them individually using following commands > >> > >> $ make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/ > >> $ make dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/ > >> > >> changelogs are available in respective patches. > >> > >> Dharma Balasubiramani (3): > >> dt-bindings: display: convert Atmel's HLCDC to DT schema > >> dt-bindings: atmel,hlcdc: convert pwm bindings to json-schema > >> dt-bindings: mfd: atmel,hlcdc: Convert to DT schema format > > > > I know this is a bit late to ask - sorry in advance. > > > > The binding describes the single IP block as a multi functional device, > > but it is a single IP block that includes the display controller and a > > simple pwm that can be used for contrast or backlight. > yes. > > > > If we ignore the fact that the current drivers for hlcdc uses an mfd > > abstraction, is this then the optimal way to describe the HW? > > > > > > In one of my stale git tree I converted atmel lcdc to DT, and here > Are you referring the "bindings/display/atmel,lcdc.txt"? Correct. > > I used: > > > > + "#pwm-cells": > > + description: > > + This PWM chip use the default 3 cells bindings > > + defined in ../../pwm/pwm.yaml. > > + const: 3 > > + > > + clocks: > > + maxItems: 2 > > + > > + clock-names: > > + maxItems: 2 > > + items: > > + - const: lcdc_clk > > + - const: hclk > > > > This proved to be a simple way to describe the HW. > > > > 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. > again you mean the compatibles from atmel,lcdc binding? If the new binding describes the full IP, as I suggest, then I assume you need to add the compatible "atmel,hlcdc-pwm" to be backward compatible. Otherwise users assuming the old binding will fail to find the pwm info. I am not sure how important this is - but at least then the device trees can be updated out of sync with the current users. I hope this explains what I tried to say, otherwise do not hesitate to get back to me. Sam