Re: [linux-yocto][v6.1/standard/preempt-rt/sdkv6.1/xlnx-soc][PATCH] arm64: dts: versal: add i2c devices
In message: [linux-yocto][v6.1/standard/preempt-rt/sdkv6.1/xlnx-soc][PATCH] arm64: dts: versal: add i2c devices on 14/08/2023 quanyang.w...@windriver.com wrote: > From: Quanyang Wang > > The vck190/vmk180 boards are equipped with i2c devices: > - GPIO Expander: TCA6416 > - I2C Switch: PCA9548 > - Programmable XO/VCXO: SI570 > - EEPROM: M24128-BR > - System Synchronizer for IEEE 1588: 8A34001 > - Current & Power Monitor: INA226 > - Fan Speed Controller: MAX6643 > > This patch add listed devices to dts. > > Signed-off-by: Quanyang Wang > Signed-off-by: Bruce Ashfield > --- > Hi Bruce, > Would you please help merge this patch to the branches: > v6.1/standard/preempt-rt/sdkv6.1/xlnx-soc > v6.1/standard/sdkv6.1/xlnx-soc merged. Bruce > Thanks, > Quanyang > --- > .../boot/dts/xilinx/versal-vmk180-revA.dts| 327 ++ > 1 file changed, 327 insertions(+) > > diff --git a/arch/arm64/boot/dts/xilinx/versal-vmk180-revA.dts > b/arch/arm64/boot/dts/xilinx/versal-vmk180-revA.dts > index 10c67c9339d3..db394ac081ac 100644 > --- a/arch/arm64/boot/dts/xilinx/versal-vmk180-revA.dts > +++ b/arch/arm64/boot/dts/xilinx/versal-vmk180-revA.dts > @@ -118,10 +118,337 @@ { /* PMC_MIO_49, LPD_MIO12-23 */ > > { /* PMC_MIO46/47 */ > status = "okay"; > + > + tca6416_u233: gpio@20 { > + compatible = "ti,tca6416"; > + reg = <0x20>; > + gpio-controller; /* IRQ not connected */ > + #gpio-cells = <2>; > + gpio-line-names = "MAX6643_OT_B", "MAX6643_FANFAIL_B", "", "", > "PMBUS2_INA226_ALERT", "", "", > + "MAX6643_FULLSPD", "FMCP1_FMC_PRSNT_M2C_B", > "FMCP2_FMC_PRSNT_M2C_B", > + "FMCP1_FMCP_PRSNT_M2C_B", > "FMCP2_FMCP_PRSNT_M2C_B", "VCCINT_VRHOT_B", > + "8A34001_EXP_RST_B", "PMBUS_ALERT", > "PMBUS1_INA226_ALERT"; > + }; > + > + i2c-mux@74 { > + compatible = "nxp,pca9548"; /* u33 */ > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0x74>; > + > + i2c@0 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0>; > + /* PMBUS */ > + }; > + i2c@1 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <1>; > + /* PMBUS1_INA226 */ > + u65: ina226@40 { /* u65 */ > + compatible = "ti,ina226"; > + #io-channel-cells = <1>; > + label = "ina226-u65"; > + reg = <0x40>; > + shunt-resistor = <500>; /* R440 */ > + }; > + u161: ina226@41 { /* u161 */ > + compatible = "ti,ina226"; > + #io-channel-cells = <1>; > + label = "ina226-u161"; > + reg = <0x41>; > + shunt-resistor = <500>; /* R1702 */ > + }; > + u163: ina226@42 { /* u163 */ > + compatible = "ti,ina226"; > + #io-channel-cells = <1>; > + label = "ina226-u163"; > + reg = <0x42>; > + shunt-resistor = <5000>; /* R1214 */ > + }; > + u162: ina226@43 { /* u162 */ > + compatible = "ti,ina226"; > + #io-channel-cells = <1>; > + label = "ina226-u162"; > + reg = <0x43>; > + shunt-resistor = <5000>; /* R1221 */ > + }; > + u165: ina226@44 { /* u165 */ > + compatible = "ti,ina226"; > + #io-channel-cells = <1>; > + label = "ina226-u165"; > + reg = <0x44>; > +
[linux-yocto][v6.1/standard/preempt-rt/sdkv6.1/xlnx-soc][PATCH] arm64: dts: versal: add i2c devices
From: Quanyang Wang The vck190/vmk180 boards are equipped with i2c devices: - GPIO Expander: TCA6416 - I2C Switch: PCA9548 - Programmable XO/VCXO: SI570 - EEPROM: M24128-BR - System Synchronizer for IEEE 1588: 8A34001 - Current & Power Monitor: INA226 - Fan Speed Controller: MAX6643 This patch add listed devices to dts. Signed-off-by: Quanyang Wang Signed-off-by: Bruce Ashfield --- Hi Bruce, Would you please help merge this patch to the branches: v6.1/standard/preempt-rt/sdkv6.1/xlnx-soc v6.1/standard/sdkv6.1/xlnx-soc Thanks, Quanyang --- .../boot/dts/xilinx/versal-vmk180-revA.dts| 327 ++ 1 file changed, 327 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/versal-vmk180-revA.dts b/arch/arm64/boot/dts/xilinx/versal-vmk180-revA.dts index 10c67c9339d3..db394ac081ac 100644 --- a/arch/arm64/boot/dts/xilinx/versal-vmk180-revA.dts +++ b/arch/arm64/boot/dts/xilinx/versal-vmk180-revA.dts @@ -118,10 +118,337 @@ { /* PMC_MIO_49, LPD_MIO12-23 */ { /* PMC_MIO46/47 */ status = "okay"; + + tca6416_u233: gpio@20 { + compatible = "ti,tca6416"; + reg = <0x20>; + gpio-controller; /* IRQ not connected */ + #gpio-cells = <2>; + gpio-line-names = "MAX6643_OT_B", "MAX6643_FANFAIL_B", "", "", "PMBUS2_INA226_ALERT", "", "", + "MAX6643_FULLSPD", "FMCP1_FMC_PRSNT_M2C_B", "FMCP2_FMC_PRSNT_M2C_B", + "FMCP1_FMCP_PRSNT_M2C_B", "FMCP2_FMCP_PRSNT_M2C_B", "VCCINT_VRHOT_B", + "8A34001_EXP_RST_B", "PMBUS_ALERT", "PMBUS1_INA226_ALERT"; + }; + + i2c-mux@74 { + compatible = "nxp,pca9548"; /* u33 */ + #address-cells = <1>; + #size-cells = <0>; + reg = <0x74>; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + /* PMBUS */ + }; + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + /* PMBUS1_INA226 */ + u65: ina226@40 { /* u65 */ + compatible = "ti,ina226"; + #io-channel-cells = <1>; + label = "ina226-u65"; + reg = <0x40>; + shunt-resistor = <500>; /* R440 */ + }; + u161: ina226@41 { /* u161 */ + compatible = "ti,ina226"; + #io-channel-cells = <1>; + label = "ina226-u161"; + reg = <0x41>; + shunt-resistor = <500>; /* R1702 */ + }; + u163: ina226@42 { /* u163 */ + compatible = "ti,ina226"; + #io-channel-cells = <1>; + label = "ina226-u163"; + reg = <0x42>; + shunt-resistor = <5000>; /* R1214 */ + }; + u162: ina226@43 { /* u162 */ + compatible = "ti,ina226"; + #io-channel-cells = <1>; + label = "ina226-u162"; + reg = <0x43>; + shunt-resistor = <5000>; /* R1221 */ + }; + u165: ina226@44 { /* u165 */ + compatible = "ti,ina226"; + #io-channel-cells = <1>; + label = "ina226-u165"; + reg = <0x44>; + shunt-resistor = <5000>; /* R1216 */ + }; + u164: ina226@45 { /* u164 */ + compatible = "ti,ina226"; + #io-channel-cells = <1>; + label = "ina226-u164"; + reg = <0x45>; + shunt-resistor = <5000>; /* R1219 */ + }; + }; + /* 2 unconnected */ + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + /* PMBUS2_INA226 */ + u166: ina226@40 { /* u166 */ + compatible = "ti,ina226"; + #io-channel-cells = <1>; + label = "ina226-u166"; + reg = <0x40>; +