-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'imx-soc-4.3' of git://git.kernel.org/pub/scm/linux/kernel/…
…git/shawnguo/linux into next/soc The i.MX SoC changes for 4.3: - Add i.MX6 Ultralite SoC support, which is the newest addition to i.MX6 family. It integrates a single Cortex-A7 core and a power management module that reduces the complexity of external power supply and simplifies power sequencing. - Change SNVS RTC driver to use syscon interface for register access, and add SNVS power key driver support. - Add a second clock for mxc rtc driver, and support device tree probe for the driver. - Add FEC MAC reference clock and phy fixup initialization for i.MX6UL platform. * tag 'imx-soc-4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux: rtc: snvs: select option REGMAP_MMIO ARM: imx6ul: add fec MAC refrence clock and phy fixup init ARM: imx6ul: add fec bits to GPR syscon definition rtc: mxc: add support of device tree dt-binding: document the binding for mxc rtc rtc: mxc: use a second rtc clock input: snvs_pwrkey: use "wakeup-source" as deivce tree property name Document: devicetree: input: imx: i.mx snvs power device tree bindings input: keyboard: imx: add snvs power key driver Document: dt: fsl: snvs: change support syscon rtc: snvs: use syscon to access register ARM: imx: add low-level debug support for i.mx6ul ARM: imx: add i.mx6ul msl support Signed-off-by: Olof Johansson <olof@lixom.net>
- Loading branch information
Showing
17 changed files
with
592 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
See Documentation/devicetree/bindings/crypto/fsl-sec4.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
* Real Time Clock of the i.MX SoCs | ||
|
||
RTC controller for the i.MX SoCs | ||
|
||
Required properties: | ||
- compatible: Should be "fsl,imx1-rtc" or "fsl,imx21-rtc". | ||
- reg: physical base address of the controller and length of memory mapped | ||
region. | ||
- interrupts: IRQ line for the RTC. | ||
- clocks: should contain two entries: | ||
* one for the input reference | ||
* one for the the SoC RTC | ||
- clock-names: should contain: | ||
* "ref" for the input reference clock | ||
* "ipg" for the SoC RTC clock | ||
|
||
Example: | ||
|
||
rtc@10007000 { | ||
compatible = "fsl,imx21-rtc"; | ||
reg = <0x10007000 0x1000>; | ||
interrupts = <22>; | ||
clocks = <&clks IMX27_CLK_CKIL>, | ||
<&clks IMX27_CLK_RTC_IPG_GATE>; | ||
clock-names = "ref", "ipg"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/* | ||
* Copyright (C) 2015 Freescale Semiconductor, Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
#include <linux/irqchip.h> | ||
#include <linux/mfd/syscon.h> | ||
#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h> | ||
#include <linux/micrel_phy.h> | ||
#include <linux/of_platform.h> | ||
#include <linux/phy.h> | ||
#include <linux/regmap.h> | ||
#include <asm/mach/arch.h> | ||
#include <asm/mach/map.h> | ||
|
||
#include "common.h" | ||
|
||
static void __init imx6ul_enet_clk_init(void) | ||
{ | ||
struct regmap *gpr; | ||
|
||
gpr = syscon_regmap_lookup_by_compatible("fsl,imx6ul-iomuxc-gpr"); | ||
if (!IS_ERR(gpr)) | ||
regmap_update_bits(gpr, IOMUXC_GPR1, IMX6UL_GPR1_ENET_CLK_DIR, | ||
IMX6UL_GPR1_ENET_CLK_OUTPUT); | ||
else | ||
pr_err("failed to find fsl,imx6ul-iomux-gpr regmap\n"); | ||
|
||
} | ||
|
||
static int ksz8081_phy_fixup(struct phy_device *dev) | ||
{ | ||
if (dev && dev->interface == PHY_INTERFACE_MODE_MII) { | ||
phy_write(dev, 0x1f, 0x8110); | ||
phy_write(dev, 0x16, 0x201); | ||
} else if (dev && dev->interface == PHY_INTERFACE_MODE_RMII) { | ||
phy_write(dev, 0x1f, 0x8190); | ||
phy_write(dev, 0x16, 0x202); | ||
} | ||
|
||
return 0; | ||
} | ||
|
||
static void __init imx6ul_enet_phy_init(void) | ||
{ | ||
phy_register_fixup_for_uid(PHY_ID_KSZ8081, 0xffffffff, ksz8081_phy_fixup); | ||
} | ||
|
||
static inline void imx6ul_enet_init(void) | ||
{ | ||
imx6ul_enet_clk_init(); | ||
imx6ul_enet_phy_init(); | ||
} | ||
|
||
static void __init imx6ul_init_machine(void) | ||
{ | ||
struct device *parent; | ||
|
||
parent = imx_soc_device_init(); | ||
if (parent == NULL) | ||
pr_warn("failed to initialize soc device\n"); | ||
|
||
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | ||
imx6ul_enet_init(); | ||
imx_anatop_init(); | ||
} | ||
|
||
static void __init imx6ul_init_irq(void) | ||
{ | ||
imx_init_revision_from_anatop(); | ||
imx_src_init(); | ||
irqchip_init(); | ||
} | ||
|
||
static const char *imx6ul_dt_compat[] __initconst = { | ||
"fsl,imx6ul", | ||
NULL, | ||
}; | ||
|
||
DT_MACHINE_START(IMX6UL, "Freescale i.MX6 Ultralite (Device Tree)") | ||
.init_irq = imx6ul_init_irq, | ||
.init_machine = imx6ul_init_machine, | ||
.dt_compat = imx6ul_dt_compat, | ||
MACHINE_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.