123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912 |
- // SPDX-License-Identifier: GPL-2.0+
- /dts-v1/;
- #include "aspeed-g5.dtsi"
- #include <dt-bindings/gpio/aspeed-gpio.h>
- #include <dt-bindings/leds/leds-pca955x.h>
- #include <dt-bindings/interrupt-controller/irq.h>
- / {
- model = "FP5280G2 BMC";
- compatible = "inspur,fp5280g2-bmc", "aspeed,ast2500";
- chosen {
- stdout-path = &uart5;
- bootargs = "console=ttyS4,115200 earlycon";
- };
- memory@80000000 {
- reg = <0x80000000 0x20000000>;
- };
- reserved-memory {
- #address-cells = <1>;
- #size-cells = <1>;
- ranges;
- vga_memory: framebuffer@9f000000 {
- no-map;
- reg = <0x9f000000 0x01000000>; /* 16M */
- };
- flash_memory: region@98000000 {
- no-map;
- reg = <0x98000000 0x04000000>; /* 64M */
- };
- coldfire_memory: codefire_memory@9ef00000 {
- reg = <0x9ef00000 0x00100000>;
- no-map;
- };
- gfx_memory: framebuffer {
- size = <0x01000000>;
- alignment = <0x01000000>;
- compatible = "shared-dma-pool";
- reusable;
- };
- video_engine_memory: jpegbuffer {
- size = <0x02000000>; /* 32M */
- alignment = <0x01000000>;
- compatible = "shared-dma-pool";
- reusable;
- };
- };
- fsi: gpio-fsi {
- compatible = "aspeed,ast2500-cf-fsi-master", "fsi-master";
- #address-cells = <2>;
- #size-cells = <0>;
- no-gpio-delays;
- memory-region = <&coldfire_memory>;
- aspeed,sram = <&sram>;
- aspeed,cvic = <&cvic>;
- clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
- data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>;
- mux-gpios = <&gpio ASPEED_GPIO(I, 2) GPIO_ACTIVE_HIGH>;
- enable-gpios = <&gpio ASPEED_GPIO(I, 3) GPIO_ACTIVE_HIGH>;
- trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
- };
- gpio-keys {
- compatible = "gpio-keys";
- event-checkstop {
- label = "checkstop";
- gpios = <&gpio ASPEED_GPIO(B, 3) GPIO_ACTIVE_LOW>;
- linux,code = <ASPEED_GPIO(B, 3)>;
- };
- event-ps0-presence {
- label = "ps0-presence";
- gpios = <&gpio ASPEED_GPIO(F, 0) GPIO_ACTIVE_LOW>;
- linux,code = <ASPEED_GPIO(F, 0)>;
- };
- event-ps1-presence {
- label = "ps1-presence";
- gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>;
- linux,code = <ASPEED_GPIO(F, 1)>;
- };
- };
- gpio-keys-polled {
- compatible = "gpio-keys-polled";
- poll-interval = <1000>;
- event-fan0-presence {
- label = "fan0-presence";
- gpios = <&pca1 0 GPIO_ACTIVE_LOW>;
- linux,code = <1>;
- };
- event-fan1-presence {
- label = "fan1-presence";
- gpios = <&pca1 1 GPIO_ACTIVE_LOW>;
- linux,code = <2>;
- };
- event-fan2-presence {
- label = "fan2-presence";
- gpios = <&pca1 2 GPIO_ACTIVE_LOW>;
- linux,code = <3>;
- };
- event-fan3-presence {
- label = "fan3-presence";
- gpios = <&pca1 3 GPIO_ACTIVE_LOW>;
- linux,code = <4>;
- };
- event-fan4-presence {
- label = "fan4-presence";
- gpios = <&pca1 4 GPIO_ACTIVE_LOW>;
- linux,code = <5>;
- };
- event-fan5-presence {
- label = "fan5-presence";
- gpios = <&pca1 5 GPIO_ACTIVE_LOW>;
- linux,code = <6>;
- };
- event-fan6-presence {
- label = "fan6-presence";
- gpios = <&pca1 6 GPIO_ACTIVE_LOW>;
- linux,code = <7>;
- };
- event-fan7-presence {
- label = "fan7-presence";
- gpios = <&pca1 7 GPIO_ACTIVE_LOW>;
- linux,code = <8>;
- };
- };
- leds {
- compatible = "gpio-leds";
- power {
- label = "power";
- /* TODO: dummy gpio */
- gpios = <&gpio ASPEED_GPIO(R, 1) GPIO_ACTIVE_LOW>;
- };
- init-ok {
- label = "init-ok";
- gpios = <&gpio ASPEED_GPIO(B, 7) GPIO_ACTIVE_LOW>;
- };
- front-memory {
- label = "front-memory";
- gpios = <&gpio ASPEED_GPIO(F, 4) GPIO_ACTIVE_LOW>;
- };
- front-syshot {
- label = "front-syshot";
- gpios = <&gpio ASPEED_GPIO(I, 1) GPIO_ACTIVE_LOW>;
- };
- front-syshealth {
- label = "front-syshealth";
- gpios = <&gpio ASPEED_GPIO(I, 0) GPIO_ACTIVE_LOW>;
- };
- front-fan {
- label = "front-fan";
- gpios = <&gpio ASPEED_GPIO(H, 4) GPIO_ACTIVE_LOW>;
- };
- front-psu {
- label = "front-psu";
- gpios = <&gpio ASPEED_GPIO(B, 2) GPIO_ACTIVE_LOW>;
- };
- identify {
- label = "identify";
- gpios = <&gpio ASPEED_GPIO(Z, 7) GPIO_ACTIVE_LOW>;
- };
- };
- iio-hwmon-battery {
- compatible = "iio-hwmon";
- io-channels = <&adc 15>;
- };
- iio-hwmon {
- compatible = "iio-hwmon";
- io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>,
- <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>,
- <&adc 10>, <&adc 11>, <&adc 12>, <&adc 13>, <&adc 14>;
- };
- };
- &gpio {
- gpio-line-names =
- /*A0-A7*/ "","","","","","","","",
- /*B0-B7*/ "","","front-psu","checkstop","cfam-reset","","","init-ok",
- /*C0-C7*/ "","","","","","","","",
- /*D0-D7*/ "","","","","","","","",
- /*E0-E7*/ "","","","","","","","",
- /*F0-F7*/ "ps0-presence","ps1-presence","","","front-memory","","","",
- /*G0-G7*/ "","","","","","","","",
- /*H0-H7*/ "","","","","front-fan","","","",
- /*I0-I7*/ "front-syshealth","front-syshot","mux-gpios","enable-gpios","","","","",
- /*J0-J7*/ "","","","","","","","",
- /*K0-K7*/ "","","","","","","","",
- /*L0-L7*/ "","","","","","","","",
- /*M0-M7*/ "","","","","","","","",
- /*N0-N7*/ "","","","","","","","",
- /*O0-O7*/ "","","","","","","","",
- /*P0-P7*/ "","","","","","","","",
- /*Q0-Q7*/ "","","","","","","","",
- /*R0-R7*/ "","power","trans-gpios","","","","","",
- /*S0-S7*/ "","","","","","","","",
- /*T0-T7*/ "","","","","","","","",
- /*U0-U7*/ "","","","","","","","",
- /*V0-V7*/ "","","","","","","","",
- /*W0-W7*/ "","","","","","","","",
- /*X0-X7*/ "","","","","","","","",
- /*Y0-Y7*/ "","","","","","","","",
- /*Z0-Z7*/ "","","","","","","","identify",
- /*AA0-AA7*/ "clock-gpios","","data-gpios","","","","","",
- /*AB0-AB7*/ "","","","","","","","",
- /*AC0-AC7*/ "","","","","","","","";
- };
- &fmc {
- status = "okay";
- flash@0 {
- status = "okay";
- label = "bmc";
- m25p,fast-read;
- spi-max-frequency = <50000000>;
- #include "openbmc-flash-layout-64.dtsi"
- };
- };
- &spi1 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_spi1_default>;
- flash@0 {
- status = "okay";
- label = "pnor";
- m25p,fast-read;
- spi-max-frequency = <100000000>;
- };
- };
- &uart1 {
- /* Rear RS-232 connector */
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_txd1_default
- &pinctrl_rxd1_default
- &pinctrl_nrts1_default
- &pinctrl_ndtr1_default
- &pinctrl_ndsr1_default
- &pinctrl_ncts1_default
- &pinctrl_ndcd1_default
- &pinctrl_nri1_default>;
- };
- &uart2 {
- /* Test Point */
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
- };
- &uart3 {
- /* APSS */
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_txd3_default &pinctrl_rxd3_default>;
- };
- &uart5 {
- status = "okay";
- };
- &lpc_ctrl {
- status = "okay";
- memory-region = <&flash_memory>;
- flash = <&spi1>;
- };
- &mac0 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_rmii1_default>;
- clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
- <&syscon ASPEED_CLK_MAC1RCLK>;
- clock-names = "MACCLK", "RCLK";
- use-ncsi;
- };
- &mac1 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>;
- };
- &i2c0 {
- /* LCD */
- status = "okay";
- };
- &i2c1 {
- status = "okay";
- eeprom@50 {
- compatible = "atmel,24c256";
- reg = <0x50>;
- label = "fru";
- };
- };
- &i2c2 {
- status = "okay";
- tmp112@48 {
- compatible = "ti,tmp112";
- reg = <0x48>;
- label = "inlet";
- };
- tmp112@49 {
- compatible = "ti,tmp112";
- reg = <0x49>;
- label = "outlet";
- };
- i2c-switch@70 {
- compatible = "nxp,pca9546";
- reg = <0x70>;
- #address-cells = <1>;
- #size-cells = <0>;
- i2c@0 {
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <0>;
- tmp112@4a {
- compatible = "ti,tmp112";
- reg = <0x4a>;
- label = "psu_inlet";
- };
- };
- i2c@1 {
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <1>;
- tmp112@4a {
- compatible = "ti,tmp112";
- reg = <0x4a>;
- label = "ocp_zone";
- };
- };
- i2c@2 {
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <2>;
- tmp112@4a {
- compatible = "ti,tmp112";
- reg = <0x4a>;
- label = "bmc_zone";
- };
- };
- i2c@3 {
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <3>;
- tmp112@7c {
- compatible = "microchip,emc1413";
- reg = <0x7c>;
- };
- };
- };
- };
- &i2c3 {
- /* Riser Card */
- status = "okay";
- };
- &i2c4 {
- status = "okay";
- rtc@68 {
- compatible = "dallas,ds3232";
- reg = <0x68>;
- };
- };
- &i2c5 {
- /* vr */
- status = "okay";
- };
- &i2c6 {
- /* bp card */
- status = "okay";
- };
- &i2c7 {
- status = "okay";
- i2c-switch@70 {
- compatible = "nxp,pca9546";
- reg = <0x70>;
- #address-cells = <1>;
- #size-cells = <0>;
- i2c@0 {
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <0>;
- adm1278@10 {
- compatible = "adi,adm1278";
- reg = <0x10>;
- };
- adm1278@13 {
- compatible = "adi,adm1278";
- reg = <0x13>;
- };
- adm1278@50 {
- compatible = "adi,adm1278";
- reg = <0x50>;
- };
- adm1278@53 {
- compatible = "adi,adm1278";
- reg = <0x53>;
- };
- };
- /*pcie riser*/
- };
- };
- &i2c8 {
- status = "okay";
- pca0: pca9555@20 {
- compatible = "nxp,pca9555";
- reg = <0x20>;
- #address-cells = <1>;
- #size-cells = <0>;
- gpio-controller;
- #gpio-cells = <2>;
- gpio@0 {
- reg = <0>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@1 {
- reg = <1>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@2 {
- reg = <2>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@3 {
- reg = <3>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@4 {
- reg = <4>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@5 {
- reg = <5>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@6 {
- reg = <6>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@7 {
- reg = <7>;
- type = <PCA955X_TYPE_GPIO>;
- };
- };
- pca1: pca9555@21 {
- compatible = "nxp,pca9555";
- reg = <0x21>;
- #address-cells = <1>;
- #size-cells = <0>;
- gpio-controller;
- #gpio-cells = <2>;
- gpio@0 {
- reg = <0>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@1 {
- reg = <1>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@2 {
- reg = <2>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@3 {
- reg = <3>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@4 {
- reg = <4>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@5 {
- reg = <5>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@6 {
- reg = <6>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@7 {
- reg = <7>;
- type = <PCA955X_TYPE_GPIO>;
- };
- };
- pca2: pca9555@22 {
- compatible = "nxp,pca9555";
- reg = <0x22>;
- #address-cells = <1>;
- #size-cells = <0>;
- gpio-controller;
- #gpio-cells = <2>;
- gpio@0 {
- reg = <0>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@1 {
- reg = <1>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@2 {
- reg = <2>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@3 {
- reg = <3>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@4 {
- reg = <4>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@5 {
- reg = <5>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@6 {
- reg = <6>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@7 {
- reg = <7>;
- type = <PCA955X_TYPE_GPIO>;
- };
- };
- pca3: pca9555@23 {
- compatible = "nxp,pca9555";
- reg = <0x23>;
- #address-cells = <1>;
- #size-cells = <0>;
- gpio-controller;
- #gpio-cells = <2>;
- gpio@0 {
- reg = <0>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@1 {
- reg = <1>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@2 {
- reg = <2>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@3 {
- reg = <3>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@4 {
- reg = <4>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@5 {
- reg = <5>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@6 {
- reg = <6>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@7 {
- reg = <7>;
- type = <PCA955X_TYPE_GPIO>;
- };
- };
- pca4: pca9555@24 {
- compatible = "nxp,pca9555";
- reg = <0x24>;
- #address-cells = <1>;
- #size-cells = <0>;
- gpio-controller;
- #gpio-cells = <2>;
- gpio@0 {
- reg = <0>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@1 {
- reg = <1>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@2 {
- reg = <2>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@3 {
- reg = <3>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@4 {
- reg = <4>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@5 {
- reg = <5>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@6 {
- reg = <6>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@7 {
- reg = <7>;
- type = <PCA955X_TYPE_GPIO>;
- };
- };
- pca5: pca9555@25 {
- compatible = "nxp,pca9555";
- reg = <0x25>;
- #address-cells = <1>;
- #size-cells = <0>;
- gpio-controller;
- #gpio-cells = <2>;
- gpio@0 {
- reg = <0>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@1 {
- reg = <1>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@2 {
- reg = <2>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@3 {
- reg = <3>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@4 {
- reg = <4>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@5 {
- reg = <5>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@6 {
- reg = <6>;
- type = <PCA955X_TYPE_GPIO>;
- };
- gpio@7 {
- reg = <7>;
- type = <PCA955X_TYPE_GPIO>;
- };
- };
- };
- &i2c9 {
- /* cpld */
- status = "okay";
- };
- &i2c10 {
- /* hdd bp */
- status = "okay";
- };
- &i2c11 {
- status = "okay";
- power-supply@58 {
- compatible = "inspur,ipsps1";
- reg = <0x58>;
- };
- power-supply@59 {
- compatible = "inspur,ipsps1";
- reg = <0x59>;
- };
- };
- &i2c12 {
- /* odcc */
- status = "okay";
- };
- &vuart {
- status = "okay";
- };
- &gfx {
- status = "okay";
- memory-region = <&gfx_memory>;
- };
- &pinctrl {
- aspeed,external-nodes = <&gfx &lhc>;
- };
- &wdt1 {
- aspeed,reset-type = "none";
- aspeed,external-signal;
- aspeed,ext-push-pull;
- aspeed,ext-active-high;
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_wdtrst1_default>;
- };
- &ibt {
- status = "okay";
- };
- &adc {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default
- &pinctrl_adc2_default &pinctrl_adc3_default &pinctrl_adc4_default
- &pinctrl_adc5_default &pinctrl_adc6_default &pinctrl_adc7_default
- &pinctrl_adc8_default &pinctrl_adc9_default &pinctrl_adc10_default
- &pinctrl_adc11_default &pinctrl_adc12_default &pinctrl_adc13_default
- &pinctrl_adc14_default &pinctrl_adc15_default>;
- };
- &vhub {
- status = "okay";
- };
- &video {
- status = "okay";
- memory-region = <&video_engine_memory>;
- };
- &pwm_tacho {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
- &pinctrl_pwm2_default &pinctrl_pwm3_default
- &pinctrl_pwm4_default &pinctrl_pwm5_default
- &pinctrl_pwm6_default &pinctrl_pwm7_default>;
- fan@0 {
- reg = <0x00>;
- aspeed,fan-tach-ch = /bits/ 8 <0x00 0x01>;
- };
- fan@1 {
- reg = <0x01>;
- aspeed,fan-tach-ch = /bits/ 8 <0x02 0x03>;
- };
- fan@2 {
- reg = <0x02>;
- aspeed,fan-tach-ch = /bits/ 8 <0x04 0x05>;
- };
- fan@3 {
- reg = <0x03>;
- aspeed,fan-tach-ch = /bits/ 8 <0x06 0x07>;
- };
- fan@4 {
- reg = <0x04>;
- aspeed,fan-tach-ch = /bits/ 8 <0x08 0x09>;
- };
- fan@5 {
- reg = <0x05>;
- aspeed,fan-tach-ch = /bits/ 8 <0x0a 0x0b>;
- };
- fan@6 {
- reg = <0x06>;
- aspeed,fan-tach-ch = /bits/ 8 <0x0c 0x0d>;
- };
- fan@7 {
- reg = <0x07>;
- aspeed,fan-tach-ch = /bits/ 8 <0x0e 0x0f>;
- };
- };
- &kcs3 {
- status = "okay";
- aspeed,lpc-io-reg = <0xca2>;
- aspeed,lpc-interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
- };
- #include "ibm-power9-dual.dtsi"
|