From patchwork Sun Oct 20 23:00:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 176993 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2608531ill; Sun, 20 Oct 2019 16:00:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1INeXC+T6r6r0jmZtcV/ikrRP/efeV5+T0yUXz5Ye/esUKpPG5XJnYbQNqUpASu9xRIRU X-Received: by 2002:a50:ec03:: with SMTP id g3mr21794688edr.83.1571612456220; Sun, 20 Oct 2019 16:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571612456; cv=none; d=google.com; s=arc-20160816; b=HmywnyfVEIw3LKoAFZk5AAptPNMw6NjxM/1sFFvQiNqw0iACtSGusaf5jGRL5iIKzX 558IWshN8X2Ir15CzZFevgXDTBy88G4nqKTMROsa/K90+xcJHWKMUAvr5bCnngGHno2Z SVzZPWJZOYEPSOi/n/vcj8+4x9e7EdbjUV/1H5AmQvOJ4cLONBIwJUTZOcY6mxj5CnBj lY5Tu1xty9JRSwwnB/5WB+a8s0/c2LYkA7nco7Rc9tH/nGeRJoVksNCFNIV37TlKvCAp jUPc7dZZi5QMN0ZSGiv0QNMp+M/ysC9X9Q5gdPuCVSSDuKRWH/u210jvcOeWKjGhq6vU bp4Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=VYr9aCDj4PnFzDPIIIY7KJpxkUoLJ3Nn3QAOb6G38+I=; b=EaIXa0PtQn/3jD/XN8LTwQadI157ZFxFB4Jo/RePuY9rJ/BK1S/Gd0OBBpqzfc9ePN 6zysgrUPPaCCfaqKWDkCaSBzaWa2qLVjaXsnOZcRis8Yy6+3zE+7Z3woa5CWRyTc1dWU dpPHF39lYGuzZYRnyhvn2Fk5NzOve2JGs7e2ZQRiVEr4kzPGkJ+swYNryWWPROZf+TAR hjJTyFe0yijBdD59doZPnTHoJK73Bk/AHN1gzJ2IZT29iEjDmap11VCRgF1g+JHR9ACi w98s8XRoI4EQ5bGplRglGqDspAwqmaVEoZwE2I0aZ7IQhqQqqXfyLNpHLmsLIlUMl2st gKtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HpSfZmtT; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id cb5si1924329ejb.270.2019.10.20.16.00.55; Sun, 20 Oct 2019 16:00:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@linaro.org header.s=google header.b=HpSfZmtT; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 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 S1726565AbfJTXAv (ORCPT + 8 others); Sun, 20 Oct 2019 19:00:51 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:44117 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726520AbfJTXAv (ORCPT ); Sun, 20 Oct 2019 19:00:51 -0400 Received: by mail-lf1-f66.google.com with SMTP id q12so8492276lfc.11 for ; Sun, 20 Oct 2019 16:00:50 -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:mime-version :content-transfer-encoding; bh=VYr9aCDj4PnFzDPIIIY7KJpxkUoLJ3Nn3QAOb6G38+I=; b=HpSfZmtTANCZMC/v1YzmmGiA43QviDigJusdPALJuCYSz00i9zTFOWSoPg/jBN5nHL Ipr5P771YvUTRXy1TJtWDzU7/erC4mDnz8W8YnSJQP5EhDVOJgQExQ6L2pH1imzU8T0t 7tan04vCe14WIxFfOfYgjZ7LZaHhEQACvV31sDqS2T/NBWyENeq8VImOZW2C2J0YxiN1 MDHgvy4hn8OmGUWnCqgvUDLMAJ1PmPI0W8pBqJD6ZGCHKUD7MkThqfIoGFs5ocZ+B1vr +NtzjtJTlzxIVkiAwGptXM5NfY+A6xZgUCP2yeGMzuk/EWzXLbrEoofUpSLW95q1vJyj Yc6A== 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:mime-version :content-transfer-encoding; bh=VYr9aCDj4PnFzDPIIIY7KJpxkUoLJ3Nn3QAOb6G38+I=; b=Czb7GnI6WYPfGJEnef2zIJHo74zHvn3MPnSfIJRX3WtLh3JgptrNfHpnTcPnSdAT/v fFVygaScQjwxE/leU1UvVx1694rOnN8kS7WnOpkbAXe+cCJTSCRacwzsjJcsDOpqAU+w YuuK+mKQIPtupxoQ9zBlAeZy00+cVN9mHUa/rsjOvXV/QPLmW2twiZZvNKYYY3Ebzf7K RTN5uAsUymnD70V7xb9CgklXo0x5IgYitycChH5k2BpJR9h6knAHrMcrhlQ9WAozjkYA 91QUyyDiRJUyxR++29j5nDpDhckd0Jm0rFeObg9EZ3XAWyTUD82/BALE08qaZIyGFdoY 35Bw== X-Gm-Message-State: APjAAAV307blj+TZUKl9lvdOpKuxjtvrPLbKv/vn9o1A0Ur9qhaknmOU 3OHrNfkLnM4xaCUPvXsyC9ls5A== X-Received: by 2002:a19:6b04:: with SMTP id d4mr2780699lfa.182.1571612449275; Sun, 20 Oct 2019 16:00:49 -0700 (PDT) Received: from localhost.bredbandsbolaget (c-79c8225c.014-348-6c756e10.bbcust.telenor.se. [92.34.200.121]) by smtp.gmail.com with ESMTPSA id 77sm6011174ljf.85.2019.10.20.16.00.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2019 16:00:45 -0700 (PDT) From: Linus Walleij To: David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Miquel Raynal , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, Linus Walleij , devicetree@vger.kernel.org, Rob Herring Subject: [PATCH 1/2 v4] mtd: add DT bindings for the Intel IXP4xx Flash Date: Mon, 21 Oct 2019 01:00:41 +0200 Message-Id: <20191020230042.7364-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds device tree bindings for the Intel IXP4xx flash controller, a simple physmap which however need a specific big-endian or mixed-endian access pattern to the memory. Cc: devicetree@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: Linus Walleij --- ChangeLog v3->v4: - Rebase on v5.4-rc1 - Resend ChangeLog v2->v3: - Rebase on v5.1-rc1 - Resend ChangeLog v1->v2: - Collect Rob's Review tag. --- .../bindings/mtd/intel,ixp4xx-flash.txt | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/intel,ixp4xx-flash.txt -- 2.21.0 diff --git a/Documentation/devicetree/bindings/mtd/intel,ixp4xx-flash.txt b/Documentation/devicetree/bindings/mtd/intel,ixp4xx-flash.txt new file mode 100644 index 000000000000..4bdcb92ae381 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/intel,ixp4xx-flash.txt @@ -0,0 +1,22 @@ +Flash device on Intel IXP4xx SoC + +This flash is regular CFI compatible (Intel or AMD extended) flash chips with +specific big-endian or mixed-endian memory access pattern. + +Required properties: +- compatible : must be "intel,ixp4xx-flash", "cfi-flash"; +- reg : memory address for the flash chip +- bank-width : width in bytes of flash interface, should be <2> + +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@50000000 { + compatible = "intel,ixp4xx-flash", "cfi-flash"; + reg = <0x50000000 0x01000000>; + bank-width = <2>; +};