From: sst@poczta.fm (Slawomir Stepien)
To: linus-amlogic@lists.infradead.org
Subject: [RFC] spi-gpio on Odroid-C2 board
Date: Sun, 29 Jan 2017 11:33:26 +0100 [thread overview]
Message-ID: <20170129103326.GA26547@x220.localdomain> (raw)
Hi
Are there any issues regarding using spi-gpio on Odroid-C2 board dts file?
I would like to use it but from what I can see dts still doesn't have it?
I tested something like this and is seems to works:
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
index 5d28e1cdc998..62104dcd48a6 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
@@ -135,6 +135,18 @@
compatible = "mmc-pwrseq-emmc";
reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
};
+
+ spi-gpio {
+ compatible = "spi-gpio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ gpio-sck = <&gpio GPIOX_2 GPIO_ACTIVE_HIGH>;
+ gpio-miso = <&gpio GPIOX_4 GPIO_ACTIVE_HIGH>;
+ gpio-mosi = <&gpio GPIOX_7 GPIO_ACTIVE_HIGH>;
+ cs-gpios = <&gpio GPIOX_1 GPIO_ACTIVE_HIGH
+ &gpio GPIOY_14 GPIO_ACTIVE_HIGH>;
+ num-chipselects = <2>;
+ };
};
&scpi_clocks {
--
Slawomir Stepien
next reply other threads:[~2017-01-29 10:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-29 10:33 Slawomir Stepien [this message]
2017-01-30 8:44 ` Neil Armstrong
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=20170129103326.GA26547@x220.localdomain \
--to=sst@poczta.fm \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®