Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2759373pxb; Fri, 8 Oct 2021 14:52:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyipwehmU3NhyJ5gYuwtHJZ6JFIM33KqBw6eHJmeqIEULqPvmrxSR9Rm6covngmtFx5Bts X-Received: by 2002:a17:903:1252:b0:13d:f3f6:2e1c with SMTP id u18-20020a170903125200b0013df3f62e1cmr11751537plh.73.1633729925168; Fri, 08 Oct 2021 14:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633729925; cv=none; d=google.com; s=arc-20160816; b=oqT7DJAefLM7FvFu/+CkeaXLKqdrKtjR2NmyUeEFhNCdsWDjUD/OLbeq0tIM0sx1Fa Zk+xwDxDTP6JW91trJKZT/tfQlynwdP1325EuJM3p04+uZxaqS/sPPKCWpOcBKD3VYgm SgvvE1PgOk75xyl84sLzpaI3EiTRqvI1LG1d45iwggn5G0Z81yQdxWd8KEP0i9pb7cD/ xt4xaXbZxGVZyRasvHRE1wRM5BQthBJ5PuDnhugP1q5wB9H2euL0elXe0SE1rX1CBmWp cVYFwYVbcVaB/xrDpzLD2fH/Fhsne9IhSaUv9aVHjExdJ8VqDsG7Dxss7/fWXb4XgK2L q41A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=87pjQOukYh/71KH9vTFlkUdLWGcZvypjWjlv+KGMBmE=; b=iw0BZ7XUKeawmTiSKZxwS36azwpoPKNPZVV5PDDcl1uhklHboLH2nBZMMgWVJcntOx X0PDKDt4c3kpsSUWFd0qgNoRw40WjYCC77NmfPiRt6HW7dyBun5icVlU26HQH1THugkE lEEfCMOPbB9tmTOAm4jq/Ib/T9Uwp/Ho171QzwDJK6SXCqGylSZMuq0M2HRHIpeN5USe 1KKzgfy1zTtfzAymJOfKP21XO+0Xa1i9czzE6BAqR5WGQewCd/2by2lA8bGy4jLYqzkS Qru4zTbhJS5oG2LxLRylIscz9ei0qL58EQsBo8PtqBfjC3Lq1BXgRw5lpKj9mAJo/ySe KOmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 2si614370pll.95.2021.10.08.14.51.49; Fri, 08 Oct 2021 14:52:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243492AbhJHVwo (ORCPT + 99 others); Fri, 8 Oct 2021 17:52:44 -0400 Received: from mail-qv1-f42.google.com ([209.85.219.42]:44981 "EHLO mail-qv1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231774AbhJHVwo (ORCPT ); Fri, 8 Oct 2021 17:52:44 -0400 Received: by mail-qv1-f42.google.com with SMTP id 11so7265063qvd.11; Fri, 08 Oct 2021 14:50:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=87pjQOukYh/71KH9vTFlkUdLWGcZvypjWjlv+KGMBmE=; b=3t4gg7Ldc7yHH21Ws1Ny144jCEUsw/1Q/71Hl14k/nsyP5/Pk324ZSiNPnFshArFIJ wYKxOlaThpuT+A8Y8FzY69BW6KkPn9j/mUw1gcU/s9ACvz1kF1oVaqQp1+4jYSdjWTmt WKkM+8WeY7biTR83wVHGyUv73WspSwqDVg3tIz2dTashRhfbQ4TS5DD5btP+EESVX8mI HNk28/yXmnA3nF4oFeOygXrOuL8IYNNYNwXG5iHmIQrYVwZtufvZkAbqP6hAoyGtmDs5 RJLk23wmPkXl/F7B05ektjE4Q7EWh7taPoJke529fURiynpgZdmWzojsxGWGVdx5CN9n N2QA== X-Gm-Message-State: AOAM530FqBIAXOmorSmMgWotHNYMXqFRE1ckiFbsgEUDK4/FPmsFypE2 0LvwvUq9aFOoOmoB8FQk7GO0VU2X6S4= X-Received: by 2002:a0c:8045:: with SMTP id 63mr12097036qva.63.1633729847675; Fri, 08 Oct 2021 14:50:47 -0700 (PDT) Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com. [209.85.222.179]) by smtp.gmail.com with ESMTPSA id a16sm469305qkn.16.2021.10.08.14.50.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Oct 2021 14:50:47 -0700 (PDT) Received: by mail-qk1-f179.google.com with SMTP id z40so9513570qko.7; Fri, 08 Oct 2021 14:50:46 -0700 (PDT) X-Received: by 2002:a37:c12:: with SMTP id 18mr5001969qkm.12.1633729846634; Fri, 08 Oct 2021 14:50:46 -0700 (PDT) MIME-Version: 1.0 References: <20211001000924.15421-1-leoyang.li@nxp.com> <20211001000924.15421-2-leoyang.li@nxp.com> In-Reply-To: From: Li Yang Date: Fri, 8 Oct 2021 16:50:35 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/5] dt-bindings: memory: fsl: convert ifc binding to yaml schema To: Krzysztof Kozlowski Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linuxppc-dev , lkml , Rob Herring , Shawn Guo , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 4, 2021 at 4:32 AM Krzysztof Kozlowski wrote: > > On 01/10/2021 18:17, Li Yang wrote: > > On Fri, Oct 1, 2021 at 5:01 AM Krzysztof Kozlowski > > wrote: > >> > > (...) > > >>> + > >>> + interrupts: > >>> + minItems: 1 > >>> + maxItems: 2 > >>> + description: | > >>> + IFC may have one or two interrupts. If two interrupt specifiers are > >>> + present, the first is the "common" interrupt (CM_EVTER_STAT), and the > >>> + second is the NAND interrupt (NAND_EVTER_STAT). If there is only one, > >>> + that interrupt reports both types of event. > >>> + > >>> + little-endian: > >>> + $ref: '/schemas/types.yaml#/definitions/flag' > >> > >> type: boolean > > > > It will not have a true or false value, but only present or not. Is > > the boolean type taking care of this too? > > boolean is for a property which does not accept values and true/false > depends on its presence. > See: > Documentation/devicetree/bindings/phy/lantiq,vrx200-pcie-phy.yaml > Documentation/devicetree/bindings/thermal/qoriq-thermal.yaml From the dtschema/schemas/types.yaml file, flag type is defined as: flag: oneOf: - type: boolean const: true - type: 'null' It looks like more than the boolean type itself. But if the standard boolean type is actually the same as the flag type we defined. Shouldn't we remove the custom flag type then? Regards, Leo