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 D657BC433EF for ; Thu, 14 Oct 2021 12:49:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 A31D760C4B for ; Thu, 14 Oct 2021 12:49:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A31D760C4B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=as1WoJgQxYRyEUhK2tOzDRxjutxBSE+FlcJbgT5YN1o=; b=CuvMmq+qOQNDDC vknE9T7Z0ivWVtANQvIy8RpnSIqeHkZyk4p3/WTD24/qoqkhGQ74GMv+9I8cPxs0zLYMKkgG7ZSHP sT0gy8bIZA6SLIP56olhITFil3+CY9GtpXvVA2Wppdsmg+P00nbmTmY21S0DJRJDFbYxheR6r4h4e vAsIMrAk1ygPLi55yraNWTiI/KgLSGaRUCiqCuAiS6tELFKJgB3pb0/m3G7FcyPowZPgTOy5z90QO IrES5r9ZNuYQaTbawehz5jnn5VMXHe5sXV7hQQrNqBhOxEwjgAZe3iz5bUqzg+S77u4j+bTx1rhuT AfF26FH9EFgcC/SVv8OA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mb08c-0037D1-7H; Thu, 14 Oct 2021 12:47:10 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mb08X-0037Bm-Ie for linux-arm-kernel@lists.infradead.org; Thu, 14 Oct 2021 12:47:06 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3290060C49 for ; Thu, 14 Oct 2021 12:47:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634215625; bh=+d01KHTRSumOEZT8agvd8tWEcK3PRRbA5A7BnnIbdpQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CDo3SkUswF+92D1Pp7tLoAKvA5j8QKYRuQBuHO0SqGVpfnK6h5FpNLvuDs7HA7MNw /bcCOLf591MwpFHknS6uTwVKVAX/PFhdNLTYXsJ4n6zJPmshMssU0gFPz6de/kcBsm kbRZ6h1zD1JNq0mDV5nGL7IU6lgWI7oPwjn0tmxzQE33klsAJy75ICjkwgU2mRvQg8 a1yY4OONyPFaa8hULodeucOcT/AFwyJbHPP6E7I9xKV1JRQ5Km9mDwphq+5SGsmdSi OHrYJj3Fc/k1EGhdfw2zHl2aKYx5I1bJdT/Vf3Q6derRf/xAqJko0PgAdaXdKcaeQ/ qjqgFLHuIdBHw== Received: by mail-ed1-f41.google.com with SMTP id g10so23956745edj.1 for ; Thu, 14 Oct 2021 05:47:05 -0700 (PDT) X-Gm-Message-State: AOAM532XfiOF6/jvl9N+gErhlT+FvY2HoTtm6PdeJ6TvjgfVw1510L8L etsNQRjsoaHRTcAIOoHtaK1GhF6v1zt9aAxjew== X-Google-Smtp-Source: ABdhPJwSm3HuhEJ063Rw9UsGLNFNs045f3GLTDsPTojmKwFpUBlKoUE++pS+H7a9JGog+S1ZtaakwJ8m1wxPCvagazI= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211014_054705_654432_EDFBDE86 X-CRM114-Status: GOOD ( 16.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel