CHROMIUM: exynos: dts: TPM configuration is per board
authorVincent Palatin <vpalatin@chromium.org>
Wed, 30 Jan 2013 18:45:37 +0000 (10:45 -0800)
committerChromeBot <chrome-bot@google.com>
Thu, 31 Jan 2013 02:22:48 +0000 (18:22 -0800)
Move the TPM configuration to board-specific files.
On Daisy and Snow, we have a SLB9635TT TPM with software I2C (the max
bus speed is 100kHz).
On Spring, we have a SLB9645TT TPM with hardware I2c (the max bus speed
is 400kHz).

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chrome-os-partner:17506
TEST=on Snow and Spring, boot and grep the tpm_tis_i2c messages in the
kernel log.

Change-Id: I3c914c8647fad3f93c5273228c5a18e476efe100
Reviewed-on: https://gerrit.chromium.org/gerrit/42333
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Luigi Semenzato <semenzato@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>

arch/arm/boot/dts/cros5250-common.dtsi
arch/arm/boot/dts/exynos5250-daisy.dts
arch/arm/boot/dts/exynos5250-snow.dts
arch/arm/boot/dts/exynos5250-spring.dts

index 2bbff97..82834e6 100644 (file)
 
        };
 
-       i2c@12C90000 {
-               samsung,i2c-sda-delay = <100>;
-               samsung,i2c-max-bus-freq = <66000>;
-               gpios = <&gpa1 2 3 3 0>,
-                       <&gpa1 3 3 3 0>;
-
-               tpm {
-                       compatible = "infineon,slb9635tt";
-                       reg = <0x20>;
-               };
-       };
-
        i2c@12CA0000 {
                samsung,i2c-sda-delay = <100>;
                samsung,i2c-max-bus-freq = <66000>;
index 0736f53..23c107f 100644 (file)
                };
        };
 
+       i2c@12C90000 {
+               samsung,i2c-sda-delay = <100>;
+               samsung,i2c-max-bus-freq = <66000>;
+               gpios = <&gpa1 2 3 3 0>,
+                       <&gpa1 3 3 3 0>;
+
+               tpm {
+                       compatible = "infineon,slb9635tt";
+                       reg = <0x20>;
+               };
+       };
+
        xhci {
                phy {
                        compatible = "samsung,exynos-usbphy";
index 3a388a3..3dfe802 100644 (file)
                        gpio-key,wakeup;
                };
        };
+
+       i2c@12C90000 {
+               samsung,i2c-sda-delay = <100>;
+               samsung,i2c-max-bus-freq = <66000>;
+               gpios = <&gpa1 2 3 3 0>,
+                       <&gpa1 3 3 3 0>;
+
+               tpm {
+                       compatible = "infineon,slb9635tt";
+                       reg = <0x20>;
+               };
+       };
        i2c@12CA0000 {
                samsung,slew-delay-us = <10>;
                samsung,wait-retry-us = <3000>;
index 8dab763..f0ff631 100644 (file)
                status = "disabled";
        };
 
+       i2c@12C90000 {
+               samsung,i2c-sda-delay = <100>;
+               samsung,i2c-max-bus-freq = <400000>;
+               gpios = <&gpa1 2 3 3 0>,
+                       <&gpa1 3 3 3 0>;
+
+               tpm {
+                       compatible = "infineon,slb9645tt";
+                       reg = <0x20>;
+               };
+       };
+
        i2c@12CD0000 {
                ps8622-bridge@8 {
                        compatible = "parade,ps8622";