From: Baruch Siach <baruch@tkos.co.il>
To: u-boot@lists.denx.de
Subject: [PATCH 2/4] ARM: mvebu: helios4 dts changes to enable SPI
Date: Mon, 07 Dec 2020 07:36:31 +0200 [thread overview]
Message-ID: <87blf6tbxc.fsf@tarshish> (raw)
In-Reply-To: <20201207013603.330578-2-dgilmore@redhat.com>
Hi Dennis,
On Mon, Dec 07 2020, dgilmore at redhat.com wrote:
> From: Dennis Gilmore <dennis@ausil.us>
>
> mirror seettings for the clearfog on the helios4 to get SPI working.
>
> Signed-off-by: Dennis Gilmore <dennis@ausil.us>
> ---
> arch/arm/dts/armada-388-helios4-u-boot.dtsi | 22 ++++++----
> arch/arm/dts/armada-388-helios4.dts | 46 ++++++++++++++++++++-
> 2 files changed, 58 insertions(+), 10 deletions(-)
>
> diff --git a/arch/arm/dts/armada-388-helios4-u-boot.dtsi b/arch/arm/dts/armada-388-helios4-u-boot.dtsi
> index 0753889854..82513a1ce7 100644
> --- a/arch/arm/dts/armada-388-helios4-u-boot.dtsi
> +++ b/arch/arm/dts/armada-388-helios4-u-boot.dtsi
> @@ -1,13 +1,5 @@
> // SPDX-License-Identifier: GPL-2.0+
>
> -/ {
> - aliases {
> - i2c0 = &i2c0;
> - i2c1 = &i2c1;
> - spi1 = &spi1;
> - };
> -};
> -
> ð0 {
> phy-reset-gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
> };
> @@ -37,5 +29,17 @@
> };
>
> &sdhci {
> - u-boot,dm-spl;
> + u-boot,dm-spl;
> +};
> +
> +&i2c0 {
> + u-boot,dm-spl;
> +
> + eeprom at 52 {
> + u-boot,dm-spl;
> + };
> +
> + eeprom at 53 {
> + u-boot,dm-spl;
> + };
> };
> diff --git a/arch/arm/dts/armada-388-helios4.dts b/arch/arm/dts/armada-388-helios4.dts
> index fb49df2a3b..e948b94090 100644
> --- a/arch/arm/dts/armada-388-helios4.dts
> +++ b/arch/arm/dts/armada-388-helios4.dts
> @@ -22,10 +22,14 @@
> };
>
> aliases {
> - /* So that mvebu u-boot can update the MAC addresses */
> + /* So that mvebu u-boot can update the MAC address */
> ethernet1 = ð0;
> + spi1 = &spi1;
> + i2c0 = &i2c0;
> + i2c1 = &i2c1;
> };
>
> +
> chosen {
> stdout-path = "serial0:115200n8";
> };
> @@ -306,3 +310,43 @@
> };
> };
> };
> +
> +&pinctrl {
> + helios4_spi1_cs_pins: spi1-cs-pins {
> + marvell,pins = "mpp55";
> + marvell,function = "spi1";
> + };
> + mikro_pins: mikro-pins {
> + /* int: mpp22 rst: mpp29 */
> + marvell,pins = "mpp22", "mpp29";
> + marvell,function = "gpio";
> + };
> + mikro_spi_pins: mikro-spi-pins {
> + marvell,pins = "mpp43";
> + marvell,function = "spi1";
> + };
> + mikro_uart_pins: mikro-uart-pins {
> + marvell,pins = "mpp24", "mpp25";
> + marvell,function = "ua1";
> + };
> + rear_button_pins: rear-button-pins {
> + marvell,pins = "mpp34";
> + marvell,function = "gpio";
> + };
There is no MikroBUS header or rear button on the Helios4 carrier as far
as I can see.
> +};
> +
> +&w25q32 {
> + status = "okay";
> +};
> +
> +&spi1 {
> + /*
> + * Add SPI CS pins for helios4:
> + * CS0: W25Q32
> + * CS1:
> + * CS2: mikrobus
Ditto.
> + */
> + pinctrl-0 = <&spi1_pins &mikro_spi_pins>;
> + pinctrl-names = "default";
> + status = "okay";
> +};
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
next prev parent reply other threads:[~2020-12-07 5:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-07 1:36 [PATCH 1/4] ARM: mvebu: helios4 adjust env sizes to enable SPI to work dgilmore at redhat.com
2020-12-07 1:36 ` [PATCH 2/4] ARM: mvebu: helios4 dts changes to enable SPI dgilmore at redhat.com
2020-12-07 5:36 ` Baruch Siach [this message]
2020-12-07 1:36 ` [PATCH 3/4] ARM: mvebu: ClearFog make sure that SATA and UART images are buildable dgilmore at redhat.com
2020-12-07 1:36 ` [PATCH 4/4] ARM: mvebu: fixup building a SPI image for db-mv784mp-gp dgilmore at redhat.com
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=87blf6tbxc.fsf@tarshish \
--to=baruch@tkos.co.il \
--cc=u-boot@lists.denx.de \
/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.