All of lore.kernel.org
 help / color / mirror / Atom feed
From: jbrunet@baylibre.com (Jerome Brunet)
To: linus-amlogic@lists.infradead.org
Subject: [RFT] ARM64: dts: gxbb: add spifc device
Date: Tue, 13 Sep 2016 18:15:45 +0200	[thread overview]
Message-ID: <1473783345-8428-1-git-send-email-jbrunet@baylibre.com> (raw)
In-Reply-To: <1473409738-27175-1-git-send-email-jbrunet@baylibre.com>

Enable the spifc controller on the gxbb p200 and add spi nor device on
it. By default, the spi nor shown on the schematics is not present on
the actual hardware. Same goes for the resistor 4R3 which needs to be
soldered in order to connect the NOR_CS signal to the SPI device.

Keep in mind that the spifc lines are shared with the NAND controller.

This patch is not intended to be upstreamed and is provided here for
testing purpose.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
 arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi
index 0eaca7277cfd..116cbc91c8e2 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi
@@ -77,3 +77,17 @@
 	pinctrl-0 = <&remote_input_ao_pins>;
 	pinctrl-names = "default";
 };
+
+&spifc {
+	status = "okay";
+	pinctrl-0 = <&nor_pins>;
+	pinctrl-names = "default";
+
+	spi-flash at 0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <30000000>;
+	};
+};
-- 
2.7.4

      parent reply	other threads:[~2016-09-13 16:15 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-09  8:28 [PATCH v2 0/4] ARM: amlogic: Add spifc support to Amlogic's GXBB family Jerome Brunet
2016-09-09  8:28 ` Jerome Brunet
2016-09-09  8:28 ` Jerome Brunet
2016-09-09  8:28 ` [PATCH v2 1/4] pinctrl: amlogic: gxbb: add spi nor pins Jerome Brunet
2016-09-09  8:28   ` Jerome Brunet
2016-09-09  8:28   ` Jerome Brunet
2016-09-12 17:51   ` Kevin Hilman
2016-09-12 17:51     ` Kevin Hilman
2016-09-12 17:51     ` Kevin Hilman
2016-09-13 11:36   ` Linus Walleij
2016-09-13 11:36     ` Linus Walleij
2016-09-13 11:36     ` Linus Walleij
2016-09-13 11:36     ` Linus Walleij
2016-09-09  8:28 ` [PATCH v2 2/4] pinctrl: amlogic: gxbb: add nand pins Jerome Brunet
2016-09-09  8:28   ` Jerome Brunet
2016-09-09  8:28   ` Jerome Brunet
2016-09-09  8:28   ` Jerome Brunet
2016-09-09  8:28 ` [PATCH v2 3/4] ARM64: dts: amlogic: add spi nor pins Jerome Brunet
2016-09-09  8:28   ` Jerome Brunet
2016-09-09  8:28   ` Jerome Brunet
2016-09-12 17:51   ` Kevin Hilman
2016-09-12 17:51     ` Kevin Hilman
2016-09-12 17:51     ` Kevin Hilman
2016-09-09  8:28 ` [PATCH v2 4/4] ARM64: dts: meson-gxbb: Add SPIFC node Jerome Brunet
2016-09-09  8:28   ` Jerome Brunet
2016-09-09  8:28   ` Jerome Brunet
2016-09-09  8:28   ` Jerome Brunet
2016-09-12 17:51   ` Kevin Hilman
2016-09-12 17:51     ` Kevin Hilman
2016-09-12 17:51     ` Kevin Hilman
2016-09-12 20:38 ` [PATCH v2 0/4] ARM: amlogic: Add spifc support to Amlogic's GXBB family Kevin Hilman
2016-09-12 20:38   ` Kevin Hilman
2016-09-12 20:38   ` Kevin Hilman
2016-09-13  8:03   ` jbrunet
2016-09-13  8:03     ` jbrunet
2016-09-13  8:03     ` jbrunet
2016-09-13 14:19     ` Kevin Hilman
2016-09-13 14:19       ` Kevin Hilman
2016-09-13 14:19       ` Kevin Hilman
2016-09-13 15:12 ` [RESEND PATCH v2 1/4] pinctrl: amlogic: gxbb: add spi nor pins Jerome Brunet
2016-09-13 15:12   ` Jerome Brunet
2016-09-13 15:12   ` Jerome Brunet
2016-09-15 12:06   ` Linus Walleij
2016-09-15 12:06     ` Linus Walleij
2016-09-15 12:06     ` Linus Walleij
2016-09-13 15:12 ` [RESEND PATCH v2 2/4] pinctrl: amlogic: gxbb: add nand pins Jerome Brunet
2016-09-13 15:12   ` Jerome Brunet
2016-09-13 15:12   ` Jerome Brunet
2016-09-15 12:15   ` Linus Walleij
2016-09-15 12:15     ` Linus Walleij
2016-09-15 12:15     ` Linus Walleij
2016-09-13 16:15 ` Jerome Brunet [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1473783345-8428-1-git-send-email-jbrunet@baylibre.com \
    --to=jbrunet@baylibre.com \
    --cc=linus-amlogic@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.