* [PATCH v6 00/17] add COMMON_CLK support for PowerPC MPC512x @ 2013-11-30 22:51 Gerhard Sittig [not found] ` <1385851897-23475-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> 0 siblings, 1 reply; 11+ messages in thread From: Gerhard Sittig @ 2013-11-30 22:51 UTC (permalink / raw) To: linuxppc-dev, linux-arm-kernel, Anatolij Gustschin, Mike Turquette Cc: Scott Wood, Detlev Zundel, Gerhard Sittig, Artem Bityutskiy, Benjamin Herrenschmidt, David Woodhouse, devicetree, Greg Kroah-Hartman, Ian Campbell, Jiri Slaby, Kumar Gala, linux-can, linux-media, linux-mtd, linux-serial, linux-spi, linux-usb, Marc Kleine-Budde, Mark Brown, Mark Rutland, Mauro Carvalho Chehab, Paul Mackerras, Pawel Moll, Rob Herring this series introduces support for the common clock framework (CCF, COMMON_CLK Kconfig option) in the PowerPC based MPC512x platform, which brings device tree based clock lookup as well at subsystem maintainers: this series was streamlined for conflict free application through the subsystems' individual trees, and consists of the following phases - PCI peripheral driver cleanup (1/17) (may get dropped if the Layerscape series gets preferred) - introduction of CCF support including migration workarounds and backwards compatibility, device tree updates (2/17 - 7/17) -- nevertheless I suggest to take the .dts/.dtsi updates through the PowerPC tree, the extensions are straight forward and strictly are clock related, and complement the CCF platform support - peripheral driver adjustment to the CCF approach (8/17 - 16/17) - removal of migration workarounds (17/17) at device tree maintainers: - the series does not introduce new bindings, it implements the existing clock binding (OF clock provider, DT based clock lookup) and so adjusts and extends DTS files - the code is backwards compatible, and keeps working with device trees which don't contain clock related information the series is based on v3.13-rc1 the series passes 'checkpatch.pl --strict' except for one warning which cannot get resolved, since the <linux/clk-provider.h> API dictates the data type, "fixing" the checkpatch warning would break compilation WARNING: static const char * array should probably be static const char * const #421: FILE: arch/powerpc/platforms/512x/clock-commonclk.c:343: +static const char *parent_names_mux0[] = { total: 0 errors, 1 warnings, 0 checks, 835 lines checked the series has been build tested (each step on PowerPC 512x, 52xx, 5xxx multi platform, 83xx, 85xx, 86xx, and on ARM v6/v7), run tested (each step on 512x, the switch to CCF on 52xx), and tested for backwards compatibility (each step on 512x with a v3.11 dtb file) changes in v6 (2013-11-30) - catch up with changes between v3.12 and v3.13-rc1 (conflict resolution, explicit include for <linux/of_address.h> in 4/17) - remove the no longer referenced <asm/clk_interface.h> file from arch/powerpc/include/ in the s/PPC_CLOCK/COMMON_CLK/ switch (7/17) changes in v5 (2013-11-18) - extend comments in the PCI driver cleanup (probe() vs setup_arch() discussion, no code change); all other peripheral driver cleanup from v4 was taken into mainline - concentrate migration support in a separate routine for improved maintainability - fix the oscillator frequency lookup ('osc' reference) in the CCF platform support code which creates the clock tree - add backwards compatibility with device trees that lack clock specs, concentrate compat support in a separate routine for improved maintainability, add it in a separate patch for easier review - consistent use of the 'ipg' name in DTS files for the register access clock item of peripherals - switch from PPC_CLOCK to COMMON_CLK at the same time for 512x and 52xx (keep multi-platform setups operational), in a separate patch - move removal of migration support to the very end of the series, it's no longer intertwined with peripheral driver adjustment - SPI and UART: get 'mclk' and 'ipg' clock items in a more consistent order (less obfuscation in the diff) - add/adjust Cc: and Acked-By: entries, rework commit messages and comments where appropriate changes in v4 (2013-08-06) - remove explicit devm_clk_put() calls as these will occur implicitly upon device release (01/31, 02/31, 03/31, 04/31, 05/31, 06/31, 08/31, 09/31, 27/31) - split the PSC (SPI, UART) and MSCAN (CAN) related MCLK subtrees into separate 'ipg'/'bdlc' gated clock items for register access as well as the 'mclk' clock subtrees that apply to bitrates -- this eliminates the need for "shared gates" and further reduces clock pre-enable workarounds (11/31, 15/31, 17/31, 18/31, 20/31, 21/31, 22/31, 27/31) - further adjust the CAN clock driver, fix an incomplete error code path in the network device open callback (11/31), only enable the bitrate clock when the network device is open (27/31) - remove debug output in the clock tree setup when introducing the platform's clock driver, there already is CONFIG_COMMON_CLK_DEBUG to retrieve more complete information (17/31) - remove an "enums don't work here" comment in the dt-bindings header file (15/31) - reword and update commit messages (body and/or subject) where appropriate (03/31, 04/31, 05/31, 06/31, 08/31, 09/31, 11/31, 12/31, 17/31, 20/31, 21/31, 22/31, 27/31, 28/31, 30/31, 31/31) - add 'Reviewed-By' attributes which were received for v3 changes in v3 (2013-07-22) - rebase the series against v3.11-rc2 - re-ordered the series to first address all general clock handling concerns in existing drivers, before introducing common clock support in the platform's clock driver - slightly rework the SPI (01/31), UART (02/31), and PSC FIFO (23/31) clock handling in comparison to v2 which introduced those fixes (devm_{get,put}_clk() calls, fewer goto labels in error paths) - fix and improve clock handling (balance allocation and release of clocks, check for errors during setup) in all of the other drivers which this series has touched before in naive ways: USB (03/31), NAND flash (04/31), video capture (05/31), I2C (06/31), ethernet (08/31), PCI (09/31), CAN (11/31) - silence a build warning in the ethernet driver (07/31) - eliminate all PPC_CLOCK references, use 'per' clock names for NAND flash (25/31) and VIU (26/31) as well - unbreak CAN operation for the period between introducing common clock support in the platform's clock driver and introducing common clock support in the CAN peripheral driver as well as providing clock specs in the device tree (provide clkdev aliases for SYS and REF) - improve common clock support for CAN (devm_{get,put}_clk() calls, check enable() errors, keep a reference to used clocks, disable and put clocks after use) - reworded several commit messages to better reflect the kind of change and because fixes were applied before adding common infrastructure support - point to individual numbered patches of the series in the list of changes for v2 as well changes in v2 (2013-07-18) - cleanup of the UART (02/24) and SPI (01/24) clock handling before the introduction of common clock support for the platform, as incomplete clock handling becomes fatal or more dangerous later (which in turn changes the context of the "device tree lookup only" followup patch later) - reordered the sequence of patches to keep the serial communication related parts together (UART, SPI, and PSC FIFO changes after common clock support was introduced, which have become 11-14/24 now) - updated commit messages for the clock API use cleanup in the serial communication drivers, updated comments and reworded commit messages in the core clock driver to expand on the pre-enable workaround and clkdev registration (09/24) - keep a reference to the PSC FIFO clock during use instead of looking up the clock again in the uninit() routine (14/24) - remove the clkdev.h header file inclusion directive with the removal of the clkdev registration call (13/24) initial v1 (2013-07-15) Gerhard Sittig (17): powerpc/fsl-pci: improve clock API use dts: mpc512x: introduce dt-bindings/clock/ header dts: mpc512x: add clock related device tree specs clk: mpc512x: introduce COMMON_CLK for MPC512x (disabled) clk: mpc512x: add backwards compat to the CCF code dts: mpc512x: add clock specs for client lookups clk: mpc5xxx: switch to COMMON_CLK, retire PPC_CLOCK spi: mpc512x: adjust to OF based clock lookup serial: mpc512x: adjust for OF based clock lookup serial: mpc512x: setup the PSC FIFO clock as well USB: fsl-mph-dr-of: adjust for OF based clock lookup mtd: mpc5121_nfc: adjust for OF based clock lookup [media] fsl-viu: adjust for OF based clock lookup net: can: mscan: adjust to common clock support for mpc512x net: can: mscan: remove non-CCF code for MPC512x powerpc/mpc512x: improve DIU related clock setup clk: mpc512x: remove migration support workarounds arch/powerpc/Kconfig | 5 - arch/powerpc/boot/dts/ac14xx.dts | 7 + arch/powerpc/boot/dts/mpc5121.dtsi | 113 ++- arch/powerpc/include/asm/clk_interface.h | 20 - arch/powerpc/kernel/Makefile | 1 - arch/powerpc/kernel/clock.c | 82 --- arch/powerpc/platforms/512x/Kconfig | 2 +- arch/powerpc/platforms/512x/Makefile | 3 +- arch/powerpc/platforms/512x/clock-commonclk.c | 951 +++++++++++++++++++++++++ arch/powerpc/platforms/512x/clock.c | 754 -------------------- arch/powerpc/platforms/512x/mpc512x_shared.c | 169 +++-- arch/powerpc/platforms/52xx/Kconfig | 2 +- arch/powerpc/sysdev/fsl_pci.c | 52 ++ drivers/media/platform/fsl-viu.c | 2 +- drivers/mtd/nand/mpc5121_nfc.c | 2 +- drivers/net/can/mscan/mpc5xxx_can.c | 270 ++++--- drivers/spi/spi-mpc512x-psc.c | 26 +- drivers/tty/serial/mpc52xx_uart.c | 90 ++- drivers/usb/host/fsl-mph-dr-of.c | 13 +- include/dt-bindings/clock/mpc512x-clock.h | 69 ++ include/linux/clk-provider.h | 16 + 21 files changed, 1557 insertions(+), 1092 deletions(-) delete mode 100644 arch/powerpc/include/asm/clk_interface.h delete mode 100644 arch/powerpc/kernel/clock.c create mode 100644 arch/powerpc/platforms/512x/clock-commonclk.c delete mode 100644 arch/powerpc/platforms/512x/clock.c create mode 100644 include/dt-bindings/clock/mpc512x-clock.h -- 1.7.10.4 ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <1385851897-23475-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org>]
* [PATCH v6 02/17] dts: mpc512x: introduce dt-bindings/clock/ header [not found] ` <1385851897-23475-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> @ 2013-11-30 22:51 ` Gerhard Sittig 2013-12-02 9:46 ` Mark Rutland [not found] ` <1385851897-23475-3-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> 2013-11-30 22:51 ` [PATCH v6 03/17] dts: mpc512x: add clock related device tree specs Gerhard Sittig 2013-11-30 22:51 ` [PATCH v6 06/17] dts: mpc512x: add clock specs for client lookups Gerhard Sittig 2 siblings, 2 replies; 11+ messages in thread From: Gerhard Sittig @ 2013-11-30 22:51 UTC (permalink / raw) To: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Anatolij Gustschin, Mike Turquette Cc: Scott Wood, Detlev Zundel, Gerhard Sittig, Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren, Ian Campbell, devicetree-u79uwXL29TY76Z2rM5mHXA introduce a dt-bindings/ header file for MPC512x clocks, providing symbolic identifiers for those SoC clocks which clients will reference from their device tree nodes Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org> Cc: Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org> Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org> Cc: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> Cc: Ian Campbell <ian.campbell-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Reviewed-by: Mike Turquette <mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> # for v3: w/o bdlc, PSC ipg Signed-off-by: Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org> --- include/dt-bindings/clock/mpc512x-clock.h | 69 +++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 include/dt-bindings/clock/mpc512x-clock.h diff --git a/include/dt-bindings/clock/mpc512x-clock.h b/include/dt-bindings/clock/mpc512x-clock.h new file mode 100644 index 000000000000..9e81b3b99a32 --- /dev/null +++ b/include/dt-bindings/clock/mpc512x-clock.h @@ -0,0 +1,69 @@ +/* + * This header provides constants for MPC512x clock specs in DT bindings. + */ + +#ifndef _DT_BINDINGS_CLOCK_MPC512x_CLOCK_H +#define _DT_BINDINGS_CLOCK_MPC512x_CLOCK_H + +#define MPC512x_CLK_DUMMY 0 +#define MPC512x_CLK_REF 1 +#define MPC512x_CLK_SYS 2 +#define MPC512x_CLK_DIU 3 +#define MPC512x_CLK_VIU 4 +#define MPC512x_CLK_CSB 5 +#define MPC512x_CLK_E300 6 +#define MPC512x_CLK_IPS 7 +#define MPC512x_CLK_FEC 8 +#define MPC512x_CLK_SATA 9 +#define MPC512x_CLK_PATA 10 +#define MPC512x_CLK_NFC 11 +#define MPC512x_CLK_LPC 12 +#define MPC512x_CLK_MBX_BUS 13 +#define MPC512x_CLK_MBX 14 +#define MPC512x_CLK_MBX_3D 15 +#define MPC512x_CLK_AXE 16 +#define MPC512x_CLK_USB1 17 +#define MPC512x_CLK_USB2 18 +#define MPC512x_CLK_I2C 19 +#define MPC512x_CLK_MSCAN0_MCLK 20 +#define MPC512x_CLK_MSCAN1_MCLK 21 +#define MPC512x_CLK_MSCAN2_MCLK 22 +#define MPC512x_CLK_MSCAN3_MCLK 23 +#define MPC512x_CLK_BDLC 24 +#define MPC512x_CLK_SDHC 25 +#define MPC512x_CLK_PCI 26 +#define MPC512x_CLK_PSC_MCLK_IN 27 +#define MPC512x_CLK_SPDIF_TX 28 +#define MPC512x_CLK_SPDIF_RX 29 +#define MPC512x_CLK_SPDIF_MCLK 30 +#define MPC512x_CLK_SPDIF 31 +#define MPC512x_CLK_AC97 32 +#define MPC512x_CLK_PSC0_MCLK 33 +#define MPC512x_CLK_PSC1_MCLK 34 +#define MPC512x_CLK_PSC2_MCLK 35 +#define MPC512x_CLK_PSC3_MCLK 36 +#define MPC512x_CLK_PSC4_MCLK 37 +#define MPC512x_CLK_PSC5_MCLK 38 +#define MPC512x_CLK_PSC6_MCLK 39 +#define MPC512x_CLK_PSC7_MCLK 40 +#define MPC512x_CLK_PSC8_MCLK 41 +#define MPC512x_CLK_PSC9_MCLK 42 +#define MPC512x_CLK_PSC10_MCLK 43 +#define MPC512x_CLK_PSC11_MCLK 44 +#define MPC512x_CLK_PSC_FIFO 45 +#define MPC512x_CLK_PSC0 46 +#define MPC512x_CLK_PSC1 47 +#define MPC512x_CLK_PSC2 48 +#define MPC512x_CLK_PSC3 49 +#define MPC512x_CLK_PSC4 50 +#define MPC512x_CLK_PSC5 51 +#define MPC512x_CLK_PSC6 52 +#define MPC512x_CLK_PSC7 53 +#define MPC512x_CLK_PSC8 54 +#define MPC512x_CLK_PSC9 55 +#define MPC512x_CLK_PSC10 56 +#define MPC512x_CLK_PSC11 57 + +#define MPC512x_CLK_LAST_PUBLIC 57 + +#endif -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v6 02/17] dts: mpc512x: introduce dt-bindings/clock/ header 2013-11-30 22:51 ` [PATCH v6 02/17] dts: mpc512x: introduce dt-bindings/clock/ header Gerhard Sittig @ 2013-12-02 9:46 ` Mark Rutland [not found] ` <20131202094656.GA12952-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org> [not found] ` <1385851897-23475-3-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> 1 sibling, 1 reply; 11+ messages in thread From: Mark Rutland @ 2013-12-02 9:46 UTC (permalink / raw) To: Gerhard Sittig Cc: devicetree@vger.kernel.org, Mike Turquette, Pawel Moll, Detlev Zundel, Stephen Warren, rob.herring@calxeda.com, Scott Wood, Anatolij Gustschin, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Ian Campbell On Sat, Nov 30, 2013 at 10:51:22PM +0000, Gerhard Sittig wrote: > introduce a dt-bindings/ header file for MPC512x clocks, > providing symbolic identifiers for those SoC clocks which > clients will reference from their device tree nodes There should be a binding document update to go with this, pointing out that this include file defines the set of clock IDs for the MPC512x clocks. Otherwise, this looks fine to me. Mark. > > Cc: Rob Herring <rob.herring@calxeda.com> > Cc: Pawel Moll <pawel.moll@arm.com> > Cc: Mark Rutland <mark.rutland@arm.com> > Cc: Stephen Warren <swarren@wwwdotorg.org> > Cc: Ian Campbell <ian.campbell@citrix.com> > Cc: devicetree@vger.kernel.org > Reviewed-by: Mike Turquette <mturquette@linaro.org> # for v3: w/o bdlc, PSC ipg > Signed-off-by: Gerhard Sittig <gsi@denx.de> > --- > include/dt-bindings/clock/mpc512x-clock.h | 69 +++++++++++++++++++++++++++++ > 1 file changed, 69 insertions(+) > create mode 100644 include/dt-bindings/clock/mpc512x-clock.h > > diff --git a/include/dt-bindings/clock/mpc512x-clock.h b/include/dt-bindings/clock/mpc512x-clock.h > new file mode 100644 > index 000000000000..9e81b3b99a32 > --- /dev/null > +++ b/include/dt-bindings/clock/mpc512x-clock.h > @@ -0,0 +1,69 @@ > +/* > + * This header provides constants for MPC512x clock specs in DT bindings. > + */ > + > +#ifndef _DT_BINDINGS_CLOCK_MPC512x_CLOCK_H > +#define _DT_BINDINGS_CLOCK_MPC512x_CLOCK_H > + > +#define MPC512x_CLK_DUMMY 0 > +#define MPC512x_CLK_REF 1 > +#define MPC512x_CLK_SYS 2 > +#define MPC512x_CLK_DIU 3 > +#define MPC512x_CLK_VIU 4 > +#define MPC512x_CLK_CSB 5 > +#define MPC512x_CLK_E300 6 > +#define MPC512x_CLK_IPS 7 > +#define MPC512x_CLK_FEC 8 > +#define MPC512x_CLK_SATA 9 > +#define MPC512x_CLK_PATA 10 > +#define MPC512x_CLK_NFC 11 > +#define MPC512x_CLK_LPC 12 > +#define MPC512x_CLK_MBX_BUS 13 > +#define MPC512x_CLK_MBX 14 > +#define MPC512x_CLK_MBX_3D 15 > +#define MPC512x_CLK_AXE 16 > +#define MPC512x_CLK_USB1 17 > +#define MPC512x_CLK_USB2 18 > +#define MPC512x_CLK_I2C 19 > +#define MPC512x_CLK_MSCAN0_MCLK 20 > +#define MPC512x_CLK_MSCAN1_MCLK 21 > +#define MPC512x_CLK_MSCAN2_MCLK 22 > +#define MPC512x_CLK_MSCAN3_MCLK 23 > +#define MPC512x_CLK_BDLC 24 > +#define MPC512x_CLK_SDHC 25 > +#define MPC512x_CLK_PCI 26 > +#define MPC512x_CLK_PSC_MCLK_IN 27 > +#define MPC512x_CLK_SPDIF_TX 28 > +#define MPC512x_CLK_SPDIF_RX 29 > +#define MPC512x_CLK_SPDIF_MCLK 30 > +#define MPC512x_CLK_SPDIF 31 > +#define MPC512x_CLK_AC97 32 > +#define MPC512x_CLK_PSC0_MCLK 33 > +#define MPC512x_CLK_PSC1_MCLK 34 > +#define MPC512x_CLK_PSC2_MCLK 35 > +#define MPC512x_CLK_PSC3_MCLK 36 > +#define MPC512x_CLK_PSC4_MCLK 37 > +#define MPC512x_CLK_PSC5_MCLK 38 > +#define MPC512x_CLK_PSC6_MCLK 39 > +#define MPC512x_CLK_PSC7_MCLK 40 > +#define MPC512x_CLK_PSC8_MCLK 41 > +#define MPC512x_CLK_PSC9_MCLK 42 > +#define MPC512x_CLK_PSC10_MCLK 43 > +#define MPC512x_CLK_PSC11_MCLK 44 > +#define MPC512x_CLK_PSC_FIFO 45 > +#define MPC512x_CLK_PSC0 46 > +#define MPC512x_CLK_PSC1 47 > +#define MPC512x_CLK_PSC2 48 > +#define MPC512x_CLK_PSC3 49 > +#define MPC512x_CLK_PSC4 50 > +#define MPC512x_CLK_PSC5 51 > +#define MPC512x_CLK_PSC6 52 > +#define MPC512x_CLK_PSC7 53 > +#define MPC512x_CLK_PSC8 54 > +#define MPC512x_CLK_PSC9 55 > +#define MPC512x_CLK_PSC10 56 > +#define MPC512x_CLK_PSC11 57 > + > +#define MPC512x_CLK_LAST_PUBLIC 57 > + > +#endif > -- > 1.7.10.4 > > ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <20131202094656.GA12952-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>]
* [PATCH v1 1/1] dts: bindings: add mpc5121 clocks binding document [not found] ` <20131202094656.GA12952-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org> @ 2013-12-02 14:20 ` Gerhard Sittig [not found] ` <1385994034-2513-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> 2013-12-02 14:25 ` [PATCH v6 02/17] dts: mpc512x: introduce dt-bindings/clock/ header Gerhard Sittig 1 sibling, 1 reply; 11+ messages in thread From: Gerhard Sittig @ 2013-12-02 14:20 UTC (permalink / raw) To: devicetree-u79uwXL29TY76Z2rM5mHXA Cc: Gerhard Sittig, Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren, Ian Campbell add a clock bindings documentation file for Freescale MPC5121 this binding implements and uses existing common clock bindings, it does not introduce a new binding semantics but discusses the specific use on Freescale MPC5121 and provides examples Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org> Cc: Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org> Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org> Cc: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> Cc: Ian Campbell <ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Signed-off-by: Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org> --- an accompanying doc update was suggested while the feature's implementation currently is under review, i.e. this document does not apply to the current status but "describes the future" sending out this doc patch now is meant to neither have to re-spin the whole series nor to further delay the doc update submission, but to allow for immediate review of the doc update .../devicetree/bindings/clock/mpc5121-clock.txt | 95 ++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/mpc5121-clock.txt diff --git a/Documentation/devicetree/bindings/clock/mpc5121-clock.txt b/Documentation/devicetree/bindings/clock/mpc5121-clock.txt new file mode 100644 index 000000000000..8fbb489f6581 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/mpc5121-clock.txt @@ -0,0 +1,95 @@ +Device Tree Clock bindings for Freescale MPC5121 + +This binding uses the common clock binding[1] as well as the +fixed-clock binding[2]. + +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt +[2] Documentation/devicetree/bindings/clock/fixed-clock.txt + +== Clock provider == + +The MPC5121 clock control module (CCM) implements a clock provider +with several output clocks, which in turn are input clocks to +peripherals. + +The MPC5121 CCM is another clock consumer with respect to the SoC's +crystal or oscillator input (referred to both as XTAL or OSC in the +chip's documentation). + +Required properties: +- compatible: shall contain "fsl,mpc5121-clock" +- reg: shall specify the start address and length of the + clock module's set of control registers +- #clock-cells: shall be 1; defines the number of integer cells + required for a clock specifier which references + this clock provider + +Optional properties: +- clocks: list of phandle and clock specifier pairs for the + node's input clocks, following the common clock + consumers binding; should be empty, or one XTAL/OSC + clock reference +- clock-names: list of clock input name strings sorted in the same + order as the 'clocks' property + +== Clock consumers == + +Peripherals specify their input clocks by referencing clock providers +according to the common clock consumer binding. A clock gets identified +by a phandle and clock specifiers pair. The number of integer cells in +the clock specifier is a property of the clock provider. + +The <dt-bindings/clock/mpc512x-clock.h> file provides symbolic names +such that consumers need not encode magic numbers into their specs. + +== Examples == + +The following example describes a fixed rate XTAL clock. + +osc: osc { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <33000000>; +}; + +The following example describes the clock control module (CCM), +referencing the above XTAL as an input, providing output clocks. + +clks: clock@f00 { + compatible = "fsl,mpc5121-clock"; + reg = <0xf00 0x100>; + #clock-cells = <1>; + clocks = <&osc>; + clock-names = "osc"; +}; + +The following examples describe peripheral nodes which reference +CCM output clocks as their input clocks. + +#include <dt-bindings/clock/mpc512x-clock.h> + +can@1300 { + compatible = "fsl,mpc5121-mscan"; + ... + clocks = <&clks MPC512x_CLK_BDLC>, + <&clks MPC512x_CLK_IPS>, + <&clks MPC512x_CLK_SYS>, + <&clks MPC512x_CLK_REF>, + <&clks MPC512x_CLK_MSCAN0_MCLK>; + clock-names = "ipg", "ips", "sys", "ref", "mclk"; +}; + +i2c@1700 { + compatible = "fsl,mpc5121-i2c", "fsl-i2c"; + ... + clocks = <&clks MPC512x_CLK_I2C>; + clock-names = "ipg"; +}; + +psc@11000 { + compatible = "fsl,mpc5121-psc"; + ... + clocks = <&clks MPC512x_CLK_PSC0>, + <&clks MPC512x_CLK_PSC0_MCLK>; + clock-names = "ipg", "mclk"; +}; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 11+ messages in thread
[parent not found: <1385994034-2513-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org>]
* Re: [PATCH v1 1/1] dts: bindings: add mpc5121 clocks binding document [not found] ` <1385994034-2513-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> @ 2013-12-02 16:55 ` Gerhard Sittig 0 siblings, 0 replies; 11+ messages in thread From: Gerhard Sittig @ 2013-12-02 16:55 UTC (permalink / raw) To: devicetree-u79uwXL29TY76Z2rM5mHXA Cc: Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren, Ian Campbell On Mon, Dec 02, 2013 at 15:20 +0100, Gerhard Sittig wrote: > > add a clock bindings documentation file for Freescale MPC5121 > > this binding implements and uses existing common clock bindings, > it does not introduce a new binding semantics but discusses the > specific use on Freescale MPC5121 and provides examples > > [ ... ] > > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/mpc5121-clock.txt > @@ -0,0 +1,95 @@ > +Device Tree Clock bindings for Freescale MPC5121 > + > [ ... ] > + > +Required properties: > +- compatible: shall contain "fsl,mpc5121-clock" > +- reg: shall specify the start address and length of the > + clock module's set of control registers > +- #clock-cells: shall be 1; defines the number of integer cells > + required for a clock specifier which references > + this clock provider In hindsight the wording is not good (especially 'reg'), will see how I can improve this. And the layout may improve some more. > + > +Optional properties: > +- clocks: list of phandle and clock specifier pairs for the > + node's input clocks, following the common clock > + consumers binding; should be empty, or one XTAL/OSC > + clock reference > +- clock-names: list of clock input name strings sorted in the same > + order as the 'clocks' property Mark, I very much like your suggestion to state that 'clocks' should match 'clock-names' (and not vice versa, found in another thread, after having sent this patch). And noticed that 'clock-names' still does not say that the XTAL/OSC should go by the name "osc". And should not say that at most one clock is accepted or how their order is. So I will wait for more feedback, but can tell already that v1 needs an update before becoming acceptable. Thank you for your patience. :) virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office-ynQEQJNshbs@public.gmane.org -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v6 02/17] dts: mpc512x: introduce dt-bindings/clock/ header [not found] ` <20131202094656.GA12952-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org> 2013-12-02 14:20 ` [PATCH v1 1/1] dts: bindings: add mpc5121 clocks binding document Gerhard Sittig @ 2013-12-02 14:25 ` Gerhard Sittig 1 sibling, 0 replies; 11+ messages in thread From: Gerhard Sittig @ 2013-12-02 14:25 UTC (permalink / raw) To: Mark Rutland Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Anatolij Gustschin, Mike Turquette, Scott Wood, Detlev Zundel, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org, Pawel Moll, Stephen Warren, Ian Campbell, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Mon, Dec 02, 2013 at 09:46 +0000, Mark Rutland wrote: > > On Sat, Nov 30, 2013 at 10:51:22PM +0000, Gerhard Sittig wrote: > > introduce a dt-bindings/ header file for MPC512x clocks, > > providing symbolic identifiers for those SoC clocks which > > clients will reference from their device tree nodes > > There should be a binding document update to go with this, pointing out > that this include file defines the set of clock IDs for the MPC512x > clocks. It turns out the Freescale MPC512x did not have a separate clocks binding document, but "just did the usual" and followed the common bindings. I've sent a separate doc update patch which becomes applicable after the CCF implementation got accepted. > Otherwise, this looks fine to me. So I take this as a "reviewed by" of yours for this dt-bindings header file patch, shall I have to re-submit the series. Thanks! virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office-ynQEQJNshbs@public.gmane.org -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <1385851897-23475-3-git-send-email-gsi-ynQEQJNshbs@public.gmane.org>]
* Re: [PATCH v6 02/17] dts: mpc512x: introduce dt-bindings/clock/ header [not found] ` <1385851897-23475-3-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> @ 2013-12-07 9:32 ` Anatolij Gustschin 0 siblings, 0 replies; 11+ messages in thread From: Anatolij Gustschin @ 2013-12-07 9:32 UTC (permalink / raw) To: Gerhard Sittig Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ, Mike Turquette, Rob Herring, Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA On Sat, 30 Nov 2013 23:51:22 +0100 Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org> wrote: > introduce a dt-bindings/ header file for MPC512x clocks, > providing symbolic identifiers for those SoC clocks which > clients will reference from their device tree nodes > > Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org> > Cc: Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org> > Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org> > Cc: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> > Cc: Ian Campbell <ian.campbell-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org> > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Reviewed-by: Mike Turquette <mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> # for v3: w/o bdlc, PSC ipg > Signed-off-by: Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org> > --- > include/dt-bindings/clock/mpc512x-clock.h | 69 +++++++++++++++++++++++++++++ > 1 file changed, 69 insertions(+) > create mode 100644 include/dt-bindings/clock/mpc512x-clock.h applied to next. Thanks! Anatolij -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v6 03/17] dts: mpc512x: add clock related device tree specs [not found] ` <1385851897-23475-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> 2013-11-30 22:51 ` [PATCH v6 02/17] dts: mpc512x: introduce dt-bindings/clock/ header Gerhard Sittig @ 2013-11-30 22:51 ` Gerhard Sittig [not found] ` <1385851897-23475-4-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> 2013-11-30 22:51 ` [PATCH v6 06/17] dts: mpc512x: add clock specs for client lookups Gerhard Sittig 2 siblings, 1 reply; 11+ messages in thread From: Gerhard Sittig @ 2013-11-30 22:51 UTC (permalink / raw) To: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Anatolij Gustschin, Mike Turquette Cc: Scott Wood, Detlev Zundel, Gerhard Sittig, Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren, Ian Campbell, devicetree-u79uwXL29TY76Z2rM5mHXA this addresses the clock driver aka provider's side of clocks - introduce a 'clocks' subtree with an 'osc' node for the crystal or oscillator SoC input (fixed frequency) - the 'clock@f00' clock-control-module node references the 'osc' for its input, and is another provider for all the clocks which the CCM component manages - prepare for future references to clocks from peripheral nodes by means of the <&clks ID> syntax and symbolic ID names which a header file provides - provide default values with 33MHz oscillator frequency in the common include (the 66MHz IPS bus already was there), and add override values for the ifm AC14xx board which deviates from the reference design (25MHz xtal, 80MHz IPS bus) Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org> Cc: Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org> Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org> Cc: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> Cc: Ian Campbell <ian.campbell-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org> Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Reviewed-by: Mike Turquette <mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> # for v3, before &osc Signed-off-by: Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org> --- arch/powerpc/boot/dts/ac14xx.dts | 7 +++++++ arch/powerpc/boot/dts/mpc5121.dtsi | 18 +++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/boot/dts/ac14xx.dts b/arch/powerpc/boot/dts/ac14xx.dts index a543c4088cba..a1b883730b31 100644 --- a/arch/powerpc/boot/dts/ac14xx.dts +++ b/arch/powerpc/boot/dts/ac14xx.dts @@ -139,7 +139,14 @@ }; }; + clocks { + osc { + clock-frequency = <25000000>; + }; + }; + soc@80000000 { + bus-frequency = <80000000>; /* 80 MHz ips bus */ clock@f00 { compatible = "fsl,mpc5121rev2-clock", "fsl,mpc5121-clock"; diff --git a/arch/powerpc/boot/dts/mpc5121.dtsi b/arch/powerpc/boot/dts/mpc5121.dtsi index bd14c00e5146..9bfcb7558197 100644 --- a/arch/powerpc/boot/dts/mpc5121.dtsi +++ b/arch/powerpc/boot/dts/mpc5121.dtsi @@ -9,6 +9,8 @@ * option) any later version. */ +#include <dt-bindings/clock/mpc512x-clock.h> + /dts-v1/; / { @@ -73,6 +75,17 @@ ranges = <0x0 0x0 0xfc000000 0x04000000>; }; + clocks { + #address-cells = <1>; + #size-cells = <0>; + + osc: osc { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <33000000>; + }; + }; + soc@80000000 { compatible = "fsl,mpc5121-immr"; #address-cells = <1>; @@ -118,9 +131,12 @@ }; /* Clock control */ - clock@f00 { + clks: clock@f00 { compatible = "fsl,mpc5121-clock"; reg = <0xf00 0x100>; + #clock-cells = <1>; + clocks = <&osc>; + clock-names = "osc"; }; /* Power Management Controller */ -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 11+ messages in thread
[parent not found: <1385851897-23475-4-git-send-email-gsi-ynQEQJNshbs@public.gmane.org>]
* Re: [PATCH v6 03/17] dts: mpc512x: add clock related device tree specs [not found] ` <1385851897-23475-4-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> @ 2013-12-07 9:34 ` Anatolij Gustschin 0 siblings, 0 replies; 11+ messages in thread From: Anatolij Gustschin @ 2013-12-07 9:34 UTC (permalink / raw) To: Gerhard Sittig Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA On Sat, 30 Nov 2013 23:51:23 +0100 Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org> wrote: > this addresses the clock driver aka provider's side of clocks > - introduce a 'clocks' subtree with an 'osc' node for the crystal > or oscillator SoC input (fixed frequency) > - the 'clock@f00' clock-control-module node references the 'osc' for > its input, and is another provider for all the clocks which the > CCM component manages > - prepare for future references to clocks from peripheral nodes > by means of the <&clks ID> syntax and symbolic ID names which a > header file provides > - provide default values with 33MHz oscillator frequency in the > common include (the 66MHz IPS bus already was there), and add > override values for the ifm AC14xx board which deviates from > the reference design (25MHz xtal, 80MHz IPS bus) > > Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org> > Cc: Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org> > Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org> > Cc: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> > Cc: Ian Campbell <ian.campbell-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org> > Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Reviewed-by: Mike Turquette <mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> # for v3, before &osc > Signed-off-by: Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org> > --- > arch/powerpc/boot/dts/ac14xx.dts | 7 +++++++ > arch/powerpc/boot/dts/mpc5121.dtsi | 18 +++++++++++++++++- > 2 files changed, 24 insertions(+), 1 deletion(-) applied to next. Thanks! Anatolij -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v6 06/17] dts: mpc512x: add clock specs for client lookups [not found] ` <1385851897-23475-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> 2013-11-30 22:51 ` [PATCH v6 02/17] dts: mpc512x: introduce dt-bindings/clock/ header Gerhard Sittig 2013-11-30 22:51 ` [PATCH v6 03/17] dts: mpc512x: add clock related device tree specs Gerhard Sittig @ 2013-11-30 22:51 ` Gerhard Sittig [not found] ` <1385851897-23475-7-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> 2 siblings, 1 reply; 11+ messages in thread From: Gerhard Sittig @ 2013-11-30 22:51 UTC (permalink / raw) To: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Anatolij Gustschin, Mike Turquette Cc: Scott Wood, Detlev Zundel, Gerhard Sittig, Rob Herring, Pawel Moll, Mark Rutland, Stephen Warren, Ian Campbell, devicetree-u79uwXL29TY76Z2rM5mHXA this addresses the client side of device tree based clock lookups add clock specifiers to the mbx, nfc, mscan, sdhc, i2c, axe, diu, viu, mdio, fec, usb, pata, psc, psc fifo, and pci nodes in the shared mpc5121.dtsi include Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org> Cc: Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org> Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org> Cc: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> Cc: Ian Campbell <ian.campbell-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Reviewed-by: Mike Turquette <mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> # for v3: w/o bdlc, PSC ipg Signed-off-by: Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org> --- arch/powerpc/boot/dts/mpc5121.dtsi | 95 ++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/arch/powerpc/boot/dts/mpc5121.dtsi b/arch/powerpc/boot/dts/mpc5121.dtsi index 9bfcb7558197..d8c6f967785f 100644 --- a/arch/powerpc/boot/dts/mpc5121.dtsi +++ b/arch/powerpc/boot/dts/mpc5121.dtsi @@ -51,6 +51,10 @@ compatible = "fsl,mpc5121-mbx"; reg = <0x20000000 0x4000>; interrupts = <66 0x8>; + clocks = <&clks MPC512x_CLK_MBX_BUS>, + <&clks MPC512x_CLK_MBX_3D>, + <&clks MPC512x_CLK_MBX>; + clock-names = "mbx-bus", "mbx-3d", "mbx"; }; sram@30000000 { @@ -64,6 +68,8 @@ interrupts = <6 8>; #address-cells = <1>; #size-cells = <1>; + clocks = <&clks MPC512x_CLK_NFC>; + clock-names = "ipg"; }; localbus@80000020 { @@ -156,12 +162,24 @@ compatible = "fsl,mpc5121-mscan"; reg = <0x1300 0x80>; interrupts = <12 0x8>; + clocks = <&clks MPC512x_CLK_BDLC>, + <&clks MPC512x_CLK_IPS>, + <&clks MPC512x_CLK_SYS>, + <&clks MPC512x_CLK_REF>, + <&clks MPC512x_CLK_MSCAN0_MCLK>; + clock-names = "ipg", "ips", "sys", "ref", "mclk"; }; can@1380 { compatible = "fsl,mpc5121-mscan"; reg = <0x1380 0x80>; interrupts = <13 0x8>; + clocks = <&clks MPC512x_CLK_BDLC>, + <&clks MPC512x_CLK_IPS>, + <&clks MPC512x_CLK_SYS>, + <&clks MPC512x_CLK_REF>, + <&clks MPC512x_CLK_MSCAN1_MCLK>; + clock-names = "ipg", "ips", "sys", "ref", "mclk"; }; sdhc@1500 { @@ -170,6 +188,9 @@ interrupts = <8 0x8>; dmas = <&dma0 30>; dma-names = "rx-tx"; + clocks = <&clks MPC512x_CLK_IPS>, + <&clks MPC512x_CLK_SDHC>; + clock-names = "ipg", "per"; }; i2c@1700 { @@ -178,6 +199,8 @@ compatible = "fsl,mpc5121-i2c", "fsl-i2c"; reg = <0x1700 0x20>; interrupts = <9 0x8>; + clocks = <&clks MPC512x_CLK_I2C>; + clock-names = "ipg"; }; i2c@1720 { @@ -186,6 +209,8 @@ compatible = "fsl,mpc5121-i2c", "fsl-i2c"; reg = <0x1720 0x20>; interrupts = <10 0x8>; + clocks = <&clks MPC512x_CLK_I2C>; + clock-names = "ipg"; }; i2c@1740 { @@ -194,6 +219,8 @@ compatible = "fsl,mpc5121-i2c", "fsl-i2c"; reg = <0x1740 0x20>; interrupts = <11 0x8>; + clocks = <&clks MPC512x_CLK_I2C>; + clock-names = "ipg"; }; i2ccontrol@1760 { @@ -205,30 +232,48 @@ compatible = "fsl,mpc5121-axe"; reg = <0x2000 0x100>; interrupts = <42 0x8>; + clocks = <&clks MPC512x_CLK_AXE>; + clock-names = "ipg"; }; display@2100 { compatible = "fsl,mpc5121-diu"; reg = <0x2100 0x100>; interrupts = <64 0x8>; + clocks = <&clks MPC512x_CLK_DIU>; + clock-names = "ipg"; }; can@2300 { compatible = "fsl,mpc5121-mscan"; reg = <0x2300 0x80>; interrupts = <90 0x8>; + clocks = <&clks MPC512x_CLK_BDLC>, + <&clks MPC512x_CLK_IPS>, + <&clks MPC512x_CLK_SYS>, + <&clks MPC512x_CLK_REF>, + <&clks MPC512x_CLK_MSCAN2_MCLK>; + clock-names = "ipg", "ips", "sys", "ref", "mclk"; }; can@2380 { compatible = "fsl,mpc5121-mscan"; reg = <0x2380 0x80>; interrupts = <91 0x8>; + clocks = <&clks MPC512x_CLK_BDLC>, + <&clks MPC512x_CLK_IPS>, + <&clks MPC512x_CLK_SYS>, + <&clks MPC512x_CLK_REF>, + <&clks MPC512x_CLK_MSCAN3_MCLK>; + clock-names = "ipg", "ips", "sys", "ref", "mclk"; }; viu@2400 { compatible = "fsl,mpc5121-viu"; reg = <0x2400 0x400>; interrupts = <67 0x8>; + clocks = <&clks MPC512x_CLK_VIU>; + clock-names = "ipg"; }; mdio@2800 { @@ -236,6 +281,8 @@ reg = <0x2800 0x800>; #address-cells = <1>; #size-cells = <0>; + clocks = <&clks MPC512x_CLK_FEC>; + clock-names = "per"; }; eth0: ethernet@2800 { @@ -244,6 +291,8 @@ reg = <0x2800 0x800>; local-mac-address = [ 00 00 00 00 00 00 ]; interrupts = <4 0x8>; + clocks = <&clks MPC512x_CLK_FEC>; + clock-names = "per"; }; /* USB1 using external ULPI PHY */ @@ -255,6 +304,8 @@ interrupts = <43 0x8>; dr_mode = "otg"; phy_type = "ulpi"; + clocks = <&clks MPC512x_CLK_USB1>; + clock-names = "ipg"; }; /* USB0 using internal UTMI PHY */ @@ -266,6 +317,8 @@ interrupts = <44 0x8>; dr_mode = "otg"; phy_type = "utmi_wide"; + clocks = <&clks MPC512x_CLK_USB2>; + clock-names = "ipg"; }; /* IO control */ @@ -284,6 +337,8 @@ compatible = "fsl,mpc5121-pata"; reg = <0x10200 0x100>; interrupts = <5 0x8>; + clocks = <&clks MPC512x_CLK_PATA>; + clock-names = "ipg"; }; /* 512x PSCs are not 52xx PSC compatible */ @@ -295,6 +350,9 @@ interrupts = <40 0x8>; fsl,rx-fifo-size = <16>; fsl,tx-fifo-size = <16>; + clocks = <&clks MPC512x_CLK_PSC0>, + <&clks MPC512x_CLK_PSC0_MCLK>; + clock-names = "ipg", "mclk"; }; /* PSC1 */ @@ -304,6 +362,9 @@ interrupts = <40 0x8>; fsl,rx-fifo-size = <16>; fsl,tx-fifo-size = <16>; + clocks = <&clks MPC512x_CLK_PSC1>, + <&clks MPC512x_CLK_PSC1_MCLK>; + clock-names = "ipg", "mclk"; }; /* PSC2 */ @@ -313,6 +374,9 @@ interrupts = <40 0x8>; fsl,rx-fifo-size = <16>; fsl,tx-fifo-size = <16>; + clocks = <&clks MPC512x_CLK_PSC2>, + <&clks MPC512x_CLK_PSC2_MCLK>; + clock-names = "ipg", "mclk"; }; /* PSC3 */ @@ -322,6 +386,9 @@ interrupts = <40 0x8>; fsl,rx-fifo-size = <16>; fsl,tx-fifo-size = <16>; + clocks = <&clks MPC512x_CLK_PSC3>, + <&clks MPC512x_CLK_PSC3_MCLK>; + clock-names = "ipg", "mclk"; }; /* PSC4 */ @@ -331,6 +398,9 @@ interrupts = <40 0x8>; fsl,rx-fifo-size = <16>; fsl,tx-fifo-size = <16>; + clocks = <&clks MPC512x_CLK_PSC4>, + <&clks MPC512x_CLK_PSC4_MCLK>; + clock-names = "ipg", "mclk"; }; /* PSC5 */ @@ -340,6 +410,9 @@ interrupts = <40 0x8>; fsl,rx-fifo-size = <16>; fsl,tx-fifo-size = <16>; + clocks = <&clks MPC512x_CLK_PSC5>, + <&clks MPC512x_CLK_PSC5_MCLK>; + clock-names = "ipg", "mclk"; }; /* PSC6 */ @@ -349,6 +422,9 @@ interrupts = <40 0x8>; fsl,rx-fifo-size = <16>; fsl,tx-fifo-size = <16>; + clocks = <&clks MPC512x_CLK_PSC6>, + <&clks MPC512x_CLK_PSC6_MCLK>; + clock-names = "ipg", "mclk"; }; /* PSC7 */ @@ -358,6 +434,9 @@ interrupts = <40 0x8>; fsl,rx-fifo-size = <16>; fsl,tx-fifo-size = <16>; + clocks = <&clks MPC512x_CLK_PSC7>, + <&clks MPC512x_CLK_PSC7_MCLK>; + clock-names = "ipg", "mclk"; }; /* PSC8 */ @@ -367,6 +446,9 @@ interrupts = <40 0x8>; fsl,rx-fifo-size = <16>; fsl,tx-fifo-size = <16>; + clocks = <&clks MPC512x_CLK_PSC8>, + <&clks MPC512x_CLK_PSC8_MCLK>; + clock-names = "ipg", "mclk"; }; /* PSC9 */ @@ -376,6 +458,9 @@ interrupts = <40 0x8>; fsl,rx-fifo-size = <16>; fsl,tx-fifo-size = <16>; + clocks = <&clks MPC512x_CLK_PSC9>, + <&clks MPC512x_CLK_PSC9_MCLK>; + clock-names = "ipg", "mclk"; }; /* PSC10 */ @@ -385,6 +470,9 @@ interrupts = <40 0x8>; fsl,rx-fifo-size = <16>; fsl,tx-fifo-size = <16>; + clocks = <&clks MPC512x_CLK_PSC10>, + <&clks MPC512x_CLK_PSC10_MCLK>; + clock-names = "ipg", "mclk"; }; /* PSC11 */ @@ -394,12 +482,17 @@ interrupts = <40 0x8>; fsl,rx-fifo-size = <16>; fsl,tx-fifo-size = <16>; + clocks = <&clks MPC512x_CLK_PSC11>, + <&clks MPC512x_CLK_PSC11_MCLK>; + clock-names = "ipg", "mclk"; }; pscfifo@11f00 { compatible = "fsl,mpc5121-psc-fifo"; reg = <0x11f00 0x100>; interrupts = <40 0x8>; + clocks = <&clks MPC512x_CLK_PSC_FIFO>; + clock-names = "ipg"; }; dma0: dma@14000 { @@ -417,6 +510,8 @@ #address-cells = <3>; #size-cells = <2>; #interrupt-cells = <1>; + clocks = <&clks MPC512x_CLK_PCI>; + clock-names = "ipg"; reg = <0x80008500 0x100 /* internal registers */ 0x80008300 0x8>; /* config space access registers */ -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 11+ messages in thread
[parent not found: <1385851897-23475-7-git-send-email-gsi-ynQEQJNshbs@public.gmane.org>]
* Re: [PATCH v6 06/17] dts: mpc512x: add clock specs for client lookups [not found] ` <1385851897-23475-7-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> @ 2013-12-07 9:41 ` Anatolij Gustschin 0 siblings, 0 replies; 11+ messages in thread From: Anatolij Gustschin @ 2013-12-07 9:41 UTC (permalink / raw) To: Gerhard Sittig Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ, Mike Turquette, Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA On Sat, 30 Nov 2013 23:51:26 +0100 Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org> wrote: > this addresses the client side of device tree based clock lookups > > add clock specifiers to the mbx, nfc, mscan, sdhc, i2c, axe, diu, viu, > mdio, fec, usb, pata, psc, psc fifo, and pci nodes in the shared > mpc5121.dtsi include > > Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org> > Cc: Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org> > Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org> > Cc: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> > Cc: Ian Campbell <ian.campbell-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org> > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org > Reviewed-by: Mike Turquette <mturquette-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> # for v3: w/o bdlc, PSC ipg > Signed-off-by: Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org> > --- > arch/powerpc/boot/dts/mpc5121.dtsi | 95 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 95 insertions(+) applied to next. Thanks! Anatolij -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-12-07 9:41 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-11-30 22:51 [PATCH v6 00/17] add COMMON_CLK support for PowerPC MPC512x Gerhard Sittig [not found] ` <1385851897-23475-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> 2013-11-30 22:51 ` [PATCH v6 02/17] dts: mpc512x: introduce dt-bindings/clock/ header Gerhard Sittig 2013-12-02 9:46 ` Mark Rutland [not found] ` <20131202094656.GA12952-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org> 2013-12-02 14:20 ` [PATCH v1 1/1] dts: bindings: add mpc5121 clocks binding document Gerhard Sittig [not found] ` <1385994034-2513-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> 2013-12-02 16:55 ` Gerhard Sittig 2013-12-02 14:25 ` [PATCH v6 02/17] dts: mpc512x: introduce dt-bindings/clock/ header Gerhard Sittig [not found] ` <1385851897-23475-3-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> 2013-12-07 9:32 ` Anatolij Gustschin 2013-11-30 22:51 ` [PATCH v6 03/17] dts: mpc512x: add clock related device tree specs Gerhard Sittig [not found] ` <1385851897-23475-4-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> 2013-12-07 9:34 ` Anatolij Gustschin 2013-11-30 22:51 ` [PATCH v6 06/17] dts: mpc512x: add clock specs for client lookups Gerhard Sittig [not found] ` <1385851897-23475-7-git-send-email-gsi-ynQEQJNshbs@public.gmane.org> 2013-12-07 9:41 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).