aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/boot
diff options
context:
space:
mode:
authorJaedon Shin <jaedon.shin@gmail.com>2015-10-20 22:37:01 -0400
committerRalf Baechle <ralf@linux-mips.org>2015-11-11 02:37:45 -0500
commitf50cbf5329e045e8d69046ea9093e6bafdc09516 (patch)
tree7105afefe33765eb8930b6b56522c8a8bff34d49 /arch/mips/boot
parentfb575b85efd091bad0e0a1220426086c789074d7 (diff)
MIPS: BMIPS: Add I2C node for bcm7362
Add I2C device nodes to BMIPS based BCM7362 platform. Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Cc: Wolfram Sang <wsa@the-dreams.de> Cc: Kamal Dasu <kdasu.kdev@gmail.com> Cc: linux-i2c@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/11336/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/boot')
-rw-r--r--arch/mips/boot/dts/brcm/bcm7362.dtsi52
-rw-r--r--arch/mips/boot/dts/brcm/bcm97362svmb.dts12
2 files changed, 62 insertions, 2 deletions
diff --git a/arch/mips/boot/dts/brcm/bcm7362.dtsi b/arch/mips/boot/dts/brcm/bcm7362.dtsi
index 6e65db86fc61..5f817be2553c 100644
--- a/arch/mips/boot/dts/brcm/bcm7362.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7362.dtsi
@@ -87,14 +87,32 @@
87 compatible = "brcm,bcm7120-l2-intc"; 87 compatible = "brcm,bcm7120-l2-intc";
88 reg = <0x406600 0x8>; 88 reg = <0x406600 0x8>;
89 89
90 brcm,int-map-mask = <0x44>; 90 brcm,int-map-mask = <0x44>, <0x7000000>;
91 brcm,int-fwd-mask = <0x70000>; 91 brcm,int-fwd-mask = <0x70000>;
92 92
93 interrupt-controller; 93 interrupt-controller;
94 #interrupt-cells = <1>; 94 #interrupt-cells = <1>;
95 95
96 interrupt-parent = <&periph_intc>; 96 interrupt-parent = <&periph_intc>;
97 interrupts = <56>; 97 interrupts = <56>, <54>;
98 interrupt-names = "upg_main", "upg_bsc";
99 };
100
101 upg_aon_irq0_intc: upg_aon_irq0_intc@408b80 {
102 compatible = "brcm,bcm7120-l2-intc";
103 reg = <0x408b80 0x8>;
104
105 brcm,int-map-mask = <0x40>, <0x8000000>, <0x100000>;
106 brcm,int-fwd-mask = <0>;
107 brcm,irq-can-wake;
108
109 interrupt-controller;
110 #interrupt-cells = <1>;
111
112 interrupt-parent = <&periph_intc>;
113 interrupts = <57>, <55>, <59>;
114 interrupt-names = "upg_main_aon", "upg_bsc_aon",
115 "upg_spi";
98 }; 116 };
99 117
100 sun_top_ctrl: syscon@404000 { 118 sun_top_ctrl: syscon@404000 {
@@ -144,6 +162,36 @@
144 status = "disabled"; 162 status = "disabled";
145 }; 163 };
146 164
165 bsca: i2c@406200 {
166 clock-frequency = <390000>;
167 compatible = "brcm,brcmstb-i2c";
168 interrupt-parent = <&upg_irq0_intc>;
169 reg = <0x406200 0x58>;
170 interrupts = <24>;
171 interrupt-names = "upg_bsca";
172 status = "disabled";
173 };
174
175 bscb: i2c@406280 {
176 clock-frequency = <390000>;
177 compatible = "brcm,brcmstb-i2c";
178 interrupt-parent = <&upg_irq0_intc>;
179 reg = <0x406280 0x58>;
180 interrupts = <25>;
181 interrupt-names = "upg_bscb";
182 status = "disabled";
183 };
184
185 bscd: i2c@408980 {
186 clock-frequency = <390000>;
187 compatible = "brcm,brcmstb-i2c";
188 interrupt-parent = <&upg_aon_irq0_intc>;
189 reg = <0x408980 0x58>;
190 interrupts = <27>;
191 interrupt-names = "upg_bscd";
192 status = "disabled";
193 };
194
147 enet0: ethernet@430000 { 195 enet0: ethernet@430000 {
148 phy-mode = "internal"; 196 phy-mode = "internal";
149 phy-handle = <&phy1>; 197 phy-handle = <&phy1>;
diff --git a/arch/mips/boot/dts/brcm/bcm97362svmb.dts b/arch/mips/boot/dts/brcm/bcm97362svmb.dts
index 739c2ef5663b..9c99bfd1e781 100644
--- a/arch/mips/boot/dts/brcm/bcm97362svmb.dts
+++ b/arch/mips/boot/dts/brcm/bcm97362svmb.dts
@@ -29,6 +29,18 @@
29 status = "okay"; 29 status = "okay";
30}; 30};
31 31
32&bsca {
33 status = "okay";
34};
35
36&bscb {
37 status = "okay";
38};
39
40&bscd {
41 status = "okay";
42};
43
32&enet0 { 44&enet0 {
33 status = "okay"; 45 status = "okay";
34}; 46};