Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1288860rdb; Tue, 30 Jan 2024 13:58:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqQ4f1kFR9vkCgFW0PyoDns5rglUnC5Lt++P+LR9MhmwxxHBbG3lLOdvOu66yG4QO3eT8/ X-Received: by 2002:a05:6808:2e87:b0:3be:5998:cb1e with SMTP id gt7-20020a0568082e8700b003be5998cb1emr7133800oib.42.1706651882801; Tue, 30 Jan 2024 13:58:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706651882; cv=pass; d=google.com; s=arc-20160816; b=oZfRtq2mffu6iTMEHN2GKmYTNZanUWRjrThoscr6/7zMZjbhAkHJQ7qrWpfuJsKdQv L302laxxpZHKMoTgqdwAJU8TjcQru4OL0zxCvJMoMA7PkQ/7XnUJOXIUGTX1157cGoCm J9X08XzJXWbU7P+cJMm3aFZer7F2UUNytkdWW8iwyjr0YAhOGOVRYyLp1UgJYNsTNNo0 L9z/eNO8rdxQKhr0mxoNU1T/GjtEVugeBnHy0ZXc5FyB/i686W8jOaiOfCS0mMuiUO7S eHKtIMfOI0QVa5Qp/nPiQSsDirIqf5ecRwNcSfM2May5B8BJIp0AA2cc/IAs0mOPah5c qNog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=wdh/VQpoX951eaSBCyP28Nr1FHihNafI7p4+z0vryQs=; fh=U1tu5hb+O9vodqGg/W6C42OBKJ1bUwMsyES+tJE25rg=; b=SJNudI/4TghGHf7ImRLVovgvyLdEwsRb+Q6RzpJKOtwuP61n8dDgaZP6NWI7LeTnRq puWQkZLXkblA33Z2D0uInftg+nSlmhSJdTMZAD4u2f3wzaWnZTtvVDAX6cLSPQer89H0 /tqWVejUfNDLykUVdsp2JHScpgU/QJx9syCnCdclOhDpjj8pwN8mCwCPveA9basKDxmB E2WctFoPCMc4i8PLn/8WW7ojdSDNS4GISe1XwRbSJsPkfQpexg7/Wtr1kWgF5pPns95P ajxYPHlkdnhS2mJ7iHiXzdWa88YHAN1wTu+XGobt48yg9s+ufUZXPHq5tBPb+tPoU8D9 o00w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="KQ8rXa/J"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-45356-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q12-20020a05622a030c00b0042be368fe61si666570qtw.681.2024.01.30.13.58.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 13:58:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45356-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="KQ8rXa/J"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-45356-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45356-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2D3D91C23B9F for ; Tue, 30 Jan 2024 21:58:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D8287D3EE; Tue, 30 Jan 2024 21:57:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KQ8rXa/J" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 8BAA47D3ED; Tue, 30 Jan 2024 21:57:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706651874; cv=none; b=PZIGnDMExYDlFAWnPBPxGUjXWXlUkuvhMm99RyVapk+KZYN16RL/qQRvxh27p9CuZKgU33cgOlWpS+WMWbwKeKet968xfTa2oVCBy4Tzov6NoXMHqJ/zzeIS1LpMTquWxd+ND2w9XpeKlcj9oyFmwmayPO12oLRckRhrZ1Tk9to= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706651874; c=relaxed/simple; bh=HDWDAcQoYXifJAgQU95qvjKYaNNSaHnT1PVLpa+0ZHk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=g8w3OpW29+q0WKDjxqFMWcBAsPKJ2Ke1rv+UnesKv6SEmg+GplATlk++Q2ayaa87vFonQsxt2gR7V8qk24o/uKqc+EnsyAVIJCXPxDHCwiAH4/AF0eSkTns2SzD/JRr7APtZHABpwHU2zqGbyeDRuOA8JNKg+4lImmbwcQbSzXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KQ8rXa/J; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a3122b70439so607259366b.3; Tue, 30 Jan 2024 13:57:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706651871; x=1707256671; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wdh/VQpoX951eaSBCyP28Nr1FHihNafI7p4+z0vryQs=; b=KQ8rXa/J37U7wb7KHrtHOx6czJ6ul7t2tz6610jCIPG0ZC2WCmfGmbrkM/gouYvKKd GQg7mOIQgrasd7+iHcEl40IqKZA/jOqoLoSMEjQny6FbgJJZKkaHSAA74g9gpA3oFPMb 1ypx/9QebExnKgN0fFvgLgbhwp3Ph8cyfoA+X5hDoFvFHdxgM2/4q57AdYYeyGaHV7hA DCitzktYTyUHXqbys4HEkBZTaoEkg/Nd8vhfmjKMeOUekZ8bXP43jJ1zgmyw+KaoocET srS0NwkZjszcqjax0V8g46FvYzL43JXHRUoHd4jz959hTVAat3aEaOo3huKqCMxUkGRR 4Ptw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706651871; x=1707256671; h=content-transfer-encoding:in-reply-to: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=wdh/VQpoX951eaSBCyP28Nr1FHihNafI7p4+z0vryQs=; b=kTGB3WCubst1/DcxXG7po9q67EhDvomWhKTD8mhAxsdjZJpEk2WOao8tOY3s92wJiz reZ52waM+gmIhp1Iu9CD630r3gpLffUb/VBsPsxi4DG+6j05NuP5yl9imj3Sx7HYczn6 ol12HaGwifLL0bWSu01U4/sgg8gkW8zQbCCX6IynA2i6ZxR8WJtoKq4EWKZe/S2yK6UQ KfFoVDjs0dimwxeU5O93enXWiWgCpxNG7cMVHvuyfSo65vDir875+kKUuHXYc+daP1Q9 xW/NuozaAHSJJsFBnegbuTnMvIQYw+VQtrFjSss9P61miUTxn0Z85cYgKZOkSAlOFqxY BJqg== X-Gm-Message-State: AOJu0Ywa9smqYU8DSH9d9rWaib6vzl1LMBBXqUAp321+d9cJ6LkxqJpA t5+I0e2omJ04FnB1ZubteM+Ff7HcXa5ZxKnDGghJBL7GzYeuIVFs X-Received: by 2002:a17:906:4ad2:b0:a35:fbc4:4c20 with SMTP id u18-20020a1709064ad200b00a35fbc44c20mr3161908ejt.6.1706651870454; Tue, 30 Jan 2024 13:57:50 -0800 (PST) Received: from [192.168.26.149] (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.googlemail.com with ESMTPSA id x10-20020a170906298a00b00a34a20b247fsm5519809eje.84.2024.01.30.13.57.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jan 2024 13:57:49 -0800 (PST) Message-ID: Date: Tue, 30 Jan 2024 22:57:47 +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 2/3] dt-bindings: arm: mediatek: convert PCIESYS to the json-schema Content-Language: en-US To: Rob Herring , AngeloGioacchino Del Regno Cc: Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Russell King , Daniel Lezcano , Thomas Gleixner References: <20240123082100.7334-1-zajec5@gmail.com> <20240123082100.7334-3-zajec5@gmail.com> <20240130203413.GA2290196-robh@kernel.org> From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= In-Reply-To: <20240130203413.GA2290196-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 30.01.2024 21:34, Rob Herring wrote: > On Tue, Jan 23, 2024 at 12:20:29PM +0100, AngeloGioacchino Del Regno wrote: >> Il 23/01/24 09:20, Rafał Miłecki ha scritto: >>> From: Rafał Miłecki >>> >>> This helps validating DTS files. Introduced changes: >>> 1. Documented "reg" property >>> 2. Adjusted "reg" in example >>> >>> Signed-off-by: Rafał Miłecki >>> --- >>> .../arm/mediatek/mediatek,mt7622-pciesys.yaml | 47 +++++++++++++++++++ >>> .../arm/mediatek/mediatek,pciesys.txt | 25 ---------- >>> 2 files changed, 47 insertions(+), 25 deletions(-) >>> create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-pciesys.yaml >>> delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt >>> >>> diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-pciesys.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-pciesys.yaml >>> new file mode 100644 >>> index 000000000000..7340a2512402 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-pciesys.yaml >> >> I think that we should really move all those clock controller yaml files to their >> proper directory, which would be >> >> Documentation/devicetree/bindings/clock/ >> >> ...because those are clock controllers anyway and the fact that they do also >> provide a reset controller doesn't really justify having them in arm/mediatek. >> >> Besides, I would appreciate if you could also move mt8186/92/95 and eventual >> others that are there to clock/. > > Yes, please move it. > >> >>> @@ -0,0 +1,47 @@ >>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/arm/mediatek/mediatek,mt7622-pciesys.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: MediaTek PCIESYS controller >>> + >>> +description: >>> + The MediaTek PCIESYS controller provides various clocks to the system. >>> + >>> +maintainers: >>> + - Matthias Brugger >>> + >>> +properties: >>> + compatible: >>> + items: >>> + - enum: >>> + - mediatek,mt7622-pciesys >>> + - mediatek,mt7629-pciesys >>> + - const: syscon >> >> I know that there's syscon all over the place and, even if I admit I didn't check, >> I am fairly sure that there's absolutely no reason to have syscon there, and that >> the syscon compatible never did anything for (most of, or all of) those clock >> controllers, at all. >> >> I'm not sure - though - if removing syscon during the txt->yaml conversion is >> acceptable (yeah we'd be cheating a bit), but something makes me say it is, because >> the bindings couldn't validate before that one as well. > > As long as you state why you are removing it in the commit msg. > >> >> Of course you'd have to remove the syscon compatible from the affected device trees >> as well as omitting it here. > > You could also do 'minItems: 1' and 'deprecated' in the 2nd item. I expected this to be quite straightforward but I can't get it to work. Can you tell me if I'm making some mistake or is that some meta schema limitation? properties: compatible: oneOf: - minItems: 1 items: - enum: - mediatek,mt2701-hifsys - mediatek,mt7622-hifsys - const: syscon deprecated: true - minItems: 2 items: - enum: - mediatek,mt7623-hifsys - const: mediatek,mt2701-hifsys - const: syscon deprecated: true Gives me: Documentation/devicetree/bindings/clock/mediatek,mt2701-hifsys.yaml: properties:compatible:oneOf:0:items: 'oneOf' conditional failed, one must be fixed: [{'enum': ['mediatek,mt2701-hifsys', 'mediatek,mt7622-hifsys']}, {'const': 'syscon', 'deprecated': True}] is not of type 'object' Additional properties are not allowed ('deprecated' was unexpected) from schema $id: http://devicetree.org/meta-schemas/string-array.yaml# Documentation/devicetree/bindings/clock/mediatek,mt2701-hifsys.yaml: properties:compatible:oneOf:1:items: 'oneOf' conditional failed, one must be fixed: [{'enum': ['mediatek,mt7623-hifsys']}, {'const': 'mediatek,mt2701-hifsys'}, {'const': 'syscon', 'deprecated': True}] is not of type 'object' Additional properties are not allowed ('deprecated' was unexpected) from schema $id: http://devicetree.org/meta-schemas/string-array.yaml#