Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1729320lqg; Mon, 4 Mar 2024 01:43:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWD+EFPd7Sffoz5YJ4HxQmV3hsO57kySZKEo9chUZkYidTybQIEFvMRoKe8HpTwZpZ7FlGkEvap8zsm16ZWY/QrUtbZDZE0I/YbrCL/fA== X-Google-Smtp-Source: AGHT+IEDRqMk8Nsuuqv5WSFO7QCdIUiVgRl8ActuE53E4ynfOn5+/mF6mC4bmg2SxOcIizfr3anO X-Received: by 2002:a17:906:f9c9:b0:a44:3db:6649 with SMTP id lj9-20020a170906f9c900b00a4403db6649mr5754283ejb.58.1709545408690; Mon, 04 Mar 2024 01:43:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709545408; cv=pass; d=google.com; s=arc-20160816; b=vAy1fw62uG/t1mTj718QOpQvVR/hvsu1zgL8kPkjGWKuxP9CYiiJE4lXE71/jY5xry b/GL/1Bvpn6A8hHfVLqefECBGRdkx4FEa495rrLymgLIobgc2fBV6ZbR0ajTifEELBRO pEdWfrX4pPp2NKgVh0kDaO5amz/09lG1XAw7mQGLXBlLGdDAgSRqtsyZRP/0Pt4Adfx/ WlqbtxymFTp5zCNw6Kw0qolfzz25DPoF407zhFM0AYa64RN/ySYQlBoEI22ku6ftH5u8 Fco8JR0r0pgQvow+DR/t9QUFjtywWYj9GQxRox6qPwvNxNaqZyU1sbrPqh6WPzeCtgcJ tJZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=yK8SqcxIhmoA6CejGRLBhKEEdc3Rn2K3//Q0mP2oKj8=; fh=ELe2L937E1TTGzqezvDUOcMDRQuQGmSCmGhcAdeIFc0=; b=uTMgKiNk8GxGwlN83+Snb2QWDQvEWcO8V3xEGfoezZJF88KRtRFMTUew2kp55VBZve aeGrA/wzM1qj8OYTr3v+rw1oVFI+2ghYqSfOpHFHdNbDVcS40uypH/se2V5Hwr/CPPjV TndYMi/9jvtmF/wQr1+HI8BXxFABwYnAINln+ByxqHhyhLWoMOp/STSkdDduO5PVv4C+ e2wIgBEYCW+BWdEjtuI+vocf/FwyEX5azwXGCmFPyIva8dd5bi8w9l1G4ejed7vKj6/E +UCr3E/bdW+f5NDGmfpPctgM0PcudlDZAbat05AGT7FhaEZnKZxRsIR9sUhbNIVrjIqX n0bQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FfnD7IM4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-90337-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90337-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s4-20020a17090699c400b00a4486655b3fsi3042502ejn.596.2024.03.04.01.43.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:43:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90337-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=@linaro.org header.s=google header.b=FfnD7IM4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-90337-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90337-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 433841F22EB0 for ; Mon, 4 Mar 2024 09:43:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E13C32134F; Mon, 4 Mar 2024 09:43:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FfnD7IM4" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09A41134B7 for ; Mon, 4 Mar 2024 09:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709545399; cv=none; b=pNFo9ET/d7WqvVAbRg4MLcla0BC2GtRyKvslq7nrHq2KytvozMcmRq2oyB6vLNNPQpBNVfmI6KzBJYMmvgxtfLkJ0z48uD1jBRjHNfpvYFQXpQYEEOxJEeA09Zf5KWa+uBHYk9fWAf1l8Sb10+wR2xO/sg4PdPbMc5cLCt+tSls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709545399; c=relaxed/simple; bh=juQU/YTbRdtf4lkEd+2QeGRnvQtm4aXm+PTTpxSiPLU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Y8387wQjS5zZgppMLxm8GaKprUK3uPXmB+O7tv74KJU3MdApBQSJt7imB74iTnxkGzxXwzNlYov5beS5UUcJ2Ghxg4/Rh39SoEu/FDC+QD1SKcyA8oMMA34DuWI0wVRKhVVJesI7FSx1YFYTWbYgys14zdYNRcTUQmHecXE+N44= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FfnD7IM4; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-5673f7b3196so1107229a12.1 for ; Mon, 04 Mar 2024 01:43:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709545396; x=1710150196; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=yK8SqcxIhmoA6CejGRLBhKEEdc3Rn2K3//Q0mP2oKj8=; b=FfnD7IM4QyeGqamTZCf78owywPd3pINTFkBbP5iGoPFsJBdwLclyxEb9G8C1rpENEx 5C8uf6S+3O1+PqTAqqC/qkIUDqBUjTuIWuct3CLj56dv16MHmVwp53cGcD/g+dqR3u5m Ce9gsYUOMMIvB7tMzQAJU7VWSYwrMtJ1r5TrMA7P1buzIq9BVo/DDrUF/019+2+IqhH6 0NrqWia0aMy1Y/VfQd2+xV+jeiv90WqoO6o9VwHRW9fLcJuxfggFu5vvLXwTzoAk1eGl HnpflhL8K6Xmf27Ev6h5Il3DFR6I1z/eqbM4/DQ8NCjnGLLPnWLEcaUq1vphOpf0uL/h k25g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709545396; x=1710150196; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yK8SqcxIhmoA6CejGRLBhKEEdc3Rn2K3//Q0mP2oKj8=; b=YYiBFWUUdRdleB/9fb1VfQI+SHrIRd8ObmOiLgIdpBTr3QPKz+/nEyZjUjsQLEvLOP z1DWNB28BaPTqge9+E+vmeY+4p1qpeEFlejYcLlOkiaQQavCushSe9uZJkk+JVfahkgY d61mA7jS3P+YlLS3CZLk912ov7CWNV0pm7CWaQsUegLi53HzVLslojxbLvnhQuf5X44p agixgqPttfV2PIABTGQJPqPs2TR16gVUeQXOxM7yTdMqWcxboWc1XyzhngUrHcWfQTVP wW0khUYGTWMbVQhoXyGp67a3tXt8FF0jud6D7xwPUAUeCnTHDk6UULRRMzfO1h3scuvF iliw== X-Forwarded-Encrypted: i=1; AJvYcCWXaiYWd0A/YqXULebg0+I1HngVkEoVmf8Bo2KvOscjzi472q4RWtEV/fOI7V4jAhV8j5YPZyI0GgpDQ2bvwfYJra/OtsZg23NAH3ap X-Gm-Message-State: AOJu0YxsxVYZ4WNF/m0+G+8tbr57be/bs2NiYr5uzOhuVQg7KDGwGY67 wt9lIoLZoblidZmW0XNub8U7TknZufjhi7EndGHqsM4vInmmZX+ViNF7IC+gnKo= X-Received: by 2002:a05:6402:323:b0:566:5ea2:1257 with SMTP id q3-20020a056402032300b005665ea21257mr5792853edw.16.1709545396476; Mon, 04 Mar 2024 01:43:16 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id q12-20020a056402518c00b00563ec73bbafsm4363211edd.46.2024.03.04.01.43.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Mar 2024 01:43:16 -0800 (PST) Message-ID: Date: Mon, 4 Mar 2024 10:43:11 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] dt-bindings: display: atmel,lcdc: convert to dtschema Content-Language: en-US To: Dharma.B@microchip.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, Nicolas.Ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@tuxon.dev Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240304-lcdc-fb-v2-1-a14b463c157a@microchip.com> <3d4e4b18-5318-4f1c-ab05-b925a0dfd317@microchip.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6C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4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <3d4e4b18-5318-4f1c-ab05-b925a0dfd317@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 04/03/2024 10:28, Dharma.B@microchip.com wrote: > On 04/03/24 1:06 pm, Krzysztof Kozlowski wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe >> >> On 04/03/2024 06:36, Dharma Balasubiramani wrote: >>> Convert the atmel,lcdc bindings to DT schema. >>> Changes during conversion: add missing clocks and clock-names properties. >>> >>> Signed-off-by: Dharma Balasubiramani >>> --- >>> This patch converts the existing lcdc display text binding to JSON schema. >>> The binding is split into two namely >>> lcdc.yaml >>> - Holds the frame buffer properties >>> lcdc-display.yaml >>> - Holds the display panel properties which is a phandle to the display >>> property in lcdc fb node. >>> >>> These bindings are tested against the existing at91 dts files using >>> dtbs_check. >>> --- >>> Changes in v2: >>> - Run checkpatch and remove whitespace errors. >>> - Add the standard interrupt flags. >>> - Split the binding into two, namely lcdc.yaml and lcdc-display.yaml. >>> - Link to v1: https://lore.kernel.org/r/20240223-lcdc-fb-v1-1-4c64cb6277df@microchip.com >>> --- >>> .../bindings/display/atmel,lcdc-display.yaml | 98 ++++++++++++++++++++++ >>> .../devicetree/bindings/display/atmel,lcdc.txt | 87 ------------------- >>> .../devicetree/bindings/display/atmel,lcdc.yaml | 70 ++++++++++++++++ >>> 3 files changed, 168 insertions(+), 87 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/display/atmel,lcdc-display.yaml b/Documentation/devicetree/bindings/display/atmel,lcdc-display.yaml >>> new file mode 100644 >>> index 000000000000..ea4fd34b9e2c >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/display/atmel,lcdc-display.yaml >>> @@ -0,0 +1,98 @@ >>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/display/atmel,lcdc-display.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Microchip's LCDC Display >>> + >>> +maintainers: >>> + - Nicolas Ferre >>> + - Dharma Balasubiramani >>> + >>> +description: >>> + The LCD Controller (LCDC) consists of logic for transferring LCD image data >>> + from an external display buffer to a TFT LCD panel. The LCDC has one display >>> + input buffer per layer that fetches pixels through the single bus host >>> + interface and a look-up table to allow palletized display configurations. The >>> + LCDC is programmable on a per layer basis, and supports different LCD >>> + resolutions, window sizes, image formats and pixel depths. >>> + >>> +# We need a select here since this schema is applicable only for nodes with the >>> +# following properties >>> + >>> +select: >>> + anyOf: >>> + - required: [ 'atmel,dmacon' ] >>> + - required: [ 'atmel,lcdcon2' ] >>> + - required: [ 'atmel,guard-time' ] >>> + - required: [ bits-per-pixel ] >> >> Why quotes in other places? > > I got the following warnings when I tried to compile without adding the > quotes for atmel,* > > "[warning] too few spaces after comma (commas)" Ah, right, because it is a list. Looks fine. > > and when I add quotes for "bits-per-pixel" it complained the following > > "[error] string value is redundantly quoted with any quotes > (quoted-strings)" Yep, right. > > So I added quotes for properties with comma in them. > >> bits-per-pixel is generic property, so you >> are now selecting other bindings. Read carefully what Rob wrote. > > My bad, I should have inquired before arriving at any conclusion. > Thanks for letting me know. > > Shall I send v3 by removing "- required: [ bits-per-pixel ]" in select? Yes... and test entire bindings, not only your schema. Best regards, Krzysztof