From patchwork Wed Jul 28 09:02:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 487898 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:1185:0:0:0:0 with SMTP id f5csp1010336jas; Wed, 28 Jul 2021 02:04:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgtWnwTBCBMJIKtLoTNjkMCMcygf0/z5efrmvtcZiWJC89y57LdVgftHy6NWTOs1xoPHTM X-Received: by 2002:a17:907:3da5:: with SMTP id he37mr26124406ejc.189.1627463096826; Wed, 28 Jul 2021 02:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627463096; cv=none; d=google.com; s=arc-20160816; b=0H/gkkzITVQRcgEb4Dk/JtoZbIU7RaUVfKK14URYbsMJo7Ln5TQq65Eg5hB9Lak4D3 ojE1fO+BJyXmJpEH2pDIwFZTlIaL/lFgtvN6mV77dsKQUHNwDiMpXGM3NStD2ACQ/m29 Re/wnhMJiC9GETY7BbOqjVVsQqn+RE9I/fc0wOT/JfF0AaJly4K9SuETOp8Obz2cYEqU GaNlz1Gd7h5zXu4t9FnPjCOrAD5hn/E6qEUaUVZ+MQq96IUiivqPEYKmMxVNHGMcMm3b HA87AHrGvd9heuSYGl5nxCrnwutXA7u+b8w5ND11wf4pM863HTdzyTrwlppTkXcmPNZF ocoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CV70NmWuaFf/90QHNhrtM//ts+9JPH+aY+q63Jc+k1o=; b=H2IyeWABcKwanG/QHVZtELKCECeFG3aZVHTNVZcITkQunqgH1GUtOaAiNV1FsrdZ/B Twic3yiP5SLk4+x4Jbt5tuF3C/GG9B9giNgKLXrQRv495QwMH2LX9qMSccAb5zOAUrxe kXrF891Fmt99y0p9owSoNnuR7penh80ULNtJWdGGl2BcacAyE33iTC9SXmM8oOB9rNor pTdn9sXQOkf5ht7KbgE2FG6Rxxvj19bpkXixiYrikwSf6CxY/87vkQa67TcPimFtCD3E Ym/yE3zRwwbKa4EWQx7TWXoJ+GlJmwuvGDTXiI7YROXSrwHsGUnAdggfsgmadMew9h6V ezOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uVn6BLJq; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si6078625ede.583.2021.07.28.02.04.56; Wed, 28 Jul 2021 02:04:56 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=@linaro.org header.s=google header.b=uVn6BLJq; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230520AbhG1JE4 (ORCPT + 7 others); Wed, 28 Jul 2021 05:04:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231287AbhG1JE4 (ORCPT ); Wed, 28 Jul 2021 05:04:56 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29DE6C061760 for ; Wed, 28 Jul 2021 02:04:55 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id n6so2199828ljp.9 for ; Wed, 28 Jul 2021 02:04:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CV70NmWuaFf/90QHNhrtM//ts+9JPH+aY+q63Jc+k1o=; b=uVn6BLJqAJcv0QI+qQW4OYZ6ugNWU589N5kwsXbH38wQvzJxXLO6/nxe0tcvyFwDpJ Q6hS7VIG4WcKDmMY3sU0gkF4clvgUWHKvnEJsbjjomTB1SxL1yk51J1Gv3owPbCxgNap CBtPxaUrcu5LKHfMb7H/v0zRH+DYWoInI4+PLyERzVcMJIOCFkrFaXLGUmT0qFlWgdXJ gY4Kl8FS8IhzeO1LAzE8YQF9xwKaF1zyQdAmTkTlNXLCQB0OFN7RgDpHHk8+DF2CkOPZ tVRMUJcNIjWD6Iiyojhc2Pn9LzxPKUIAfc7WHaMbkkXg1gmwSVr6UGsRshAmAV1QRh1q 38Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CV70NmWuaFf/90QHNhrtM//ts+9JPH+aY+q63Jc+k1o=; b=GM9g9783MbOeTPTkTc6Pti87JX9+jTlh6fIVIa8tNSPT6kHOZk3Qw/2fETelYFbRjj kys+htq1ZaVXxQ+YWa1hUc3kvlwsoNKrBd354Gz20ZEP7wEI1diyml1pLfiKUlEFHJ04 VqxI42tWG3Mxcgs/PG/EWLR5lsS+gwdbNWdzoFlvH1QAKzuFwnUXJ/Ufl5FX8nnTqxoX 1zoiDGHKURXl52Obd+p8GVX4QpG0eyvhZf2/wPwETYOfA8NWMNB9lHMyQdhaLpFlk2cH 2oBi5CUonVn7bFWlbjM2M+fdtkMfTRFDVF074GhMt280Yen8y1XJkwQFgAmm5YxTjriK f83A== X-Gm-Message-State: AOAM5328n1IP8z8+WQpOV8Ioq1F9Mn+h7wrYXKdBLE1TS0dwA05l1TRu bz29HN5QAQdQyQxRV3xzCPmtAw== X-Received: by 2002:a05:651c:d5:: with SMTP id 21mr10757064ljr.135.1627463093563; Wed, 28 Jul 2021 02:04:53 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id d9sm505495ljq.54.2021.07.28.02.04.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jul 2021 02:04:53 -0700 (PDT) From: Linus Walleij To: Jens Axboe , linux-ide@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa , Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 4/5] pata: ixp4xx: Add DT bindings Date: Wed, 28 Jul 2021 11:02:41 +0200 Message-Id: <20210728090242.2758812-5-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210728090242.2758812-1-linus.walleij@linaro.org> References: <20210728090242.2758812-1-linus.walleij@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 -- 2.31.1 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 + 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 + + 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>; + reg = <1 0x00000000 0x1000>, <1 0x00040000 0x1000>; + interrupt-parent = <&gpio0>; + interrupts = <12 IRQ_TYPE_EDGE_RISING>; + }; + }; + +...