Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3856596imm; Mon, 1 Oct 2018 05:44:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV63jNLiL8gYRDYVj4V4Uv+3vhS0+wvbwZgkl17pbjznQohCSMR31YSv+ezvCMXAsc294oo+h X-Received: by 2002:a17:902:20c5:: with SMTP id v5-v6mr11635123plg.62.1538397891943; Mon, 01 Oct 2018 05:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538397891; cv=none; d=google.com; s=arc-20160816; b=0fwT3UZ3xLCE5AkSijAV2eiDiSf3FlYYOp0s4+I+bsEA02mYWamyKmADnA5/m3BQzh rhpU8KwAgGCwnv62v0LlkXOGoFpVSS+BvTz0v47x/8Dj6TLv9ovyJjn50PhksRNMKlqW xTQtvFjHSTejd8KVJvufY9PNQZRZlSzCaz9vIBDGOH+cTVPdYeTVINvDxaMY0TvTxEMt xYB41MltKIAOA5hcgXrwmKsfdDKCs9OLq1Gai3Q6l29sfEZquf8UAMgF+VKIKp+FwLXx PEI5ClWGnheDSzNCW0Q02yneuxnWPdwotm8aAh7A1vWXMF7Y1SrOG7FmhDOTWUEwBVqm eOcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EUdiv3GxcKIGRchs0tikWhabjt2xJ5EVou+ayt6rXzE=; b=aYPoYopjNgK7ecajLzizTKJsvdMJA38EDmWHLpVtNOyDf4yW2UdCtqcq3XYNwqzW1f WpMulxHB8Vukx3aqq96193MTFR5l7MmVosNXnNc7gt7z2ija6Of4T0k5TiJFWSg20nAd HrKm8rl4bDJMNQSfJQsj/6kBmSxl7hdyRAh3qUFRom89HUwI9+ssuxNyD9BIkqmyRAcz iitzvPf3O3RNcaO9WjtJHCTRJQL9HKwDRbL/Ysouua3qyrBCLO+d0xitmT0MiM4XXP64 vkp0rWe+iqhetwHdEnMHe0xwc51TIacCz9rFcLokHYsx6WrD2/NNP1GDefgeJ1juUh0Q JDZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mf3br7zn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9-v6si12744198pfg.46.2018.10.01.05.44.37; Mon, 01 Oct 2018 05:44:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mf3br7zn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729559AbeJATVs (ORCPT + 99 others); Mon, 1 Oct 2018 15:21:48 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:46954 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729550AbeJATVr (ORCPT ); Mon, 1 Oct 2018 15:21:47 -0400 Received: by mail-ed1-f68.google.com with SMTP id g32-v6so3647082edg.13; Mon, 01 Oct 2018 05:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EUdiv3GxcKIGRchs0tikWhabjt2xJ5EVou+ayt6rXzE=; b=mf3br7znLJYU1fQFlihgt2ZVhv1Y/B8LVOR4ShkcaOqBoUURpq9Ee3eTg376bfwe5L l0NSeCKgHf9KocP/DM/RDQgApIZ3xm5jX1gV/AMr2T8zHCuizA7Joo4D4q4NCRhxXwHN 8fbS18kYZutoT8+sM/pNfT0dsQiTjwYt0K+EflSGdoDeF1ZkiBvZsNtcpQnBMTTQhlcY VCMD1vNKj16vM/5xePoXOuMIhitnB/t9xCbEhFeplQV7m1qgwwsYmciKlS598OYEE8rP zIfRtiXkKd0/zORSBe2E8WWQrlW20ThbsAVv9hJJ0iI++su9EuIi8tToCI/erktaTyqG +X+g== 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=EUdiv3GxcKIGRchs0tikWhabjt2xJ5EVou+ayt6rXzE=; b=hxEnxqnU/a+SVyxbuik0LRhkAiqwEZFGx+3YPzYPsWfse5zy0/6OyuAZ1rkoOhXi7c 8gvNonxskLFJnwxDWlYHIntKwabKRLqWYDqL/QxLFDTPpi502huCmoLhkd9QOVM3iW4u 5zdhx8mRCYFUo8GOPs9XRg3Bo2F7fR6e32iTb684pCDewBNRgRFkXIyaY1lZhIGlQRQ4 UV0tghFgXZizc4A+bcocE66Vu7ALLHl4djFG3mBvs46/D51qRqWnqZUQkZP8NG48cA5G 3X69t19i9bzks032pBGNQGISl1kKd1NVfo6wjydiGfOsQTri7G0K7gM71FsejK12IlZD BRyA== X-Gm-Message-State: ABuFfoj2Cx02uEQl1SrVnJo6GSJEhb3gubVm+dj14upG1PxqD409kpdv twRJBeLiJTOeR++FH2Lv0D4= X-Received: by 2002:a17:906:33c7:: with SMTP id w7-v6mr1640776eja.28.1538397847000; Mon, 01 Oct 2018 05:44:07 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id h3-v6sm5278700ede.42.2018.10.01.05.44.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 05:44:04 -0700 (PDT) From: Ricardo Ribalda Delgado To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Zhouyang Jia , linux-mtd@lists.infradead.org, open list Cc: Ricardo Ribalda Delgado , devicetree@vger.kernel.org Subject: [PATCH v4 7/8] dt-binding: mtd: Document gpio-addr-flash Date: Mon, 1 Oct 2018 14:43:50 +0200 Message-Id: <20181001124351.31615-7-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181001124351.31615-1-ricardo.ribalda@gmail.com> References: <20181001124351.31615-1-ricardo.ribalda@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for gpio-addr-flash. This binding allow creating flash devices that are paged using GPIOs. Cc: devicetree@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: Ricardo Ribalda Delgado --- .../bindings/mtd/gpio-addr-flash.txt | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/gpio-addr-flash.txt diff --git a/Documentation/devicetree/bindings/mtd/gpio-addr-flash.txt b/Documentation/devicetree/bindings/mtd/gpio-addr-flash.txt new file mode 100644 index 000000000000..5006a26e1753 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/gpio-addr-flash.txt @@ -0,0 +1,54 @@ +Memory Mapped flash with some address lines addressed using GPIOs + +Handle the case where a flash device is mostly addressed using physical +line and supplemented by GPIOs. This way you can hook up say a 8MiB flash +to a 2MiB memory range and use the GPIOs to select a particular range. + + - compatible : "cfi-gpio-addr-flash" + - reg : Address range of the mtd chip that is memory mapped, this is, + on the previous example 2MiB. + - bank-width : Width (in bytes) of the bank. Equal to the + device width times the number of interleaved chips. + - gpios: List of GPIO specifiers that will be used to address the MSBs address + lines. The order goes from LSB to MSB. + - probe-type : (optional) "cfi_probe", "jedec_probe". How the mtd chip + is going to be probed. If omitted, assumed to be equal to "cfi_probe". + - #address-cells, #size-cells : Must be present if the device has + sub-nodes representing partitions (see below). In this case + both #address-cells and #size-cells must be equal to 1. + +The device tree may optionally contain sub-nodes describing partitions of the +address space. Check partition.txt for more details. + +Example: + + flash@300000 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "cfi-gpio-addr-flash"; + bank-width = <2>; + reg = < 0x00300000 0x00200000 >; + gpios = <&gpio_0 3 0>, <&gpio_0 4 0>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + reg = < 0x0 0x200000 >; + label = "Golden Bitstream"; + }; + partition@200000 { + reg = < 0x200000 0x200000 >; + label = "User Bitstream"; + }; + partition@400000 { + reg = < 0x400000 0x200000 >; + label = "V4L Controls"; + }; + partition@600000 { + reg = < 0x600000 0x200000 >; + label = "Production Data"; + }; + } + } ; -- 2.19.0