On Wed, Feb 19, 2014 at 05:31:42PM +0000, Alexandre Belloni wrote:
On 19/02/2014 at 17:00:20 +0000, Mark Rutland wrote :Yes please.
On Wed, Feb 19, 2014 at 03:32:24PM +0000, Alexandre Belloni wrote:OK.
This adds preliminary DT support for the at91sam9rl.[...]
Signed-off-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx>
---
arch/arm/boot/dts/at91sam9rl.dtsi | 628 ++++++++++++++++++++++++++++++++++++++
arch/arm/mach-at91/at91sam9rl.c | 16 +
2 files changed, 644 insertions(+)
create mode 100644 arch/arm/boot/dts/at91sam9rl.dtsi
+ tcb0: timer@fffa0000 {Nit: please bracket list entries individually. Also for other list
+ compatible = "atmel,at91rm9200-tcb";
+ reg = <0xfffa0000 0x100>;
+ interrupts = <16 IRQ_TYPE_LEVEL_HIGH 0
+ 17 IRQ_TYPE_LEVEL_HIGH 0
+ 18 IRQ_TYPE_LEVEL_HIGH 0>;
+ };
properties like reg and (*-)gpio(s).
[...]OK, I guess I'll have to fix
+ adc0: adc@fffd0000 {A unit-address should go with a reg value. Either this needs a reg and
+ compatible = "atmel,at91sam9260-adc";
+ reg = <0xfffd0000 0x100>;
+ interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
+ atmel,adc-use-external-triggers;
+ atmel,adc-channels-used = <0xf>;
+ atmel,adc-vref = <3300>;
+ atmel,adc-num-channels = <4>;
+ atmel,adc-startup-time = <15>;
+ atmel,adc-channel-base = <0x30>;
+ atmel,adc-drdy-mask = <0x10000>;
+ atmel,adc-status-register = <0x1c>;
+ atmel,adc-trigger-register = <0x04>;
+ atmel,adc-res = <8 10>;
+ atmel,adc-res-names = "lowres", "highres";
+ atmel,adc-use-res = "highres";
+
+ trigger@0 {
+ trigger-name = "timer-counter-0";
+ trigger-value = <0x1>;
+ };
the parent node needs #address-cells and #size-cells, or the
unit-address should go, and the names made unique through other means.
Documentation/devicetree/bindings/arm/atmel-adc.txt too.
A node should by either a bus or a pinctrl node.[...]Simply a copy paste, I'll fix that here and also the 6 other atmel
+ pinctrl@fffff400 {NAK. Either this is a atmel,at91rm9200-pinctrl node or a simple-bus. Not
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
both; that doesn't make any sense.
dtsi includes.
What is your preference for those using:
compatible = "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus"; ?
If it has chidren then the simple-bus should be separated out into a
separate node. If there are no children simple-bus should go.
Cheers,
Mark.