]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8: dts: fsl-lx2160a: add i2c controller and gpio DT nodes
authorChuanhua Han <chuanhua.han@nxp.com>
Wed, 10 Jul 2019 13:00:24 +0000 (21:00 +0800)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Thu, 22 Aug 2019 03:37:35 +0000 (09:07 +0530)
In lx2160a soc, there are eight i2c controllers, this patch adds i2c
nodes for lx2160a, and the gpio2 nodes on which the i2c4 controller
depends.

Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
arch/arm/dts/fsl-lx2160a.dtsi

index 28220781d3fdde0b013e990ea5603ec74bba08c2..a189333e40947353c89b3c5119b60a7b41dbe4ba 100644 (file)
                             <1 10 0x8>; /* Hypervisor PPI, active-low */
        };
 
+       i2c0: i2c@2000000 {
+               compatible = "fsl,vf610-i2c";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x0 0x2000000 0x0 0x10000>;
+               interrupts = <0 34 4>;
+               scl-gpio = <&gpio2 15 0>;
+               status = "disabled";
+       };
+
+       i2c1: i2c@2010000 {
+               compatible = "fsl,vf610-i2c";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x0 0x2010000 0x0 0x10000>;
+               interrupts = <0 34 4>;
+               status = "disabled";
+       };
+
+       i2c2: i2c@2020000 {
+               compatible = "fsl,vf610-i2c";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x0 0x2020000 0x0 0x10000>;
+               interrupts = <0 35 4>;
+               status = "disabled";
+       };
+
+       i2c3: i2c@2030000 {
+               compatible = "fsl,vf610-i2c";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x0 0x2030000 0x0 0x10000>;
+               interrupts = <0 35 4>;
+               status = "disabled";
+       };
+
+       i2c4: i2c@2040000 {
+               compatible = "fsl,vf610-i2c";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x0 0x2040000 0x0 0x10000>;
+               interrupts = <0 74 4>;
+               scl-gpio = <&gpio2 16 0>;
+               status = "disabled";
+       };
+
+       i2c5: i2c@2050000 {
+               compatible = "fsl,vf610-i2c";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x0 0x2050000 0x0 0x10000>;
+               interrupts = <0 74 4>;
+               status = "disabled";
+       };
+
+       i2c6: i2c@2060000 {
+               compatible = "fsl,vf610-i2c";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x0 0x2060000 0x0 0x10000>;
+               interrupts = <0 75 4>;
+               status = "disabled";
+       };
+
+       i2c7: i2c@2070000 {
+               compatible = "fsl,vf610-i2c";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x0 0x2070000 0x0 0x10000>;
+               interrupts = <0 75 4>;
+               status = "disabled";
+       };
+
        uart0: serial@21c0000 {
                compatible = "arm,pl011";
                reg = <0x0 0x21c0000 0x0 0x1000>;
                num-cs = <6>;
        };
 
+       gpio2: gpio@2320000 {
+               compatible = "fsl,qoriq-gpio";
+               reg = <0x0 0x2320000 0x0 0x10000>;
+               interrupts = <0 37 4>;
+               gpio-controller;
+               little-endian;
+               #gpio-cells = <2>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+       };
+
        usb0: usb3@3100000 {
                compatible = "fsl,layerscape-dwc3";
                reg = <0x0 0x3100000 0x0 0x10000>;