Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (c) 2018 Microsemi Corporation
0004  */
0005 
0006 /dts-v1/;
0007 #include "jaguar2_common.dtsi"
0008 
0009 / {
0010         model = "Jaguar2/Aquantia PCB118 Reference Board";
0011         compatible = "mscc,jr2-pcb118", "mscc,jr2";
0012 
0013         aliases {
0014                 i2c150  = &i2c150;
0015                 i2c151  = &i2c151;
0016         };
0017 
0018         i2c0_imux: i2c0-imux {
0019                 compatible = "i2c-mux-pinctrl";
0020                 #address-cells = <1>;
0021                 #size-cells = <0>;
0022                 i2c-parent = <&i2c0>;
0023                 pinctrl-names =
0024                         "i2c150", "i2c151", "idle";
0025                 pinctrl-0 = <&i2cmux_0>;
0026                 pinctrl-1 = <&i2cmux_1>;
0027                 pinctrl-2 = <&i2cmux_pins_i>;
0028                 i2c150: i2c@0 {
0029                         reg = <0>;
0030                         #address-cells = <1>;
0031                         #size-cells = <0>;
0032                 };
0033                 i2c151: i2c@1 {
0034                         reg = <1>;
0035                         #address-cells = <1>;
0036                         #size-cells = <0>;
0037                 };
0038         };
0039 };
0040 
0041 &gpio {
0042         i2cmux_pins_i: i2cmux-pins {
0043                 pins = "GPIO_17", "GPIO_16";
0044                 function = "twi_scl_m";
0045                 output-low;
0046         };
0047         i2cmux_0: i2cmux-0-pins {
0048                 pins = "GPIO_17";
0049                 function = "twi_scl_m";
0050                 output-high;
0051         };
0052         i2cmux_1: i2cmux-1-pins {
0053                 pins = "GPIO_16";
0054                 function = "twi_scl_m";
0055                 output-high;
0056         };
0057 };