[linux-oxnas] [PATCH 2/2] ARM: dts: OX820: Update with dt-bindings includes |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/linux-oxnas Archives
]
- To: linux-oxnas@xxxxxxxxxxxxxxxxxxx
- Subject: [linux-oxnas] [PATCH 2/2] ARM: dts: OX820: Update with dt-bindings includes
- From: Neil Armstrong <narmstrong@xxxxxxxxxxxx>
- Date: Wed, 4 Jan 2017 10:30:46 +0100
- Cc: Neil Armstrong <narmstrong@xxxxxxxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, devicetree@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5IQBnDF2Ml9cAv6U8291Hg+UVhcpKOoTakLK+XJroxo=; b=L7qF9p0gIPRKQy0hdFK9E4UF9j3cgRamvXimG37cGgJkv/v6LZY0n0bFKQNCNaLNPu mhcZ/5zk2rJEJC6UEhANVor/RSsyiKVMlkb6buwkErRFEXbztBZb7hKy4dmTGibbOOhT 2xg0mSKWbGQzbc0gew6Hx7QITbpbUCtFtdb2p5y6EkdVsDYg+mkpvShQG1WaMX4s3Axd WORCknAZuhNVKgM4+uixko7o0FPcydeWDHIyAegBxn7viHO+yQTmrLlvlqfLCohPgt5T nivwLHgUdT/w6w8gl/FQpyi4JjO8wy7fUomOVFyEUesuQ16YOqVFkIW+xw3NIeWGJKG/ D2fA==
Add OX820 dt-bindings includes files for clocks and resets, replace
resets numbers by human readable defines.
Signed-off-by: Neil Armstrong <narmstrong@xxxxxxxxxxxx>
---
arch/arm/boot/dts/ox820.dtsi | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/arch/arm/boot/dts/ox820.dtsi b/arch/arm/boot/dts/ox820.dtsi
index e40f282..4592075 100644
--- a/arch/arm/boot/dts/ox820.dtsi
+++ b/arch/arm/boot/dts/ox820.dtsi
@@ -8,6 +8,8 @@
/include/ "skeleton.dtsi"
#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/clock/oxsemi,ox820.h>
+#include <dt-bindings/reset/oxsemi,ox820.h>
/ {
compatible = "oxsemi,ox820";
@@ -83,8 +85,8 @@
nandc: nand-controller@41000000 {
compatible = "oxsemi,ox820-nand";
reg = <0x41000000 0x100000>;
- clocks = <&stdclk 11>;
- resets = <&reset 15>;
+ clocks = <&stdclk CLK_820_NAND>;
+ resets = <&reset RESET_NAND>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
@@ -99,9 +101,9 @@
mac-address = [000000000000]; /* Filled in by U-Boot */
phy-mode = "rgmii";
- clocks = <&stdclk 9>, <&gmacclk>;
+ clocks = <&stdclk CLK_820_ETHA>, <&gmacclk>;
clock-names = "gmac", "stmmaceth";
- resets = <&reset 6>;
+ resets = <&reset RESET_MAC>;
/* Regmap for sys registers */
oxsemi,sys-ctrl = <&sys>;
@@ -208,7 +210,7 @@
no-loopback-test;
status = "disabled";
clocks = <&sysclk>;
- resets = <&reset 17>;
+ resets = <&reset RESET_UART1>;
};
uart1: serial@300000 {
@@ -222,7 +224,7 @@
no-loopback-test;
status = "disabled";
clocks = <&sysclk>;
- resets = <&reset 18>;
+ resets = <&reset RESET_UART2>;
};
rps@400000 {
--
2.7.0