This commit adds PECI bus/adapter node of AST24xx/AST25xx into
aspeed-g4 and aspeed-g5.

Signed-off-by: Jae Hyun Yoo <jae.hyun....@linux.intel.com>
Reviewed-by: Haiyue Wang <haiyue.w...@linux.intel.com>
Reviewed-by: James Feist <james.fe...@linux.intel.com>
Reviewed-by: Vernon Mauery <vernon.mau...@linux.intel.com>
Cc: Alan Cox <a...@linux.intel.com>
Cc: Andrew Jeffery <and...@aj.id.au>
Cc: Andrew Lunn <and...@lunn.ch>
Cc: Andy Shevchenko <andriy.shevche...@intel.com>
Cc: Arnd Bergmann <a...@arndb.de>
Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org>
Cc: Fengguang Wu <fengguang...@intel.com>
Cc: Greg KH <gre...@linuxfoundation.org>
Cc: Guenter Roeck <li...@roeck-us.net>
Cc: Jason M Biils <jason.m.bi...@linux.intel.com>
Cc: Jean Delvare <jdelv...@suse.com>
Cc: Joel Stanley <j...@jms.id.au>
Cc: Julia Cartwright <jul...@eso.teric.us>
Cc: Miguel Ojeda <miguel.ojeda.sando...@gmail.com>
Cc: Milton Miller II <milt...@us.ibm.com>
Cc: Pavel Machek <pa...@ucw.cz>
Cc: Randy Dunlap <rdun...@infradead.org>
Cc: Stef van Os <stef.van...@prodrive-technologies.com>
Cc: Sumeet R Pawnikar <sumeet.r.pawni...@intel.com>
---
 arch/arm/boot/dts/aspeed-g4.dtsi | 25 +++++++++++++++++++++++++
 arch/arm/boot/dts/aspeed-g5.dtsi | 25 +++++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi
index 518d2bc7c7fc..f7992eee4d1f 100644
--- a/arch/arm/boot/dts/aspeed-g4.dtsi
+++ b/arch/arm/boot/dts/aspeed-g4.dtsi
@@ -29,6 +29,7 @@
                serial3 = &uart4;
                serial4 = &uart5;
                serial5 = &vuart;
+               peci0 = &peci0;
        };
 
        cpus {
@@ -270,6 +271,13 @@
                                };
                        };
 
+                       peci: peci@1e78b000 {
+                               compatible = "simple-bus";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               ranges = <0x0 0x1e78b000 0x60>;
+                       };
+
                        uart2: serial@1e78d000 {
                                compatible = "ns16550a";
                                reg = <0x1e78d000 0x20>;
@@ -313,6 +321,23 @@
        };
 };
 
+&peci {
+       peci0: peci-bus@0 {
+               compatible = "aspeed,ast2400-peci";
+               reg = <0x0 0x60>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               interrupts = <15>;
+               clocks = <&syscon ASPEED_CLK_GATE_REFCLK>;
+               clock-frequency = <24000000>;
+               msg-timing-nego = <1>;
+               addr-timing-nego = <1>;
+               rd-sampling-point = <8>;
+               cmd-timeout-ms = <1000>;
+               status = "disabled";
+       };
+};
+
 &i2c {
        i2c_ic: interrupt-controller@0 {
                #interrupt-cells = <1>;
diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi
index f9917717dd08..278791dba8a0 100644
--- a/arch/arm/boot/dts/aspeed-g5.dtsi
+++ b/arch/arm/boot/dts/aspeed-g5.dtsi
@@ -29,6 +29,7 @@
                serial3 = &uart4;
                serial4 = &uart5;
                serial5 = &vuart;
+               peci0 = &peci0;
        };
 
        cpus {
@@ -320,6 +321,13 @@
                                };
                        };
 
+                       peci: peci@1e78b000 {
+                               compatible = "simple-bus";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               ranges = <0x0 0x1e78b000 0x60>;
+                       };
+
                        uart2: serial@1e78d000 {
                                compatible = "ns16550a";
                                reg = <0x1e78d000 0x20>;
@@ -363,6 +371,23 @@
        };
 };
 
+&peci {
+       peci0: peci-bus@0 {
+               compatible = "aspeed,ast2500-peci";
+               reg = <0x0 0x60>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               interrupts = <15>;
+               clocks = <&syscon ASPEED_CLK_GATE_REFCLK>;
+               clock-frequency = <24000000>;
+               msg-timing-nego = <1>;
+               addr-timing-nego = <1>;
+               rd-sampling-point = <8>;
+               cmd-timeout-ms = <1000>;
+               status = "disabled";
+       };
+};
+
 &i2c {
        i2c_ic: interrupt-controller@0 {
                #interrupt-cells = <1>;
-- 
2.16.2

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to