Re: [linux-yocto][v5.15/standard/preempt-rt/sdkv5.15/xlnx-soc][PATCH] arm64: dts: versal: add i2c devices

2023-03-21 Thread Bruce Ashfield
In message: [linux-yocto][v5.15/standard/preempt-rt/sdkv5.15/xlnx-soc][PATCH] 
arm64: dts: versal: add i2c devices
on 21/03/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 
> ---
> Hi Bruce,
> Would you please help merge this patch to the branches:
>   v5.15/standard/preempt-rt/sdkv5.15/xlnx-soc
>   v5.15/standard/sdkv5.15/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 79ab1a85ca7c..2243a6096b5d 100644
> --- a/arch/arm64/boot/dts/xilinx/versal-vmk180-revA.dts
> +++ b/arch/arm64/boot/dts/xilinx/versal-vmk180-revA.dts
> @@ -119,11 +119,338 @@  { /* PMC_MIO_49, LPD_MIO12-23 */
>   { /* PMC_MIO46/47 */
>   status = "okay";
>   clock-frequency = <40>;
> +
> + 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][v5.15/standard/preempt-rt/sdkv5.15/xlnx-soc][PATCH] arm64: dts: versal: add i2c devices

2023-03-21 Thread quanyang.wang
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 
---
Hi Bruce,
Would you please help merge this patch to the branches:
v5.15/standard/preempt-rt/sdkv5.15/xlnx-soc
v5.15/standard/sdkv5.15/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 79ab1a85ca7c..2243a6096b5d 100644
--- a/arch/arm64/boot/dts/xilinx/versal-vmk180-revA.dts
+++ b/arch/arm64/boot/dts/xilinx/versal-vmk180-revA.dts
@@ -119,11 +119,338 @@  { /* PMC_MIO_49, LPD_MIO12-23 */
  { /* PMC_MIO46/47 */
status = "okay";
clock-frequency = <40>;
+
+   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>;
+