1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later 2*f126890aSEmmanuel Vadot// Copyright (c) 2022 Ufispace Co., Ltd. 3*f126890aSEmmanuel Vadot/dts-v1/; 4*f126890aSEmmanuel Vadot 5*f126890aSEmmanuel Vadot#include "aspeed-g6.dtsi" 6*f126890aSEmmanuel Vadot#include <dt-bindings/i2c/i2c.h> 7*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/aspeed-gpio.h> 8*f126890aSEmmanuel Vadot 9*f126890aSEmmanuel Vadot/ { 10*f126890aSEmmanuel Vadot model = "Ufispace NCPLite BMC"; 11*f126890aSEmmanuel Vadot compatible = "ufispace,ncplite-bmc", "aspeed,ast2600"; 12*f126890aSEmmanuel Vadot 13*f126890aSEmmanuel Vadot aliases { 14*f126890aSEmmanuel Vadot serial4 = &uart5; 15*f126890aSEmmanuel Vadot }; 16*f126890aSEmmanuel Vadot 17*f126890aSEmmanuel Vadot chosen { 18*f126890aSEmmanuel Vadot stdout-path = &uart5; 19*f126890aSEmmanuel Vadot bootargs = "console=ttyS4,115200n8 earlycon"; 20*f126890aSEmmanuel Vadot }; 21*f126890aSEmmanuel Vadot 22*f126890aSEmmanuel Vadot memory@80000000 { 23*f126890aSEmmanuel Vadot device_type = "memory"; 24*f126890aSEmmanuel Vadot reg = <0x80000000 0x80000000>; 25*f126890aSEmmanuel Vadot }; 26*f126890aSEmmanuel Vadot 27*f126890aSEmmanuel Vadot iio-hwmon { 28*f126890aSEmmanuel Vadot compatible = "iio-hwmon"; 29*f126890aSEmmanuel Vadot io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>, 30*f126890aSEmmanuel Vadot <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>, 31*f126890aSEmmanuel Vadot <&adc1 0>, <&adc1 1>, <&adc1 2>, <&adc1 3>, 32*f126890aSEmmanuel Vadot <&adc1 4>, <&adc1 5>, <&adc1 6>, <&adc1 7>; 33*f126890aSEmmanuel Vadot }; 34*f126890aSEmmanuel Vadot 35*f126890aSEmmanuel Vadot gpio-keys { 36*f126890aSEmmanuel Vadot compatible = "gpio-keys"; 37*f126890aSEmmanuel Vadot 38*f126890aSEmmanuel Vadot fan-status-int-l { 39*f126890aSEmmanuel Vadot label = "fan-status-int-l"; 40*f126890aSEmmanuel Vadot gpios = <&gpio0 ASPEED_GPIO(M, 2) GPIO_ACTIVE_LOW>; 41*f126890aSEmmanuel Vadot linux,code = <ASPEED_GPIO(M, 2)>; 42*f126890aSEmmanuel Vadot }; 43*f126890aSEmmanuel Vadot 44*f126890aSEmmanuel Vadot allpwr-good { 45*f126890aSEmmanuel Vadot label = "allpwr-good"; 46*f126890aSEmmanuel Vadot gpios = <&gpio0 ASPEED_GPIO(V, 4) GPIO_ACTIVE_HIGH>; 47*f126890aSEmmanuel Vadot linux,code = <ASPEED_GPIO(V, 4)>; 48*f126890aSEmmanuel Vadot }; 49*f126890aSEmmanuel Vadot 50*f126890aSEmmanuel Vadot psu0-alert-n { 51*f126890aSEmmanuel Vadot label = "psu0-alert-n"; 52*f126890aSEmmanuel Vadot gpios = <&gpio0 ASPEED_GPIO(V, 1) GPIO_ACTIVE_LOW>; 53*f126890aSEmmanuel Vadot linux,code = <ASPEED_GPIO(V, 1)>; 54*f126890aSEmmanuel Vadot }; 55*f126890aSEmmanuel Vadot 56*f126890aSEmmanuel Vadot psu1-alert-n { 57*f126890aSEmmanuel Vadot label = "psu1-alert-n"; 58*f126890aSEmmanuel Vadot gpios = <&gpio0 ASPEED_GPIO(V, 2) GPIO_ACTIVE_LOW>; 59*f126890aSEmmanuel Vadot linux,code = <ASPEED_GPIO(V, 2)>; 60*f126890aSEmmanuel Vadot }; 61*f126890aSEmmanuel Vadot 62*f126890aSEmmanuel Vadot int-thermal-alert { 63*f126890aSEmmanuel Vadot label = "int-thermal-alert"; 64*f126890aSEmmanuel Vadot gpios = <&gpio0 ASPEED_GPIO(P, 2) GPIO_ACTIVE_LOW>; 65*f126890aSEmmanuel Vadot linux,code = <ASPEED_GPIO(P, 2)>; 66*f126890aSEmmanuel Vadot }; 67*f126890aSEmmanuel Vadot 68*f126890aSEmmanuel Vadot cpu-caterr-l { 69*f126890aSEmmanuel Vadot label = "cpu-caterr-l"; 70*f126890aSEmmanuel Vadot gpios = <&gpio0 ASPEED_GPIO(N, 3) GPIO_ACTIVE_LOW>; 71*f126890aSEmmanuel Vadot linux,code = <ASPEED_GPIO(N, 3)>; 72*f126890aSEmmanuel Vadot }; 73*f126890aSEmmanuel Vadot 74*f126890aSEmmanuel Vadot cpu-thermtrip-l { 75*f126890aSEmmanuel Vadot label = "cpu-thermtrip-l"; 76*f126890aSEmmanuel Vadot gpios = <&gpio0 ASPEED_GPIO(V, 5) GPIO_ACTIVE_LOW>; 77*f126890aSEmmanuel Vadot linux,code = <ASPEED_GPIO(V, 5)>; 78*f126890aSEmmanuel Vadot }; 79*f126890aSEmmanuel Vadot 80*f126890aSEmmanuel Vadot psu0-presence-l { 81*f126890aSEmmanuel Vadot label = "psu0-presence-l"; 82*f126890aSEmmanuel Vadot gpios = <&gpio0 ASPEED_GPIO(F, 6) GPIO_ACTIVE_LOW>; 83*f126890aSEmmanuel Vadot linux,code = <ASPEED_GPIO(F, 6)>; 84*f126890aSEmmanuel Vadot }; 85*f126890aSEmmanuel Vadot 86*f126890aSEmmanuel Vadot psu1-presence-l { 87*f126890aSEmmanuel Vadot label = "psu1-presence-l"; 88*f126890aSEmmanuel Vadot gpios = <&gpio0 ASPEED_GPIO(F, 7) GPIO_ACTIVE_LOW>; 89*f126890aSEmmanuel Vadot linux,code = <ASPEED_GPIO(F, 7)>; 90*f126890aSEmmanuel Vadot }; 91*f126890aSEmmanuel Vadot 92*f126890aSEmmanuel Vadot psu0-power-ok { 93*f126890aSEmmanuel Vadot label = "psu0-power-ok"; 94*f126890aSEmmanuel Vadot gpios = <&gpio0 ASPEED_GPIO(M, 4) GPIO_ACTIVE_HIGH>; 95*f126890aSEmmanuel Vadot linux,code = <ASPEED_GPIO(M, 4)>; 96*f126890aSEmmanuel Vadot }; 97*f126890aSEmmanuel Vadot 98*f126890aSEmmanuel Vadot psu1-power-ok { 99*f126890aSEmmanuel Vadot label = "psu1-power-ok"; 100*f126890aSEmmanuel Vadot gpios = <&gpio0 ASPEED_GPIO(M, 5) GPIO_ACTIVE_HIGH>; 101*f126890aSEmmanuel Vadot linux,code = <ASPEED_GPIO(M, 5)>; 102*f126890aSEmmanuel Vadot }; 103*f126890aSEmmanuel Vadot }; 104*f126890aSEmmanuel Vadot 105*f126890aSEmmanuel Vadot gpio-keys-polled { 106*f126890aSEmmanuel Vadot compatible = "gpio-keys-polled"; 107*f126890aSEmmanuel Vadot #address-cells = <1>; 108*f126890aSEmmanuel Vadot #size-cells = <0>; 109*f126890aSEmmanuel Vadot poll-interval = <1000>; 110*f126890aSEmmanuel Vadot 111*f126890aSEmmanuel Vadot fan0-presence { 112*f126890aSEmmanuel Vadot label = "fan0-presence"; 113*f126890aSEmmanuel Vadot gpios = <&fan_ioexp 2 GPIO_ACTIVE_LOW>; 114*f126890aSEmmanuel Vadot linux,code = <2>; 115*f126890aSEmmanuel Vadot }; 116*f126890aSEmmanuel Vadot 117*f126890aSEmmanuel Vadot fan1-presence { 118*f126890aSEmmanuel Vadot label = "fan1-presence"; 119*f126890aSEmmanuel Vadot gpios = <&fan_ioexp 6 GPIO_ACTIVE_LOW>; 120*f126890aSEmmanuel Vadot linux,code = <6>; 121*f126890aSEmmanuel Vadot }; 122*f126890aSEmmanuel Vadot 123*f126890aSEmmanuel Vadot fan2-presence { 124*f126890aSEmmanuel Vadot label = "fan2-presence"; 125*f126890aSEmmanuel Vadot gpios = <&fan_ioexp 10 GPIO_ACTIVE_LOW>; 126*f126890aSEmmanuel Vadot linux,code = <10>; 127*f126890aSEmmanuel Vadot }; 128*f126890aSEmmanuel Vadot 129*f126890aSEmmanuel Vadot fan3-presence { 130*f126890aSEmmanuel Vadot label = "fan3-presence"; 131*f126890aSEmmanuel Vadot gpios = <&fan_ioexp 14 GPIO_ACTIVE_LOW>; 132*f126890aSEmmanuel Vadot linux,code = <14>; 133*f126890aSEmmanuel Vadot }; 134*f126890aSEmmanuel Vadot }; 135*f126890aSEmmanuel Vadot}; 136*f126890aSEmmanuel Vadot 137*f126890aSEmmanuel Vadot&mac2 { 138*f126890aSEmmanuel Vadot status = "okay"; 139*f126890aSEmmanuel Vadot use-ncsi; 140*f126890aSEmmanuel Vadot 141*f126890aSEmmanuel Vadot pinctrl-names = "default"; 142*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_rmii3_default>; 143*f126890aSEmmanuel Vadot clocks = <&syscon ASPEED_CLK_GATE_MAC3CLK>, 144*f126890aSEmmanuel Vadot <&syscon ASPEED_CLK_MAC3RCLK>; 145*f126890aSEmmanuel Vadot clock-names = "MACCLK", "RCLK"; 146*f126890aSEmmanuel Vadot}; 147*f126890aSEmmanuel Vadot 148*f126890aSEmmanuel Vadot&fmc { 149*f126890aSEmmanuel Vadot status = "okay"; 150*f126890aSEmmanuel Vadot flash@0 { 151*f126890aSEmmanuel Vadot status = "okay"; 152*f126890aSEmmanuel Vadot m25p,fast-read; 153*f126890aSEmmanuel Vadot label = "bmc"; 154*f126890aSEmmanuel Vadot spi-max-frequency = <50000000>; 155*f126890aSEmmanuel Vadot#include "openbmc-flash-layout-64.dtsi" 156*f126890aSEmmanuel Vadot }; 157*f126890aSEmmanuel Vadot 158*f126890aSEmmanuel Vadot flash@1 { 159*f126890aSEmmanuel Vadot status = "okay"; 160*f126890aSEmmanuel Vadot m25p,fast-read; 161*f126890aSEmmanuel Vadot label = "alt-bmc"; 162*f126890aSEmmanuel Vadot spi-max-frequency = <50000000>; 163*f126890aSEmmanuel Vadot#include "openbmc-flash-layout-64-alt.dtsi" 164*f126890aSEmmanuel Vadot }; 165*f126890aSEmmanuel Vadot}; 166*f126890aSEmmanuel Vadot 167*f126890aSEmmanuel Vadot&uart1 { 168*f126890aSEmmanuel Vadot status = "okay"; 169*f126890aSEmmanuel Vadot}; 170*f126890aSEmmanuel Vadot 171*f126890aSEmmanuel Vadot&uart4 { 172*f126890aSEmmanuel Vadot status = "okay"; 173*f126890aSEmmanuel Vadot}; 174*f126890aSEmmanuel Vadot 175*f126890aSEmmanuel Vadot&uart5 { 176*f126890aSEmmanuel Vadot status = "okay"; 177*f126890aSEmmanuel Vadot}; 178*f126890aSEmmanuel Vadot 179*f126890aSEmmanuel Vadot&kcs3 { 180*f126890aSEmmanuel Vadot status = "okay"; 181*f126890aSEmmanuel Vadot aspeed,lpc-io-reg = <0xca2>; 182*f126890aSEmmanuel Vadot}; 183*f126890aSEmmanuel Vadot 184*f126890aSEmmanuel Vadot&lpc_reset { 185*f126890aSEmmanuel Vadot status = "okay"; 186*f126890aSEmmanuel Vadot}; 187*f126890aSEmmanuel Vadot 188*f126890aSEmmanuel Vadot&lpc_ctrl { 189*f126890aSEmmanuel Vadot status = "okay"; 190*f126890aSEmmanuel Vadot}; 191*f126890aSEmmanuel Vadot 192*f126890aSEmmanuel Vadot&uart_routing { 193*f126890aSEmmanuel Vadot status = "okay"; 194*f126890aSEmmanuel Vadot}; 195*f126890aSEmmanuel Vadot 196*f126890aSEmmanuel Vadot&wdt1 { 197*f126890aSEmmanuel Vadot status = "okay"; 198*f126890aSEmmanuel Vadot}; 199*f126890aSEmmanuel Vadot 200*f126890aSEmmanuel Vadot&wdt2 { 201*f126890aSEmmanuel Vadot status = "okay"; 202*f126890aSEmmanuel Vadot}; 203*f126890aSEmmanuel Vadot 204*f126890aSEmmanuel Vadot&peci0 { 205*f126890aSEmmanuel Vadot status = "okay"; 206*f126890aSEmmanuel Vadot}; 207*f126890aSEmmanuel Vadot 208*f126890aSEmmanuel Vadot&udc { 209*f126890aSEmmanuel Vadot status = "okay"; 210*f126890aSEmmanuel Vadot}; 211*f126890aSEmmanuel Vadot 212*f126890aSEmmanuel Vadot&adc0 { 213*f126890aSEmmanuel Vadot vref = <2500>; 214*f126890aSEmmanuel Vadot status = "okay"; 215*f126890aSEmmanuel Vadot 216*f126890aSEmmanuel Vadot pinctrl-names = "default"; 217*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default 218*f126890aSEmmanuel Vadot &pinctrl_adc2_default &pinctrl_adc3_default 219*f126890aSEmmanuel Vadot &pinctrl_adc4_default &pinctrl_adc5_default 220*f126890aSEmmanuel Vadot &pinctrl_adc6_default &pinctrl_adc7_default>; 221*f126890aSEmmanuel Vadot}; 222*f126890aSEmmanuel Vadot 223*f126890aSEmmanuel Vadot&adc1 { 224*f126890aSEmmanuel Vadot vref = <2500>; 225*f126890aSEmmanuel Vadot status = "okay"; 226*f126890aSEmmanuel Vadot 227*f126890aSEmmanuel Vadot pinctrl-names = "default"; 228*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_adc8_default &pinctrl_adc9_default 229*f126890aSEmmanuel Vadot &pinctrl_adc10_default &pinctrl_adc11_default 230*f126890aSEmmanuel Vadot &pinctrl_adc12_default &pinctrl_adc13_default 231*f126890aSEmmanuel Vadot &pinctrl_adc14_default &pinctrl_adc15_default>; 232*f126890aSEmmanuel Vadot}; 233*f126890aSEmmanuel Vadot 234*f126890aSEmmanuel Vadot&i2c0 { 235*f126890aSEmmanuel Vadot status = "okay"; 236*f126890aSEmmanuel Vadot}; 237*f126890aSEmmanuel Vadot 238*f126890aSEmmanuel Vadot&i2c1 { 239*f126890aSEmmanuel Vadot status = "okay"; 240*f126890aSEmmanuel Vadot 241*f126890aSEmmanuel Vadot lm75@48 { 242*f126890aSEmmanuel Vadot compatible = "national,lm75"; 243*f126890aSEmmanuel Vadot reg = <0x48>; 244*f126890aSEmmanuel Vadot }; 245*f126890aSEmmanuel Vadot 246*f126890aSEmmanuel Vadot lm75@49 { 247*f126890aSEmmanuel Vadot compatible = "national,lm75"; 248*f126890aSEmmanuel Vadot reg = <0x49>; 249*f126890aSEmmanuel Vadot }; 250*f126890aSEmmanuel Vadot 251*f126890aSEmmanuel Vadot lm86@4c { 252*f126890aSEmmanuel Vadot compatible = "national,lm86"; 253*f126890aSEmmanuel Vadot reg = <0x4c>; 254*f126890aSEmmanuel Vadot }; 255*f126890aSEmmanuel Vadot}; 256*f126890aSEmmanuel Vadot 257*f126890aSEmmanuel Vadot&i2c2 { 258*f126890aSEmmanuel Vadot status = "okay"; 259*f126890aSEmmanuel Vadot 260*f126890aSEmmanuel Vadot lm75@4f { 261*f126890aSEmmanuel Vadot cpmpatible = "national,lm75"; 262*f126890aSEmmanuel Vadot reg = <0x4f>; 263*f126890aSEmmanuel Vadot }; 264*f126890aSEmmanuel Vadot 265*f126890aSEmmanuel Vadot fan_ioexp: pca9535@20 { 266*f126890aSEmmanuel Vadot compatible = "nxp,pca9535"; 267*f126890aSEmmanuel Vadot reg = <0x20>; 268*f126890aSEmmanuel Vadot #address-cells = <1>; 269*f126890aSEmmanuel Vadot #size-cells = <0>; 270*f126890aSEmmanuel Vadot gpio-controller; 271*f126890aSEmmanuel Vadot #gpio-cells = <2>; 272*f126890aSEmmanuel Vadot 273*f126890aSEmmanuel Vadot gpio-line-names = 274*f126890aSEmmanuel Vadot "","","presence-fan0","", 275*f126890aSEmmanuel Vadot "","","presence-fan1","", 276*f126890aSEmmanuel Vadot "","","presence-fan2","", 277*f126890aSEmmanuel Vadot "","","presence-fan3",""; 278*f126890aSEmmanuel Vadot }; 279*f126890aSEmmanuel Vadot}; 280*f126890aSEmmanuel Vadot 281*f126890aSEmmanuel Vadot&i2c3 { 282*f126890aSEmmanuel Vadot status = "okay"; 283*f126890aSEmmanuel Vadot 284*f126890aSEmmanuel Vadot eeprom@50 { 285*f126890aSEmmanuel Vadot compatible = "atmel,24c128"; 286*f126890aSEmmanuel Vadot reg = <0x50>; 287*f126890aSEmmanuel Vadot pagesize = <64>; 288*f126890aSEmmanuel Vadot }; 289*f126890aSEmmanuel Vadot}; 290*f126890aSEmmanuel Vadot 291*f126890aSEmmanuel Vadot&i2c4 { 292*f126890aSEmmanuel Vadot status = "okay"; 293*f126890aSEmmanuel Vadot 294*f126890aSEmmanuel Vadot psu@58 { 295*f126890aSEmmanuel Vadot compatible = "pmbus"; 296*f126890aSEmmanuel Vadot reg = <0x58>; 297*f126890aSEmmanuel Vadot }; 298*f126890aSEmmanuel Vadot 299*f126890aSEmmanuel Vadot eeprom@50 { 300*f126890aSEmmanuel Vadot compatible = "atmel,24c02"; 301*f126890aSEmmanuel Vadot reg = <0x50>; 302*f126890aSEmmanuel Vadot pagesize = <1>; 303*f126890aSEmmanuel Vadot }; 304*f126890aSEmmanuel Vadot}; 305*f126890aSEmmanuel Vadot 306*f126890aSEmmanuel Vadot&i2c5 { 307*f126890aSEmmanuel Vadot status = "okay"; 308*f126890aSEmmanuel Vadot 309*f126890aSEmmanuel Vadot psu@58 { 310*f126890aSEmmanuel Vadot compatible = "pmbus"; 311*f126890aSEmmanuel Vadot reg = <0x58>; 312*f126890aSEmmanuel Vadot }; 313*f126890aSEmmanuel Vadot 314*f126890aSEmmanuel Vadot eeprom@50 { 315*f126890aSEmmanuel Vadot compatible = "atmel,24c02"; 316*f126890aSEmmanuel Vadot reg = <0x50>; 317*f126890aSEmmanuel Vadot pagesize = <1>; 318*f126890aSEmmanuel Vadot }; 319*f126890aSEmmanuel Vadot}; 320*f126890aSEmmanuel Vadot 321*f126890aSEmmanuel Vadot&i2c8 { 322*f126890aSEmmanuel Vadot status = "okay"; 323*f126890aSEmmanuel Vadot}; 324*f126890aSEmmanuel Vadot 325*f126890aSEmmanuel Vadot&i2c10 { 326*f126890aSEmmanuel Vadot status = "okay"; 327*f126890aSEmmanuel Vadot 328*f126890aSEmmanuel Vadot lm75@4d { 329*f126890aSEmmanuel Vadot compatible = "national,lm75"; 330*f126890aSEmmanuel Vadot reg = <0x4d>; 331*f126890aSEmmanuel Vadot }; 332*f126890aSEmmanuel Vadot}; 333*f126890aSEmmanuel Vadot 334*f126890aSEmmanuel Vadot&gpio0 { 335*f126890aSEmmanuel Vadot status = "okay"; 336*f126890aSEmmanuel Vadot 337*f126890aSEmmanuel Vadot gpio-line-names = 338*f126890aSEmmanuel Vadot /*A0-A7*/ "","","","","","","","", 339*f126890aSEmmanuel Vadot /*B0-B7*/ "","","","","","","","", 340*f126890aSEmmanuel Vadot /*C0-C7*/ "","","","","","","","", 341*f126890aSEmmanuel Vadot /*D0-D7*/ "","","","","","","","", 342*f126890aSEmmanuel Vadot /*E0-E7*/ "","","","","","","","", 343*f126890aSEmmanuel Vadot /*F0-F7*/ "CPU_PWRGD","","","power-button","host0-ready","","presence-ps0","presence-ps1", 344*f126890aSEmmanuel Vadot /*G0-G7*/ "","","","","","","","", 345*f126890aSEmmanuel Vadot /*H0-H7*/ "","","","","","","","", 346*f126890aSEmmanuel Vadot /*I0-I7*/ "","","","","","reset-button","","", 347*f126890aSEmmanuel Vadot /*J0-J7*/ "","","","","","","","", 348*f126890aSEmmanuel Vadot /*K0-K7*/ "","","","","","","","", 349*f126890aSEmmanuel Vadot /*L0-L7*/ "","","","","","","","", 350*f126890aSEmmanuel Vadot /*M0-M7*/ "","","","","","","","", 351*f126890aSEmmanuel Vadot /*N0-N7*/ "power-chassis-control0","power-chassis-control1","","","","","","", 352*f126890aSEmmanuel Vadot /*O0-O7*/ "","","","","","","","", 353*f126890aSEmmanuel Vadot /*P0-P7*/ "","","","","","","","", 354*f126890aSEmmanuel Vadot /*Q0-Q7*/ "","","","","","","","", 355*f126890aSEmmanuel Vadot /*R0-R7*/ "","","","","","","","", 356*f126890aSEmmanuel Vadot /*S0-S7*/ "","","","","","","","", 357*f126890aSEmmanuel Vadot /*T0-T7*/ "","","","","","","","", 358*f126890aSEmmanuel Vadot /*U0-U7*/ "","","","","","","","", 359*f126890aSEmmanuel Vadot /*V0-V7*/ "","","","","power-chassis-good","","",""; 360*f126890aSEmmanuel Vadot}; 361