Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (c) 2020 Microsemi Corporation
0004  */
0005 
0006 #include "serval.dtsi"
0007 
0008 / {
0009         aliases {
0010                 serial0 = &uart0;
0011                 i2c104  = &i2c104;
0012                 i2c105  = &i2c105;
0013                 i2c106  = &i2c106;
0014                 i2c107  = &i2c107;
0015                 i2c108  = &i2c108;
0016                 i2c109  = &i2c109;
0017         };
0018 
0019         chosen {
0020                 stdout-path = "serial0:115200n8";
0021         };
0022 
0023         i2c0_imux: i2c0-imux{
0024                 compatible = "i2c-mux-pinctrl";
0025                 #address-cells = <1>;
0026                 #size-cells = <0>;
0027                 i2c-parent = <&i2c0>;
0028                 pinctrl-names =
0029                 "i2c104", "i2c105", "i2c106", "i2c107",
0030                 "i2c108", "i2c109", "idle";
0031                 pinctrl-0 = <&i2cmux_0>;
0032                 pinctrl-1 = <&i2cmux_1>;
0033                 pinctrl-2 = <&i2cmux_2>;
0034                 pinctrl-3 = <&i2cmux_3>;
0035                 pinctrl-4 = <&i2cmux_4>;
0036                 pinctrl-5 = <&i2cmux_5>;
0037                 pinctrl-6 = <&i2cmux_pins_i>;
0038                 i2c104: i2c_sfp0@0 {
0039                         reg = <0>;
0040                         #address-cells = <1>;
0041                         #size-cells = <0>;
0042                 };
0043                 i2c105: i2c_sfp1@1 {
0044                         reg = <1>;
0045                         #address-cells = <1>;
0046                         #size-cells = <0>;
0047                 };
0048                 i2c106: i2c_sfp2@2 {
0049                         reg = <2>;
0050                         #address-cells = <1>;
0051                         #size-cells = <0>;
0052                 };
0053                 i2c107: i2c_sfp3@3 {
0054                         reg = <3>;
0055                         #address-cells = <1>;
0056                         #size-cells = <0>;
0057                 };
0058                 i2c108: i2c_sfp4@4 {
0059                         reg = <4>;
0060                         #address-cells = <1>;
0061                         #size-cells = <0>;
0062                 };
0063                 i2c109: i2c_sfp5@5 {
0064                         reg = <5>;
0065                         #address-cells = <1>;
0066                         #size-cells = <0>;
0067                 };
0068 };
0069 
0070 };
0071 
0072 &uart0 {
0073         status = "okay";
0074 };
0075 
0076 &uart2 {
0077         status = "okay";
0078 };
0079 
0080 &gpio {
0081         i2c_pins: i2c-pins {
0082                 pins = "GPIO_7"; /* No "default" scl for i2c0 */
0083                 function = "twi";
0084         };
0085         i2cmux_pins_i: i2cmux-pins {
0086                 pins = "GPIO_11", "GPIO_12", "GPIO_18", "GPIO_19",
0087                         "GPIO_20", "GPIO_21";
0088                 function = "twi_scl_m";
0089                 output-low;
0090         };
0091         i2cmux_0: i2cmux-0-pins {
0092                 pins = "GPIO_11";
0093                 function = "twi_scl_m";
0094                 output-high;
0095         };
0096         i2cmux_1: i2cmux-1-pins {
0097                 pins = "GPIO_12";
0098                 function = "twi_scl_m";
0099                 output-high;
0100         };
0101         i2cmux_2: i2cmux-2-pins {
0102                 pins = "GPIO_18";
0103                 function = "twi_scl_m";
0104                 output-high;
0105         };
0106         i2cmux_3: i2cmux-3-pins {
0107                 pins = "GPIO_19";
0108                 function = "twi_scl_m";
0109                 output-high;
0110         };
0111         i2cmux_4: i2cmux-4-pins {
0112                 pins = "GPIO_20";
0113                 function = "twi_scl_m";
0114                 output-high;
0115         };
0116         i2cmux_5: i2cmux-5-pins {
0117                 pins = "GPIO_21";
0118                 function = "twi_scl_m";
0119                 output-high;
0120         };
0121 };
0122 
0123 &i2c0 {
0124         status = "okay";
0125         i2c-sda-hold-time-ns = <300>;
0126 };
0127