ARM: zynq: DT: Use the right names for nodes
Subsystems (3)
PATCH 1/19 ARM: zynq: DT: Use the right names for nodes
Based on SPEC you right names with addresses.
---
Sync with the kernel
--- arch/arm/dts/zynq-7000.dtsi | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
arch/arm/dts/zynq-7000.dtsi +10 -10
@@ -51,7 +51,7 @@ interrupt-parent = <&intc>; ranges; - i2c0: zynq-i2c at e0004000 { + i2c0: i2c at e0004000 { compatible = "cdns,i2c-r1p10"; status = "disabled"; clocks = <&clkc 38>;
@@ -62,7 +62,7 @@ #size-cells = <0>; }; - i2c1: zynq-i2c at e0005000 { + i2c1: i2c at e0005000 { compatible = "cdns,i2c-r1p10"; status = "disabled"; clocks = <&clkc 39>;
@@ -82,7 +82,7 @@ <0xF8F00100 0x100>; }; - L2: cache-controller { + L2: cache-controller at f8f02000 { compatible = "arm,pl310-cache"; reg = <0xF8F02000 0x1000>; arm,data-latency = <3 2 2>;
@@ -91,7 +91,7 @@ cache-level = <2>; }; - uart0: uart at e0000000 { + uart0: serial at e0000000 { compatible = "xlnx,xuartps"; status = "disabled"; clocks = <&clkc 23>, <&clkc 40>;
@@ -100,7 +100,7 @@ interrupts = <0 27 4>; }; - uart1: uart at e0001000 { + uart1: serial at e0001000 { compatible = "xlnx,xuartps"; status = "disabled"; clocks = <&clkc 24>, <&clkc 41>;
@@ -153,7 +153,7 @@ clock-names = "pclk", "hclk", "tx_clk"; }; - sdhci0: ps7-sdhci at e0100000 { + sdhci0: sdhci at e0100000 { compatible = "arasan,sdhci-8.9a"; status = "disabled"; clock-names = "clk_xin", "clk_ahb";
@@ -163,7 +163,7 @@ reg = <0xe0100000 0x1000>; } ; - sdhci1: ps7-sdhci at e0101000 { + sdhci1: sdhci at e0101000 { compatible = "arasan,sdhci-8.9a"; status = "disabled"; clock-names = "clk_xin", "clk_ahb";
@@ -207,7 +207,7 @@ clocks = <&clkc 4>; }; - ttc0: ttc0 at f8001000 { + ttc0: timer at f8001000 { interrupt-parent = <&intc>; interrupts = < 0 10 4 0 11 4 0 12 4 >; compatible = "cdns,ttc";
@@ -215,14 +215,14 @@ reg = <0xF8001000 0x1000>; }; - ttc1: ttc1 at f8002000 { + ttc1: timer at f8002000 { interrupt-parent = <&intc>; interrupts = < 0 37 4 0 38 4 0 39 4 >; compatible = "cdns,ttc"; clocks = <&clkc 6>; reg = <0xF8002000 0x1000>; }; - scutimer: scutimer at f8f00600 { + scutimer: timer at f8f00600 { interrupt-parent = <&intc>; interrupts = < 1 13 0x301 >; compatible = "arm,cortex-a9-twd-timer";
Signature · 1 line
2.3.5
PATCH 2/19 ARM: zynq: DT: Add missing nodes to DTSI
Add ADC, CAN, GPIO, MC, DMA, DEVCFG, USB, Watchdog IPs to DTSI.
---
Sync with the kernel.
--- arch/arm/dts/zynq-7000.dtsi | 100 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+)
arch/arm/dts/zynq-7000.dtsi +100 -0
@@ -51,6 +51,48 @@ interrupt-parent = <&intc>; ranges; + adc: adc at f8007100 { + compatible = "xlnx,zynq-xadc-1.00.a"; + reg = <0xf8007100 0x20>; + interrupts = <0 7 4>; + interrupt-parent = <&intc>; + clocks = <&clkc 12>; + }; + + can0: can at e0008000 { + compatible = "xlnx,zynq-can-1.0"; + status = "disabled"; + clocks = <&clkc 19>, <&clkc 36>; + clock-names = "can_clk", "pclk"; + reg = <0xe0008000 0x1000>; + interrupts = <0 28 4>; + interrupt-parent = <&intc>; + tx-fifo-depth = <0x40>; + rx-fifo-depth = <0x40>; + }; + + can1: can at e0009000 { + compatible = "xlnx,zynq-can-1.0"; + status = "disabled"; + clocks = <&clkc 20>, <&clkc 37>; + clock-names = "can_clk", "pclk"; + reg = <0xe0009000 0x1000>; + interrupts = <0 51 4>; + interrupt-parent = <&intc>; + tx-fifo-depth = <0x40>; + rx-fifo-depth = <0x40>; + }; + + gpio0: gpio at e000a000 { + compatible = "xlnx,zynq-gpio-1.0"; + #gpio-cells = <2>; + clocks = <&clkc 42>; + gpio-controller; + interrupt-parent = <&intc>; + interrupts = <0 20 4>; + reg = <0xe000a000 0x1000>; + }; + i2c0: i2c at e0004000 { compatible = "cdns,i2c-r1p10"; status = "disabled";
@@ -91,6 +133,11 @@ cache-level = <2>; }; + mc: memory-controller at f8006000 { + compatible = "xlnx,zynq-ddrc-a05"; + reg = <0xf8006000 0x1000>; + }; + uart0: serial at e0000000 { compatible = "xlnx,xuartps"; status = "disabled";
@@ -199,6 +246,29 @@ }; }; + dmac_s: dmac at f8003000 { + compatible = "arm,pl330", "arm,primecell"; + reg = <0xf8003000 0x1000>; + interrupt-parent = <&intc>; + interrupt-names = "abort", "dma0", "dma1", "dma2", "dma3", + "dma4", "dma5", "dma6", "dma7"; + interrupts = <0 13 4>, + <0 14 4>, <0 15 4>, + <0 16 4>, <0 17 4>, + <0 40 4>, <0 41 4>, + <0 42 4>, <0 43 4>; + #dma-cells = <1>; + #dma-channels = <8>; + #dma-requests = <4>; + clocks = <&clkc 27>; + clock-names = "apb_pclk"; + }; + + devcfg: devcfg at f8007000 { + compatible = "xlnx,zynq-devcfg-1.0"; + reg = <0xf8007000 0x100>; + }; + global_timer: timer at f8f00200 { compatible = "arm,cortex-a9-global-timer"; reg = <0xf8f00200 0x20>;
@@ -222,6 +292,7 @@ clocks = <&clkc 6>; reg = <0xF8002000 0x1000>; }; + scutimer: timer at f8f00600 { interrupt-parent = <&intc>; interrupts = < 1 13 0x301 >;
@@ -229,5 +300,34 @@ reg = < 0xf8f00600 0x20 >; clocks = <&clkc 4>; } ; + + usb0: usb at e0002000 { + compatible = "xlnx,zynq-usb-2.20a", "chipidea,usb2"; + status = "disabled"; + clocks = <&clkc 28>; + interrupt-parent = <&intc>; + interrupts = <0 21 4>; + reg = <0xe0002000 0x1000>; + phy_type = "ulpi"; + }; + + usb1: usb at e0003000 { + compatible = "xlnx,zynq-usb-2.20a", "chipidea,usb2"; + status = "disabled"; + clocks = <&clkc 29>; + interrupt-parent = <&intc>; + interrupts = <0 44 4>; + reg = <0xe0003000 0x1000>; + phy_type = "ulpi"; + }; + + watchdog0: watchdog at f8005000 { + clocks = <&clkc 45>; + compatible = "cdns,wdt-r1p2"; + interrupt-parent = <&intc>; + interrupts = <0 9 1>; + reg = <0xf8005000 0x1000>; + timeout-sec = <10>; + }; }; };
Signature · 1 line
2.3.5
PATCH 3/19 ARM: zynq: DT: Add a fixed regulator for CPU voltage
In reply to Michal SimekTo silence the warning
cpufreq_cpu0: failed to get cpu0 regulator: -19
from the cpufreq driver regarding a missing regulator,
add a fixed regulator to the DT.
Zynq does not support voltage scaling and the CPU rail should always be supplied with 1 V, hence it is added in the SOC-level dtsi.
---
Sync with mainline kernel
--- arch/arm/dts/zynq-7000.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm/dts/zynq-7000.dtsi +10 -0
@@ -21,6 +21,7 @@ reg = <0>; clocks = <&clkc 3>; clock-latency = <1000>; + cpu0-supply = <®ulator_vccpint>; operating-points = < /* kHz uV */ 666667 1000000
@@ -44,6 +45,15 @@ reg = < 0xf8891000 0x1000 0xf8893000 0x1000 >; }; + regulator_vccpint: fixedregulator at 0 { + compatible = "regulator-fixed"; + regulator-name = "VCCPINT"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-boot-on; + regulator-always-on; + }; + amba { compatible = "simple-bus"; #address-cells = <1>;
Signature · 1 line
2.3.5
PATCH 4/19 ARM: zynq: DT: Migrate UART to Cadence binding
In reply to Michal SimekThe Zynq UART is Cadence IP and the driver has been renamed accordingly. Migrate the DT to use the new binding for the UART driver.
---
Mainline sync
--- arch/arm/dts/zynq-7000.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/dts/zynq-7000.dtsi +4 -4
@@ -149,19 +149,19 @@ }; uart0: serial at e0000000 { - compatible = "xlnx,xuartps"; + compatible = "xlnx,xuartps", "cdns,uart-r1p8"; status = "disabled"; clocks = <&clkc 23>, <&clkc 40>; - clock-names = "ref_clk", "aper_clk"; + clock-names = "uart_clk", "pclk"; reg = <0xE0000000 0x1000>; interrupts = <0 27 4>; }; uart1: serial at e0001000 { - compatible = "xlnx,xuartps"; + compatible = "xlnx,xuartps", "cdns,uart-r1p8"; status = "disabled"; clocks = <&clkc 24>, <&clkc 41>; - clock-names = "ref_clk", "aper_clk"; + clock-names = "uart_clk", "pclk"; reg = <0xE0001000 0x1000>; interrupts = <0 50 4>; };
Signature · 1 line
2.3.5
PATCH 5/19 ARM: zynq: DT: Remove 222 MHz OPP
In reply to Michal SimekDue to dependencies between timer and CPU frequency, only changes by powers of two are allowed. The clocksource driver prevents other changes, but with cpufreq and its governors it can result in being spammed with error messages constantly. Hence, remove the 222 MHz OPP.
---
From mainline
--- arch/arm/dts/zynq-7000.dtsi | 1 - 1 file changed, 1 deletion(-)
arch/arm/dts/zynq-7000.dtsi +0 -1
@@ -26,7 +26,6 @@ /* kHz uV */ 666667 1000000 333334 1000000 - 222223 1000000 >; };
Signature · 1 line
2.3.5
PATCH 6/19 spi: Fix zynq SPI binding
In reply to Michal SimekZynq is using Cadence IP where binding is documented in the Linux kernel and there is no reason to use different binding.
Synchronize it.
---
arch/arm/dts/zynq-7000.dtsi | 4 ++-- doc/device-tree-bindings/spi/spi-zynq.txt | 35 +++++++++++++++++-------------- drivers/spi/zynq_spi.c | 2 +- 3 files changed, 22 insertions(+), 19 deletions(-)
arch/arm/dts/zynq-7000.dtsi +2 -2
@@ -166,7 +166,7 @@ }; spi0: spi at e0006000 { - compatible = "xlnx,zynq-spi"; + compatible = "xlnx,zynq-spi-r1p6"; reg = <0xe0006000 0x1000>; status = "disabled"; interrupt-parent = <&intc>;
@@ -179,7 +179,7 @@ }; spi1: spi at e0007000 { - compatible = "xlnx,zynq-spi"; + compatible = "xlnx,zynq-spi-r1p6"; reg = <0xe0007000 0x1000>; status = "disabled"; interrupt-parent = <&intc>;
doc/device-tree-bindings/spi/spi-zynq.txt +19 -16
@@ -1,29 +1,32 @@ -Zynq SPI controller Device Tree Bindings ----------------------------------------- +Cadence SPI controller Device Tree Bindings +------------------------------------------- Required properties: -- compatible : Should be "xlnx,spi-zynq". +- compatible : Should be "cdns,spi-r1p6" or "xlnx,zynq-spi-r1p6". - reg : Physical base address and size of SPI registers map. -- status : Status will be disabled in dtsi and enabled in required dts. -- interrupt-parent : Must be core interrupt controller. - interrupts : Property with a value describing the interrupt number. -- clocks : Clock phandles (see clock bindings for details). +- interrupt-parent : Must be core interrupt controller - clock-names : List of input clock names - "ref_clk", "pclk" (See clock bindings for details). +- clocks : Clock phandles (see clock bindings for details). - spi-max-frequency : Maximum SPI clocking speed of device in Hz +Optional properties: +- num-cs : Number of chip selects used. + If a decoder is used, this will be the number of + chip selects after the decoder. +- is-decoded-cs : Flag to indicate whether decoder is used or not. + Example: - spi at e0006000 { - compatible = "xlnx,zynq-spi"; - reg = <0xe0006000 0x1000>; - status = "disabled"; - interrupt-parent = <&intc>; - interrupts = <0 26 4>; - clocks = <&clkc 25>, <&clkc 34>; + spi at e0007000 { + compatible = "xlnx,zynq-spi-r1p6"; clock-names = "ref_clk", "pclk"; - spi-max-frequency = <166666700>; - #address-cells = <1>; - #size-cells = <0>; + clocks = <&clkc 26>, <&clkc 35>; + interrupt-parent = <&intc>; + interrupts = <0 49 4>; + num-cs = <4>; + is-decoded-cs = <0>; + reg = <0xe0007000 0x1000>; } ;
drivers/spi/zynq_spi.c +1 -1
@@ -309,7 +309,7 @@ static const struct dm_spi_ops zynq_spi_ops = { };static const struct udevice_id zynq_spi_ids[] = { - { .compatible ="xlnx,zynq-spi" }, + { .compatible ="xlnx,zynq-spi-r1p6" }, { } };
Signature · 1 line
2.3.5
PATCH 6/19 spi: Fix zynq SPI binding
Quoted 5 lines · Michal Simek
Zynq is using Cadence IP where binding is documented in the Linux kernel and there is no reason to use different binding.
Synchronize it.Signed-off-by Michal Simek <[email protected]>
Updated patchwork, just take along with the series.
Quoted 96 lines
---
arch/arm/dts/zynq-7000.dtsi | 4 ++-- doc/device-tree-bindings/spi/spi-zynq.txt | 35 +++++++++++++++++-------------- drivers/spi/zynq_spi.c | 2 +- 3 files changed, 22 insertions(+), 19 deletions(-)arch/arm/dts/zynq-7000.dtsi +2
-2@@ -166,7 +166,7 @@ }; spi0: spi at e0006000 { - compatible = "xlnx,zynq-spi"; + compatible = "xlnx,zynq-spi-r1p6"; reg = <0xe0006000 0x1000>; status = "disabled"; interrupt-parent = <&intc>;@@ -179,7 +179,7 @@ }; spi1: spi at e0007000 { - compatible = "xlnx,zynq-spi"; + compatible = "xlnx,zynq-spi-r1p6"; reg = <0xe0007000 0x1000>; status = "disabled"; interrupt-parent = <&intc>;doc/device-tree-bindings/spi/spi-zynq.txt +19
-16@@ -1,29 +1,32 @@ -Zynq SPI controller Device Tree Bindings ----------------------------------------- +Cadence SPI controller Device Tree Bindings +------------------------------------------- Required properties: -- compatible : Should be "xlnx,spi-zynq". +- compatible : Should be "cdns,spi-r1p6" or "xlnx,zynq-spi-r1p6". - reg : Physical base address and size of SPI registers map. -- status : Status will be disabled in dtsi and enabled in required dts. -- interrupt-parent : Must be core interrupt controller. - interrupts : Property with a value describing the interrupt number. -- clocks : Clock phandles (see clock bindings for details). +- interrupt-parent : Must be core interrupt controller - clock-names : List of input clock names - "ref_clk", "pclk" (See clock bindings for details). +- clocks : Clock phandles (see clock bindings for details). - spi-max-frequency : Maximum SPI clocking speed of device in Hz +Optional properties: +- num-cs : Number of chip selects used. + If a decoder is used, this will be the number of + chip selects after the decoder. +- is-decoded-cs : Flag to indicate whether decoder is used or not. + Example: - spi at e0006000 { - compatible = "xlnx,zynq-spi"; - reg = <0xe0006000 0x1000>; - status = "disabled"; - interrupt-parent = <&intc>; - interrupts = <0 26 4>; - clocks = <&clkc 25>, <&clkc 34>; + spi at e0007000 { + compatible = "xlnx,zynq-spi-r1p6"; clock-names = "ref_clk", "pclk"; - spi-max-frequency = <166666700>; - #address-cells = <1>; - #size-cells = <0>; + clocks = <&clkc 26>, <&clkc 35>; + interrupt-parent = <&intc>; + interrupts = <0 49 4>; + num-cs = <4>; + is-decoded-cs = <0>; + reg = <0xe0007000 0x1000>; } ;drivers/spi/zynq_spi.c +1
-2@@ -309,7 +309,7 @@ static const struct dm_spi_ops zynq_spi_ops = { };static const struct udevice_id zynq_spi_ids[] = { - { .compatible ="xlnx,zynq-spi" }, + { .compatible ="xlnx,zynq-spi-r1p6" }, { } }; --
Quoted 1 line
2.3.5
thanks!
Signature · 1 line
Jagan | openedev.
PATCH 7/19 ARM: zynq: DT: Fix GEM register area size
In reply to Michal SimekThe size of the GEM's register area is only 0x1000 bytes.
---
Sync from the kernel
--- arch/arm/dts/zynq-7000.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/dts/zynq-7000.dtsi +2 -2
@@ -193,7 +193,7 @@ gem0: ethernet at e000b000 { compatible = "cdns,gem"; - reg = <0xe000b000 0x4000>; + reg = <0xe000b000 0x1000>; status = "disabled"; interrupts = <0 22 4>; clocks = <&clkc 30>, <&clkc 30>, <&clkc 13>;
@@ -202,7 +202,7 @@ gem1: ethernet at e000c000 { compatible = "cdns,gem"; - reg = <0xe000c000 0x4000>; + reg = <0xe000c000 0x1000>; status = "disabled"; interrupts = <0 45 4>; clocks = <&clkc 31>, <&clkc 31>, <&clkc 14>;
Signature · 1 line
2.3.5
PATCH 8/19 ARM: zynq: DT: Use the zynq binding with macb
In reply to Michal SimekUse the new zynq binding for macb ethernet, since it will disable half duplex gigabit like the Zynq TRM says to do. Also allow the compatible cadence gem binding that won't disable half duplex but works otherwise.
---
From the kernel.
--- arch/arm/dts/zynq-7000.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/dts/zynq-7000.dtsi +2 -2
@@ -192,7 +192,7 @@ }; gem0: ethernet at e000b000 { - compatible = "cdns,gem"; + compatible = "cdns,zynq-gem", "cdns,gem"; reg = <0xe000b000 0x1000>; status = "disabled"; interrupts = <0 22 4>;
@@ -201,7 +201,7 @@ }; gem1: ethernet at e000c000 { - compatible = "cdns,gem"; + compatible = "cdns,zynq-gem", "cdns,gem"; reg = <0xe000c000 0x1000>; status = "disabled"; interrupts = <0 45 4>;
Signature · 1 line
2.3.5
PATCH 9/19 ARM: zynq: DT: Clean up timer device tree nodes
In reply to Michal SimekSeparate IRQ cells from each other for easier reading.
---
Sync with mainline kernel
--- arch/arm/dts/zynq-7000.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/dts/zynq-7000.dtsi +2 -2
@@ -288,7 +288,7 @@ ttc0: timer at f8001000 { interrupt-parent = <&intc>; - interrupts = < 0 10 4 0 11 4 0 12 4 >; + interrupts = <0 10 4>, <0 11 4>, <0 12 4>; compatible = "cdns,ttc"; clocks = <&clkc 6>; reg = <0xF8001000 0x1000>;
@@ -296,7 +296,7 @@ ttc1: timer at f8002000 { interrupt-parent = <&intc>; - interrupts = < 0 37 4 0 38 4 0 39 4 >; + interrupts = <0 37 4>, <0 38 4>, <0 39 4>; compatible = "cdns,ttc"; clocks = <&clkc 6>; reg = <0xF8002000 0x1000>;
Signature · 1 line
2.3.5
PATCH 10/19 ARM: zynq: DT: Cleanup address-cells and size-cells
In reply to Michal SimekRemove unneeded address-cells form intc node because it is already setup in parent node.
Add missing address-cells and size-cells to eth node to be shared for every platform DTSes.
---
Sync with mainline.
--- arch/arm/dts/zynq-7000.dtsi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
arch/arm/dts/zynq-7000.dtsi +4 -1
@@ -127,7 +127,6 @@ intc: interrupt-controller at f8f01000 { compatible = "arm,cortex-a9-gic"; #interrupt-cells = <3>; - #address-cells = <1>; interrupt-controller; reg = <0xF8F01000 0x1000>, <0xF8F00100 0x100>;
@@ -198,6 +197,8 @@ interrupts = <0 22 4>; clocks = <&clkc 30>, <&clkc 30>, <&clkc 13>; clock-names = "pclk", "hclk", "tx_clk"; + #address-cells = <1>; + #size-cells = <0>; }; gem1: ethernet at e000c000 {
@@ -207,6 +208,8 @@ interrupts = <0 45 4>; clocks = <&clkc 31>, <&clkc 31>, <&clkc 14>; clock-names = "pclk", "hclk", "tx_clk"; + #address-cells = <1>; + #size-cells = <0>; }; sdhci0: sdhci at e0100000 {
Signature · 1 line
2.3.5
PATCH 11/19 ARM: zynq: DT: Add pinctrl node
In reply to Michal SimekAdd pinctrl node to DTSI.
---
Sync with mainline.
--- arch/arm/dts/zynq-7000.dtsi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
arch/arm/dts/zynq-7000.dtsi +7 -1
@@ -235,7 +235,7 @@ slcr: slcr at f8000000 { #address-cells = <1>; #size-cells = <1>; - compatible = "xlnx,zynq-slcr", "syscon"; + compatible = "xlnx,zynq-slcr", "syscon", "simple-bus"; reg = <0xF8000000 0x1000>; ranges; clkc: clkc at 100 {
@@ -256,6 +256,12 @@ "dbg_trc", "dbg_apb"; reg = <0x100 0x100>; }; + + pinctrl0: pinctrl at 700 { + compatible = "xlnx,pinctrl-zynq"; + reg = <0x700 0x200>; + syscon = <&slcr>; + }; }; dmac_s: dmac at f8003000 {
Signature · 1 line
2.3.5
PATCH 12/19 ARM: zynq: DT: Add reference to bus node
In reply to Michal SimekFor adding OCM memory in platform DTS is necessary to have reference to amba bus.
---
Sync with mainline.
--- arch/arm/dts/zynq-7000.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/zynq-7000.dtsi +1 -1
@@ -53,7 +53,7 @@ regulator-always-on; }; - amba { + amba: amba { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
Signature · 1 line
2.3.5
PATCH 13/19 ARM: zynq: DT: Sync zc702/zc706/zed/zybo DT with kernel
In reply to Michal SimekSyncup with the latest DT from the Linux kernel.
---
arch/arm/dts/zynq-zc702.dts | 351 +++++++++++++++++++++++++++++++++++++++++++- arch/arm/dts/zynq-zc706.dts | 293 +++++++++++++++++++++++++++++++++++- arch/arm/dts/zynq-zed.dts | 46 +++++- arch/arm/dts/zynq-zybo.dts | 38 ++++- 4 files changed, 715 insertions(+), 13 deletions(-)
arch/arm/dts/zynq-zc702.dts +348 -3
@@ -1,7 +1,8 @@ /* * Xilinx ZC702 board DTS * - * Copyright (C) 2013 Xilinx, Inc. + * Copyright (C) 2011 - 2015 Xilinx + * Copyright (C) 2012 National Instruments Corp. * * SPDX-License-Identifier: GPL-2.0+ */
@@ -9,15 +10,359 @@ #include "zynq-7000.dtsi" / { - model = "Zynq ZC702 Board"; + model = "Zynq ZC702 Development Board"; compatible = "xlnx,zynq-zc702", "xlnx,zynq-7000"; aliases { + ethernet0 = &gem0; + i2c0 = &i2c0; serial0 = &uart1; }; memory { device_type = "memory"; - reg = <0 0x40000000>; + reg = <0x0 0x40000000>; }; + + chosen { + bootargs = "earlyprintk"; + stdout-path = "serial0:115200n8"; + }; + + leds { + compatible = "gpio-leds"; + + ds23 { + label = "ds23"; + gpios = <&gpio0 10 0>; + linux,default-trigger = "heartbeat"; + }; + }; + + usb_phy0: phy0 { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; + }; +}; + +&amba { + ocm: sram at fffc0000 { + compatible = "mmio-sram"; + reg = <0xfffc0000 0x10000>; + }; +}; + +&can0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_can0_default>; +}; + +&clkc { + ps-clk-frequency = <33333333>; +}; + +&gem0 { + status = "okay"; + phy-mode = "rgmii-id"; + phy-handle = <ðernet_phy>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gem0_default>; + + ethernet_phy: ethernet-phy at 7 { + reg = <7>; + }; +}; + +&gpio0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio0_default>; +}; + +&i2c0 { + status = "okay"; + clock-frequency = <400000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c0_default>; + + i2cswitch at 74 { + compatible = "nxp,pca9548"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x74>; + + i2c at 0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + si570: clock-generator at 5d { + #clock-cells = <0>; + compatible = "silabs,si570"; + temperature-stability = <50>; + reg = <0x5d>; + factory-fout = <156250000>; + clock-frequency = <148500000>; + }; + }; + + i2c at 2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + eeprom at 54 { + compatible = "at,24c08"; + reg = <0x54>; + }; + }; + + i2c at 3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + gpio at 21 { + compatible = "ti,tca6416"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + }; + + i2c at 4 { + #address-cells = <1>; + #size-cells = <0>; + reg = <4>; + rtc at 51 { + compatible = "nxp,pcf8563"; + reg = <0x51>; + }; + }; + + i2c at 7 { + #address-cells = <1>; + #size-cells = <0>; + reg = <7>; + hwmon at 52 { + compatible = "ti,ucd9248"; + reg = <52>; + }; + hwmon at 53 { + compatible = "ti,ucd9248"; + reg = <53>; + }; + hwmon at 54 { + compatible = "ti,ucd9248"; + reg = <54>; + }; + }; + }; +}; + +&pinctrl0 { + pinctrl_can0_default: can0-default { + mux { + function = "can0"; + groups = "can0_9_grp"; + }; + + conf { + groups = "can0_9_grp"; + slew-rate = <0>; + io-standard = <1>; + }; + + conf-rx { + pins = "MIO46"; + bias-high-impedance; + }; + + conf-tx { + pins = "MIO47"; + bias-disable; + }; + }; + + pinctrl_gem0_default: gem0-default { + mux { + function = "ethernet0"; + groups = "ethernet0_0_grp"; + }; + + conf { + groups = "ethernet0_0_grp"; + slew-rate = <0>; + io-standard = <4>; + }; + + conf-rx { + pins = "MIO22", "MIO23", "MIO24", "MIO25", "MIO26", "MIO27"; + bias-high-impedance; + low-power-disable; + }; + + conf-tx { + pins = "MIO16", "MIO17", "MIO18", "MIO19", "MIO20", "MIO21"; + bias-disable; + low-power-enable; + }; + + mux-mdio { + function = "mdio0"; + groups = "mdio0_0_grp"; + }; + + conf-mdio { + groups = "mdio0_0_grp"; + slew-rate = <0>; + io-standard = <1>; + bias-disable; + }; + }; + + pinctrl_gpio0_default: gpio0-default { + mux { + function = "gpio0"; + groups = "gpio0_7_grp", "gpio0_8_grp", "gpio0_9_grp", + "gpio0_10_grp", "gpio0_11_grp", "gpio0_12_grp", + "gpio0_13_grp", "gpio0_14_grp"; + }; + + conf { + groups = "gpio0_7_grp", "gpio0_8_grp", "gpio0_9_grp", + "gpio0_10_grp", "gpio0_11_grp", "gpio0_12_grp", + "gpio0_13_grp", "gpio0_14_grp"; + slew-rate = <0>; + io-standard = <1>; + }; + + conf-pull-up { + pins = "MIO9", "MIO10", "MIO11", "MIO12", "MIO13", "MIO14"; + bias-pull-up; + }; + + conf-pull-none { + pins = "MIO7", "MIO8"; + bias-disable; + }; + }; + + pinctrl_i2c0_default: i2c0-default { + mux { + groups = "i2c0_10_grp"; + function = "i2c0"; + }; + + conf { + groups = "i2c0_10_grp"; + bias-pull-up; + slew-rate = <0>; + io-standard = <1>; + }; + }; + + pinctrl_sdhci0_default: sdhci0-default { + mux { + groups = "sdio0_2_grp"; + function = "sdio0"; + }; + + conf { + groups = "sdio0_2_grp"; + slew-rate = <0>; + io-standard = <1>; + bias-disable; + }; + + mux-cd { + groups = "gpio0_0_grp"; + function = "sdio0_cd"; + }; + + conf-cd { + groups = "gpio0_0_grp"; + bias-high-impedance; + bias-pull-up; + slew-rate = <0>; + io-standard = <1>; + }; + + mux-wp { + groups = "gpio0_15_grp"; + function = "sdio0_wp"; + }; + + conf-wp { + groups = "gpio0_15_grp"; + bias-high-impedance; + bias-pull-up; + slew-rate = <0>; + io-standard = <1>; + }; + }; + + pinctrl_uart1_default: uart1-default { + mux { + groups = "uart1_10_grp"; + function = "uart1"; + }; + + conf { + groups = "uart1_10_grp"; + slew-rate = <0>; + io-standard = <1>; + }; + + conf-rx { + pins = "MIO49"; + bias-high-impedance; + }; + + conf-tx { + pins = "MIO48"; + bias-disable; + }; + }; + + pinctrl_usb0_default: usb0-default { + mux { + groups = "usb0_0_grp"; + function = "usb0"; + }; + + conf { + groups = "usb0_0_grp"; + slew-rate = <0>; + io-standard = <1>; + }; + + conf-rx { + pins = "MIO29", "MIO31", "MIO36"; + bias-high-impedance; + }; + + conf-tx { + pins = "MIO28", "MIO30", "MIO32", "MIO33", "MIO34", + "MIO35", "MIO37", "MIO38", "MIO39"; + bias-disable; + }; + }; +}; + +&sdhci0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sdhci0_default>; +}; + +&uart1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart1_default>; +}; + +&usb0 { + status = "okay"; + dr_mode = "host"; + usb-phy = <&usb_phy0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb0_default>; };
arch/arm/dts/zynq-zc706.dts +290 -3
312 lines not on this page · raw message
arch/arm/dts/zynq-zed.dts +43 -3
65 lines not on this page · raw message
arch/arm/dts/zynq-zybo.dts +34 -4
@@ -1,7 +1,8 @@ /* * Digilent ZYBO board DTS * - * Copyright (C) 2013 Xilinx, Inc. + * Copyright (C) 2011 - 2015 Xilinx + * Copyright (C) 2012 National Instruments Corp. * * SPDX-License-Identifier: GPL-2.0+ */
@@ -9,15 +10,44 @@ #include "zynq-7000.dtsi" / { - model = "Zynq ZYBO Board"; - compatible = "xlnx,zynq-zybo", "xlnx,zynq-7000"; + model = "Zynq ZYBO Development Board"; + compatible = "digilent,zynq-zybo", "xlnx,zynq-7000"; aliases { + ethernet0 = &gem0; serial0 = &uart1; }; memory { device_type = "memory"; - reg = <0 0x20000000>; + reg = <0x0 0x20000000>; }; + + chosen { + bootargs = "earlyprintk"; + stdout-path = "serial0:115200n8"; + }; + +}; + +&clkc { + ps-clk-frequency = <50000000>; +}; + +&gem0 { + status = "okay"; + phy-mode = "rgmii-id"; + phy-handle = <ðernet_phy>; + + ethernet_phy: ethernet-phy at 0 { + reg = <0>; + }; +}; + +&sdhci0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; };
Signature · 1 line
2.3.5
PATCH 14/19 ARM: zynq: DT: Update years in copyright
In reply to Michal SimekTrivial.
---
DTSI are coming from the same source that's why I have synced years according the Linux kernel.
--- arch/arm/dts/zynq-7000.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/zynq-7000.dtsi +1 -1
@@ -2,7 +2,7 @@ * Xilinx Zynq 7000 DTSI * Describes the hardware common to all Zynq 7000-based boards. * - * Copyright (C) 2013 Xilinx, Inc. + * Copyright (C) 2011 - 2015 Xilinx * * SPDX-License-Identifier: GPL-2.0+ */
Signature · 1 line
2.3.5
PATCH 15/19 ARM: zynq: DT: Get rid of ps-clk-frequency
In reply to Michal Simekps-clk-frequency is platform specific setting and shouldn't be the part of DTSI.
---
Sync with mainline.
--- arch/arm/dts/zynq-7000.dtsi | 1 - 1 file changed, 1 deletion(-)
arch/arm/dts/zynq-7000.dtsi +0 -1
@@ -241,7 +241,6 @@ clkc: clkc at 100 { #clock-cells = <1>; compatible = "xlnx,ps7-clkc"; - ps-clk-frequency = <33333333>; fclk-enable = <0>; clock-output-names = "armpll", "ddrpll", "iopll", "cpu_6or4x", "cpu_3or2x", "cpu_2x", "cpu_1x", "ddr2x", "ddr3x",
Signature · 1 line
2.3.5
PATCH 15/19 ARM: zynq: DT: Get rid of ps-clk-frequency
Quoted 17 lines · Michal Simek
ps-clk-frequency is platform specific setting and shouldn't be the part of DTSI.
Signed-off-by Michal Simek <[email protected]>---
Sync with mainline.
--- arch/arm/dts/zynq-7000.dtsi | 1 - 1 file changed, 1 deletion(-)arch/arm/dts/zynq-7000.dtsi +0
-0
arch/arm/dts/zynq-7000.dtsi line 244
Quoted 4 lines
arch/arm/dts/zynq-7000.dtsi +0
-1@@ -241,7 +241,6 @@ clkc: clkc at 100 { #clock-cells = <1>; compatible = "xlnx,ps7-clkc"; - ps-clk-frequency = <33333333>;
If you remove it here, shouldn't it be added in the board dts files at the same time (the Linux implementation may default to 33MHz, but that is implementation and not guaranteed according to the bindings)?
S?ren
PATCH 15/19 ARM: zynq: DT: Get rid of ps-clk-frequency
Quoted 13 lines · S?ren Brinkmann
Quoted 12 lines · Michal Simek
ps-clk-frequency is platform specific setting and shouldn't be the part of DTSI.
Signed-off-by Michal Simek <[email protected]>---
Sync with mainline.
--- arch/arm/dts/zynq-7000.dtsi | 1 - 1 file changed, 1 deletion(-)
Quoted 13 lines
arch/arm/dts/zynq-7000.dtsi line 244
Quoted 9 lines
arch/arm/dts/zynq-7000.dtsi +0
-1@@ -241,7 +241,6 @@ clkc: clkc at 100 { #clock-cells = <1>; compatible = "xlnx,ps7-clkc"; - ps-clk-frequency = <33333333>;If you remove it here, shouldn't it be added in the board dts files at the same time (the Linux implementation may default to 33MHz, but that is implementation and not guaranteed according to the bindings)?
If you look it is already there and platform with full description are rewriting it. Platform without full description are useless for Linux anyway.
Thanks,
Michal
PATCH 16/19 ARM: zynq: DT: Add missing interrupt for L2 pl310
In reply to Michal SimekAdd pl310 interrupt to the Zynq devicetree.
---
arch/arm/dts/zynq-7000.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm/dts/zynq-7000.dtsi +1 -0
@@ -135,6 +135,7 @@ L2: cache-controller at f8f02000 { compatible = "arm,pl310-cache"; reg = <0xF8F02000 0x1000>; + interrupts = <0 2 4>; arm,data-latency = <3 2 2>; arm,tag-latency = <2 2 2>; cache-unified;
Signature · 1 line
2.3.5
PATCH 17/19 ARM: zynq: DT: Add zc702 pushbuttons to DT as gpio-keys
In reply to Michal SimekAdds the two MIO connected pushbuttons on the zc702 board to the devicetree as a single multi-key device for us with the gpio-keys driver.
---
arch/arm/dts/zynq-zc702.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
arch/arm/dts/zynq-zc702.dts +21 -0
@@ -29,6 +29,27 @@ stdout-path = "serial0:115200n8"; }; + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + sw14 { + label = "sw14"; + gpios = <&gpio0 12 0>; + linux,code = <108>; /* down */ + gpio-key,wakeup; + autorepeat; + }; + sw13 { + label = "sw13"; + gpios = <&gpio0 14 0>; + linux,code = <103>; /* up */ + gpio-key,wakeup; + autorepeat; + }; + }; + leds { compatible = "gpio-leds";
Signature · 1 line
2.3.5
PATCH 18/19 ARM: zynq: DT: Update zc770 dtses
In reply to Michal SimekPlatform DTSes are missing content needed for platform to be able to use OF binding and DM.
---
arch/arm/dts/zynq-zc770-xm010.dts | 75 ++++++++++++++++++++++++++++++++++++--- arch/arm/dts/zynq-zc770-xm012.dts | 51 +++++++++++++++++++++++--- arch/arm/dts/zynq-zc770-xm013.dts | 62 ++++++++++++++++++++++++++++++-- 3 files changed, 176 insertions(+), 12 deletions(-)
arch/arm/dts/zynq-zc770-xm010.dts +70 -5
@@ -1,7 +1,7 @@ /* * Xilinx ZC770 XM010 board DTS * - * Copyright (C) 2013 Xilinx, Inc. + * Copyright (C) 2013 - 2015 Xilinx, Inc. * * SPDX-License-Identifier: GPL-2.0+ */
@@ -9,20 +9,85 @@ #include "zynq-7000.dtsi" / { - model = "Zynq ZC770 XM010 Board"; compatible = "xlnx,zynq-zc770-xm010", "xlnx,zynq-7000"; + model = "Xilinx Zynq"; aliases { + ethernet0 = &gem0; + i2c0 = &i2c0; serial0 = &uart1; - spi1 = &spi1; + spi0 = &spi1; }; - memory { + chosen { + bootargs = "console=ttyPS0,115200 root=/dev/ram rw earlyprintk"; + linux,stdout-path = &uart1; + stdout-path = &uart1; + }; + + memory at 0 { device_type = "memory"; - reg = <0 0x40000000>; + reg = <0x0 0x40000000>; + }; + + usb_phy0: phy0 { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; }; }; &spi1 { status = "okay"; + num-cs = <4>; + is-decoded-cs = <0>; + flash at 0 { + compatible = "sst25wf080"; + reg = <1>; + spi-max-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <1>; + partition at test { + label = "spi-flash"; + reg = <0x0 0x100000>; + }; + }; +}; + +&can0 { + status = "okay"; +}; + +&gem0 { + status = "okay"; + phy-mode = "rgmii-id"; + phy-handle = <ðernet_phy>; + + ethernet_phy: ethernet-phy at 7 { + reg = <7>; + }; +}; + +&i2c0 { + status = "okay"; + clock-frequency = <400000>; + + m24c02_eeprom at 52 { + compatible = "at,24c02"; + reg = <0x52>; + }; + +}; + +&sdhci0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&usb0 { + status = "okay"; + dr_mode = "host"; + usb-phy = <&usb_phy0>; };
arch/arm/dts/zynq-zc770-xm012.dts +47 -4
69 lines not on this page · raw message
arch/arm/dts/zynq-zc770-xm013.dts +59 -3
74 lines not on this page · raw message
Signature · 1 line
2.3.5
PATCH 19/19 ARM: zynq: Add support for zc770-xm011
In reply to Michal SimekAdd xm011 DTS file and related configs and configurations.
---
arch/arm/dts/Makefile | 1 + arch/arm/dts/zynq-zc770-xm011.dts | 65 ++++++++++++++++++++++++++++++++++++++ configs/zynq_zc770_xm011_defconfig | 13 ++++++++ include/configs/zynq_zc770.h | 3 ++ 4 files changed, 82 insertions(+) create mode 100644 arch/arm/dts/zynq-zc770-xm011.dts create mode 100644 configs/zynq_zc770_xm011_defconfig
arch/arm/dts/Makefile +1 -0
@@ -45,6 +45,7 @@ dtb-$(CONFIG_ARCH_ZYNQ) += zynq-zc702.dtb \ zynq-microzed.dtb \ zynq-picozed.dtb \ zynq-zc770-xm010.dtb \ + zynq-zc770-xm011.dtb \ zynq-zc770-xm012.dtb \ zynq-zc770-xm013.dtb dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb
arch/arm/dts/zynq-zc770-xm011.dts new file +65 -0
65 lines not on this page · raw message
configs/zynq_zc770_xm011_defconfig new file +13 -0
@@ -0,0 +1,13 @@ +CONFIG_ARM=y +CONFIG_ARCH_ZYNQ=y +CONFIG_TARGET_ZYNQ_ZC770=y +CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm011" +# CONFIG_SYS_MALLOC_F is not set +CONFIG_SPL=y +CONFIG_FIT=y +CONFIG_FIT_VERBOSE=y +CONFIG_FIT_SIGNATURE=y +CONFIG_SYS_EXTRA_OPTIONS="ZC770_XM011" +# CONFIG_CMD_IMLS is not set +# CONFIG_CMD_FLASH is not set +# CONFIG_CMD_SETEXPR is not set
include/configs/zynq_zc770.h +3 -0
@@ -21,6 +21,9 @@# define CONFIG_ZYNQ_SDHCI0 # define CONFIG_ZYNQ_SPI +#elif defined(CONFIG_ZC770_XM011 ) +# define CONFIG_ZYNQ_SERIAL_UART1 +#elif defined(CONFIG_ZC770_XM012 )# define CONFIG_ZYNQ_SERIAL_UART1 # undef CONFIG_SYS_NO_FLASH
Signature · 1 line
2.3.5