From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B22CAC433EF for ; Fri, 8 Oct 2021 21:51:22 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1257361038 for ; Fri, 8 Oct 2021 21:51:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1257361038 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HR22J2Tm7z3c8w for ; Sat, 9 Oct 2021 08:51:20 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=209.85.222.173; helo=mail-qk1-f173.google.com; envelope-from=pku.leo@gmail.com; receiver=) Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HR21l5xWGz2yXW for ; Sat, 9 Oct 2021 08:50:51 +1100 (AEDT) Received: by mail-qk1-f173.google.com with SMTP id g21so10897817qki.11 for ; Fri, 08 Oct 2021 14:50:50 -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=UzwVByIbQjXF89sE0u2qJQKrZq6ke2fQr45GE1qLA9yhCu8JTalWn3LyNL+HBSkPGb eDCH+fM32uzlidJ6Y5GMBWriXb0eKSlGVB7l5FGZfWzYjaNpYefj8/i05SM6N0tKIz4g zgvf+M5ujPPQMHqtoV44bEXWJvdJMM3hImBV0LV8OqLNyPjtotPNQGCFCQsE8yD2N5Px 9c436KCzkFqiKNd+/aTbGzIbrkFbnITAXlOFZrW+oBLEzUEkrhfckF3jV6/1bk/vU+Zc M8+S/wSPJn4Msq9YIQiKh1CzPzLHGjXED9KzpSIN/n7n7ieBHBDFhL8j0nCkt7oO+hce byhA== X-Gm-Message-State: AOAM5334AMSF4V22veXSQr12G32piE9qPMGMcnYpgaKP/IAAVy/HovAX sSXXeI2dKzKf48xSDf+Dglbwbq2ziZ0= X-Google-Smtp-Source: ABdhPJwbLJFYFB1TUR7VSterRRsqZA6rsUEYZsI5NAFpF0ZsIdOvyeI9AeFZZsqbDciU9iX215w8Tw== X-Received: by 2002:a37:2ec6:: with SMTP id u189mr5048655qkh.466.1633729847588; Fri, 08 Oct 2021 14:50:47 -0700 (PDT) Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com. [209.85.222.181]) by smtp.gmail.com with ESMTPSA id m11sm712967qkp.0.2021.10.08.14.50.46 for (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-f181.google.com with SMTP id p4so10923662qki.3 for ; 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 Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Shawn Guo , lkml , Rob Herring , linuxppc-dev , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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