mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
arm64: dts: add i2c alias aliases node
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>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -28,6 +28,11 @@
|
||||
|
||||
aliases {
|
||||
serial0 = &uart_AO;
|
||||
i2c0 = &i2c0;
|
||||
i2c1 = &i2c1;
|
||||
i2c2 = &i2c2;
|
||||
i2c3 = &i2c3;
|
||||
i2c4 = &i2c_AO;
|
||||
};
|
||||
|
||||
memory@00000000 {
|
||||
|
||||
@@ -36,6 +36,11 @@
|
||||
serial4 = &uart_AO_B;
|
||||
tsensor0 = &p_tsensor;
|
||||
tsensor1 = &d_tsensor;
|
||||
i2c0 = &i2c0;
|
||||
i2c1 = &i2c1;
|
||||
i2c2 = &i2c2;
|
||||
i2c3 = &i2c3;
|
||||
i2c4 = &i2c_AO;
|
||||
};
|
||||
|
||||
memory@00000000 {
|
||||
|
||||
@@ -38,6 +38,11 @@
|
||||
serial4 = &uart_AO_B;
|
||||
tsensor0 = &p_tsensor;
|
||||
tsensor1 = &d_tsensor;
|
||||
i2c0 = &i2c0;
|
||||
i2c1 = &i2c1;
|
||||
i2c2 = &i2c2;
|
||||
i2c3 = &i2c3;
|
||||
i2c4 = &i2c_AO;
|
||||
};
|
||||
|
||||
memory@00000000 {
|
||||
|
||||
@@ -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>
|
||||
@@ -546,7 +545,6 @@
|
||||
#size-cells = <0>;
|
||||
clocks = <&clkc CLKID_I2C>;
|
||||
clock-names = "clk_i2c";
|
||||
dev-id = <MESON_I2C_MASTER0>;
|
||||
};
|
||||
|
||||
i2c1: i2c@1e000 {
|
||||
@@ -559,7 +557,6 @@
|
||||
#size-cells = <0>;
|
||||
clocks = <&clkc CLKID_I2C>;
|
||||
clock-names = "clk_i2c";
|
||||
dev-id = <MESON_I2C_MASTER1>;
|
||||
};
|
||||
|
||||
i2c2: i2c@1d000 {
|
||||
@@ -572,7 +569,6 @@
|
||||
#size-cells = <0>;
|
||||
clocks = <&clkc CLKID_I2C>;
|
||||
clock-names = "clk_i2c";
|
||||
dev-id = <MESON_I2C_MASTER2>;
|
||||
};
|
||||
|
||||
i2c3: i2c@1c000 {
|
||||
@@ -585,7 +581,6 @@
|
||||
#size-cells = <0>;
|
||||
clocks = <&clkc CLKID_I2C>;
|
||||
clock-names = "clk_i2c";
|
||||
dev-id = <MESON_I2C_MASTER3>;
|
||||
};
|
||||
|
||||
}; /* end of cbus */
|
||||
@@ -646,7 +641,6 @@
|
||||
#size-cells = <0>;
|
||||
clocks = <&clkc CLKID_I2C>;
|
||||
clock-names = "clk_i2c";
|
||||
dev-id = <MESON_I2C_MASTERAO>;
|
||||
};
|
||||
|
||||
i2c_AO_slave:i2c_slave@6000 {
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user