Skip to content

Commit

Permalink
ARM: dts: Disable I2C controllers by default on Exynos5250
Browse files Browse the repository at this point in the history
Ensure that unused I2C controllers are not activated, causing problems due
to inappropriate pinmuxing or similar, by marking the controllers as
disabled by default and requiring boards to explicitly enable those that
are in use.

Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Mark Brown authored and Kukjin Kim committed Dec 20, 2013
1 parent fae93f7 commit 6ad8ebf
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 48 deletions.
12 changes: 8 additions & 4 deletions arch/arm/boot/dts/cros5250-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
};

i2c@12C60000 {
status = "okay";
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <378000>;

Expand Down Expand Up @@ -173,6 +174,7 @@
};

i2c@12C70000 {
status = "okay";
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <378000>;

Expand All @@ -186,6 +188,7 @@
};

i2c@12C80000 {
status = "okay";
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <66000>;

Expand All @@ -196,30 +199,31 @@
};

i2c@12C90000 {
status = "okay";
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <66000>;
};

i2c@12CA0000 {
status = "okay";
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <66000>;
};

i2c@12CB0000 {
status = "okay";
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <66000>;
};

i2c@12CC0000 {
status = "disabled";
};

i2c@12CD0000 {
status = "okay";
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <66000>;
};

i2c@12CE0000 {
status = "okay";
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <378000>;

Expand Down
32 changes: 8 additions & 24 deletions arch/arm/boot/dts/exynos5250-arndale.dts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <20000>;
samsung,i2c-slave-addr = <0x66>;
status = "okay";

s5m8767_pmic@66 {
compatible = "samsung,s5m8767-pmic";
Expand Down Expand Up @@ -321,11 +322,9 @@
};
};

i2c@12C70000 {
status = "disabled";
};

i2c@12C80000 {
status = "okay";

samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <66000>;
samsung,i2c-slave-addr = <0x50>;
Expand All @@ -337,7 +336,10 @@
};

i2c@12C90000 {
status = "okay";

wm1811a@1a {

compatible = "wlf,wm1811";
reg = <0x1a>;

Expand All @@ -355,23 +357,9 @@
};
};

i2c@12CA0000 {
status = "disabled";
};

i2c@12CB0000 {
status = "disabled";
};

i2c@12CC0000 {
status = "disabled";
};

i2c@12CD0000 {
status = "disabled";
};

i2c@12CE0000 {
status = "okay";

samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <66000>;
samsung,i2c-slave-addr = <0x38>;
Expand All @@ -382,10 +370,6 @@
};
};

i2c@121D0000 {
status = "disabled";
};

mmc_0: mmc@12200000 {
status = "okay";
num-slots = <1>;
Expand Down
25 changes: 5 additions & 20 deletions arch/arm/boot/dts/exynos5250-smdk5250.dts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
i2c@12C60000 {
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <20000>;
status = "okay";

eeprom@50 {
compatible = "samsung,s524ad0xd1";
Expand Down Expand Up @@ -64,6 +65,7 @@
i2c@12C70000 {
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <20000>;
status = "okay";

eeprom@51 {
compatible = "samsung,s524ad0xd1";
Expand Down Expand Up @@ -92,6 +94,7 @@
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <40000>;
samsung,i2c-slave-addr = <0x38>;
status = "okay";

sata-phy {
compatible = "samsung,sata-phy";
Expand All @@ -106,36 +109,18 @@
i2c@12C80000 {
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <66000>;
status = "okay";

hdmiddc@50 {
compatible = "samsung,exynos4210-hdmiddc";
reg = <0x50>;
};
};

i2c@12C90000 {
status = "disabled";
};

i2c@12CA0000 {
status = "disabled";
};

i2c@12CB0000 {
status = "disabled";
};

i2c@12CC0000 {
status = "disabled";
};

i2c@12CD0000 {
status = "disabled";
};

i2c@12CE0000 {
samsung,i2c-sda-delay = <100>;
samsung,i2c-max-bus-freq = <66000>;
status = "okay";

hdmiphy@38 {
compatible = "samsung,exynos4212-hdmiphy";
Expand Down
10 changes: 10 additions & 0 deletions arch/arm/boot/dts/exynos5250.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@
clock-names = "i2c";
pinctrl-names = "default";
pinctrl-0 = <&i2c0_bus>;
status = "disabled";
};

i2c_1: i2c@12C70000 {
Expand All @@ -256,6 +257,7 @@
clock-names = "i2c";
pinctrl-names = "default";
pinctrl-0 = <&i2c1_bus>;
status = "disabled";
};

i2c_2: i2c@12C80000 {
Expand All @@ -268,6 +270,7 @@
clock-names = "i2c";
pinctrl-names = "default";
pinctrl-0 = <&i2c2_bus>;
status = "disabled";
};

i2c_3: i2c@12C90000 {
Expand All @@ -280,6 +283,7 @@
clock-names = "i2c";
pinctrl-names = "default";
pinctrl-0 = <&i2c3_bus>;
status = "disabled";
};

i2c_4: i2c@12CA0000 {
Expand All @@ -292,6 +296,7 @@
clock-names = "i2c";
pinctrl-names = "default";
pinctrl-0 = <&i2c4_bus>;
status = "disabled";
};

i2c_5: i2c@12CB0000 {
Expand All @@ -304,6 +309,7 @@
clock-names = "i2c";
pinctrl-names = "default";
pinctrl-0 = <&i2c5_bus>;
status = "disabled";
};

i2c_6: i2c@12CC0000 {
Expand All @@ -316,6 +322,7 @@
clock-names = "i2c";
pinctrl-names = "default";
pinctrl-0 = <&i2c6_bus>;
status = "disabled";
};

i2c_7: i2c@12CD0000 {
Expand All @@ -328,6 +335,7 @@
clock-names = "i2c";
pinctrl-names = "default";
pinctrl-0 = <&i2c7_bus>;
status = "disabled";
};

i2c_8: i2c@12CE0000 {
Expand All @@ -338,6 +346,7 @@
#size-cells = <0>;
clocks = <&clock 302>;
clock-names = "i2c";
status = "disabled";
};

i2c@121D0000 {
Expand All @@ -347,6 +356,7 @@
#size-cells = <0>;
clocks = <&clock 288>;
clock-names = "i2c";
status = "disabled";
};

spi_0: spi@12d20000 {
Expand Down

0 comments on commit 6ad8ebf

Please sign in to comment.