Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'at91-ab-4.6-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux into next/dt

DT changes for 4.6:
- Addition of the ADC for sama5d2 and sama5d2_xplained

* tag 'at91-ab-4.6-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux:
ARM: dts: at91: sama5d2 Xplained: enable the adc device
ARM: dts: at91: sama5d2: add adc device

Signed-off-by: Olof Johansson <olof@lixom.net>

+34 -6
+22
arch/arm/boot/dts/at91-sama5d2_xplained.dts
··· 267 267 }; 268 268 }; 269 269 270 + adc: adc@fc030000 { 271 + vddana-supply = <&vdd_3v3_lp_reg>; 272 + vref-supply = <&vdd_3v3_lp_reg>; 273 + pinctrl-names = "default"; 274 + pinctrl-0 = <&pinctrl_adc_default>; 275 + status = "okay"; 276 + }; 277 + 270 278 pinctrl@fc038000 { 279 + /* 280 + * There is no real pinmux for ADC, if the pin 281 + * is not requested by another peripheral then 282 + * the muxing is done when channel is enabled. 283 + * Requesting pins for ADC is GPIO is 284 + * encouraged to prevent conflicts and to 285 + * disable bias in order to be in the same 286 + * state when the pin is not muxed to the adc. 287 + */ 288 + pinctrl_adc_default: adc_default { 289 + pinmux = <PIN_PD23__GPIO>; 290 + bias-disable; 291 + }; 292 + 271 293 pinctrl_flx0_default: flx0_default { 272 294 pinmux = <PIN_PB28__FLEXCOM0_IO0>, 273 295 <PIN_PB29__FLEXCOM0_IO1>;
+12 -6
arch/arm/boot/dts/sama5d2.dtsi
··· 88 88 #clock-cells = <0>; 89 89 clock-frequency = <0>; 90 90 }; 91 - 92 - adc_op_clk: adc_op_clk{ 93 - compatible = "fixed-clock"; 94 - #clock-cells = <0>; 95 - clock-frequency = <1000000>; 96 - }; 97 91 }; 98 92 99 93 ns_sram: sram@00200000 { ··· 1076 1082 #address-cells = <1>; 1077 1083 #size-cells = <0>; 1078 1084 clocks = <&twi1_clk>; 1085 + status = "disabled"; 1086 + }; 1087 + 1088 + adc: adc@fc030000 { 1089 + compatible = "atmel,sama5d2-adc"; 1090 + reg = <0xfc030000 0x100>; 1091 + interrupts = <40 IRQ_TYPE_LEVEL_HIGH 7>; 1092 + clocks = <&adc_clk>; 1093 + clock-names = "adc_clk"; 1094 + atmel,min-sample-rate-hz = <200000>; 1095 + atmel,max-sample-rate-hz = <20000000>; 1096 + atmel,startup-time-ms = <4>; 1079 1097 status = "disabled"; 1080 1098 }; 1081 1099