From: b.brezillon@overkiz.com (boris brezillon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 02/11] ARM: at91: switch 1arm to DT
Date: Fri, 15 Nov 2013 19:27:06 +0100 [thread overview]
Message-ID: <5286677A.8020104@overkiz.com> (raw)
In-Reply-To: <20131115174134.GA14627@ns203013.ovh.net>
On 15/11/2013 18:41, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 17:10 Fri 15 Nov , boris brezillon wrote:
>> On 15/11/2013 15:49, Jean-Christophe PLAGNIOL-VILLARD wrote:
>>> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>>> Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
>>> ---
>>> arch/arm/boot/dts/Makefile | 1 +
>>> arch/arm/boot/dts/at91-1arm.dts | 70 +++++++++++++++++++++++++
>>> arch/arm/configs/at91rm9200_defconfig | 1 -
>>> arch/arm/mach-at91/Kconfig.non_dt | 6 ---
>>> arch/arm/mach-at91/Makefile | 1 -
>>> arch/arm/mach-at91/board-1arm.c | 99 -----------------------------------
>>> 6 files changed, 71 insertions(+), 107 deletions(-)
>>> create mode 100644 arch/arm/boot/dts/at91-1arm.dts
>>> delete mode 100644 arch/arm/mach-at91/board-1arm.c
>>>
>>> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
>>> index 802720e..f1fb6d7 100644
>>> --- a/arch/arm/boot/dts/Makefile
>>> +++ b/arch/arm/boot/dts/Makefile
>>> @@ -3,6 +3,7 @@ ifeq ($(CONFIG_OF),y)
>>> # Keep at91 dtb files sorted alphabetically for each SoC
>>> # rm9200
>>> dtb-$(CONFIG_ARCH_AT91) += at91rm9200ek.dtb
>>> +dtb-$(CONFIG_ARCH_AT91) += at91-1arm.dtb
>>> dtb-$(CONFIG_ARCH_AT91) += mpa1600.dtb
>>> # sam9260
>>> dtb-$(CONFIG_ARCH_AT91) += animeo_ip.dtb
>>> diff --git a/arch/arm/boot/dts/at91-1arm.dts b/arch/arm/boot/dts/at91-1arm.dts
>>> new file mode 100644
>>> index 0000000..39b0c56
>>> --- /dev/null
>>> +++ b/arch/arm/boot/dts/at91-1arm.dts
>>> @@ -0,0 +1,70 @@
>>> +/*
>>> + * at91-1arm.dts - Device Tree file for Ajeco 1ARM single board computer
>>> + *
>>> + * Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
>>> + *
>>> + * Licensed under GPLv2 only
>>> + */
>>> +/dts-v1/;
>>> +#include "at91rm9200_pqfp.dtsi"
>>> +
>>> +/ {
>>> + model = "Ajeco 1ARM single board computer";
>>> + compatible = "ajeco,1arm", "atmel,at91rm9200-pqfp", "atmel,at91rm9200";
>>> +
>>> + clocks {
>>> + #address-cells = <1>;
>>> + #size-cells = <1>;
>>> + ranges;
>>> +
>>> + main_clock: clock at 0 {
>>> + compatible = "atmel,osc", "fixed-clock";
>>> + clock-frequency = <18432000>;
>>> + };
>>> + };
>>> +
>>> + ahb {
>>> + apb {
>>> + dbgu: serial at fffff200 {
>>> + status = "okay";
>>> + };
>>> +
>>> + usart0: serial at fffc0000 {
>>> + pinctrl-0 =
>>> + <&pinctrl_uart0
>>> + &pinctrl_uart0_rts
>>> + &pinctrl_uart0_cts>;
>>> +
>>> + status = "okay";
>>> + };
>>> +
>>> + usart1: serial at fffc4000 {
>>> + pinctrl-0 =
>>> + <&pinctrl_uart1
>>> + &pinctrl_uart1_rts
>>> + &pinctrl_uart1_cts
>>> + &pinctrl_uart1_dtr_dsr
>>> + &pinctrl_uart1_dcd
>>> + &pinctrl_uart1_ri>;
>>> + status = "okay";
>>> + };
>>> +
>>> + macb0: ethernet at fffbc000 {
>>> + phy-mode = "rmii";
>>> + /* phy irq PC4 */
>>> + status = "okay";
>>> + };
>>
>> Could you add a phy node in macb0 node (see
>> https://lkml.org/lkml/2013/8/28/183) ?
>> In this node you can describe phy irq and even phy id (if it is hardcoded).
>>
>> The same goes for all rm9200 boards except rm9200ek (I already
>> posted a series for this one).
> I did not do this as this code was never tested on those board as the driver
> was not supporting it so as I can not test it I do not want to do it
How could this be a valid argument ?
I'm not telling that this should be mainlined without any tests, but
IMHO dropping
new features because we don't have time to test it is not a good approach.
Moreover, the non-dt versions of these boards provide phy irq
functionality and I think
we should at least provide the same level of functionality when
migrating to dt.
I implemented the phy dt definition support for macb (and implicitely for
at91_ether) ethernet drivers, and I think this should be used for all
new dt boards.
Anyway, this is not my decision, and let at91 maintainers (including
you) decide wether
this should be dropped for this version.
Best Regards,
Boris
>
> Best Regards,
> J.
next prev parent reply other threads:[~2013-11-15 18:27 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-15 14:38 [PATCH 00/11] ARM: at91: DT: switch C board to DT Jean-Christophe PLAGNIOL-VILLARD
2013-11-15 14:49 ` [PATCH 01/11] ARM: at91: dt: at91rm9200ek: add emac and nor flash support Jean-Christophe PLAGNIOL-VILLARD
2013-11-15 14:49 ` [PATCH 02/11] ARM: at91: switch 1arm to DT Jean-Christophe PLAGNIOL-VILLARD
2013-11-15 16:10 ` boris brezillon
2013-11-15 17:41 ` Jean-Christophe PLAGNIOL-VILLARD
2013-11-15 18:27 ` boris brezillon [this message]
2013-11-15 18:33 ` Jean-Christophe PLAGNIOL-VILLARD
2013-11-15 17:27 ` boris brezillon
2013-11-15 14:49 ` [PATCH 03/11] ARM: at91: switch carmeva " Jean-Christophe PLAGNIOL-VILLARD
2013-11-15 14:49 ` [PATCH 04/11] ARM: at91: switch kafa board " Jean-Christophe PLAGNIOL-VILLARD
2013-11-15 14:50 ` [PATCH 05/11] ARM: at91: switch flexibity " Jean-Christophe PLAGNIOL-VILLARD
2013-11-15 14:50 ` [PATCH 06/11] ARM: at91: switch RSI EWS board " Jean-Christophe PLAGNIOL-VILLARD
2013-11-15 14:50 ` [PATCH 07/11] ARM: at91: switch Picotux 200 " Jean-Christophe PLAGNIOL-VILLARD
2013-11-15 14:50 ` [PATCH 08/11] ARM: at91: switch ecbat91 " Jean-Christophe PLAGNIOL-VILLARD
2013-11-15 14:50 ` [PATCH 09/11] ARM: at91: switch kb9202 " Jean-Christophe PLAGNIOL-VILLARD
2013-11-15 14:50 ` [PATCH 10/11] ARM: at91: switch csb637 " Jean-Christophe PLAGNIOL-VILLARD
2013-11-15 14:50 ` [PATCH 11/11] ARM: at91: switch Calao QIL-A9260 " Jean-Christophe PLAGNIOL-VILLARD
2013-12-13 11:08 ` Nicolas Ferre
2013-12-13 11:12 ` [PATCH v2 " Nicolas Ferre
2013-11-15 16:03 ` [PATCH 01/11] ARM: at91: dt: at91rm9200ek: add emac and nor flash support boris brezillon
2013-12-09 11:42 ` [PATCH 00/11] ARM: at91: DT: switch C board to DT Nicolas Ferre
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=5286677A.8020104@overkiz.com \
--to=b.brezillon@overkiz.com \
--cc=linux-arm-kernel@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.