This device-tree pxa update brings :

- pxa25x support
  - cpu operating points in preparation for cpufreq-dt
  - small fixes
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABAgAGBQJYLyfrAAoJEAP2et0duMsSNDIP/iawhBloix8n9XH0qZWKNX5a
 Tq/ZIjhMTI3ncp6yKRCju3cNsZ32XwjE8/OkTkdEGp6AGbgc3u0AdBZU21qYUBDt
 B/qsN7EAiXoJPMvRy/2yfnmO+G4McZQxkhU8rdCBSffn6wayAISMGNp9xJ49s55g
 bYl3fFT5jHQ1fLS7XxssSThMg1IZ6myCBqWm6efAgxTUqE0gdwIe3/h8+9kNZSF6
 GUuHhB1A3RAOOI7pFyM9z4Gq8pXxQ19L7oI8Ka4eIGwATeHU6GTpaaR7tSRM6CkX
 qFear02/z+9WTIvUjIhzSKhiDyHeB8nTVQUhUTyoQDOLKV0AWrlZ6y8/0dpa+PDp
 Xn8znF6btxMCHo/lIarRQ2phK64sgoSThrpKWk7WyzQyAbA865vcqYxobQwgjUNX
 qrS/eB9s6HZjL6jv8RD9AYrVAv4VpiGjY58q3sLdFBVB8Otr5kKrcY8kc47jo0Kc
 hRDXW2OAuX/IUEbD5KZKdrcfqoa2Qy2K4oGpAUGPhhmpmNh7xlchi/vcAmmHAVDl
 /Zge+d+pzZ12r0PHrGnyeNZ7oruncRHL2YHN3tPgP3c1kuA53tZFkBxrDGcWdfmf
 vwDYeNI8KlH9jmRkFAgqEhGk4nDk+B2z6nyFkp+aAGm7ZZriZP/TtR80Mym3PixD
 XH1qx1FUCoamXS0qe57I
 =j3ZP
 -----END PGP SIGNATURE-----

Merge tag 'pxa-dt-4.10' of https://github.com/rjarzmik/linux into next/dt

Pull "This device-tree pxa update brings" from Robert Jarzmik:

 - pxa25x support
 - cpu operating points in preparation for cpufreq-dt
 - small fixes

* tag 'pxa-dt-4.10' of https://github.com/rjarzmik/linux:
  ARM: dts: pxa: add pxa27x cpu operating points
  ARM: dts: pxa: add pxa25x cpu operating points
  ARM: dts: pxa: fix gpio0 and gpio1 interrupts
  ARM: dts: pxa: fix no. of gpio cells in the pxa gpio binding documentation
  ARM: dts: pxa: add pxa25x .dtsi file
This commit is contained in:
Arnd Bergmann 2016-11-26 00:25:04 +01:00
commit 2ad5c1a5fc
4 changed files with 163 additions and 4 deletions

View file

@ -17,7 +17,9 @@ Required properties:
- #interrupt-cells: Specifies the number of cells needed to encode an
interrupt source.
- gpio-controller : Marks the device node as a gpio controller.
- #gpio-cells : Should be one. It is the pin number.
- #gpio-cells : Should be two. The first cell is the pin number and
the second cell is used to specify flags. See gpio.txt for possible
values.
Example for a MMP platform:
@ -27,7 +29,7 @@ Example for a MMP platform:
interrupts = <49>;
interrupt-names = "gpio_mux";
gpio-controller;
#gpio-cells = <1>;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <1>;
};

View file

@ -0,0 +1,117 @@
/*
* Copyright (C) 2016 Robert Jarzmik <robert.jarzmik@free.fr>
*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* http://www.opensource.org/licenses/gpl-license.html
* http://www.gnu.org/copyleft/gpl.html
*/
#include "pxa2xx.dtsi"
#include "dt-bindings/clock/pxa-clock.h"
/ {
model = "Marvell PXA25x family SoC";
compatible = "marvell,pxa250";
clocks {
/*
* The muxing of external clocks/internal dividers for osc* clock
* sources has been hidden under the carpet by now.
*/
#address-cells = <1>;
#size-cells = <1>;
ranges;
clks: pxa2xx_clks@41300004 {
compatible = "marvell,pxa250-core-clocks";
#clock-cells = <1>;
status = "okay";
};
/* timer oscillator */
clktimer: oscillator {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <3686400>;
clock-output-names = "ostimer";
};
};
pxabus {
pdma: dma-controller@40000000 {
compatible = "marvell,pdma-1.0";
reg = <0x40000000 0x10000>;
interrupts = <25>;
#dma-channels = <16>;
#dma-cells = <2>;
#dma-requests = <40>;
status = "okay";
};
pxairq: interrupt-controller@40d00000 {
marvell,intc-priority;
marvell,intc-nr-irqs = <32>;
};
pinctrl: pinctrl@40e00000 {
reg = <0x40e00054 0x20 0x40e0000c 0xc 0x40e0010c 4
0x40f00020 0x10>;
compatible = "marvell,pxa25x-pinctrl";
};
gpio: gpio@40e00000 {
compatible = "intel,pxa25x-gpio";
gpio-ranges = <&pinctrl 0 0 84>;
clocks = <&clks CLK_NONE>;
};
pwm0: pwm@40b00000 {
compatible = "marvell,pxa250-pwm";
reg = <0x40b00000 0x10>;
#pwm-cells = <1>;
clocks = <&clks CLK_PWM0>;
};
pwm1: pwm@40b00010 {
compatible = "marvell,pxa250-pwm";
reg = <0x40b00010 0x10>;
#pwm-cells = <1>;
clocks = <&clks CLK_PWM1>;
};
};
timer@40a00000 {
compatible = "marvell,pxa-timer";
reg = <0x40a00000 0x20>;
interrupts = <26>;
clocks = <&clktimer>;
status = "okay";
};
pxa250_opp_table: opp_table0 {
compatible = "operating-points-v2";
opp@99532800 {
opp-hz = /bits/ 64 <99532800>;
opp-microvolt = <1000000 950000 1650000>;
clock-latency-ns = <20>;
};
opp@199065600 {
opp-hz = /bits/ 64 <199065600>;
opp-microvolt = <1000000 950000 1650000>;
clock-latency-ns = <20>;
};
opp@298598400 {
opp-hz = /bits/ 64 <298598400>;
opp-microvolt = <1100000 1045000 1650000>;
clock-latency-ns = <20>;
};
opp@398131200 {
opp-hz = /bits/ 64 <398131200>;
opp-microvolt = <1300000 1235000 1650000>;
clock-latency-ns = <20>;
};
};
};

View file

@ -137,4 +137,44 @@
clocks = <&clks CLK_OSTIMER>;
status = "okay";
};
pxa270_opp_table: opp_table0 {
compatible = "operating-points-v2";
opp@104000000 {
opp-hz = /bits/ 64 <104000000>;
opp-microvolt = <900000 900000 1705000>;
clock-latency-ns = <20>;
};
opp@156000000 {
opp-hz = /bits/ 64 <156000000>;
opp-microvolt = <1000000 1000000 1705000>;
clock-latency-ns = <20>;
};
opp@208000000 {
opp-hz = /bits/ 64 <208000000>;
opp-microvolt = <1180000 1180000 1705000>;
clock-latency-ns = <20>;
};
opp@312000000 {
opp-hz = /bits/ 64 <312000000>;
opp-microvolt = <1250000 1250000 1705000>;
clock-latency-ns = <20>;
};
opp@416000000 {
opp-hz = /bits/ 64 <416000000>;
opp-microvolt = <1350000 1350000 1705000>;
clock-latency-ns = <20>;
};
opp@520000000 {
opp-hz = /bits/ 64 <520000000>;
opp-microvolt = <1450000 1450000 1705000>;
clock-latency-ns = <20>;
};
opp@624000000 {
opp-hz = /bits/ 64 <624000000>;
opp-microvolt = <1550000 1550000 1705000>;
clock-latency-ns = <20>;
};
};
};

View file

@ -54,8 +54,8 @@
reg = <0x40e00000 0x10000>;
gpio-controller;
#gpio-cells = <0x2>;
interrupts = <10>;
interrupt-names = "gpio_mux";
interrupts = <8>, <9>, <10>;
interrupt-names = "gpio0", "gpio1", "gpio_mux";
interrupt-controller;
#interrupt-cells = <0x2>;
ranges;