Commit 542798cd authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'at91-dt' of git://github.com/at91linux/linux-at91 into next/dt

Merge "First batch of AT91 DT material for 3.15" from Nicolas Ferre:

- activate DMA for NAND flash controller
- some binding documentation update for usba and ADC (iio) drivers
- removal of some deprecated ADC (iio) properties

* tag 'at91-dt' of git://github.com/at91linux/linux-at91:
  ARM: at91/dt: at91-cosino: remove useless adc properties
  ARM: at91/dt: sama5d3: remove useless adc properties
  ARM: at91/dt: at91sam9x5: remove useless adc properties
  ARM: at91/dt: at91sam9g45: remove useless adc properties
  ARM: at91/dt: at91sam9260: remove useless adc properties
  ARM: at91/dt: at91-ariag25: remove useless adc properties
  Documentation: dt: iio: move arm/atmel-adc.txt to iio/adc/at91_adc.txt
  Documentation: dt: iio: improve atmel-adc documentation
  ARM: at91: sama5d3: get rid of atmel_tsadcc driver
  ARM: at91/DT: atmel_usba correct atmel,vbus-gpio meaning
  ARM: at91/DT: add NAND + DMA property
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents 0f4d5641 1d33a2c9
...@@ -5,32 +5,32 @@ Required properties: ...@@ -5,32 +5,32 @@ Required properties:
<chip> can be "at91sam9260", "at91sam9g45" or "at91sam9x5" <chip> can be "at91sam9260", "at91sam9g45" or "at91sam9x5"
- reg: Should contain ADC registers location and length - reg: Should contain ADC registers location and length
- interrupts: Should contain the IRQ line for the ADC - interrupts: Should contain the IRQ line for the ADC
- atmel,adc-channels-used: Bitmask of the channels muxed and enable for this - atmel,adc-channels-used: Bitmask of the channels muxed and enabled for this
device device
- atmel,adc-startup-time: Startup Time of the ADC in microseconds as - atmel,adc-startup-time: Startup Time of the ADC in microseconds as
defined in the datasheet defined in the datasheet
- atmel,adc-vref: Reference voltage in millivolts for the conversions - atmel,adc-vref: Reference voltage in millivolts for the conversions
- atmel,adc-res: List of resolution in bits supported by the ADC. List size - atmel,adc-res: List of resolutions in bits supported by the ADC. List size
must be two at least. must be two at least.
- atmel,adc-res-names: Contains one identifier string for each resolution - atmel,adc-res-names: Contains one identifier string for each resolution
in atmel,adc-res property. "lowres" and "highres" in atmel,adc-res property. "lowres" and "highres"
identifiers are required. identifiers are required.
Optional properties: Optional properties:
- atmel,adc-use-external: Boolean to enable of external triggers - atmel,adc-use-external-triggers: Boolean to enable the external triggers
- atmel,adc-use-res: String corresponding to an identifier from - atmel,adc-use-res: String corresponding to an identifier from
atmel,adc-res-names property. If not specified, the highest atmel,adc-res-names property. If not specified, the highest
resolution will be used. resolution will be used.
- atmel,adc-sleep-mode: Boolean to enable sleep mode when no conversion - atmel,adc-sleep-mode: Boolean to enable sleep mode when no conversion
- atmel,adc-sample-hold-time: Sample and Hold Time in microseconds - atmel,adc-sample-hold-time: Sample and Hold Time in microseconds
- atmel,adc-ts-wires: Number of touch screen wires. Should be 4 or 5. If this - atmel,adc-ts-wires: Number of touchscreen wires. Should be 4 or 5. If this
value is set, then adc driver will enable touch screen value is set, then the adc driver will enable touchscreen
support. support.
NOTE: when adc touch screen enabled, the adc hardware trigger will be NOTE: when adc touchscreen is enabled, the adc hardware trigger will be
disabled. Since touch screen will occupied the trigger register. disabled. Since touchscreen will occupy the trigger register.
- atmel,adc-ts-pressure-threshold: a pressure threshold for touchscreen. It - atmel,adc-ts-pressure-threshold: a pressure threshold for touchscreen. It
make touch detect more precision. makes touch detection more precise.
Optional trigger Nodes: Optional trigger Nodes:
- Required properties: - Required properties:
* trigger-name: Name of the trigger exposed to the user * trigger-name: Name of the trigger exposed to the user
...@@ -41,40 +41,41 @@ Optional trigger Nodes: ...@@ -41,40 +41,41 @@ Optional trigger Nodes:
Examples: Examples:
adc0: adc@fffb0000 { adc0: adc@fffb0000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "atmel,at91sam9260-adc"; compatible = "atmel,at91sam9260-adc";
reg = <0xfffb0000 0x100>; reg = <0xfffb0000 0x100>;
interrupts = <20 4>; interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
atmel,adc-channel-base = <0x30>;
atmel,adc-channels-used = <0xff>; atmel,adc-channels-used = <0xff>;
atmel,adc-drdy-mask = <0x10000>;
atmel,adc-num-channels = <8>;
atmel,adc-startup-time = <40>; atmel,adc-startup-time = <40>;
atmel,adc-status-register = <0x1c>; atmel,adc-use-external-triggers;
atmel,adc-trigger-register = <0x08>;
atmel,adc-use-external;
atmel,adc-vref = <3300>; atmel,adc-vref = <3300>;
atmel,adc-res = <8 10>; atmel,adc-res = <8 10>;
atmel,adc-res-names = "lowres", "highres"; atmel,adc-res-names = "lowres", "highres";
atmel,adc-use-res = "lowres"; atmel,adc-use-res = "lowres";
trigger@0 { trigger@0 {
reg = <0>;
trigger-name = "external-rising"; trigger-name = "external-rising";
trigger-value = <0x1>; trigger-value = <0x1>;
trigger-external; trigger-external;
}; };
trigger@1 { trigger@1 {
reg = <1>;
trigger-name = "external-falling"; trigger-name = "external-falling";
trigger-value = <0x2>; trigger-value = <0x2>;
trigger-external; trigger-external;
}; };
trigger@2 { trigger@2 {
reg = <2>;
trigger-name = "external-any"; trigger-name = "external-any";
trigger-value = <0x3>; trigger-value = <0x3>;
trigger-external; trigger-external;
}; };
trigger@3 { trigger@3 {
reg = <3>;
trigger-name = "continuous"; trigger-name = "continuous";
trigger-value = <0x6>; trigger-value = <0x6>;
}; };
......
...@@ -57,8 +57,8 @@ Required properties: ...@@ -57,8 +57,8 @@ Required properties:
- ep childnode: To specify the number of endpoints and their properties. - ep childnode: To specify the number of endpoints and their properties.
Optional properties: Optional properties:
- atmel,vbus-gpio: If present, specifies a gpio that needs to be - atmel,vbus-gpio: If present, specifies a gpio that allows to detect whether
activated for the bus to be powered. vbus is present (USB is connected).
Required child node properties: Required child node properties:
- name: Name of the endpoint. - name: Name of the endpoint.
......
...@@ -129,7 +129,6 @@ uart1: serial@f8044000 { ...@@ -129,7 +129,6 @@ uart1: serial@f8044000 {
adc0: adc@f804c000 { adc0: adc@f804c000 {
status = "okay"; status = "okay";
atmel,adc-channels-used = <0xf>; atmel,adc-channels-used = <0xf>;
atmel,adc-num-channels = <4>;
}; };
dbgu: serial@fffff200 { dbgu: serial@fffff200 {
......
...@@ -64,7 +64,6 @@ i2c0: i2c@f8010000 { ...@@ -64,7 +64,6 @@ i2c0: i2c@f8010000 {
}; };
adc0: adc@f804c000 { adc0: adc@f804c000 {
atmel,adc-clock-rate = <1000000>;
atmel,adc-ts-wires = <4>; atmel,adc-ts-wires = <4>;
atmel,adc-ts-pressure-threshold = <10000>; atmel,adc-ts-pressure-threshold = <10000>;
status = "okay"; status = "okay";
......
...@@ -27,7 +27,6 @@ macb0: ethernet@f802c000 { ...@@ -27,7 +27,6 @@ macb0: ethernet@f802c000 {
}; };
adc0: adc@f804c000 { adc0: adc@f804c000 {
atmel,adc-clock-rate = <1000000>;
atmel,adc-ts-wires = <4>; atmel,adc-ts-wires = <4>;
atmel,adc-ts-pressure-threshold = <10000>; atmel,adc-ts-pressure-threshold = <10000>;
status = "okay"; status = "okay";
......
...@@ -608,37 +608,38 @@ spi1: spi@fffcc000 { ...@@ -608,37 +608,38 @@ spi1: spi@fffcc000 {
}; };
adc0: adc@fffe0000 { adc0: adc@fffe0000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "atmel,at91sam9260-adc"; compatible = "atmel,at91sam9260-adc";
reg = <0xfffe0000 0x100>; reg = <0xfffe0000 0x100>;
interrupts = <5 IRQ_TYPE_LEVEL_HIGH 0>; interrupts = <5 IRQ_TYPE_LEVEL_HIGH 0>;
atmel,adc-use-external-triggers; atmel,adc-use-external-triggers;
atmel,adc-channels-used = <0xf>; atmel,adc-channels-used = <0xf>;
atmel,adc-vref = <3300>; atmel,adc-vref = <3300>;
atmel,adc-num-channels = <4>;
atmel,adc-startup-time = <15>; 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 = <8 10>;
atmel,adc-res-names = "lowres", "highres"; atmel,adc-res-names = "lowres", "highres";
atmel,adc-use-res = "highres"; atmel,adc-use-res = "highres";
trigger@0 { trigger@0 {
reg = <0>;
trigger-name = "timer-counter-0"; trigger-name = "timer-counter-0";
trigger-value = <0x1>; trigger-value = <0x1>;
}; };
trigger@1 { trigger@1 {
reg = <1>;
trigger-name = "timer-counter-1"; trigger-name = "timer-counter-1";
trigger-value = <0x3>; trigger-value = <0x3>;
}; };
trigger@2 { trigger@2 {
reg = <2>;
trigger-name = "timer-counter-2"; trigger-name = "timer-counter-2";
trigger-value = <0x5>; trigger-value = <0x5>;
}; };
trigger@3 { trigger@3 {
reg = <3>;
trigger-name = "external"; trigger-name = "external";
trigger-value = <0x13>; trigger-value = <0x13>;
trigger-external; trigger-external;
......
...@@ -632,40 +632,41 @@ ssc1: ssc@fffa0000 { ...@@ -632,40 +632,41 @@ ssc1: ssc@fffa0000 {
}; };
adc0: adc@fffb0000 { adc0: adc@fffb0000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "atmel,at91sam9260-adc"; compatible = "atmel,at91sam9260-adc";
reg = <0xfffb0000 0x100>; reg = <0xfffb0000 0x100>;
interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>; interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
atmel,adc-use-external-triggers; atmel,adc-use-external-triggers;
atmel,adc-channels-used = <0xff>; atmel,adc-channels-used = <0xff>;
atmel,adc-vref = <3300>; atmel,adc-vref = <3300>;
atmel,adc-num-channels = <8>;
atmel,adc-startup-time = <40>; atmel,adc-startup-time = <40>;
atmel,adc-channel-base = <0x30>;
atmel,adc-drdy-mask = <0x10000>;
atmel,adc-status-register = <0x1c>;
atmel,adc-trigger-register = <0x08>;
atmel,adc-res = <8 10>; atmel,adc-res = <8 10>;
atmel,adc-res-names = "lowres", "highres"; atmel,adc-res-names = "lowres", "highres";
atmel,adc-use-res = "highres"; atmel,adc-use-res = "highres";
trigger@0 { trigger@0 {
reg = <0>;
trigger-name = "external-rising"; trigger-name = "external-rising";
trigger-value = <0x1>; trigger-value = <0x1>;
trigger-external; trigger-external;
}; };
trigger@1 { trigger@1 {
reg = <1>;
trigger-name = "external-falling"; trigger-name = "external-falling";
trigger-value = <0x2>; trigger-value = <0x2>;
trigger-external; trigger-external;
}; };
trigger@2 { trigger@2 {
reg = <2>;
trigger-name = "external-any"; trigger-name = "external-any";
trigger-value = <0x3>; trigger-value = <0x3>;
trigger-external; trigger-external;
}; };
trigger@3 { trigger@3 {
reg = <3>;
trigger-name = "continuous"; trigger-name = "continuous";
trigger-value = <0x6>; trigger-value = <0x6>;
}; };
...@@ -817,6 +818,7 @@ nand0: nand@40000000 { ...@@ -817,6 +818,7 @@ nand0: nand@40000000 {
>; >;
atmel,nand-addr-offset = <21>; atmel,nand-addr-offset = <21>;
atmel,nand-cmd-offset = <22>; atmel,nand-cmd-offset = <22>;
atmel,nand-has-dma;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_nand>; pinctrl-0 = <&pinctrl_nand>;
gpios = <&pioC 8 GPIO_ACTIVE_HIGH gpios = <&pioC 8 GPIO_ACTIVE_HIGH
......
...@@ -570,6 +570,7 @@ nand0: nand@40000000 { ...@@ -570,6 +570,7 @@ nand0: nand@40000000 {
atmel,pmecc-lookup-table-offset = <0x0 0x8000>; atmel,pmecc-lookup-table-offset = <0x0 0x8000>;
atmel,nand-addr-offset = <21>; atmel,nand-addr-offset = <21>;
atmel,nand-cmd-offset = <22>; atmel,nand-cmd-offset = <22>;
atmel,nand-has-dma;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_nand>; pinctrl-0 = <&pinctrl_nand>;
gpios = <&pioD 5 GPIO_ACTIVE_HIGH gpios = <&pioD 5 GPIO_ACTIVE_HIGH
......
...@@ -621,41 +621,42 @@ uart1: serial@f8044000 { ...@@ -621,41 +621,42 @@ uart1: serial@f8044000 {
}; };
adc0: adc@f804c000 { adc0: adc@f804c000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "atmel,at91sam9260-adc"; compatible = "atmel,at91sam9260-adc";
reg = <0xf804c000 0x100>; reg = <0xf804c000 0x100>;
interrupts = <19 IRQ_TYPE_LEVEL_HIGH 0>; interrupts = <19 IRQ_TYPE_LEVEL_HIGH 0>;
atmel,adc-use-external; atmel,adc-use-external-triggers;
atmel,adc-channels-used = <0xffff>; atmel,adc-channels-used = <0xffff>;
atmel,adc-vref = <3300>; atmel,adc-vref = <3300>;
atmel,adc-num-channels = <12>;
atmel,adc-startup-time = <40>; atmel,adc-startup-time = <40>;
atmel,adc-channel-base = <0x50>;
atmel,adc-drdy-mask = <0x1000000>;
atmel,adc-status-register = <0x30>;
atmel,adc-trigger-register = <0xc0>;
atmel,adc-res = <8 10>; atmel,adc-res = <8 10>;
atmel,adc-res-names = "lowres", "highres"; atmel,adc-res-names = "lowres", "highres";
atmel,adc-use-res = "highres"; atmel,adc-use-res = "highres";
trigger@0 { trigger@0 {
reg = <0>;
trigger-name = "external-rising"; trigger-name = "external-rising";
trigger-value = <0x1>; trigger-value = <0x1>;
trigger-external; trigger-external;
}; };
trigger@1 { trigger@1 {
reg = <1>;
trigger-name = "external-falling"; trigger-name = "external-falling";
trigger-value = <0x2>; trigger-value = <0x2>;
trigger-external; trigger-external;
}; };
trigger@2 { trigger@2 {
reg = <2>;
trigger-name = "external-any"; trigger-name = "external-any";
trigger-value = <0x3>; trigger-value = <0x3>;
trigger-external; trigger-external;
}; };
trigger@3 { trigger@3 {
reg = <3>;
trigger-name = "continuous"; trigger-name = "continuous";
trigger-value = <0x6>; trigger-value = <0x6>;
}; };
...@@ -790,6 +791,7 @@ nand0: nand@40000000 { ...@@ -790,6 +791,7 @@ nand0: nand@40000000 {
atmel,pmecc-lookup-table-offset = <0x0 0x8000>; atmel,pmecc-lookup-table-offset = <0x0 0x8000>;
atmel,nand-addr-offset = <21>; atmel,nand-addr-offset = <21>;
atmel,nand-cmd-offset = <22>; atmel,nand-cmd-offset = <22>;
atmel,nand-has-dma;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_nand>; pinctrl-0 = <&pinctrl_nand>;
gpios = <&pioD 5 GPIO_ACTIVE_HIGH gpios = <&pioD 5 GPIO_ACTIVE_HIGH
......
...@@ -239,7 +239,9 @@ ssc1: ssc@f800c000 { ...@@ -239,7 +239,9 @@ ssc1: ssc@f800c000 {
}; };
adc0: adc@f8018000 { adc0: adc@f8018000 {
compatible = "atmel,at91sam9260-adc"; #address-cells = <1>;
#size-cells = <0>;
compatible = "atmel,at91sam9x5-adc";
reg = <0xf8018000 0x100>; reg = <0xf8018000 0x100>;
interrupts = <29 IRQ_TYPE_LEVEL_HIGH 5>; interrupts = <29 IRQ_TYPE_LEVEL_HIGH 5>;
pinctrl-names = "default"; pinctrl-names = "default";
...@@ -261,52 +263,39 @@ &pinctrl_adc0_ad11 ...@@ -261,52 +263,39 @@ &pinctrl_adc0_ad11
clocks = <&adc_clk>, clocks = <&adc_clk>,
<&adc_op_clk>; <&adc_op_clk>;
clock-names = "adc_clk", "adc_op_clk"; clock-names = "adc_clk", "adc_op_clk";
atmel,adc-channel-base = <0x50>;
atmel,adc-channels-used = <0xfff>; atmel,adc-channels-used = <0xfff>;
atmel,adc-drdy-mask = <0x1000000>;
atmel,adc-num-channels = <12>;
atmel,adc-startup-time = <40>; atmel,adc-startup-time = <40>;
atmel,adc-status-register = <0x30>; atmel,adc-use-external-triggers;
atmel,adc-trigger-register = <0xc0>;
atmel,adc-use-external;
atmel,adc-vref = <3000>; atmel,adc-vref = <3000>;
atmel,adc-res = <10 12>; atmel,adc-res = <10 12>;
atmel,adc-res-names = "lowres", "highres"; atmel,adc-res-names = "lowres", "highres";
status = "disabled"; status = "disabled";
trigger@0 { trigger@0 {
reg = <0>;
trigger-name = "external-rising"; trigger-name = "external-rising";
trigger-value = <0x1>; trigger-value = <0x1>;
trigger-external; trigger-external;
}; };
trigger@1 { trigger@1 {
reg = <1>;
trigger-name = "external-falling"; trigger-name = "external-falling";
trigger-value = <0x2>; trigger-value = <0x2>;
trigger-external; trigger-external;
}; };
trigger@2 { trigger@2 {
reg = <2>;
trigger-name = "external-any"; trigger-name = "external-any";
trigger-value = <0x3>; trigger-value = <0x3>;
trigger-external; trigger-external;
}; };
trigger@3 { trigger@3 {
reg = <3>;
trigger-name = "continuous"; trigger-name = "continuous";
trigger-value = <0x6>; trigger-value = <0x6>;
}; };
}; };
tsadcc: tsadcc@f8018000 {
compatible = "atmel,at91sam9x5-tsadcc";
reg = <0xf8018000 0x4000>;
interrupts = <29 IRQ_TYPE_LEVEL_HIGH 5>;
atmel,tsadcc_clock = <300000>;
atmel,filtering_average = <0x03>;
atmel,pendet_debounce = <0x08>;
atmel,pendet_sensitivity = <0x02>;
atmel,ts_sample_hold_time = <0x0a>;
status = "disabled";
};
i2c2: i2c@f801c000 { i2c2: i2c@f801c000 {
compatible = "atmel,at91sam9x5-i2c"; compatible = "atmel,at91sam9x5-i2c";
reg = <0xf801c000 0x4000>; reg = <0xf801c000 0x4000>;
...@@ -1256,6 +1245,7 @@ nand0: nand@60000000 { ...@@ -1256,6 +1245,7 @@ nand0: nand@60000000 {
interrupts = <5 IRQ_TYPE_LEVEL_HIGH 6>; interrupts = <5 IRQ_TYPE_LEVEL_HIGH 6>;
atmel,nand-addr-offset = <21>; atmel,nand-addr-offset = <21>;
atmel,nand-cmd-offset = <22>; atmel,nand-cmd-offset = <22>;
atmel,nand-has-dma;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_nand0_ale_cle>; pinctrl-0 = <&pinctrl_nand0_ale_cle>;
atmel,pmecc-lookup-table-offset = <0x0 0x8000>; atmel,pmecc-lookup-table-offset = <0x0 0x8000>;
......
...@@ -23,10 +23,8 @@ qt1070: keyboard@1b { ...@@ -23,10 +23,8 @@ qt1070: keyboard@1b {
}; };
adc0: adc@f8018000 { adc0: adc@f8018000 {
status = "disabled"; atmel,adc-ts-wires = <4>;
}; atmel,adc-ts-pressure-threshold = <10000>;
tsadcc: tsadcc@f8018000 {
status = "okay"; status = "okay";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment