From patchwork Fri Oct 7 15:18:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pantelis Antoniou X-Patchwork-Id: 679318 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3srCvP0CNxz9sR9 for ; Sat, 8 Oct 2016 02:22:57 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b=OIPbZV70; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935466AbcJGPWZ (ORCPT ); Fri, 7 Oct 2016 11:22:25 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:37585 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935399AbcJGPWN (ORCPT ); Fri, 7 Oct 2016 11:22:13 -0400 Received: by mail-wm0-f42.google.com with SMTP id b201so45952426wmb.0 for ; Fri, 07 Oct 2016 08:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cPR1npBj059buPVdOdTs0fqNSnYExJqOUZMjMFgGIYY=; b=OIPbZV70Z/Tddi0glhuDMICEU8R80YePhC6g2INI9fccsAFY4Juov3WjAKg7hXLaV4 8CfwVPqQ9C6tVlYYa4Cpbeme4axt+h24whqvuHf6c3Wn2mW58SEFINz1w+BXZro9DaDJ waFBUat/N8RcDnk42/Idt9x7GX063ANaB1+0s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cPR1npBj059buPVdOdTs0fqNSnYExJqOUZMjMFgGIYY=; b=Bv+2AIjrVd4wZTDyYTIqu20H/YnrObsui71QW+pf7wPfVmVrKnNKFoEvviVk2iRO35 n32JdY0b7ka/lWzQz/iORAKultDeVabH7ScQ/0F5OfFQgkExWSQ/9w3w5RtDuR/8HMA5 R27E5A+V/RqmwKF3F0rucDfzbxJQ5QhlRmQVAsGRYKgXi6L6V1eEQelPLdojmCnX5mVH MppWb+BnjEg2g+3zbVVQIImN9NKMn0uwrvW5jzkbbKwyOIlX3loJPcc+Lx7dsEc1EuTl TY7Djq17iUSa800CqAXbDUOlRyFU6lVzklF1bW6Qeei3MHj3+g17q4Sn5JENdv9wFaat wz+A== X-Gm-Message-State: AA6/9Rl/LvWHikzHgrq6vGbr69GoPPfGE61kaYyCV/zeyuA+5HOxWcX74n/Pggtpog8c8A== X-Received: by 10.194.109.229 with SMTP id hv5mr16778610wjb.131.1475853673550; Fri, 07 Oct 2016 08:21:13 -0700 (PDT) Received: from localhost.localdomain ([195.97.110.117]) by smtp.gmail.com with ESMTPSA id bl3sm20115466wjc.26.2016.10.07.08.21.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Oct 2016 08:21:13 -0700 (PDT) From: Pantelis Antoniou To: Lee Jones Cc: Linus Walleij , Alexandre Courbot , Rob Herring , Mark Rutland , Frank Rowand , Wolfram Sang , David Woodhouse , Brian Norris , Florian Fainelli , Wim Van Sebroeck , Peter Rosin , Debjit Ghosh , Georgi Vlaev , Guenter Roeck , Maryam Seraj , Pantelis Antoniou , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org, linux-watchdog@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 08/10] mtd: flash-sam: Bindings for Juniper's SAM FPGA flash Date: Fri, 7 Oct 2016 18:18:36 +0300 Message-Id: <1475853518-22264-9-git-send-email-pantelis.antoniou@konsulko.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475853518-22264-1-git-send-email-pantelis.antoniou@konsulko.com> References: <1475853518-22264-1-git-send-email-pantelis.antoniou@konsulko.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Georgi Vlaev Add binding document for Junipers Flash IP block present in the SAM FPGA on PTX series of routers. Signed-off-by: Georgi Vlaev [Ported from Juniper kernel] Signed-off-by: Pantelis Antoniou --- .../devicetree/bindings/mtd/flash-sam.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/flash-sam.txt diff --git a/Documentation/devicetree/bindings/mtd/flash-sam.txt b/Documentation/devicetree/bindings/mtd/flash-sam.txt new file mode 100644 index 0000000..bdf1d78 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/flash-sam.txt @@ -0,0 +1,31 @@ +Flash device on a Juniper SAM FPGA + +These flash chips are found in the PTX series of Juniper routers. + +They are regular CFI compatible (Intel or AMD extended) flash chips with +some special write protect/VPP bits that can be controlled by the machine's +system controller. + +Required properties: +- compatible : must be "jnx,flash-sam" + +Optional properties: +- reg : memory address for the flash chip, note that this is not +required since usually the device is a subdevice of the SAM MFD +driver which fills in the register fields. + +For the rest of the properties, see mtd-physmap.txt. + +The device tree may optionally contain sub-nodes describing partitions of the +address space. See partition.txt for more detail. + +Example: + +flash_sam { + compatible = "jnx,flash-sam"; + partition@0 { + reg = <0x0 0x400000>; + label = "pic0-golden"; + read-only; + }; +};