1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2020 Quanta Computer Inc. George.Hung@quantatw.com
5 #include "nuvoton-npcm730.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
9 model = "Quanta GBS Board (Device Tree)";
10 compatible = "quanta,gbs-bmc","nuvoton,npcm730";
34 i2c16 = &i2c0_slotPE0_0;
35 i2c17 = &i2c0_slotPE1_1;
36 i2c18 = &i2c0_slotUSB_2;
38 i2c20 = &i2c5_i2cool_0;
39 i2c21 = &i2c5_i2cool_1;
40 i2c22 = &i2c5_i2cool_2;
41 i2c23 = &i2c5_hsbp_fru_3;
42 i2c24 = &i2c6_u2_15_0;
43 i2c25 = &i2c6_u2_14_1;
44 i2c26 = &i2c6_u2_13_2;
45 i2c27 = &i2c6_u2_12_3;
46 i2c28 = &i2c7_u2_11_0;
47 i2c29 = &i2c7_u2_10_1;
50 i2c32 = &i2c9_vddcr_cpu;
51 i2c33 = &i2c9_vddcr_soc;
52 i2c34 = &i2c9_vddio_efgh;
53 i2c35 = &i2c9_vddio_abcd;
54 i2c36 = &i2c10_u2_7_0;
55 i2c37 = &i2c10_u2_6_1;
56 i2c38 = &i2c10_u2_5_2;
57 i2c39 = &i2c10_u2_4_3;
58 i2c40 = &i2c11_clk_buf0_0;
59 i2c41 = &i2c11_clk_buf1_1;
60 i2c42 = &i2c11_clk_buf2_2;
61 i2c43 = &i2c11_clk_buf3_3;
62 i2c44 = &i2c14_u2_3_0;
63 i2c45 = &i2c14_u2_2_1;
64 i2c46 = &i2c14_u2_1_2;
65 i2c47 = &i2c14_u2_0_3;
71 stdout-path = &serial0;
79 compatible = "gpio-keys";
82 gpios = <&gpio2 9 GPIO_ACTIVE_LOW>;
88 gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
94 gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
100 gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
106 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
111 label = "hsbp-cable";
112 gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
117 label = "fanbd-cable";
118 gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>;
123 label = "bp12v-cable";
124 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
130 gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
136 gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
142 compatible = "iio-hwmon";
143 io-channels = <&adc 1>, <&adc 2>;
147 compatible = "iio-hwmon";
148 io-channels = <&adc 0>;
152 compatible = "gpio-leds";
154 heartbeat { /* gpio153 */
155 gpios = <&gpio4 25 GPIO_ACTIVE_LOW>;
156 linux,default-trigger = "heartbeat";
159 attention { /* gpio215 */
160 gpios = <&gpio6 23 GPIO_ACTIVE_HIGH>;
161 default-state = "off";
164 sys_boot_status { /* gpio216 */
165 gpios = <&gpio6 24 GPIO_ACTIVE_HIGH>;
166 default-state = "keep";
167 retain-state-shutdown;
170 bmc_fault { /* gpio217 */
171 gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>;
172 default-state = "off";
173 linux,default-trigger = "panic";
178 gpios = <&pca9535_ledlocate 3 GPIO_ACTIVE_LOW>;
179 default-state = "off";
183 gpios = <&pca9535_ledlocate 2 GPIO_ACTIVE_LOW>;
184 default-state = "off";
188 gpios = <&pca9535_ledlocate 1 GPIO_ACTIVE_LOW>;
189 default-state = "off";
193 gpios = <&pca9535_ledlocate 0 GPIO_ACTIVE_LOW>;
194 default-state = "off";
198 gpios = <&pca9535_ledlocate 7 GPIO_ACTIVE_LOW>;
199 default-state = "off";
203 gpios = <&pca9535_ledlocate 6 GPIO_ACTIVE_LOW>;
204 default-state = "off";
208 gpios = <&pca9535_ledlocate 5 GPIO_ACTIVE_LOW>;
209 default-state = "off";
213 gpios = <&pca9535_ledlocate 4 GPIO_ACTIVE_LOW>;
214 default-state = "off";
218 gpios = <&pca9535_ledlocate 11 GPIO_ACTIVE_LOW>;
219 default-state = "off";
223 gpios = <&pca9535_ledlocate 10 GPIO_ACTIVE_LOW>;
224 default-state = "off";
228 gpios = <&pca9535_ledlocate 9 GPIO_ACTIVE_LOW>;
229 default-state = "off";
233 gpios = <&pca9535_ledlocate 8 GPIO_ACTIVE_LOW>;
234 default-state = "off";
238 gpios = <&pca9535_ledlocate 15 GPIO_ACTIVE_LOW>;
239 default-state = "off";
243 gpios = <&pca9535_ledlocate 14 GPIO_ACTIVE_LOW>;
244 default-state = "off";
248 gpios = <&pca9535_ledlocate 13 GPIO_ACTIVE_LOW>;
249 default-state = "off";
253 gpios = <&pca9535_ledlocate 12 GPIO_ACTIVE_LOW>;
254 default-state = "off";
258 gpios = <&pca9535_ledfault 3 GPIO_ACTIVE_LOW>;
259 default-state = "off";
263 gpios = <&pca9535_ledfault 2 GPIO_ACTIVE_LOW>;
264 default-state = "off";
268 gpios = <&pca9535_ledfault 1 GPIO_ACTIVE_LOW>;
269 default-state = "off";
273 gpios = <&pca9535_ledfault 0 GPIO_ACTIVE_LOW>;
274 default-state = "off";
278 gpios = <&pca9535_ledfault 7 GPIO_ACTIVE_LOW>;
279 default-state = "off";
283 gpios = <&pca9535_ledfault 6 GPIO_ACTIVE_LOW>;
284 default-state = "off";
288 gpios = <&pca9535_ledfault 5 GPIO_ACTIVE_LOW>;
289 default-state = "off";
293 gpios = <&pca9535_ledfault 4 GPIO_ACTIVE_LOW>;
294 default-state = "off";
298 gpios = <&pca9535_ledfault 11 GPIO_ACTIVE_LOW>;
299 default-state = "off";
303 gpios = <&pca9535_ledfault 10 GPIO_ACTIVE_LOW>;
304 default-state = "off";
308 gpios = <&pca9535_ledfault 9 GPIO_ACTIVE_LOW>;
309 default-state = "off";
313 gpios = <&pca9535_ledfault 8 GPIO_ACTIVE_LOW>;
314 default-state = "off";
318 gpios = <&pca9535_ledfault 15 GPIO_ACTIVE_LOW>;
319 default-state = "off";
323 gpios = <&pca9535_ledfault 14 GPIO_ACTIVE_LOW>;
324 default-state = "off";
328 gpios = <&pca9535_ledfault 13 GPIO_ACTIVE_LOW>;
329 default-state = "off";
333 gpios = <&pca9535_ledfault 12 GPIO_ACTIVE_LOW>;
334 default-state = "off";
340 compatible = "seven-seg-gpio-dev";
341 refresh-interval-ms = /bits/ 16 <600>;
342 clock-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
343 data-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
344 clear-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
358 pinctrl-names = "default";
359 pinctrl-0 = <&spi0cs1_pins>;
362 compatible = "jedec,spi-nor";
363 #address-cells = <1>;
366 spi-max-frequency = <20000000>;
367 spi-rx-bus-width = <2>;
369 partitions@80000000 {
370 compatible = "fixed-partitions";
371 #address-cells = <1>;
375 reg = <0x0000000 0xf0000>;
377 image-descriptor@f0000 {
378 label = "image-descriptor";
379 reg = <0xf0000 0x10000>;
382 label = "hoth-update";
383 reg = <0x100000 0x100000>;
387 reg = <0x200000 0x500000>;
391 reg = <0x700000 0x35f0000>;
395 reg = <0x3cf0000 0x300000>;
397 hoth-mailbox@3ff0000 {
398 label = "hoth-mailbox";
399 reg = <0x3ff0000 0x10000>;
406 pinctrl-0 = <&spi3_pins>, <&spi3cs1_pins>;
410 compatible = "jedec,spi-nor";
411 #address-cells = <1>;
414 spi-max-frequency = <50000000>;
415 spi-rx-bus-width = <2>;
420 compatible = "jedec,spi-nor";
421 #address-cells = <1>;
424 spi-max-frequency = <50000000>;
425 spi-rx-bus-width = <2>;
431 serial_port_mux: uart-mux-controller {
432 compatible = "mmio-mux";
433 #mux-control-cells = <1>;
434 mux-reg-masks = <0x38 0x07>;
435 idle-states = <2>; /* Serial port mode 3 (takeover) */
438 uart1_mode_mux: uart1-mode-mux-controller {
439 compatible = "mmio-mux";
440 #mux-control-cells = <1>;
441 mux-reg-masks = <0x64 0x01000000>;
442 idle-states = <0>; /* Set UART1 mode to normal (follow SPMOD) */
448 phy-mode = "rgmii-id";
449 snps,eee-force-disable;
481 #io-channel-cells = <1>;
500 cs-gpios = <&gpio4 19 GPIO_ACTIVE_HIGH>; /* dummy - gpio147 */
501 pinctrl-names = "default";
502 pinctrl-0 = <&gpio224ol_pins &gpio227o_pins
507 compatible = "nuvoton,npcm750-jtag-master";
508 spi-max-frequency = <25000000>;
512 pinctrl-names = "pspi", "gpio";
513 pinctrl-0 = <&pspi2_pins>;
514 pinctrl-1 = <&gpio224ol_pins &gpio227o_pins
517 tck-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
518 tdi-gpios = <&gpio7 3 GPIO_ACTIVE_HIGH>;
519 tdo-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
520 tms-gpios = <&gpio7 6 GPIO_ACTIVE_HIGH>;
525 clock-frequency = <100000>;
529 compatible = "nxp,pca9546";
530 #address-cells = <1>;
533 i2c-mux-idle-disconnect;
534 reset-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
536 i2c0_slotPE0_0: i2c@0 {
537 #address-cells = <1>;
543 i2c0_slotPE1_1: i2c@1 {
544 #address-cells = <1>;
550 i2c0_slotUSB_2: i2c@2 {
551 #address-cells = <1>;
557 #address-cells = <1>;
565 clock-frequency = <100000>;
568 pca9535_ifdet: pca9535-ifdet@24 {
569 compatible = "nxp,pca9535";
575 pca9535_pwren: pca9535-pwren@20 {
576 compatible = "nxp,pca9535";
582 "pwr_u2_3_en","pwr_u2_2_en",
583 "pwr_u2_1_en","pwr_u2_0_en",
584 "pwr_u2_7_en","pwr_u2_6_en",
585 "pwr_u2_5_en","pwr_u2_4_en",
586 "pwr_u2_11_en","pwr_u2_10_en",
587 "pwr_u2_9_en","pwr_u2_8_en",
588 "pwr_u2_15_en","pwr_u2_14_en",
589 "pwr_u2_13_en","pwr_u2_12_en";
592 pca9535_pwrgd: pca9535-pwrgd@21 {
593 compatible = "nxp,pca9535";
599 pca9535_ledlocate: pca9535-ledlocate@22 {
600 compatible = "nxp,pca9535";
607 pca9535_ledfault: pca9535-ledfault@23 {
608 compatible = "nxp,pca9535";
615 pca9535_pwrdisable: pca9535-pwrdisable@25 {
616 compatible = "nxp,pca9535";
622 "u2_3_pwr_dis","u2_2_pwr_dis",
623 "u2_1_pwr_dis","u2_0_pwr_dis",
624 "u2_7_pwr_dis","u2_6_pwr_dis",
625 "u2_5_pwr_dis","u2_4_pwr_dis",
626 "u2_11_pwr_dis","u2_10_pwr_dis",
627 "u2_9_pwr_dis","u2_8_pwr_dis",
628 "u2_15_pwr_dis","u2_14_pwr_dis",
629 "u2_13_pwr_dis","u2_12_pwr_dis";
632 pca9535_perst: pca9535-perst@26 {
633 compatible = "nxp,pca9535";
639 "u2_15_perst","u2_14_perst",
640 "u2_13_perst","u2_12_perst",
641 "u2_11_perst","u2_10_perst",
642 "u2_9_perst","u2_8_perst",
643 "u2_7_perst","u2_6_perst",
644 "u2_5_perst","u2_4_perst",
645 "u2_3_perst","u2_2_perst",
646 "u2_1_perst","u2_0_perst";
651 clock-frequency = <100000>;
655 compatible = "amd,sbtsi";
661 clock-frequency = <100000>;
665 compatible = "atmel,24c64";
670 compatible = "nxp,pca9546";
671 #address-cells = <1>;
674 i2c-mux-idle-disconnect;
676 i2c5_i2cool_0: i2c@0 {
677 #address-cells = <1>;
681 compatible = "maxim,max31725";
687 i2c5_i2cool_1: i2c@1 {
688 #address-cells = <1>;
692 compatible = "maxim,max31725";
698 i2c5_i2cool_2: i2c@2 {
699 #address-cells = <1>;
703 compatible = "maxim,max31725";
708 compatible = "atmel,24c64";
713 i2c5_hsbp_fru_3: i2c@3 {
714 #address-cells = <1>;
718 compatible = "atmel,24c64";
727 clock-frequency = <100000>;
731 compatible = "nxp,pca9545";
732 #address-cells = <1>;
735 i2c-mux-idle-disconnect;
737 i2c6_u2_15_0: i2c@0 {
738 #address-cells = <1>;
743 i2c6_u2_14_1: i2c@1 {
744 #address-cells = <1>;
748 i2c6_u2_13_2: i2c@2 {
749 #address-cells = <1>;
754 i2c6_u2_12_3: i2c@3 {
755 #address-cells = <1>;
763 clock-frequency = <100000>;
767 compatible = "nxp,pca9545";
768 #address-cells = <1>;
771 i2c-mux-idle-disconnect;
773 i2c7_u2_11_0: i2c@0 {
774 #address-cells = <1>;
779 i2c7_u2_10_1: i2c@1 {
780 #address-cells = <1>;
785 #address-cells = <1>;
791 #address-cells = <1>;
799 clock-frequency = <100000>;
802 i2c8_adm1272: adm1272@10 {
803 compatible = "adi,adm1272";
804 #address-cells = <1>;
807 shunt-resistor-micro-ohms = <300>;
812 clock-frequency = <100000>;
816 compatible = "nxp,pca9546";
817 #address-cells = <1>;
820 i2c-mux-idle-disconnect;
821 reset-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;
823 i2c9_vddcr_cpu: i2c@0 {
824 #address-cells = <1>;
828 compatible = "isil,isl68137";
833 i2c9_vddcr_soc: i2c@1 {
834 #address-cells = <1>;
838 compatible = "isil,isl68137";
843 i2c9_vddio_efgh: i2c@2 {
844 #address-cells = <1>;
848 compatible = "isil,isl68137";
853 i2c9_vddio_abcd: i2c@3 {
854 #address-cells = <1>;
858 compatible = "isil,isl68137";
866 clock-frequency = <100000>;
870 compatible = "nxp,pca9545";
871 #address-cells = <1>;
874 i2c-mux-idle-disconnect;
876 i2c10_u2_7_0: i2c@0 {
877 #address-cells = <1>;
882 i2c10_u2_6_1: i2c@1 {
883 #address-cells = <1>;
887 i2c10_u2_5_2: i2c@2 {
888 #address-cells = <1>;
893 i2c10_u2_4_3: i2c@3 {
894 #address-cells = <1>;
902 clock-frequency = <100000>;
906 compatible = "nxp,pca9545";
907 #address-cells = <1>;
910 i2c-mux-idle-disconnect;
912 i2c11_clk_buf0_0: i2c@0 {
913 #address-cells = <1>;
918 i2c11_clk_buf1_1: i2c@1 {
919 #address-cells = <1>;
923 i2c11_clk_buf2_2: i2c@2 {
924 #address-cells = <1>;
929 i2c11_clk_buf3_3: i2c@3 {
930 #address-cells = <1>;
938 clock-frequency = <100000>;
942 compatible = "maxim,max34451";
946 compatible = "isil,isl68137";
950 compatible = "isil,isl68137";
956 clock-frequency = <100000>;
961 clock-frequency = <100000>;
965 compatible = "nxp,pca9545";
966 #address-cells = <1>;
969 i2c-mux-idle-disconnect;
971 i2c14_u2_3_0: i2c@0 {
972 #address-cells = <1>;
977 i2c14_u2_2_1: i2c@1 {
978 #address-cells = <1>;
983 i2c14_u2_1_2: i2c@2 {
984 #address-cells = <1>;
989 i2c14_u2_0_3: i2c@3 {
990 #address-cells = <1>;
998 pinctrl-names = "default";
1000 &pwm0_pins &pwm1_pins
1001 &pwm2_pins &pwm3_pins
1003 &fanin0_pins &fanin1_pins
1004 &fanin2_pins &fanin3_pins
1011 fan-tach-ch = /bits/ 8 <0x00>;
1015 fan-tach-ch = /bits/ 8 <0x01>;
1019 fan-tach-ch = /bits/ 8 <0x02>;
1023 fan-tach-ch = /bits/ 8 <0x04>;
1027 fan-tach-ch = /bits/ 8 <0x03>;
1032 pinctrl-names = "default";
1034 gpio0: gpio@f0010000 {
1035 /* POWER_OUT=gpio07, RESET_OUT=gpio06, PS_PWROK=gpio13 */
1038 "","","","","","","RESET_OUT","POWER_OUT",
1039 "","","","","","PS_PWROK","","",
1040 "","","","","","","","",
1041 "","","","","","","","";
1043 gpio1: gpio@f0011000 {
1044 /* SIO_POWER_GOOD=gpio59 */
1047 "","","","","","","","",
1048 "","","","","","","","",
1049 "","","","","","","","",
1050 "","","","SIO_POWER_GOOD","","","","";
1052 gpio2: gpio@f0012000 {
1055 gpios = <25 GPIO_ACTIVE_HIGH>;
1057 line-name = "bmc-usb-mux-oe-n";
1061 gpios = <26 GPIO_ACTIVE_HIGH>;
1063 line-name = "bmc-usb-mux-sel";
1065 bmc_usb2517_reset_n {
1067 gpios = <27 GPIO_ACTIVE_LOW>;
1069 line-name = "bmc-usb2517-reset-n";
1072 gpio3: gpio@f0013000 {
1075 gpios = <14 GPIO_ACTIVE_HIGH>;
1077 line-name = "assert-cpu0-reset";
1079 assert_pwrok_cpu0_n {
1081 gpios = <15 GPIO_ACTIVE_HIGH>;
1083 line-name = "assert-pwrok-cpu0-n";
1085 assert_cpu0_prochot {
1087 gpios = <16 GPIO_ACTIVE_HIGH>;
1089 line-name = "assert-cpu0-prochot";
1092 gpio4: gpio@f0014000 {
1093 /* POST_COMPLETE=gpio143 */
1096 "","","","","","","","",
1097 "","","","","","","","POST_COMPLETE",
1098 "","","","","","","","",
1099 "","","","","","","","";
1101 gpio5: gpio@f0015000 {
1102 /* POWER_BUTTON=gpio177 */
1105 "","","","","","","","",
1106 "","","","","","","","",
1107 "","POWER_BUTTON","","","","","","",
1108 "","","","","","","","";
1110 gpio6: gpio@f0016000 {
1111 /* SIO_S5=gpio199, RESET_BUTTON=gpio203 */
1114 "","","","","","","","SIO_S5",
1115 "","","","RESET_BUTTON","","","","",
1116 "","","","","","","","",
1117 "","","","","","","","";
1120 gpio224ol_pins: gpio224ol-pins {
1121 pins = "GPIO224/SPIXCK";
1125 gpio227o_pins: gpio227o-pins {
1126 pins = "GPIO227/nSPIXCS0";
1130 gpio228_pins: gpio228-pins {
1131 pins = "GPIO228/nSPIXCS1";