ARM: at91: dt: enable usb ohci for sam9g20, sam9g45 amd sam9x5
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: devicetree-discuss@lists.ozlabs.org
This commit is contained in:
parent
2419730f8f
commit
6a06245990
|
@ -208,6 +208,13 @@
|
||||||
>;
|
>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
usb0: ohci@00500000 {
|
||||||
|
compatible = "atmel,at91rm9200-ohci", "usb-ohci";
|
||||||
|
reg = <0x00500000 0x100000>;
|
||||||
|
interrupts = <20 4>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
i2c@0 {
|
i2c@0 {
|
||||||
|
|
|
@ -33,5 +33,13 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
usb0: ohci@00600000 {
|
||||||
|
status = "okay";
|
||||||
|
num-ports = <2>;
|
||||||
|
atmel,vbus-gpio = <&pioD 19 0
|
||||||
|
&pioD 20 0
|
||||||
|
>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -217,6 +217,13 @@
|
||||||
>;
|
>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
usb0: ohci@00700000 {
|
||||||
|
compatible = "atmel,at91rm9200-ohci", "usb-ohci";
|
||||||
|
reg = <0x00700000 0x100000>;
|
||||||
|
interrupts = <22 4>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
i2c@0 {
|
i2c@0 {
|
||||||
|
|
|
@ -68,7 +68,13 @@
|
||||||
label = "data";
|
label = "data";
|
||||||
reg = <0x4000000 0xC000000>;
|
reg = <0x4000000 0xC000000>;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
usb0: ohci@00700000 {
|
||||||
|
status = "okay";
|
||||||
|
num-ports = <2>;
|
||||||
|
atmel,vbus-gpio = <&pioD 1 0
|
||||||
|
&pioD 3 0>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -207,6 +207,13 @@
|
||||||
>;
|
>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
usb0: ohci@00600000 {
|
||||||
|
compatible = "atmel,at91rm9200-ohci", "usb-ohci";
|
||||||
|
reg = <0x00600000 0x100000>;
|
||||||
|
interrupts = <22 4>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
i2c@0 {
|
i2c@0 {
|
||||||
|
|
|
@ -84,6 +84,11 @@
|
||||||
reg = <0x7ca0000 0x8360000>;
|
reg = <0x7ca0000 0x8360000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
usb0: ohci@00500000 {
|
||||||
|
num-ports = <2>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
|
|
|
@ -216,6 +216,7 @@ static struct clk_lookup periph_clocks_lookups[] = {
|
||||||
CLKDEV_CON_DEV_ID("t0_clk", "fffdc000.timer", &tc3_clk),
|
CLKDEV_CON_DEV_ID("t0_clk", "fffdc000.timer", &tc3_clk),
|
||||||
CLKDEV_CON_DEV_ID("t1_clk", "fffdc000.timer", &tc4_clk),
|
CLKDEV_CON_DEV_ID("t1_clk", "fffdc000.timer", &tc4_clk),
|
||||||
CLKDEV_CON_DEV_ID("t2_clk", "fffdc000.timer", &tc5_clk),
|
CLKDEV_CON_DEV_ID("t2_clk", "fffdc000.timer", &tc5_clk),
|
||||||
|
CLKDEV_CON_DEV_ID("hclk", "500000.ohci", &ohci_clk),
|
||||||
/* fake hclk clock */
|
/* fake hclk clock */
|
||||||
CLKDEV_CON_DEV_ID("hclk", "at91_ohci", &ohci_clk),
|
CLKDEV_CON_DEV_ID("hclk", "at91_ohci", &ohci_clk),
|
||||||
CLKDEV_CON_ID("pioA", &pioA_clk),
|
CLKDEV_CON_ID("pioA", &pioA_clk),
|
||||||
|
|
|
@ -232,6 +232,7 @@ static struct clk_lookup periph_clocks_lookups[] = {
|
||||||
/* more tc lookup table for DT entries */
|
/* more tc lookup table for DT entries */
|
||||||
CLKDEV_CON_DEV_ID("t0_clk", "fff7c000.timer", &tcb0_clk),
|
CLKDEV_CON_DEV_ID("t0_clk", "fff7c000.timer", &tcb0_clk),
|
||||||
CLKDEV_CON_DEV_ID("t0_clk", "fffd4000.timer", &tcb0_clk),
|
CLKDEV_CON_DEV_ID("t0_clk", "fffd4000.timer", &tcb0_clk),
|
||||||
|
CLKDEV_CON_DEV_ID("hclk", "700000.ohci", &uhphs_clk),
|
||||||
/* fake hclk clock */
|
/* fake hclk clock */
|
||||||
CLKDEV_CON_DEV_ID("hclk", "at91_ohci", &uhphs_clk),
|
CLKDEV_CON_DEV_ID("hclk", "at91_ohci", &uhphs_clk),
|
||||||
CLKDEV_CON_ID("pioA", &pioA_clk),
|
CLKDEV_CON_ID("pioA", &pioA_clk),
|
||||||
|
|
|
@ -131,7 +131,7 @@ static struct clk dma1_clk = {
|
||||||
.type = CLK_TYPE_PERIPHERAL,
|
.type = CLK_TYPE_PERIPHERAL,
|
||||||
};
|
};
|
||||||
static struct clk uhphs_clk = {
|
static struct clk uhphs_clk = {
|
||||||
.name = "uhphs_clk",
|
.name = "uhphs",
|
||||||
.pmc_mask = 1 << AT91SAM9X5_ID_UHPHS,
|
.pmc_mask = 1 << AT91SAM9X5_ID_UHPHS,
|
||||||
.type = CLK_TYPE_PERIPHERAL,
|
.type = CLK_TYPE_PERIPHERAL,
|
||||||
};
|
};
|
||||||
|
@ -230,6 +230,8 @@ static struct clk_lookup periph_clocks_lookups[] = {
|
||||||
/* additional fake clock for macb_hclk */
|
/* additional fake clock for macb_hclk */
|
||||||
CLKDEV_CON_DEV_ID("hclk", "f802c000.ethernet", &macb0_clk),
|
CLKDEV_CON_DEV_ID("hclk", "f802c000.ethernet", &macb0_clk),
|
||||||
CLKDEV_CON_DEV_ID("hclk", "f8030000.ethernet", &macb1_clk),
|
CLKDEV_CON_DEV_ID("hclk", "f8030000.ethernet", &macb1_clk),
|
||||||
|
CLKDEV_CON_DEV_ID("hclk", "600000.ohci", &uhphs_clk),
|
||||||
|
CLKDEV_CON_DEV_ID("ohci_clk", "600000.ohci", &uhphs_clk),
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue