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 X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06F04C4320A for ; Wed, 28 Jul 2021 16:14:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E2D5C60F23 for ; Wed, 28 Jul 2021 16:14:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229843AbhG1QOw (ORCPT ); Wed, 28 Jul 2021 12:14:52 -0400 Received: from mail-io1-f42.google.com ([209.85.166.42]:43761 "EHLO mail-io1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbhG1QOs (ORCPT ); Wed, 28 Jul 2021 12:14:48 -0400 Received: by mail-io1-f42.google.com with SMTP id 185so3563982iou.10; Wed, 28 Jul 2021 09:14:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/mtNibC7Fvo1HsXc7idF5QFDgyDNt/2Z97m95bd7FNY=; b=kmlx+UaX+fE2FaxL9cctyOthQ2jkQwZTDxplBe52ZPIOjg5N2PTDQmYM2SrfpjmfNA BNpRdx0Oo5R8SDPwCULsfJhinY9NDSpJujPtQG5BIqT5GizdPemn+DN1NYIrZ7lUctw+ S5UjgQBHmdFnJxiTLW/aphwGLvrM4/EfbN91PofaJZEAsWrZF4vFqeYkV3PpyJw6vkyu r62RcG5uw9UGDeW1CnkII/qezyWKJkKuWjyoeVl0QJ70YYFhfpRWCfaYeYs1lboedtaK eAx5Ub09Yghu1OL6om3QUrl+9Vo0ut8S0+/lLlYCFVNLopt4ns9EhtISNK7kwMzpglWo 9unQ== X-Gm-Message-State: AOAM533wZB/eElSi5SODit0zyZYaN0IWEyI1iVVkfcBvmKu3SGmi8lq+ bg+TLFG0nZ0yoLlAqIC2KA== X-Google-Smtp-Source: ABdhPJzQ7wN03n2xbbg8YAn/mDpn/QiQPE7/urkDzDsUYKTWFpi4oAUGKuqfdsnDqk1S3nx+Php6GQ== X-Received: by 2002:a05:6638:22f:: with SMTP id f15mr550556jaq.141.1627488884481; Wed, 28 Jul 2021 09:14:44 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id j11sm176849ilu.78.2021.07.28.09.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jul 2021 09:14:43 -0700 (PDT) Received: (nullmailer pid 1168840 invoked by uid 1000); Wed, 28 Jul 2021 16:14:41 -0000 Date: Wed, 28 Jul 2021 10:14:41 -0600 From: Rob Herring To: Linus Walleij Cc: Jens Axboe , linux-ide@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa , devicetree@vger.kernel.org Subject: Re: [PATCH 4/5] pata: ixp4xx: Add DT bindings Message-ID: <20210728161441.GA1163345@robh.at.kernel.org> References: <20210728090242.2758812-1-linus.walleij@linaro.org> <20210728090242.2758812-5-linus.walleij@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210728090242.2758812-5-linus.walleij@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org On Wed, Jul 28, 2021 at 11:02:41AM +0200, Linus Walleij wrote: > This adds device tree bindings for the Intel IXP4xx compact flash card > interface. > > Cc: devicetree@vger.kernel.org > Signed-off-by: Linus Walleij > --- > .../ata/intel,ixp4xx-compact-flash.yaml | 62 +++++++++++++++++++ > 1 file changed, 62 insertions(+) > create mode 100644 Documentation/devicetree/bindings/ata/intel,ixp4xx-compact-flash.yaml > > diff --git a/Documentation/devicetree/bindings/ata/intel,ixp4xx-compact-flash.yaml b/Documentation/devicetree/bindings/ata/intel,ixp4xx-compact-flash.yaml > new file mode 100644 > index 000000000000..b254be858de6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/ata/intel,ixp4xx-compact-flash.yaml > @@ -0,0 +1,62 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/ata/intel,ixp4xx-compact-flash.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Intel IXP4xx CompactFlash Card Controller > + > +maintainers: > + - Linus Walleij > + > +description: | > + The IXP4xx network processors have a CompactFlash interface that presents > + a CompactFlash card to the system as a true IDE (parallell ATA) device. The typo. (you can setup checkpatch.pl to do spell checking) > + device is always connected to the expansion bus of the IXP4xx SoCs using one > + or two chip select areas and address translating logic on the board. The > + node must be placed inside a chip select node on the IXP4xx expansion bus. > + > +properties: > + compatible: > + const: intel,ixp4xx-compact-flash > + > + reg: > + minItems: 2 > + maxItems: 2 What is each entry? > + > + interrupts: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + > +allOf: > + - $ref: pata-common.yaml# > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + > + bus@c4000000 { > + compatible = "intel,ixp43x-expansion-bus-controller", "syscon"; > + reg = <0xc4000000 0x1000>; > + native-endian; > + #address-cells = <2>; > + #size-cells = <1>; > + ranges = <0 0x0 0x50000000 0x01000000>, <1 0x0 0x51000000 0x01000000>; > + dma-ranges = <0 0x0 0x50000000 0x01000000>, <1 0x0 0x51000000 0x01000000>; > + ide@1,0 { > + compatible = "intel,ixp4xx-compact-flash"; > + intel,ixp4xx-eb-t1 = <3>; > + intel,ixp4xx-eb-t2 = <3>; Can you omit these? Otherwise, this will start failing soon as unevaluatedProperties is implemented (I have a test branch). Or you need to handle child node properties as discussed. > + reg = <1 0x00000000 0x1000>, <1 0x00040000 0x1000>; > + interrupt-parent = <&gpio0>; > + interrupts = <12 IRQ_TYPE_EDGE_RISING>; > + }; > + }; > + > +... > -- > 2.31.1 > > 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 X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76F7AC4338F for ; Wed, 28 Jul 2021 16:23:57 +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 3AAD3600CD for ; Wed, 28 Jul 2021 16:23:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3AAD3600CD 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JG2ogJRM3XRVHlSc7ZfEWlJXaJZYiUvOYvY8NiXy4YE=; b=WuwKWXFtFyJtsv 7JFHEQbjoXdSZjtpKjfdHJQAduNLpnF5I+Rt/DB9pXqrsTYYmQmIIi67kIuM2z5GCEb8tj457ELZr EdnGF96THub8f8SIOpnna5J3NJFSz8aZ8qoqCYLh3au3zmuSHS5FK8vOZ7OYq8iOFZhAlZgOxDr5m LPH+uThT50wv7OcQlvgJfoUQPPDBCaNE93Oulu6oOj42CI7gyVNumJnESS8+fAJbbSnxanpVA+eLq KEIfBQOzRSzW1uMx+tn3/IUA8PUGYE9eSi0Df+c7AkhvPdsPfgULLeBGO4xQqQMhxFYD3M0S/dBmI 0hcxo1l8xqTAfhFkQSqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8mJ8-001aPS-B4; Wed, 28 Jul 2021 16:21:23 +0000 Received: from mail-io1-f45.google.com ([209.85.166.45]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8mCk-001XaZ-TF for linux-arm-kernel@lists.infradead.org; Wed, 28 Jul 2021 16:14:48 +0000 Received: by mail-io1-f45.google.com with SMTP id z7so2740848iog.13 for ; Wed, 28 Jul 2021 09:14:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/mtNibC7Fvo1HsXc7idF5QFDgyDNt/2Z97m95bd7FNY=; b=Ji6c3N/ReZAfVOzvSZUwMxLAbpBBUlWc5XV/GqbB9OWtjbuTyaP0Vyf93Yide/nA3m 1DarwKiPuUGxHIPFGg5I+PRypxV9IVxZFoQhqymPDVXVu8KhxQE8xMqMks65cZu/pwGP 7kGzYkUyAWTL3eiVpKeQblvawv+wvXb2rqVDj/gFMog1ruSl9Am1/K2a6iFhwzKndNv/ QZhXn+bxdb+tFOMxKjv5dEvEvCWEKB/LOR+13aYu5EKEtYGrrhmx7Spw0+HbW3ANU/lm lD31EUu+WAVujCmqgwaQY2oh2iLoo47+5UdOuR3SCgwyIbbZdms9CJNJF9fVmmo5NkUt HfTw== X-Gm-Message-State: AOAM530No8o1sYpLYgPTZTVR7PPPQ5dgjIB1r9iaNWY20cqpe8Ify5Vm 7a/ZSx8+kVGQT8S67iVJ+g== X-Google-Smtp-Source: ABdhPJzQ7wN03n2xbbg8YAn/mDpn/QiQPE7/urkDzDsUYKTWFpi4oAUGKuqfdsnDqk1S3nx+Php6GQ== X-Received: by 2002:a05:6638:22f:: with SMTP id f15mr550556jaq.141.1627488884481; Wed, 28 Jul 2021 09:14:44 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id j11sm176849ilu.78.2021.07.28.09.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jul 2021 09:14:43 -0700 (PDT) Received: (nullmailer pid 1168840 invoked by uid 1000); Wed, 28 Jul 2021 16:14:41 -0000 Date: Wed, 28 Jul 2021 10:14:41 -0600 From: Rob Herring To: Linus Walleij Cc: Jens Axboe , linux-ide@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa , devicetree@vger.kernel.org Subject: Re: [PATCH 4/5] pata: ixp4xx: Add DT bindings Message-ID: <20210728161441.GA1163345@robh.at.kernel.org> References: <20210728090242.2758812-1-linus.walleij@linaro.org> <20210728090242.2758812-5-linus.walleij@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210728090242.2758812-5-linus.walleij@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210728_091447_009174_CA2103AF X-CRM114-Status: GOOD ( 21.95 ) 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 Wed, Jul 28, 2021 at 11:02:41AM +0200, Linus Walleij wrote: > This adds device tree bindings for the Intel IXP4xx compact flash card > interface. > > Cc: devicetree@vger.kernel.org > Signed-off-by: Linus Walleij > --- > .../ata/intel,ixp4xx-compact-flash.yaml | 62 +++++++++++++++++++ > 1 file changed, 62 insertions(+) > create mode 100644 Documentation/devicetree/bindings/ata/intel,ixp4xx-compact-flash.yaml > > diff --git a/Documentation/devicetree/bindings/ata/intel,ixp4xx-compact-flash.yaml b/Documentation/devicetree/bindings/ata/intel,ixp4xx-compact-flash.yaml > new file mode 100644 > index 000000000000..b254be858de6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/ata/intel,ixp4xx-compact-flash.yaml > @@ -0,0 +1,62 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/ata/intel,ixp4xx-compact-flash.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Intel IXP4xx CompactFlash Card Controller > + > +maintainers: > + - Linus Walleij > + > +description: | > + The IXP4xx network processors have a CompactFlash interface that presents > + a CompactFlash card to the system as a true IDE (parallell ATA) device. The typo. (you can setup checkpatch.pl to do spell checking) > + device is always connected to the expansion bus of the IXP4xx SoCs using one > + or two chip select areas and address translating logic on the board. The > + node must be placed inside a chip select node on the IXP4xx expansion bus. > + > +properties: > + compatible: > + const: intel,ixp4xx-compact-flash > + > + reg: > + minItems: 2 > + maxItems: 2 What is each entry? > + > + interrupts: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + > +allOf: > + - $ref: pata-common.yaml# > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + > + bus@c4000000 { > + compatible = "intel,ixp43x-expansion-bus-controller", "syscon"; > + reg = <0xc4000000 0x1000>; > + native-endian; > + #address-cells = <2>; > + #size-cells = <1>; > + ranges = <0 0x0 0x50000000 0x01000000>, <1 0x0 0x51000000 0x01000000>; > + dma-ranges = <0 0x0 0x50000000 0x01000000>, <1 0x0 0x51000000 0x01000000>; > + ide@1,0 { > + compatible = "intel,ixp4xx-compact-flash"; > + intel,ixp4xx-eb-t1 = <3>; > + intel,ixp4xx-eb-t2 = <3>; Can you omit these? Otherwise, this will start failing soon as unevaluatedProperties is implemented (I have a test branch). Or you need to handle child node properties as discussed. > + reg = <1 0x00000000 0x1000>, <1 0x00040000 0x1000>; > + interrupt-parent = <&gpio0>; > + interrupts = <12 IRQ_TYPE_EDGE_RISING>; > + }; > + }; > + > +... > -- > 2.31.1 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel