public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: Michal Suchanek <hramrach@gmail.com>
Cc: linux-sunxi@googlegroups.com, Rob Herring <robh+dt@kernel.org>,
	Pawel Moll <pawel.moll@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	Russell King <linux@arm.linux.org.uk>,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] ARM: dts: sunxi: A10s Olinuxino add missing SPI and simplefb.
Date: Sun, 26 Apr 2015 10:39:58 +0200	[thread overview]
Message-ID: <20150426083958.GD5627@lukather> (raw)
In-Reply-To: <f6e34cb3f0b72fcb0ae18ccf96962fb8a1c477f7.1430034797.git.hramrach@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2888 bytes --]

Hi,

On Mon, Mar 23, 2015 at 03:00:31PM +0100, Michal Suchanek wrote:
> Signed-off-by: Michal Suchanek <hramrach@gmail.com>

Commit log, please.

> ---
>  arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 12 ++++++++++
>  arch/arm/boot/dts/sun5i-a10s.dtsi                | 28 ++++++++++++++++++++++++
>  2 files changed, 40 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts b/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts
> index aa88ee8..e546b3f 100644
> --- a/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts
> +++ b/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts
> @@ -59,6 +59,12 @@
>  	model = "Olimex A10s-Olinuxino Micro";
>  	compatible = "olimex,a10s-olinuxino-micro", "allwinner,sun5i-a10s";
>  
> +	chosen {
> +		framebuffer@0 {
> +			status = "okay";
> +		};
> +	};
> +

This is wrong.

If the bootloader has set a simplefb node, it will enable the right
one, if not it means that it's not meant to be used.

>  	aliases {
>  		serial0 = &uart0;
>  		serial1 = &uart2;
> @@ -182,6 +188,12 @@
>  	status = "okay";
>  };
>  
> +&spi2 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&spi2_pins_a>;
> +	status = "okay";
> +};
> +

This should be in a separate patch, and the node are to be ordered
alphabetically.

>  &ohci0 {
>  	status = "okay";
>  };
> diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi b/arch/arm/boot/dts/sun5i-a10s.dtsi
> index a78c95d..438eba1 100644
> --- a/arch/arm/boot/dts/sun5i-a10s.dtsi
> +++ b/arch/arm/boot/dts/sun5i-a10s.dtsi
> @@ -154,6 +154,20 @@
>  			clocks = <&apb1_gates 18>;
>  			status = "disabled";
>  		};
> +
> +		spi2: spi@01c17000 {
> +			compatible = "allwinner,sun4i-a10-spi";
> +			reg = <0x01c17000 0x1000>;
> +			interrupts = <12>;
> +			clocks = <&ahb_gates 22>, <&spi2_clk>;
> +			clock-names = "ahb", "mod";
> +			dmas = <&dma SUN4I_DMA_DEDICATED 29>,
> +			       <&dma SUN4I_DMA_DEDICATED 28>;
> +			dma-names = "rx", "tx";
> +			status = "disabled";
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +		};
>  	};
>  };

This should be in sun5i.dtsi (and in a separate patch).

> @@ -198,4 +212,18 @@
>  		allwinner,drive = <SUN4I_PINCTRL_30_MA>;
>  		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
>  	};
> +
> +	spi2_pins_a: spi2@0 {
> +		allwinner,pins = "PB11", "PB12", "PB13", "PB14";
> +		allwinner,function = "spi2";
> +		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
> +		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
> +	};
> +
> +	spi2_pins_b: spi2@1 {
> +		allwinner,pins = "PE00", "PE01", "PE02", "PE03";
> +		allwinner,function = "spi2";
> +		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
> +		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
> +	};
>  };

Ditto.

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

       reply	other threads:[~2015-04-26  8:40 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1430034797.git.hramrach@gmail.com>
     [not found] ` <f6e34cb3f0b72fcb0ae18ccf96962fb8a1c477f7.1430034797.git.hramrach@gmail.com>
2015-04-26  8:39   ` Maxime Ripard [this message]
2015-04-26  9:21     ` [PATCH 1/3] ARM: dts: sunxi: A10s Olinuxino add missing SPI and simplefb Michal Suchanek
2015-04-26 12:52       ` Maxime Ripard
     [not found] ` <4c27d44b2bdd759424ce4a4b2e8f6abf5d5a6735.1430034797.git.hramrach@gmail.com>
2015-04-26  8:42   ` [PATCH 3/3] ARM: sunxi: spi: use proper errno when message is too long Maxime Ripard
2015-04-26 11:42     ` Michal Suchanek
2015-04-26 12:54       ` Maxime Ripard
     [not found] ` <bb069283a5c2ccfbc05177f1ed41cabb1485796e.1430034797.git.hramrach@gmail.com>
2015-04-26 10:32   ` [PATCH 2/3] spidev: Add DT binding example Mark Brown
2015-04-26 10:54     ` Michal Suchanek
2015-04-26 11:01       ` Mark Brown
2015-04-26 11:23         ` [linux-sunxi] " Hans de Goede
2015-04-26 11:56           ` [linux-sunxi] " Martin Sperl
2015-04-26 12:38             ` Michal Suchanek
2015-04-26 12:51               ` Maxime Ripard
2015-04-26 14:14                 ` Michal Suchanek
2015-04-26 14:33                   ` Maxime Ripard
2015-04-26 14:40                     ` Hans de Goede
2015-04-26 15:47                       ` Maxime Ripard
2015-04-27  6:51                         ` Michal Suchanek
2015-04-27 10:05                           ` Maxime Ripard
2015-04-27 10:10                       ` Mark Brown
2015-04-27 14:28                         ` Michal Suchanek
2015-04-27 15:13                           ` Geert Uytterhoeven
2015-04-27 15:44                             ` Michal Suchanek
2015-04-26 15:33                     ` Michal Suchanek
2015-04-26 15:54                       ` Maxime Ripard
2015-04-26 18:53                         ` Michal Suchanek
2015-04-27 10:04                           ` Maxime Ripard
2015-04-27 11:18                             ` Michal Suchanek
2015-04-27 10:46                           ` Mark Brown
2015-04-27  9:36                   ` Mark Brown
2015-04-27  9:39                     ` Michal Suchanek
2015-04-27 10:59                       ` Mark Brown
2015-04-27 10:04                     ` Hans de Goede
2015-04-27 10:09                       ` Hans de Goede
2015-04-27 11:25                       ` Mark Brown
2015-04-27 14:14                         ` Martin Sperl
2015-04-27 15:27                           ` Mark Brown
2015-04-27 16:25                             ` Martin Sperl
2015-04-27 17:59                               ` Mark Brown
2015-04-27 10:16                 ` Mark Brown
2015-04-27 17:30                   ` Maxime Ripard
2015-04-27 18:07                     ` Mark Brown
     [not found]                       ` <cd282abf-898a-4f01-90a6-8bf2db160b8e@googlegroups.com>
2015-04-28 12:52                         ` Michal Suchanek
     [not found]                           ` <28a25eda-bba0-4a2e-9890-b3d3bef7ac7e@googlegroups.com>
2015-04-28 14:11                             ` Michal Suchanek
2015-04-28 14:12                             ` Maxime Ripard
2015-04-28 14:35                               ` Michal Suchanek
2015-04-28 14:16                           ` Mark Brown
2015-04-28 14:22                             ` Michal Suchanek
2015-04-28 17:17                               ` Mark Brown
2015-04-28 20:43                                 ` Michal Suchanek
2015-04-29 17:40                                   ` Mark Brown
2015-04-29 17:44                                     ` Michal Suchanek
2015-04-29 18:06                                       ` Mark Brown
2015-04-29 18:37                                         ` Michal Suchanek
2015-04-29 18:56                                           ` Geert Uytterhoeven
2015-04-29 19:24                                             ` Michal Suchanek
2015-04-30 19:58                                           ` Mark Brown
2015-05-03  9:01                                             ` Martin Sperl
2015-05-03  9:59                                               ` Mark Brown
2015-05-03 21:00                                                 ` Martin Sperl
2015-05-04  8:36                                                   ` Michal Suchanek
2015-05-04 10:12                                                   ` Mark Brown
2015-05-04 10:42                                                     ` Michal Suchanek
2015-05-04 13:17                                                       ` Mark Brown
2015-05-03 10:02                                               ` Geert Uytterhoeven
2015-05-12 14:27                       ` Maxime Ripard
2015-05-12 14:52                         ` Michal Suchanek
2015-05-12 16:06                         ` Mark Brown
2015-04-26 11:26         ` Michal Suchanek

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=20150426083958.GD5627@lukather \
    --to=maxime.ripard@free-electrons.com \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=hramrach@gmail.com \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@googlegroups.com \
    --cc=linux@arm.linux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.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