Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4612224pxb; Thu, 14 Oct 2021 08:33:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFZo72lrxrg4SRFX3XI/A7HvlLFX6wXVB4C4pstE4u1F9a0fR3Y/Z29ZHCGzdLwizdj/fX X-Received: by 2002:a63:69c5:: with SMTP id e188mr4636750pgc.94.1634225626361; Thu, 14 Oct 2021 08:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634225626; cv=none; d=google.com; s=arc-20160816; b=qxBwSldeDWwtcfHO5x1IPBnYY/CEt8l1pJvYWFUlWCl7h4+1P27unLDbdl+HtLXJ2S ZWt3PzyPtyoWv5V+vPK7cgxVThxRxtsk0dsntxrYqVYVBZVeU/gBANCchDVeTjivxPi8 7TCLQ9f03veE5ypxZD0gb7kYAHH43hctx+GuYXaPOdDOtq1MZ9DR/w9P5RY567X2SnpQ +hlHi25Y2Xv7X37SR1bBYJcEtwxSSFHNhMmJD14Y9DpTkBZ4vWtTqSeq2/9/oHzCjtZF 5N/ILt4j/ug4sMAq8u1dHWpkbDHYwJlrl0oOWi57VA1foXqgZwAE2VprC1WFvmXBaRwn GCIg== 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:dkim-signature; bh=wg81QajFrhsqMXBF1A2W90UHWUeu5tFspaKAFtgxfL8=; b=L1HCBG4PnAfnRB2KZdHkT0pyr6GdObkU1RkL3BaGlnCxVmmkvSLZDFL/Z1R6GJztaq I6uSgOQwrkkhqFvQDYyhpuIDF71JFC9mBqCaR5FfplIzAj9WJHylPlbaWxKcxU6vAQ2p HvNWmCTuevs5ACC/EUSIfpku60UtsSZbtTSjdM1GqVG0NdVoN4csPomm8thueBLTNXPY 3Gj3L/Ik1veYtkY3Jv0rcM5tF8ijmnMmNVTt5nyuWmEEV1/JCynQAK3HDaM+CzRTJpNI leXmyVwjovwwInMTEed/sHDkQjLU/SLKfH5Iknaadl2mjrgs1e9LeczUXgitgH++eFEQ ZB5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SXdxOowl; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si3711791plz.315.2021.10.14.08.33.33; Thu, 14 Oct 2021 08:33:46 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SXdxOowl; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231566AbhJNMtJ (ORCPT + 99 others); Thu, 14 Oct 2021 08:49:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:54140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229912AbhJNMtJ (ORCPT ); Thu, 14 Oct 2021 08:49:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3EBF660C49; Thu, 14 Oct 2021 12:47:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634215624; bh=+d01KHTRSumOEZT8agvd8tWEcK3PRRbA5A7BnnIbdpQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=SXdxOowlZ7aya9QAoUheTtExbJZKUXxsrsgkhJtRxFO5U/6UOhjDEbbkgc/eAhvnl 8VDJy5Qls3NqYv00avhVHiihQyHEWNURxN94FMfMOwT4OzaE5ddz0lCArRUKuyjlu4 ypBeYZx/qfynSMviuCAUnjkQ/rvsK/ajrxAlSlJtz2MTz0o7EjUB1WE/8dDabWV5u0 JBfg7vG7ROz2sslGyTYewlVnw0Oj7ms/PXk1hu62BcTZutTXH5zudlJ7A1nHzWfUhz xO2+keIbybqoaGgEUObO2GFdHsjYg8KhUNuD1XwsBveDBXYXZui4cqjlRssZQgwHYD eE0sUkebLL2RQ== Received: by mail-ed1-f51.google.com with SMTP id y12so24328608eda.4; Thu, 14 Oct 2021 05:47:04 -0700 (PDT) X-Gm-Message-State: AOAM532QYPNuP3XNDybx3FB43D/IsELlAn3zC8480mj8suDZ7Yk+kjs1 iNy2lbvyAB+KBoz7a+yKAGPHqCEdQsm63NTJqg== X-Received: by 2002:a17:906:9399:: with SMTP id l25mr3551972ejx.363.1634215622699; Thu, 14 Oct 2021 05:47:02 -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: Rob Herring Date: Thu, 14 Oct 2021 07:46:50 -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: Li Yang , Shawn Guo , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Michael Ellerman , linuxppc-dev , lkml 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:31 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 They are equivalent, so either can be used. Really what is needed here is a common schema for the endianness properties defining the type once. Then any binding using a property can just do 'little-endian: true'. Rob