浏览代码

powerpc/t104xd4rdb: add DS26522 nodes to device tree

DS26522 is used for tdm, configured by SPI bus.
Add nodes under spi node to t104xd4rdb.dtsi.

Signed-off-by: Zhao Qiang <qiang.zhao@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Zhao Qiang 10 年之前
父节点
当前提交
a109752ea6
共有 2 个文件被更改,包括 23 次插入0 次删除
  1. 13 0
      Documentation/devicetree/bindings/net/maxim,ds26522.txt
  2. 10 0
      arch/powerpc/boot/dts/t104xd4rdb.dtsi

+ 13 - 0
Documentation/devicetree/bindings/net/maxim,ds26522.txt

@@ -0,0 +1,13 @@
+* Maxim (Dallas) DS26522 Dual T1/E1/J1 Transceiver
+
+Required properties:
+- compatible: Should contain "maxim,ds26522".
+- reg: SPI CS.
+- spi-max-frequency: SPI clock.
+
+Example:
+	slic@1 {
+		compatible = "maxim,ds26522";
+		reg = <1>;
+		spi-max-frequency = <2000000>; /* input clock */
+	};

+ 10 - 0
arch/powerpc/boot/dts/t104xd4rdb.dtsi

@@ -109,6 +109,16 @@
 				/* input clock */
 				/* input clock */
 				spi-max-frequency = <10000000>;
 				spi-max-frequency = <10000000>;
 			};
 			};
+			slic@1 {
+				compatible = "maxim,ds26522";
+				reg = <1>;
+				spi-max-frequency = <2000000>; /* input clock */
+			};
+			slic@2 {
+				compatible = "maxim,ds26522";
+				reg = <2>;
+				spi-max-frequency = <2000000>; /* input clock */
+			};
 		};
 		};
 		i2c@118000 {
 		i2c@118000 {
 			hwmon@4c {
 			hwmon@4c {