Skip to content

Commit

Permalink
ARM: dts: uniphier: add I2C controller device nodes
Browse files Browse the repository at this point in the history
Add I2C controller device nodes for PH1-sLD3, PH1-LD4, PH1-sLD8
(FIFO-less I2C) and PH1-Pro4 (FIFO-builtin I2C).

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Masahiro Yamada authored and Olof Johansson committed Aug 11, 2015
1 parent b9efb8e commit 68f4689
Show file tree
Hide file tree
Showing 9 changed files with 314 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/uniphier-ph1-ld4-ref.dts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
serial1 = &serial1;
serial2 = &serial2;
serial3 = &serial3;
i2c0 = &i2c0;
i2c1 = &i2c1;
i2c2 = &i2c2;
i2c3 = &i2c3;
};
};

Expand Down Expand Up @@ -93,6 +97,10 @@
status = "okay";
};

&i2c0 {
status = "okay";
};

&usb0 {
status = "okay";
};
Expand Down
58 changes: 58 additions & 0 deletions arch/arm/boot/dts/uniphier-ph1-ld4.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@
compatible = "fixed-clock";
clock-frequency = <36864000>;
};

iobus_clk: iobus_clk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <100000000>;
};
};

soc {
Expand Down Expand Up @@ -129,6 +135,58 @@
fifo-size = <64>;
};

i2c0: i2c@58400000 {
compatible = "socionext,uniphier-i2c";
status = "disabled";
reg = <0x58400000 0x40>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c0>;
interrupts = <0 41 1>;
clocks = <&iobus_clk>;
clock-frequency = <100000>;
};

i2c1: i2c@58480000 {
compatible = "socionext,uniphier-i2c";
status = "disabled";
reg = <0x58480000 0x40>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>;
interrupts = <0 42 1>;
clocks = <&iobus_clk>;
clock-frequency = <100000>;
};

/* chip-internal connection for DMD */
i2c2: i2c@58500000 {
compatible = "socionext,uniphier-i2c";
reg = <0x58500000 0x40>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c2>;
interrupts = <0 43 1>;
clocks = <&iobus_clk>;
clock-frequency = <400000>;
};

i2c3: i2c@58580000 {
compatible = "socionext,uniphier-i2c";
status = "disabled";
reg = <0x58580000 0x40>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3>;
interrupts = <0 44 1>;
clocks = <&iobus_clk>;
clock-frequency = <100000>;
};

system-bus-controller-misc@59800000 {
compatible = "socionext,uniphier-system-bus-controller-misc",
"syscon";
Expand Down
10 changes: 10 additions & 0 deletions arch/arm/boot/dts/uniphier-ph1-pro4-ref.dts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
serial1 = &serial1;
serial2 = &serial2;
serial3 = &serial3;
i2c0 = &i2c0;
i2c1 = &i2c1;
i2c2 = &i2c2;
i2c3 = &i2c3;
i2c5 = &i2c5;
i2c6 = &i2c6;
};
};

Expand Down Expand Up @@ -93,6 +99,10 @@
status = "okay";
};

&i2c0 {
status = "okay";
};

&usb2 {
status = "okay";
};
Expand Down
82 changes: 82 additions & 0 deletions arch/arm/boot/dts/uniphier-ph1-pro4.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@
compatible = "fixed-clock";
clock-frequency = <73728000>;
};

i2c_clk: i2c_clk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <50000000>;
};
};

soc {
Expand Down Expand Up @@ -136,6 +142,82 @@
fifo-size = <64>;
};

i2c0: i2c@58780000 {
compatible = "socionext,uniphier-fi2c";
status = "disabled";
reg = <0x58780000 0x80>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c0>;
interrupts = <0 41 4>;
clocks = <&i2c_clk>;
clock-frequency = <100000>;
};

i2c1: i2c@58781000 {
compatible = "socionext,uniphier-fi2c";
status = "disabled";
reg = <0x58781000 0x80>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>;
interrupts = <0 42 4>;
clocks = <&i2c_clk>;
clock-frequency = <100000>;
};

i2c2: i2c@58782000 {
compatible = "socionext,uniphier-fi2c";
status = "disabled";
reg = <0x58782000 0x80>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c2>;
interrupts = <0 43 4>;
clocks = <&i2c_clk>;
clock-frequency = <100000>;
};

i2c3: i2c@58783000 {
compatible = "socionext,uniphier-fi2c";
status = "disabled";
reg = <0x58783000 0x80>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3>;
interrupts = <0 44 4>;
clocks = <&i2c_clk>;
clock-frequency = <100000>;
};

/* i2c4 does not exist */

/* chip-internal connection for DMD */
i2c5: i2c@58785000 {
compatible = "socionext,uniphier-fi2c";
reg = <0x58785000 0x80>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0 25 4>;
clocks = <&i2c_clk>;
clock-frequency = <400000>;
};

/* chip-internal connection for HDMI */
i2c6: i2c@58786000 {
compatible = "socionext,uniphier-fi2c";
reg = <0x58786000 0x80>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0 26 4>;
clocks = <&i2c_clk>;
clock-frequency = <400000>;
};

system-bus-controller-misc@59800000 {
compatible = "socionext,uniphier-system-bus-controller-misc",
"syscon";
Expand Down
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/uniphier-ph1-sld3-ref.dts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@
serial0 = &serial0;
serial1 = &serial1;
serial2 = &serial2;
i2c0 = &i2c0;
i2c1 = &i2c1;
i2c2 = &i2c2;
i2c3 = &i2c3;
i2c4 = &i2c4;
};
};

Expand Down Expand Up @@ -93,6 +98,10 @@
status = "okay";
};

&i2c0 {
status = "okay";
};

&usb0 {
status = "okay";
};
Expand Down
61 changes: 61 additions & 0 deletions arch/arm/boot/dts/uniphier-ph1-sld3.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@
compatible = "fixed-clock";
clock-frequency = <36864000>;
};

iobus_clk: iobus_clk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <100000000>;
};
};

soc {
Expand Down Expand Up @@ -141,6 +147,61 @@
fifo-size = <64>;
};

i2c0: i2c@58400000 {
compatible = "socionext,uniphier-i2c";
status = "disabled";
reg = <0x58400000 0x40>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0 41 1>;
clocks = <&iobus_clk>;
clock-frequency = <100000>;
};

i2c1: i2c@58480000 {
compatible = "socionext,uniphier-i2c";
status = "disabled";
reg = <0x58480000 0x40>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0 42 1>;
clocks = <&iobus_clk>;
clock-frequency = <100000>;
};

i2c2: i2c@58500000 {
compatible = "socionext,uniphier-i2c";
status = "disabled";
reg = <0x58500000 0x40>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0 43 1>;
clocks = <&iobus_clk>;
clock-frequency = <100000>;
};

i2c3: i2c@58580000 {
compatible = "socionext,uniphier-i2c";
status = "disabled";
reg = <0x58580000 0x40>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0 44 1>;
clocks = <&iobus_clk>;
clock-frequency = <100000>;
};

/* chip-internal connection for DMD */
i2c4: i2c@58600000 {
compatible = "socionext,uniphier-i2c";
reg = <0x58600000 0x40>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0 45 1>;
clocks = <&iobus_clk>;
clock-frequency = <400000>;
};

system-bus-controller-misc@59800000 {
compatible = "socionext,uniphier-system-bus-controller-misc",
"syscon";
Expand Down
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/uniphier-ph1-sld8-ref.dts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
serial1 = &serial1;
serial2 = &serial2;
serial3 = &serial3;
i2c0 = &i2c0;
i2c1 = &i2c1;
i2c2 = &i2c2;
i2c3 = &i2c3;
};
};

Expand Down Expand Up @@ -93,6 +97,10 @@
status = "okay";
};

&i2c0 {
status = "okay";
};

&usb0 {
status = "okay";
};
Expand Down
Loading

0 comments on commit 68f4689

Please sign in to comment.