1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring// Copyright (c) 2019 Quanta Computer lnc. Fran.Hsu@quantatw.com 3724ba675SRob Herring 4724ba675SRob Herring/dts-v1/; 5724ba675SRob Herring#include "nuvoton-npcm730.dtsi" 6724ba675SRob Herring#include "nuvoton-npcm730-gsj-gpio.dtsi" 7724ba675SRob Herring 8724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 9724ba675SRob Herring 10724ba675SRob Herring/ { 11724ba675SRob Herring model = "Quanta GSJ Board (Device Tree v12)"; 12724ba675SRob Herring compatible = "nuvoton,npcm750"; 13724ba675SRob Herring 14724ba675SRob Herring aliases { 15724ba675SRob Herring ethernet1 = &gmac0; 16724ba675SRob Herring serial3 = &serial3; 17724ba675SRob Herring i2c1 = &i2c1; 18724ba675SRob Herring i2c2 = &i2c2; 19724ba675SRob Herring i2c3 = &i2c3; 20724ba675SRob Herring i2c4 = &i2c4; 21724ba675SRob Herring i2c8 = &i2c8; 22724ba675SRob Herring i2c9 = &i2c9; 23724ba675SRob Herring i2c10 = &i2c10; 24724ba675SRob Herring i2c11 = &i2c11; 25724ba675SRob Herring i2c12 = &i2c12; 26724ba675SRob Herring i2c15 = &i2c15; 27724ba675SRob Herring fiu0 = &fiu0; 28724ba675SRob Herring }; 29724ba675SRob Herring 30724ba675SRob Herring chosen { 31724ba675SRob Herring stdout-path = &serial3; 32724ba675SRob Herring }; 33724ba675SRob Herring 34724ba675SRob Herring memory { 35724ba675SRob Herring reg = <0 0x40000000>; 36724ba675SRob Herring }; 37724ba675SRob Herring 38724ba675SRob Herring leds { 39724ba675SRob Herring compatible = "gpio-leds"; 40724ba675SRob Herring 41724ba675SRob Herring led-bmc-live { 42724ba675SRob Herring gpios = <&gpio4 15 GPIO_ACTIVE_HIGH>; 43724ba675SRob Herring linux,default-trigger = "heartbeat"; 44724ba675SRob Herring }; 45724ba675SRob Herring 46724ba675SRob Herring LED_U2_0_LOCATE { 47724ba675SRob Herring gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; 48724ba675SRob Herring default-state = "off"; 49724ba675SRob Herring }; 50724ba675SRob Herring 51724ba675SRob Herring LED_U2_1_LOCATE { 52724ba675SRob Herring gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; 53724ba675SRob Herring default-state = "off"; 54724ba675SRob Herring }; 55724ba675SRob Herring 56724ba675SRob Herring LED_U2_2_LOCATE { 57724ba675SRob Herring gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; 58724ba675SRob Herring default-state = "off"; 59724ba675SRob Herring }; 60724ba675SRob Herring 61724ba675SRob Herring LED_U2_3_LOCATE { 62724ba675SRob Herring gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>; 63724ba675SRob Herring default-state = "off"; 64724ba675SRob Herring }; 65724ba675SRob Herring 66724ba675SRob Herring LED_U2_4_LOCATE { 67724ba675SRob Herring gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; 68724ba675SRob Herring default-state = "off"; 69724ba675SRob Herring }; 70724ba675SRob Herring 71724ba675SRob Herring LED_U2_5_LOCATE { 72724ba675SRob Herring gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; 73724ba675SRob Herring default-state = "off"; 74724ba675SRob Herring }; 75724ba675SRob Herring 76724ba675SRob Herring LED_BMC_TRAY_PWRGD { 77724ba675SRob Herring gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; 78724ba675SRob Herring default-state = "off"; 79724ba675SRob Herring }; 80724ba675SRob Herring 81724ba675SRob Herring LED_U2_7_FAULT { 82724ba675SRob Herring gpios = <&gpio6 8 GPIO_ACTIVE_HIGH>; 83724ba675SRob Herring default-state = "off"; 84724ba675SRob Herring }; 85724ba675SRob Herring 86724ba675SRob Herring LED_U2_6_LOCATE { 87724ba675SRob Herring gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; 88724ba675SRob Herring default-state = "off"; 89724ba675SRob Herring }; 90724ba675SRob Herring 91724ba675SRob Herring LED_U2_7_LOCATE { 92724ba675SRob Herring gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; 93724ba675SRob Herring default-state = "off"; 94724ba675SRob Herring }; 95724ba675SRob Herring 96724ba675SRob Herring LED_U2_0_FAULT { 97724ba675SRob Herring gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>; 98724ba675SRob Herring default-state = "off"; 99724ba675SRob Herring }; 100724ba675SRob Herring 101724ba675SRob Herring LED_U2_1_FAULT { 102724ba675SRob Herring gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; 103724ba675SRob Herring default-state = "off"; 104724ba675SRob Herring }; 105724ba675SRob Herring 106724ba675SRob Herring LED_U2_2_FAULT { 107724ba675SRob Herring gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; 108724ba675SRob Herring default-state = "off"; 109724ba675SRob Herring }; 110724ba675SRob Herring 111724ba675SRob Herring LED_U2_3_FAULT { 112724ba675SRob Herring gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>; 113724ba675SRob Herring default-state = "off"; 114724ba675SRob Herring }; 115724ba675SRob Herring 116724ba675SRob Herring LED_U2_4_FAULT { 117724ba675SRob Herring gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>; 118724ba675SRob Herring default-state = "off"; 119724ba675SRob Herring }; 120724ba675SRob Herring 121724ba675SRob Herring LED_U2_5_FAULT { 122724ba675SRob Herring gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>; 123724ba675SRob Herring default-state = "off"; 124724ba675SRob Herring }; 125724ba675SRob Herring 126724ba675SRob Herring LED_U2_6_FAULT { 127724ba675SRob Herring gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; 128724ba675SRob Herring default-state = "off"; 129724ba675SRob Herring }; 130724ba675SRob Herring }; 131724ba675SRob Herring}; 132724ba675SRob Herring 133724ba675SRob Herring&fiu0 { 134724ba675SRob Herring pinctrl-names = "default"; 135724ba675SRob Herring pinctrl-0 = <&spi0cs1_pins>; 136724ba675SRob Herring status = "okay"; 137724ba675SRob Herring 138724ba675SRob Herring flash@0 { 139724ba675SRob Herring compatible = "jedec,spi-nor"; 140724ba675SRob Herring #address-cells = <1>; 141724ba675SRob Herring #size-cells = <1>; 142724ba675SRob Herring reg = <0>; 143724ba675SRob Herring spi-rx-bus-width = <2>; 144724ba675SRob Herring 145724ba675SRob Herring partitions { 146724ba675SRob Herring compatible = "fixed-partitions"; 147724ba675SRob Herring #address-cells = <1>; 148724ba675SRob Herring #size-cells = <1>; 149724ba675SRob Herring bmc@0 { 150724ba675SRob Herring label = "bmc"; 151724ba675SRob Herring reg = <0x000000 0x2000000>; 152724ba675SRob Herring }; 153724ba675SRob Herring u-boot@0 { 154724ba675SRob Herring label = "u-boot"; 155724ba675SRob Herring reg = <0x0000000 0x80000>; 156724ba675SRob Herring read-only; 157724ba675SRob Herring }; 158724ba675SRob Herring u-boot-env@100000 { 159724ba675SRob Herring label = "u-boot-env"; 160724ba675SRob Herring reg = <0x00100000 0x40000>; 161724ba675SRob Herring }; 162724ba675SRob Herring kernel@200000 { 163724ba675SRob Herring label = "kernel"; 164724ba675SRob Herring reg = <0x0200000 0x600000>; 165724ba675SRob Herring }; 166724ba675SRob Herring rofs@800000 { 167724ba675SRob Herring label = "rofs"; 168724ba675SRob Herring reg = <0x800000 0x1400000>; 169724ba675SRob Herring }; 170724ba675SRob Herring rwfs@1c00000 { 171724ba675SRob Herring label = "rwfs"; 172724ba675SRob Herring reg = <0x1c00000 0x300000>; 173724ba675SRob Herring }; 174724ba675SRob Herring reserved@1f00000 { 175724ba675SRob Herring label = "reserved"; 176724ba675SRob Herring reg = <0x1f00000 0x100000>; 177724ba675SRob Herring }; 178724ba675SRob Herring }; 179724ba675SRob Herring }; 180724ba675SRob Herring}; 181724ba675SRob Herring 182724ba675SRob Herring&gmac0 { 183724ba675SRob Herring phy-mode = "rgmii-id"; 184724ba675SRob Herring status = "okay"; 185724ba675SRob Herring}; 186724ba675SRob Herring 187724ba675SRob Herring&ehci1 { 188724ba675SRob Herring status = "okay"; 189724ba675SRob Herring}; 190724ba675SRob Herring 191724ba675SRob Herring&watchdog1 { 192724ba675SRob Herring status = "okay"; 193724ba675SRob Herring}; 194724ba675SRob Herring 195724ba675SRob Herring&rng { 196724ba675SRob Herring status = "okay"; 197724ba675SRob Herring}; 198724ba675SRob Herring 199724ba675SRob Herring&serial0 { 200724ba675SRob Herring status = "okay"; 201724ba675SRob Herring}; 202724ba675SRob Herring 203724ba675SRob Herring&serial1 { 204724ba675SRob Herring status = "okay"; 205724ba675SRob Herring}; 206724ba675SRob Herring 207724ba675SRob Herring&serial2 { 208724ba675SRob Herring status = "okay"; 209724ba675SRob Herring}; 210724ba675SRob Herring 211724ba675SRob Herring&serial3 { 212724ba675SRob Herring status = "okay"; 213724ba675SRob Herring}; 214724ba675SRob Herring 215724ba675SRob Herring&adc { 216724ba675SRob Herring status = "okay"; 217724ba675SRob Herring}; 218724ba675SRob Herring 219724ba675SRob Herring&i2c1 { 220724ba675SRob Herring status = "okay"; 221724ba675SRob Herring 222724ba675SRob Herring lm75@5c { 223724ba675SRob Herring compatible = "maxim,max31725"; 224724ba675SRob Herring reg = <0x5c>; 225724ba675SRob Herring status = "okay"; 226724ba675SRob Herring }; 227724ba675SRob Herring}; 228724ba675SRob Herring 229724ba675SRob Herring&i2c2 { 230724ba675SRob Herring status = "okay"; 231724ba675SRob Herring 232724ba675SRob Herring lm75@5c { 233724ba675SRob Herring compatible = "maxim,max31725"; 234724ba675SRob Herring reg = <0x5c>; 235724ba675SRob Herring status = "okay"; 236724ba675SRob Herring }; 237724ba675SRob Herring}; 238724ba675SRob Herring 239724ba675SRob Herring&i2c3 { 240724ba675SRob Herring status = "okay"; 241724ba675SRob Herring 242724ba675SRob Herring lm75@5c { 243724ba675SRob Herring compatible = "maxim,max31725"; 244724ba675SRob Herring reg = <0x5c>; 245724ba675SRob Herring }; 246724ba675SRob Herring}; 247724ba675SRob Herring 248724ba675SRob Herring&i2c4 { 249724ba675SRob Herring status = "okay"; 250724ba675SRob Herring 251724ba675SRob Herring lm75@5c { 252724ba675SRob Herring compatible = "maxim,max31725"; 253724ba675SRob Herring reg = <0x5c>; 254724ba675SRob Herring }; 255724ba675SRob Herring}; 256724ba675SRob Herring 257724ba675SRob Herring&i2c8 { 258724ba675SRob Herring status = "okay"; 259724ba675SRob Herring}; 260724ba675SRob Herring 261724ba675SRob Herring&i2c9 { 262724ba675SRob Herring status = "okay"; 263724ba675SRob Herring 264724ba675SRob Herring eeprom@55 { 265724ba675SRob Herring compatible = "atmel,24c64"; 266724ba675SRob Herring reg = <0x55>; 267724ba675SRob Herring }; 268724ba675SRob Herring}; 269724ba675SRob Herring 270724ba675SRob Herring&i2c10 { 271724ba675SRob Herring status = "okay"; 272724ba675SRob Herring 273724ba675SRob Herring eeprom@55 { 274724ba675SRob Herring compatible = "atmel,24c64"; 275724ba675SRob Herring reg = <0x55>; 276724ba675SRob Herring }; 277724ba675SRob Herring}; 278724ba675SRob Herring 279724ba675SRob Herring&i2c11 { 280724ba675SRob Herring status = "okay"; 281724ba675SRob Herring 282724ba675SRob Herring /* P12V Quarter Brick DC/DC Power Module Q54SH12050 @60 */ 283724ba675SRob Herring power-brick@36 { 284724ba675SRob Herring compatible = "delta,dps800"; 285724ba675SRob Herring reg = <0x36>; 286724ba675SRob Herring }; 287724ba675SRob Herring 288724ba675SRob Herring hotswap@15 { 289724ba675SRob Herring compatible = "ti,lm5066i"; 290724ba675SRob Herring reg = <0x15>; 291724ba675SRob Herring }; 292724ba675SRob Herring}; 293724ba675SRob Herring 294724ba675SRob Herring&i2c12 { 295724ba675SRob Herring status = "okay"; 296724ba675SRob Herring 297724ba675SRob Herring ucd90160@6b { 298724ba675SRob Herring compatible = "ti,ucd90160"; 299724ba675SRob Herring reg = <0x6b>; 300724ba675SRob Herring }; 301724ba675SRob Herring}; 302724ba675SRob Herring 303724ba675SRob Herring&i2c15 { 304724ba675SRob Herring status = "okay"; 305724ba675SRob Herring 306*bc924997SGeert Uytterhoeven i2c-mux@75 { 307724ba675SRob Herring compatible = "nxp,pca9548"; 308724ba675SRob Herring #address-cells = <1>; 309724ba675SRob Herring #size-cells = <0>; 310724ba675SRob Herring reg = <0x75>; 311724ba675SRob Herring i2c-mux-idle-disconnect; 312724ba675SRob Herring 313724ba675SRob Herring i2c_u20: i2c@0 { 314724ba675SRob Herring #address-cells = <1>; 315724ba675SRob Herring #size-cells = <0>; 316724ba675SRob Herring reg = <0>; 317724ba675SRob Herring }; 318724ba675SRob Herring 319724ba675SRob Herring i2c_u21: i2c@1 { 320724ba675SRob Herring #address-cells = <1>; 321724ba675SRob Herring #size-cells = <0>; 322724ba675SRob Herring reg = <1>; 323724ba675SRob Herring }; 324724ba675SRob Herring 325724ba675SRob Herring i2c_u22: i2c@2 { 326724ba675SRob Herring #address-cells = <1>; 327724ba675SRob Herring #size-cells = <0>; 328724ba675SRob Herring reg = <2>; 329724ba675SRob Herring }; 330724ba675SRob Herring 331724ba675SRob Herring i2c_u23: i2c@3 { 332724ba675SRob Herring #address-cells = <1>; 333724ba675SRob Herring #size-cells = <0>; 334724ba675SRob Herring reg = <3>; 335724ba675SRob Herring }; 336724ba675SRob Herring 337724ba675SRob Herring i2c_u24: i2c@4 { 338724ba675SRob Herring #address-cells = <1>; 339724ba675SRob Herring #size-cells = <0>; 340724ba675SRob Herring reg = <4>; 341724ba675SRob Herring }; 342724ba675SRob Herring 343724ba675SRob Herring i2c_u25: i2c@5 { 344724ba675SRob Herring #address-cells = <1>; 345724ba675SRob Herring #size-cells = <0>; 346724ba675SRob Herring reg = <5>; 347724ba675SRob Herring }; 348724ba675SRob Herring 349724ba675SRob Herring i2c_u26: i2c@6 { 350724ba675SRob Herring #address-cells = <1>; 351724ba675SRob Herring #size-cells = <0>; 352724ba675SRob Herring reg = <6>; 353724ba675SRob Herring }; 354724ba675SRob Herring 355724ba675SRob Herring i2c_u27: i2c@7 { 356724ba675SRob Herring #address-cells = <1>; 357724ba675SRob Herring #size-cells = <0>; 358724ba675SRob Herring reg = <7>; 359724ba675SRob Herring }; 360724ba675SRob Herring }; 361724ba675SRob Herring}; 362724ba675SRob Herring 363724ba675SRob Herring&pwm_fan { 364724ba675SRob Herring pinctrl-names = "default"; 365724ba675SRob Herring pinctrl-0 = <&pwm0_pins &pwm1_pins &pwm2_pins 366724ba675SRob Herring &fanin0_pins &fanin1_pins 367724ba675SRob Herring &fanin2_pins &fanin3_pins 368724ba675SRob Herring &fanin4_pins &fanin5_pins>; 369724ba675SRob Herring status = "okay"; 370724ba675SRob Herring 371724ba675SRob Herring fan@0 { 372724ba675SRob Herring reg = <0x00>; 373724ba675SRob Herring fan-tach-ch = /bits/ 8 <0x00 0x01>; 374724ba675SRob Herring cooling-levels = <127 255>; 375724ba675SRob Herring }; 376724ba675SRob Herring 377724ba675SRob Herring fan@1 { 378724ba675SRob Herring reg = <0x01>; 379724ba675SRob Herring fan-tach-ch = /bits/ 8 <0x02 0x03>; 380724ba675SRob Herring cooling-levels = /bits/ 8 <127 255>; 381724ba675SRob Herring }; 382724ba675SRob Herring 383724ba675SRob Herring fan@2 { 384724ba675SRob Herring reg = <0x02>; 385724ba675SRob Herring fan-tach-ch = /bits/ 8 <0x04 0x05>; 386724ba675SRob Herring cooling-levels = /bits/ 8 <127 255>; 387724ba675SRob Herring }; 388724ba675SRob Herring}; 389724ba675SRob Herring 390724ba675SRob Herring&pinctrl { 391724ba675SRob Herring pinctrl-names = "default"; 392724ba675SRob Herring pinctrl-0 = < 393724ba675SRob Herring /* GPI pins*/ 394724ba675SRob Herring &gpio8_pins 395724ba675SRob Herring &gpio9_pins 396724ba675SRob Herring &gpio12_pins 397724ba675SRob Herring &gpio13_pins 398724ba675SRob Herring &gpio14_pins 399724ba675SRob Herring &gpio60_pins 400724ba675SRob Herring &gpio83_pins 401724ba675SRob Herring &gpio91_pins 402724ba675SRob Herring &gpio92_pins 403724ba675SRob Herring &gpio95_pins 404724ba675SRob Herring &gpio136_pins 405724ba675SRob Herring &gpio137_pins 406724ba675SRob Herring &gpio141_pins 407724ba675SRob Herring &gpio144_pins 408724ba675SRob Herring &gpio145_pins 409724ba675SRob Herring &gpio146_pins 410724ba675SRob Herring &gpio147_pins 411724ba675SRob Herring &gpio148_pins 412724ba675SRob Herring &gpio149_pins 413724ba675SRob Herring &gpio150_pins 414724ba675SRob Herring &gpio151_pins 415724ba675SRob Herring &gpio152_pins 416724ba675SRob Herring &gpio153_pins 417724ba675SRob Herring &gpio154_pins 418724ba675SRob Herring &gpio155_pins 419724ba675SRob Herring &gpio156_pins 420724ba675SRob Herring &gpio157_pins 421724ba675SRob Herring &gpio158_pins 422724ba675SRob Herring &gpio159_pins 423724ba675SRob Herring &gpio161_pins 424724ba675SRob Herring &gpio162_pins 425724ba675SRob Herring &gpio163_pins 426724ba675SRob Herring &gpio164_pins 427724ba675SRob Herring &gpio165_pins 428724ba675SRob Herring &gpio166_pins 429724ba675SRob Herring &gpio167_pins 430724ba675SRob Herring &gpio168_pins 431724ba675SRob Herring &gpio169_pins 432724ba675SRob Herring &gpio170_pins 433724ba675SRob Herring &gpio177_pins 434724ba675SRob Herring &gpio191_pins 435724ba675SRob Herring &gpio192_pins 436724ba675SRob Herring &gpio203_pins 437724ba675SRob Herring /* GPO pins*/ 438724ba675SRob Herring &gpio0pp_pins 439724ba675SRob Herring &gpio1pp_pins 440724ba675SRob Herring &gpio2pp_pins 441724ba675SRob Herring &gpio3pp_pins 442724ba675SRob Herring &gpio4pp_pins 443724ba675SRob Herring &gpio5pp_pins 444724ba675SRob Herring &gpio6pp_pins 445724ba675SRob Herring &gpio7pp_pins 446724ba675SRob Herring &gpio10pp_pins 447724ba675SRob Herring &gpio11pp_pins 448724ba675SRob Herring &gpio15od_pins 449724ba675SRob Herring &gpio17pp_pins 450724ba675SRob Herring &gpio18pp_pins 451724ba675SRob Herring &gpio19pp_pins 452724ba675SRob Herring &gpio24pp_pins 453724ba675SRob Herring &gpio25pp_pins 454724ba675SRob Herring &gpio37od_pins 455724ba675SRob Herring &gpio59pp_pins 456724ba675SRob Herring &gpio72od_pins 457724ba675SRob Herring &gpio73od_pins 458724ba675SRob Herring &gpio74od_pins 459724ba675SRob Herring &gpio75od_pins 460724ba675SRob Herring &gpio76od_pins 461724ba675SRob Herring &gpio77od_pins 462724ba675SRob Herring &gpio78od_pins 463724ba675SRob Herring &gpio79od_pins 464724ba675SRob Herring &gpio84pp_pins 465724ba675SRob Herring &gpio85pp_pins 466724ba675SRob Herring &gpio86pp_pins 467724ba675SRob Herring &gpio87pp_pins 468724ba675SRob Herring &gpio88pp_pins 469724ba675SRob Herring &gpio89pp_pins 470724ba675SRob Herring &gpio90pp_pins 471724ba675SRob Herring &gpio93pp_pins 472724ba675SRob Herring &gpio94pp_pins 473724ba675SRob Herring &gpio125pp_pins 474724ba675SRob Herring &gpio126od_pins 475724ba675SRob Herring &gpio127od_pins 476724ba675SRob Herring &gpio142od_pins 477724ba675SRob Herring &gpio143ol_pins 478724ba675SRob Herring &gpio175od_pins 479724ba675SRob Herring &gpio176od_pins 480724ba675SRob Herring &gpio190od_pins 481724ba675SRob Herring &gpio194pp_pins 482724ba675SRob Herring &gpio195od_pins 483724ba675SRob Herring &gpio196od_pins 484724ba675SRob Herring &gpio197od_pins 485724ba675SRob Herring &gpio198od_pins 486724ba675SRob Herring &gpio199od_pins 487724ba675SRob Herring &gpio200pp_pins 488724ba675SRob Herring &gpio202od_pins 489724ba675SRob Herring >; 490724ba675SRob Herring}; 491