1*e1c5cd7eSHoward.Chiu@quantatw.com.. SPDX-License-Identifier: GPL-2.0 2*e1c5cd7eSHoward.Chiu@quantatw.com 3*e1c5cd7eSHoward.Chiu@quantatw.comKernel driver mp5023 4*e1c5cd7eSHoward.Chiu@quantatw.com==================== 5*e1c5cd7eSHoward.Chiu@quantatw.com 6*e1c5cd7eSHoward.Chiu@quantatw.comSupported chips: 7*e1c5cd7eSHoward.Chiu@quantatw.com 8*e1c5cd7eSHoward.Chiu@quantatw.com * MPS MP5023 9*e1c5cd7eSHoward.Chiu@quantatw.com 10*e1c5cd7eSHoward.Chiu@quantatw.com Prefix: 'mp5023' 11*e1c5cd7eSHoward.Chiu@quantatw.com 12*e1c5cd7eSHoward.Chiu@quantatw.com * Datasheet 13*e1c5cd7eSHoward.Chiu@quantatw.com 14*e1c5cd7eSHoward.Chiu@quantatw.com Publicly available at the MPS website : https://www.monolithicpower.com/en/mp5023.html 15*e1c5cd7eSHoward.Chiu@quantatw.com 16*e1c5cd7eSHoward.Chiu@quantatw.comAuthor: 17*e1c5cd7eSHoward.Chiu@quantatw.com 18*e1c5cd7eSHoward.Chiu@quantatw.com Howard Chiu <howard.chiu@quantatw.com> 19*e1c5cd7eSHoward.Chiu@quantatw.com 20*e1c5cd7eSHoward.Chiu@quantatw.comDescription 21*e1c5cd7eSHoward.Chiu@quantatw.com----------- 22*e1c5cd7eSHoward.Chiu@quantatw.com 23*e1c5cd7eSHoward.Chiu@quantatw.comThis driver implements support for Monolithic Power Systems, Inc. (MPS) 24*e1c5cd7eSHoward.Chiu@quantatw.comMP5023 Hot-Swap Controller. 25*e1c5cd7eSHoward.Chiu@quantatw.com 26*e1c5cd7eSHoward.Chiu@quantatw.comDevice complaint with: 27*e1c5cd7eSHoward.Chiu@quantatw.com 28*e1c5cd7eSHoward.Chiu@quantatw.com- PMBus rev 1.3 interface. 29*e1c5cd7eSHoward.Chiu@quantatw.com 30*e1c5cd7eSHoward.Chiu@quantatw.comDevice supports direct format for reading input voltage, output voltage, 31*e1c5cd7eSHoward.Chiu@quantatw.comoutput current, input power and temperature. 32*e1c5cd7eSHoward.Chiu@quantatw.com 33*e1c5cd7eSHoward.Chiu@quantatw.comThe driver exports the following attributes via the 'sysfs' files 34*e1c5cd7eSHoward.Chiu@quantatw.comfor input voltage: 35*e1c5cd7eSHoward.Chiu@quantatw.com 36*e1c5cd7eSHoward.Chiu@quantatw.com**in1_input** 37*e1c5cd7eSHoward.Chiu@quantatw.com 38*e1c5cd7eSHoward.Chiu@quantatw.com**in1_label** 39*e1c5cd7eSHoward.Chiu@quantatw.com 40*e1c5cd7eSHoward.Chiu@quantatw.com**in1_max** 41*e1c5cd7eSHoward.Chiu@quantatw.com 42*e1c5cd7eSHoward.Chiu@quantatw.com**in1_max_alarm** 43*e1c5cd7eSHoward.Chiu@quantatw.com 44*e1c5cd7eSHoward.Chiu@quantatw.com**in1_min** 45*e1c5cd7eSHoward.Chiu@quantatw.com 46*e1c5cd7eSHoward.Chiu@quantatw.com**in1_min_alarm** 47*e1c5cd7eSHoward.Chiu@quantatw.com 48*e1c5cd7eSHoward.Chiu@quantatw.comThe driver provides the following attributes for output voltage: 49*e1c5cd7eSHoward.Chiu@quantatw.com 50*e1c5cd7eSHoward.Chiu@quantatw.com**in2_input** 51*e1c5cd7eSHoward.Chiu@quantatw.com 52*e1c5cd7eSHoward.Chiu@quantatw.com**in2_label** 53*e1c5cd7eSHoward.Chiu@quantatw.com 54*e1c5cd7eSHoward.Chiu@quantatw.com**in2_alarm** 55*e1c5cd7eSHoward.Chiu@quantatw.com 56*e1c5cd7eSHoward.Chiu@quantatw.comThe driver provides the following attributes for output current: 57*e1c5cd7eSHoward.Chiu@quantatw.com 58*e1c5cd7eSHoward.Chiu@quantatw.com**curr1_input** 59*e1c5cd7eSHoward.Chiu@quantatw.com 60*e1c5cd7eSHoward.Chiu@quantatw.com**curr1_label** 61*e1c5cd7eSHoward.Chiu@quantatw.com 62*e1c5cd7eSHoward.Chiu@quantatw.com**curr1_alarm** 63*e1c5cd7eSHoward.Chiu@quantatw.com 64*e1c5cd7eSHoward.Chiu@quantatw.com**curr1_max** 65*e1c5cd7eSHoward.Chiu@quantatw.com 66*e1c5cd7eSHoward.Chiu@quantatw.comThe driver provides the following attributes for input power: 67*e1c5cd7eSHoward.Chiu@quantatw.com 68*e1c5cd7eSHoward.Chiu@quantatw.com**power1_input** 69*e1c5cd7eSHoward.Chiu@quantatw.com 70*e1c5cd7eSHoward.Chiu@quantatw.com**power1_label** 71*e1c5cd7eSHoward.Chiu@quantatw.com 72*e1c5cd7eSHoward.Chiu@quantatw.com**power1_alarm** 73*e1c5cd7eSHoward.Chiu@quantatw.com 74*e1c5cd7eSHoward.Chiu@quantatw.comThe driver provides the following attributes for temperature: 75*e1c5cd7eSHoward.Chiu@quantatw.com 76*e1c5cd7eSHoward.Chiu@quantatw.com**temp1_input** 77*e1c5cd7eSHoward.Chiu@quantatw.com 78*e1c5cd7eSHoward.Chiu@quantatw.com**temp1_max** 79*e1c5cd7eSHoward.Chiu@quantatw.com 80*e1c5cd7eSHoward.Chiu@quantatw.com**temp1_max_alarm** 81*e1c5cd7eSHoward.Chiu@quantatw.com 82*e1c5cd7eSHoward.Chiu@quantatw.com**temp1_crit** 83*e1c5cd7eSHoward.Chiu@quantatw.com 84*e1c5cd7eSHoward.Chiu@quantatw.com**temp1_crit_alarm** 85