1*cd228e7bSAlex Vdovydchenko.. SPDX-License-Identifier: GPL-2.0 2*cd228e7bSAlex Vdovydchenko 3*cd228e7bSAlex VdovydchenkoKernel driver mp5920 4*cd228e7bSAlex Vdovydchenko==================== 5*cd228e7bSAlex Vdovydchenko 6*cd228e7bSAlex VdovydchenkoSupported chips: 7*cd228e7bSAlex Vdovydchenko 8*cd228e7bSAlex Vdovydchenko * MPS MP5920 9*cd228e7bSAlex Vdovydchenko 10*cd228e7bSAlex Vdovydchenko Prefix: 'mp5920' 11*cd228e7bSAlex Vdovydchenko 12*cd228e7bSAlex Vdovydchenko * Datasheet 13*cd228e7bSAlex Vdovydchenko 14*cd228e7bSAlex Vdovydchenko Publicly available at the MPS website : https://www.monolithicpower.com/en/mp5920.html 15*cd228e7bSAlex Vdovydchenko 16*cd228e7bSAlex VdovydchenkoAuthors: 17*cd228e7bSAlex Vdovydchenko 18*cd228e7bSAlex Vdovydchenko Tony Ao <tony_ao@wiwynn.com> 19*cd228e7bSAlex Vdovydchenko Alex Vdovydchenko <xzeol@yahoo.com> 20*cd228e7bSAlex Vdovydchenko 21*cd228e7bSAlex VdovydchenkoDescription 22*cd228e7bSAlex Vdovydchenko----------- 23*cd228e7bSAlex Vdovydchenko 24*cd228e7bSAlex VdovydchenkoThis driver implements support for Monolithic Power Systems, Inc. (MPS) 25*cd228e7bSAlex VdovydchenkoMP5920 Hot-Swap Controller. 26*cd228e7bSAlex Vdovydchenko 27*cd228e7bSAlex VdovydchenkoDevice compliant with: 28*cd228e7bSAlex Vdovydchenko 29*cd228e7bSAlex Vdovydchenko- PMBus rev 1.3 interface. 30*cd228e7bSAlex Vdovydchenko 31*cd228e7bSAlex VdovydchenkoDevice supports direct and linear format for reading input voltage, 32*cd228e7bSAlex Vdovydchenkooutput voltage, output current, input power and temperature. 33*cd228e7bSAlex Vdovydchenko 34*cd228e7bSAlex VdovydchenkoThe driver exports the following attributes via the 'sysfs' files 35*cd228e7bSAlex Vdovydchenkofor input voltage: 36*cd228e7bSAlex Vdovydchenko 37*cd228e7bSAlex Vdovydchenko**in1_input** 38*cd228e7bSAlex Vdovydchenko 39*cd228e7bSAlex Vdovydchenko**in1_label** 40*cd228e7bSAlex Vdovydchenko 41*cd228e7bSAlex Vdovydchenko**in1_rated_max** 42*cd228e7bSAlex Vdovydchenko 43*cd228e7bSAlex Vdovydchenko**in1_rated_min** 44*cd228e7bSAlex Vdovydchenko 45*cd228e7bSAlex Vdovydchenko**in1_crit** 46*cd228e7bSAlex Vdovydchenko 47*cd228e7bSAlex Vdovydchenko**in1_alarm** 48*cd228e7bSAlex Vdovydchenko 49*cd228e7bSAlex VdovydchenkoThe driver provides the following attributes for output voltage: 50*cd228e7bSAlex Vdovydchenko 51*cd228e7bSAlex Vdovydchenko**in2_input** 52*cd228e7bSAlex Vdovydchenko 53*cd228e7bSAlex Vdovydchenko**in2_label** 54*cd228e7bSAlex Vdovydchenko 55*cd228e7bSAlex Vdovydchenko**in2_rated_max** 56*cd228e7bSAlex Vdovydchenko 57*cd228e7bSAlex Vdovydchenko**in2_rated_min** 58*cd228e7bSAlex Vdovydchenko 59*cd228e7bSAlex Vdovydchenko**in2_alarm** 60*cd228e7bSAlex Vdovydchenko 61*cd228e7bSAlex VdovydchenkoThe driver provides the following attributes for output current: 62*cd228e7bSAlex Vdovydchenko 63*cd228e7bSAlex Vdovydchenko**curr1_input** 64*cd228e7bSAlex Vdovydchenko 65*cd228e7bSAlex Vdovydchenko**curr1_label** 66*cd228e7bSAlex Vdovydchenko 67*cd228e7bSAlex Vdovydchenko**curr1_crit** 68*cd228e7bSAlex Vdovydchenko 69*cd228e7bSAlex Vdovydchenko**curr1_alarm** 70*cd228e7bSAlex Vdovydchenko 71*cd228e7bSAlex Vdovydchenko**curr1_rated_max** 72*cd228e7bSAlex Vdovydchenko 73*cd228e7bSAlex VdovydchenkoThe driver provides the following attributes for input power: 74*cd228e7bSAlex Vdovydchenko 75*cd228e7bSAlex Vdovydchenko**power1_input** 76*cd228e7bSAlex Vdovydchenko 77*cd228e7bSAlex Vdovydchenko**power1_label** 78*cd228e7bSAlex Vdovydchenko 79*cd228e7bSAlex Vdovydchenko**power1_max** 80*cd228e7bSAlex Vdovydchenko 81*cd228e7bSAlex Vdovydchenko**power1_rated_max** 82*cd228e7bSAlex Vdovydchenko 83*cd228e7bSAlex VdovydchenkoThe driver provides the following attributes for temperature: 84*cd228e7bSAlex Vdovydchenko 85*cd228e7bSAlex Vdovydchenko**temp1_input** 86*cd228e7bSAlex Vdovydchenko 87*cd228e7bSAlex Vdovydchenko**temp1_max** 88*cd228e7bSAlex Vdovydchenko 89*cd228e7bSAlex Vdovydchenko**temp1_crit** 90*cd228e7bSAlex Vdovydchenko 91*cd228e7bSAlex Vdovydchenko**temp1_alarm** 92