diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-21 00:49:55 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-21 00:49:55 -0400 |
commit | 84dfcb4b318463cd4883b6a19937824f49aee564 (patch) | |
tree | 56a96898bff3a2bd3a65abb28a8c018d28db85e8 | |
parent | 34d81f858a3bdec568bf08c4feb997ccd3d40b94 (diff) | |
parent | 672e806ee103c1709bcdcafabe65ba9c8ab5a63d (diff) |
Merge commit 'kumar/kumar-for-2.6.28'
-rw-r--r-- | Documentation/powerpc/booting-without-of.txt | 2 | ||||
-rw-r--r-- | Documentation/powerpc/dts-bindings/fsl/board.txt | 4 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/mpc8315erdb.dts | 8 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/mpc832x_mds.dts | 2 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/mpc8349emitx.dts | 16 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/mpc8349emitxgp.dts | 8 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/mpc834x_mds.dts | 2 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/mpc836x_mds.dts | 2 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/mpc8377_rdb.dts | 8 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/mpc8378_rdb.dts | 8 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/mpc8379_rdb.dts | 8 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/mpc8536ds.dts | 12 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/mpc8568mds.dts | 2 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/mpc8572ds.dts | 27 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-cpm.c | 1 | ||||
-rw-r--r-- | drivers/of/of_spi.c | 2 |
16 files changed, 85 insertions, 27 deletions
diff --git a/Documentation/powerpc/booting-without-of.txt b/Documentation/powerpc/booting-without-of.txt index de4063cb4fd..02ea9a971b8 100644 --- a/Documentation/powerpc/booting-without-of.txt +++ b/Documentation/powerpc/booting-without-of.txt | |||
@@ -1917,6 +1917,8 @@ platforms are moved over to use the flattened-device-tree model. | |||
1917 | inverse clock polarity (CPOL) mode | 1917 | inverse clock polarity (CPOL) mode |
1918 | - spi-cpha - (optional) Empty property indicating device requires | 1918 | - spi-cpha - (optional) Empty property indicating device requires |
1919 | shifted clock phase (CPHA) mode | 1919 | shifted clock phase (CPHA) mode |
1920 | - spi-cs-high - (optional) Empty property indicating device requires | ||
1921 | chip select active high | ||
1920 | 1922 | ||
1921 | SPI example for an MPC5200 SPI bus: | 1923 | SPI example for an MPC5200 SPI bus: |
1922 | spi@f00 { | 1924 | spi@f00 { |
diff --git a/Documentation/powerpc/dts-bindings/fsl/board.txt b/Documentation/powerpc/dts-bindings/fsl/board.txt index 74ae6f1cd2d..81a917ef96e 100644 --- a/Documentation/powerpc/dts-bindings/fsl/board.txt +++ b/Documentation/powerpc/dts-bindings/fsl/board.txt | |||
@@ -2,13 +2,13 @@ | |||
2 | 2 | ||
3 | Required properties: | 3 | Required properties: |
4 | 4 | ||
5 | - device_type : Should be "board-control" | 5 | - compatible : Should be "fsl,<board>-bcsr" |
6 | - reg : Offset and length of the register set for the device | 6 | - reg : Offset and length of the register set for the device |
7 | 7 | ||
8 | Example: | 8 | Example: |
9 | 9 | ||
10 | bcsr@f8000000 { | 10 | bcsr@f8000000 { |
11 | device_type = "board-control"; | 11 | compatible = "fsl,mpc8360mds-bcsr"; |
12 | reg = <f8000000 8000>; | 12 | reg = <f8000000 8000>; |
13 | }; | 13 | }; |
14 | 14 | ||
diff --git a/arch/powerpc/boot/dts/mpc8315erdb.dts b/arch/powerpc/boot/dts/mpc8315erdb.dts index 7449e54c1a9..6b850670de1 100644 --- a/arch/powerpc/boot/dts/mpc8315erdb.dts +++ b/arch/powerpc/boot/dts/mpc8315erdb.dts | |||
@@ -121,6 +121,14 @@ | |||
121 | compatible = "dallas,ds1339"; | 121 | compatible = "dallas,ds1339"; |
122 | reg = <0x68>; | 122 | reg = <0x68>; |
123 | }; | 123 | }; |
124 | |||
125 | mcu_pio: mcu@a { | ||
126 | #gpio-cells = <2>; | ||
127 | compatible = "fsl,mc9s08qg8-mpc8315erdb", | ||
128 | "fsl,mcu-mpc8349emitx"; | ||
129 | reg = <0x0a>; | ||
130 | gpio-controller; | ||
131 | }; | ||
124 | }; | 132 | }; |
125 | 133 | ||
126 | spi@7000 { | 134 | spi@7000 { |
diff --git a/arch/powerpc/boot/dts/mpc832x_mds.dts b/arch/powerpc/boot/dts/mpc832x_mds.dts index e4cc1768f24..57c595bf107 100644 --- a/arch/powerpc/boot/dts/mpc832x_mds.dts +++ b/arch/powerpc/boot/dts/mpc832x_mds.dts | |||
@@ -60,7 +60,7 @@ | |||
60 | }; | 60 | }; |
61 | 61 | ||
62 | bcsr@f8000000 { | 62 | bcsr@f8000000 { |
63 | device_type = "board-control"; | 63 | compatible = "fsl,mpc8323mds-bcsr"; |
64 | reg = <0xf8000000 0x8000>; | 64 | reg = <0xf8000000 0x8000>; |
65 | }; | 65 | }; |
66 | 66 | ||
diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts b/arch/powerpc/boot/dts/mpc8349emitx.dts index 5cedf373a1d..2c9d54a35bc 100644 --- a/arch/powerpc/boot/dts/mpc8349emitx.dts +++ b/arch/powerpc/boot/dts/mpc8349emitx.dts | |||
@@ -83,6 +83,14 @@ | |||
83 | interrupts = <15 0x8>; | 83 | interrupts = <15 0x8>; |
84 | interrupt-parent = <&ipic>; | 84 | interrupt-parent = <&ipic>; |
85 | dfsrr; | 85 | dfsrr; |
86 | |||
87 | rtc@68 { | ||
88 | device_type = "rtc"; | ||
89 | compatible = "dallas,ds1339"; | ||
90 | reg = <0x68>; | ||
91 | interrupts = <18 0x8>; | ||
92 | interrupt-parent = <&ipic>; | ||
93 | }; | ||
86 | }; | 94 | }; |
87 | 95 | ||
88 | spi@7000 { | 96 | spi@7000 { |
@@ -131,6 +139,14 @@ | |||
131 | interrupt-parent = <&ipic>; | 139 | interrupt-parent = <&ipic>; |
132 | interrupts = <71 8>; | 140 | interrupts = <71 8>; |
133 | }; | 141 | }; |
142 | |||
143 | mcu_pio: mcu@a { | ||
144 | #gpio-cells = <2>; | ||
145 | compatible = "fsl,mc9s08qg8-mpc8349emitx", | ||
146 | "fsl,mcu-mpc8349emitx"; | ||
147 | reg = <0x0a>; | ||
148 | gpio-controller; | ||
149 | }; | ||
134 | }; | 150 | }; |
135 | 151 | ||
136 | usb@22000 { | 152 | usb@22000 { |
diff --git a/arch/powerpc/boot/dts/mpc8349emitxgp.dts b/arch/powerpc/boot/dts/mpc8349emitxgp.dts index 81ae1d3e944..fa40647ee62 100644 --- a/arch/powerpc/boot/dts/mpc8349emitxgp.dts +++ b/arch/powerpc/boot/dts/mpc8349emitxgp.dts | |||
@@ -81,6 +81,14 @@ | |||
81 | interrupts = <15 0x8>; | 81 | interrupts = <15 0x8>; |
82 | interrupt-parent = <&ipic>; | 82 | interrupt-parent = <&ipic>; |
83 | dfsrr; | 83 | dfsrr; |
84 | |||
85 | rtc@68 { | ||
86 | device_type = "rtc"; | ||
87 | compatible = "dallas,ds1339"; | ||
88 | reg = <0x68>; | ||
89 | interrupts = <18 0x8>; | ||
90 | interrupt-parent = <&ipic>; | ||
91 | }; | ||
84 | }; | 92 | }; |
85 | 93 | ||
86 | spi@7000 { | 94 | spi@7000 { |
diff --git a/arch/powerpc/boot/dts/mpc834x_mds.dts b/arch/powerpc/boot/dts/mpc834x_mds.dts index 04bfde3ea60..c986c541e9b 100644 --- a/arch/powerpc/boot/dts/mpc834x_mds.dts +++ b/arch/powerpc/boot/dts/mpc834x_mds.dts | |||
@@ -49,7 +49,7 @@ | |||
49 | }; | 49 | }; |
50 | 50 | ||
51 | bcsr@e2400000 { | 51 | bcsr@e2400000 { |
52 | device_type = "board-control"; | 52 | compatible = "fsl,mpc8349mds-bcsr"; |
53 | reg = <0xe2400000 0x8000>; | 53 | reg = <0xe2400000 0x8000>; |
54 | }; | 54 | }; |
55 | 55 | ||
diff --git a/arch/powerpc/boot/dts/mpc836x_mds.dts b/arch/powerpc/boot/dts/mpc836x_mds.dts index 66a12d2631f..14534d04e4d 100644 --- a/arch/powerpc/boot/dts/mpc836x_mds.dts +++ b/arch/powerpc/boot/dts/mpc836x_mds.dts | |||
@@ -69,7 +69,7 @@ | |||
69 | }; | 69 | }; |
70 | 70 | ||
71 | bcsr@1,0 { | 71 | bcsr@1,0 { |
72 | device_type = "board-control"; | 72 | compatible = "fsl,mpc8360mds-bcsr"; |
73 | reg = <1 0 0x8000>; | 73 | reg = <1 0 0x8000>; |
74 | }; | 74 | }; |
75 | }; | 75 | }; |
diff --git a/arch/powerpc/boot/dts/mpc8377_rdb.dts b/arch/powerpc/boot/dts/mpc8377_rdb.dts index 53191ba67aa..435ef3dd022 100644 --- a/arch/powerpc/boot/dts/mpc8377_rdb.dts +++ b/arch/powerpc/boot/dts/mpc8377_rdb.dts | |||
@@ -121,6 +121,14 @@ | |||
121 | compatible = "dallas,ds1339"; | 121 | compatible = "dallas,ds1339"; |
122 | reg = <0x68>; | 122 | reg = <0x68>; |
123 | }; | 123 | }; |
124 | |||
125 | mcu_pio: mcu@a { | ||
126 | #gpio-cells = <2>; | ||
127 | compatible = "fsl,mc9s08qg8-mpc8377erdb", | ||
128 | "fsl,mcu-mpc8349emitx"; | ||
129 | reg = <0x0a>; | ||
130 | gpio-controller; | ||
131 | }; | ||
124 | }; | 132 | }; |
125 | 133 | ||
126 | i2c@3100 { | 134 | i2c@3100 { |
diff --git a/arch/powerpc/boot/dts/mpc8378_rdb.dts b/arch/powerpc/boot/dts/mpc8378_rdb.dts index 4a09153d160..b11e68f56a0 100644 --- a/arch/powerpc/boot/dts/mpc8378_rdb.dts +++ b/arch/powerpc/boot/dts/mpc8378_rdb.dts | |||
@@ -121,6 +121,14 @@ | |||
121 | compatible = "dallas,ds1339"; | 121 | compatible = "dallas,ds1339"; |
122 | reg = <0x68>; | 122 | reg = <0x68>; |
123 | }; | 123 | }; |
124 | |||
125 | mcu_pio: mcu@a { | ||
126 | #gpio-cells = <2>; | ||
127 | compatible = "fsl,mc9s08qg8-mpc8378erdb", | ||
128 | "fsl,mcu-mpc8349emitx"; | ||
129 | reg = <0x0a>; | ||
130 | gpio-controller; | ||
131 | }; | ||
124 | }; | 132 | }; |
125 | 133 | ||
126 | i2c@3100 { | 134 | i2c@3100 { |
diff --git a/arch/powerpc/boot/dts/mpc8379_rdb.dts b/arch/powerpc/boot/dts/mpc8379_rdb.dts index bbd884ac9dc..337af6ea26d 100644 --- a/arch/powerpc/boot/dts/mpc8379_rdb.dts +++ b/arch/powerpc/boot/dts/mpc8379_rdb.dts | |||
@@ -121,6 +121,14 @@ | |||
121 | compatible = "dallas,ds1339"; | 121 | compatible = "dallas,ds1339"; |
122 | reg = <0x68>; | 122 | reg = <0x68>; |
123 | }; | 123 | }; |
124 | |||
125 | mcu_pio: mcu@a { | ||
126 | #gpio-cells = <2>; | ||
127 | compatible = "fsl,mc9s08qg8-mpc8379erdb", | ||
128 | "fsl,mcu-mpc8349emitx"; | ||
129 | reg = <0x0a>; | ||
130 | gpio-controller; | ||
131 | }; | ||
124 | }; | 132 | }; |
125 | 133 | ||
126 | i2c@3100 { | 134 | i2c@3100 { |
diff --git a/arch/powerpc/boot/dts/mpc8536ds.dts b/arch/powerpc/boot/dts/mpc8536ds.dts index 93fdd99901b..35db1e5440c 100644 --- a/arch/powerpc/boot/dts/mpc8536ds.dts +++ b/arch/powerpc/boot/dts/mpc8536ds.dts | |||
@@ -109,7 +109,7 @@ | |||
109 | reg = <0x0 0x80>; | 109 | reg = <0x0 0x80>; |
110 | cell-index = <0>; | 110 | cell-index = <0>; |
111 | interrupt-parent = <&mpic>; | 111 | interrupt-parent = <&mpic>; |
112 | interrupts = <14 0x2>; | 112 | interrupts = <20 2>; |
113 | }; | 113 | }; |
114 | dma-channel@80 { | 114 | dma-channel@80 { |
115 | compatible = "fsl,mpc8536-dma-channel", | 115 | compatible = "fsl,mpc8536-dma-channel", |
@@ -117,7 +117,7 @@ | |||
117 | reg = <0x80 0x80>; | 117 | reg = <0x80 0x80>; |
118 | cell-index = <1>; | 118 | cell-index = <1>; |
119 | interrupt-parent = <&mpic>; | 119 | interrupt-parent = <&mpic>; |
120 | interrupts = <15 0x2>; | 120 | interrupts = <21 2>; |
121 | }; | 121 | }; |
122 | dma-channel@100 { | 122 | dma-channel@100 { |
123 | compatible = "fsl,mpc8536-dma-channel", | 123 | compatible = "fsl,mpc8536-dma-channel", |
@@ -125,7 +125,7 @@ | |||
125 | reg = <0x100 0x80>; | 125 | reg = <0x100 0x80>; |
126 | cell-index = <2>; | 126 | cell-index = <2>; |
127 | interrupt-parent = <&mpic>; | 127 | interrupt-parent = <&mpic>; |
128 | interrupts = <16 0x2>; | 128 | interrupts = <22 2>; |
129 | }; | 129 | }; |
130 | dma-channel@180 { | 130 | dma-channel@180 { |
131 | compatible = "fsl,mpc8536-dma-channel", | 131 | compatible = "fsl,mpc8536-dma-channel", |
@@ -133,7 +133,7 @@ | |||
133 | reg = <0x180 0x80>; | 133 | reg = <0x180 0x80>; |
134 | cell-index = <3>; | 134 | cell-index = <3>; |
135 | interrupt-parent = <&mpic>; | 135 | interrupt-parent = <&mpic>; |
136 | interrupts = <17 0x2>; | 136 | interrupts = <23 2>; |
137 | }; | 137 | }; |
138 | }; | 138 | }; |
139 | 139 | ||
@@ -180,7 +180,7 @@ | |||
180 | enet0: ethernet@24000 { | 180 | enet0: ethernet@24000 { |
181 | cell-index = <0>; | 181 | cell-index = <0>; |
182 | device_type = "network"; | 182 | device_type = "network"; |
183 | model = "TSEC"; | 183 | model = "eTSEC"; |
184 | compatible = "gianfar"; | 184 | compatible = "gianfar"; |
185 | reg = <0x24000 0x1000>; | 185 | reg = <0x24000 0x1000>; |
186 | local-mac-address = [ 00 00 00 00 00 00 ]; | 186 | local-mac-address = [ 00 00 00 00 00 00 ]; |
@@ -193,7 +193,7 @@ | |||
193 | enet1: ethernet@26000 { | 193 | enet1: ethernet@26000 { |
194 | cell-index = <1>; | 194 | cell-index = <1>; |
195 | device_type = "network"; | 195 | device_type = "network"; |
196 | model = "TSEC"; | 196 | model = "eTSEC"; |
197 | compatible = "gianfar"; | 197 | compatible = "gianfar"; |
198 | reg = <0x26000 0x1000>; | 198 | reg = <0x26000 0x1000>; |
199 | local-mac-address = [ 00 00 00 00 00 00 ]; | 199 | local-mac-address = [ 00 00 00 00 00 00 ]; |
diff --git a/arch/powerpc/boot/dts/mpc8568mds.dts b/arch/powerpc/boot/dts/mpc8568mds.dts index a15f10343f5..c80158f7741 100644 --- a/arch/powerpc/boot/dts/mpc8568mds.dts +++ b/arch/powerpc/boot/dts/mpc8568mds.dts | |||
@@ -52,7 +52,7 @@ | |||
52 | }; | 52 | }; |
53 | 53 | ||
54 | bcsr@f8000000 { | 54 | bcsr@f8000000 { |
55 | device_type = "board-control"; | 55 | compatible = "fsl,mpc8568mds-bcsr"; |
56 | reg = <0xf8000000 0x8000>; | 56 | reg = <0xf8000000 0x8000>; |
57 | }; | 57 | }; |
58 | 58 | ||
diff --git a/arch/powerpc/boot/dts/mpc8572ds.dts b/arch/powerpc/boot/dts/mpc8572ds.dts index e124dd18fb5..cadd4652a69 100644 --- a/arch/powerpc/boot/dts/mpc8572ds.dts +++ b/arch/powerpc/boot/dts/mpc8572ds.dts | |||
@@ -13,8 +13,8 @@ | |||
13 | / { | 13 | / { |
14 | model = "fsl,MPC8572DS"; | 14 | model = "fsl,MPC8572DS"; |
15 | compatible = "fsl,MPC8572DS"; | 15 | compatible = "fsl,MPC8572DS"; |
16 | #address-cells = <1>; | 16 | #address-cells = <2>; |
17 | #size-cells = <1>; | 17 | #size-cells = <2>; |
18 | 18 | ||
19 | aliases { | 19 | aliases { |
20 | ethernet0 = &enet0; | 20 | ethernet0 = &enet0; |
@@ -61,7 +61,6 @@ | |||
61 | 61 | ||
62 | memory { | 62 | memory { |
63 | device_type = "memory"; | 63 | device_type = "memory"; |
64 | reg = <0x0 0x0>; // Filled by U-Boot | ||
65 | }; | 64 | }; |
66 | 65 | ||
67 | soc8572@ffe00000 { | 66 | soc8572@ffe00000 { |
@@ -69,8 +68,8 @@ | |||
69 | #size-cells = <1>; | 68 | #size-cells = <1>; |
70 | device_type = "soc"; | 69 | device_type = "soc"; |
71 | compatible = "simple-bus"; | 70 | compatible = "simple-bus"; |
72 | ranges = <0x0 0xffe00000 0x100000>; | 71 | ranges = <0x0 0 0xffe00000 0x100000>; |
73 | reg = <0xffe00000 0x1000>; // CCSRBAR & soc regs, remove once parse code for immrbase fixed | 72 | reg = <0 0xffe00000 0 0x1000>; // CCSRBAR & soc regs, remove once parse code for immrbase fixed |
74 | bus-frequency = <0>; // Filled out by uboot. | 73 | bus-frequency = <0>; // Filled out by uboot. |
75 | 74 | ||
76 | memory-controller@2000 { | 75 | memory-controller@2000 { |
@@ -351,10 +350,10 @@ | |||
351 | #interrupt-cells = <1>; | 350 | #interrupt-cells = <1>; |
352 | #size-cells = <2>; | 351 | #size-cells = <2>; |
353 | #address-cells = <3>; | 352 | #address-cells = <3>; |
354 | reg = <0xffe08000 0x1000>; | 353 | reg = <0 0xffe08000 0 0x1000>; |
355 | bus-range = <0 255>; | 354 | bus-range = <0 255>; |
356 | ranges = <0x2000000 0x0 0x80000000 0x80000000 0x0 0x20000000 | 355 | ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000 |
357 | 0x1000000 0x0 0x0 0xffc00000 0x0 0x10000>; | 356 | 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x00010000>; |
358 | clock-frequency = <33333333>; | 357 | clock-frequency = <33333333>; |
359 | interrupt-parent = <&mpic>; | 358 | interrupt-parent = <&mpic>; |
360 | interrupts = <24 2>; | 359 | interrupts = <24 2>; |
@@ -561,10 +560,10 @@ | |||
561 | #interrupt-cells = <1>; | 560 | #interrupt-cells = <1>; |
562 | #size-cells = <2>; | 561 | #size-cells = <2>; |
563 | #address-cells = <3>; | 562 | #address-cells = <3>; |
564 | reg = <0xffe09000 0x1000>; | 563 | reg = <0 0xffe09000 0 0x1000>; |
565 | bus-range = <0 255>; | 564 | bus-range = <0 255>; |
566 | ranges = <0x2000000 0x0 0xa0000000 0xa0000000 0x0 0x20000000 | 565 | ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000 |
567 | 0x1000000 0x0 0x0 0xffc10000 0x0 0x10000>; | 566 | 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x00010000>; |
568 | clock-frequency = <33333333>; | 567 | clock-frequency = <33333333>; |
569 | interrupt-parent = <&mpic>; | 568 | interrupt-parent = <&mpic>; |
570 | interrupts = <26 2>; | 569 | interrupts = <26 2>; |
@@ -598,10 +597,10 @@ | |||
598 | #interrupt-cells = <1>; | 597 | #interrupt-cells = <1>; |
599 | #size-cells = <2>; | 598 | #size-cells = <2>; |
600 | #address-cells = <3>; | 599 | #address-cells = <3>; |
601 | reg = <0xffe0a000 0x1000>; | 600 | reg = <0 0xffe0a000 0 0x1000>; |
602 | bus-range = <0 255>; | 601 | bus-range = <0 255>; |
603 | ranges = <0x2000000 0x0 0xc0000000 0xc0000000 0x0 0x20000000 | 602 | ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000 |
604 | 0x1000000 0x0 0x0 0xffc20000 0x0 0x10000>; | 603 | 0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x00010000>; |
605 | clock-frequency = <33333333>; | 604 | clock-frequency = <33333333>; |
606 | interrupt-parent = <&mpic>; | 605 | interrupt-parent = <&mpic>; |
607 | interrupts = <27 2>; | 606 | interrupts = <27 2>; |
diff --git a/drivers/i2c/busses/i2c-cpm.c b/drivers/i2c/busses/i2c-cpm.c index 8164de1f4d7..228f7572306 100644 --- a/drivers/i2c/busses/i2c-cpm.c +++ b/drivers/i2c/busses/i2c-cpm.c | |||
@@ -423,7 +423,6 @@ static const struct i2c_adapter cpm_ops = { | |||
423 | .owner = THIS_MODULE, | 423 | .owner = THIS_MODULE, |
424 | .name = "i2c-cpm", | 424 | .name = "i2c-cpm", |
425 | .algo = &cpm_i2c_algo, | 425 | .algo = &cpm_i2c_algo, |
426 | .class = I2C_CLASS_HWMON | I2C_CLASS_SPD, | ||
427 | }; | 426 | }; |
428 | 427 | ||
429 | static int __devinit cpm_i2c_setup(struct cpm_i2c *cpm) | 428 | static int __devinit cpm_i2c_setup(struct cpm_i2c *cpm) |
diff --git a/drivers/of/of_spi.c b/drivers/of/of_spi.c index b01eec026f6..bed0ed6dcdc 100644 --- a/drivers/of/of_spi.c +++ b/drivers/of/of_spi.c | |||
@@ -61,6 +61,8 @@ void of_register_spi_devices(struct spi_master *master, struct device_node *np) | |||
61 | spi->mode |= SPI_CPHA; | 61 | spi->mode |= SPI_CPHA; |
62 | if (of_find_property(nc, "spi-cpol", NULL)) | 62 | if (of_find_property(nc, "spi-cpol", NULL)) |
63 | spi->mode |= SPI_CPOL; | 63 | spi->mode |= SPI_CPOL; |
64 | if (of_find_property(nc, "spi-cs-high", NULL)) | ||
65 | spi->mode |= SPI_CS_HIGH; | ||
64 | 66 | ||
65 | /* Device speed */ | 67 | /* Device speed */ |
66 | prop = of_get_property(nc, "spi-max-frequency", &len); | 68 | prop = of_get_property(nc, "spi-max-frequency", &len); |