arm64: dts: add i2c alias aliases node
authorJian Hu <jian.hu@amlogic.com>
Thu, 1 Mar 2018 06:33:42 +0000 (14:33 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 6 Mar 2018 03:33:55 +0000 (19:33 -0800)
PD#158433: arm64: dts: add i2c alias in aliases node

add alias for i2c controller to fasten i2c dev id

Change-Id: I87c1999766c69e9df63f551f0559b8028844d660
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
MAINTAINERS
arch/arm64/boot/dts/amlogic/g12a_pxp.dts
arch/arm64/boot/dts/amlogic/g12a_skt.dts
arch/arm64/boot/dts/amlogic/g12a_skt_buildroot.dts
arch/arm64/boot/dts/amlogic/mesong12a.dtsi
include/dt-bindings/i2c/i2c-meson.h [deleted file]

index 6b5733b..ed1fb79 100644 (file)
@@ -13562,7 +13562,6 @@ F: drivers/amlogic/cec/*
 AMLOGIC I2C DRIVER
 M:     Jian Hu <jian.hu@amlogic.com>
 F:     driver/amlogic/i2c/*
-F:     include/dt-bindings/i2c/i2c-meson.h
 F:     Documentation/devicetree/bindings/amlogic/i2c-meson.txt
 
 AMLOGIC internal phy driver for ethernet
index 0d6216c..daf1700 100644 (file)
 
        aliases {
                serial0 = &uart_AO;
+               i2c0 = &i2c0;
+               i2c1 = &i2c1;
+               i2c2 = &i2c2;
+               i2c3 = &i2c3;
+               i2c4 = &i2c_AO;
        };
 
        memory@00000000 {
index 55929d3..a72adec 100644 (file)
                serial4 = &uart_AO_B;
                tsensor0 = &p_tsensor;
                tsensor1 = &d_tsensor;
+               i2c0 = &i2c0;
+               i2c1 = &i2c1;
+               i2c2 = &i2c2;
+               i2c3 = &i2c3;
+               i2c4 = &i2c_AO;
        };
 
        memory@00000000 {
index 66ac978..3e0f463 100644 (file)
                serial4 = &uart_AO_B;
                tsensor0 = &p_tsensor;
                tsensor1 = &d_tsensor;
+               i2c0 = &i2c0;
+               i2c1 = &i2c1;
+               i2c2 = &i2c2;
+               i2c3 = &i2c3;
+               i2c4 = &i2c_AO;
        };
 
        memory@00000000 {
index 8b93ec6..6826597 100644 (file)
@@ -22,7 +22,6 @@
 #include <dt-bindings/gpio/meson-g12a-gpio.h>
 #include <dt-bindings/pwm/pwm.h>
 #include <dt-bindings/pwm/meson.h>
-#include <dt-bindings/i2c/i2c-meson.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/input/meson_rc.h>
                                #size-cells = <0>;
                                clocks = <&clkc CLKID_I2C>;
                                clock-names = "clk_i2c";
-                               dev-id = <MESON_I2C_MASTER0>;
                        };
 
                        i2c1: i2c@1e000 {
                                #size-cells = <0>;
                                clocks = <&clkc CLKID_I2C>;
                                clock-names = "clk_i2c";
-                               dev-id = <MESON_I2C_MASTER1>;
                        };
 
                        i2c2: i2c@1d000 {
                                #size-cells = <0>;
                                clocks = <&clkc CLKID_I2C>;
                                clock-names = "clk_i2c";
-                               dev-id = <MESON_I2C_MASTER2>;
                        };
 
                        i2c3: i2c@1c000 {
                                #size-cells = <0>;
                                clocks = <&clkc CLKID_I2C>;
                                clock-names = "clk_i2c";
-                               dev-id = <MESON_I2C_MASTER3>;
                        };
 
                }; /* end of cbus */
                                #size-cells = <0>;
                                clocks = <&clkc CLKID_I2C>;
                                clock-names = "clk_i2c";
-                               dev-id = <MESON_I2C_MASTERAO>;
                        };
 
                        i2c_AO_slave:i2c_slave@6000 {
diff --git a/include/dt-bindings/i2c/i2c-meson.h b/include/dt-bindings/i2c/i2c-meson.h
deleted file mode 100644 (file)
index d9b9ac8..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * include/dt-bindings/i2c/i2c-meson.h
- *
- * Copyright (C) 2017 Amlogic, Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
- *
- */
-
-#ifndef _DT_BINDINGS_I2C_MESON_H
-#define _DT_BINDINGS_I2C_MESON_H
-
-/*MESON_I2C_MASTER0 - MESON_I2C_MASTERA
- *MESON_I2C_MASTER0 - MESON_I2C_MASTERB
- *MESON_I2C_MASTER0 - MESON_I2C_MASTERC
- *MESON_I2C_MASTER0 - MESON_I2C_MASTERD
- *we can see i2c-A/B/C/D rename to i2c0/1/2/3
- */
-
-#define                MESON_I2C_MASTER0   0
-#define                MESON_I2C_MASTER1   1
-#define                MESON_I2C_MASTER2   2
-#define                MESON_I2C_MASTER3   3
-#define                MESON_I2C_MASTERAO  4
-
-#endif