]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
ARM64: zynqmp: Add i2c bus description
authorMichal Simek <michal.simek@xilinx.com>
Tue, 20 Oct 2015 13:36:20 +0000 (15:36 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 21 Oct 2015 14:47:46 +0000 (16:47 +0200)
Add description of i2c bus based on schematics. Some parts are still
unclear and needs to be checked. PMBUS included.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynqmp-zcu102.dts

index 96d370bcc15eeec217d284115d8188530876735a..5fc3d15bea4b0ad08d7edfa99074e800e211d812 100644 (file)
        clock-frequency = <400000>;
        clocks = <&clk100>;
 
-       i2cswitch@75 {
+       i2cswitch@75 { /* u60 */
                compatible = "nxp,pca9544";
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <0x75>;
+               i2c@0 { /* i2c mw 75 0 1 */
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0>;
+                       /* PS_PMBUS */
+                       ina226@40 { /* u76 */
+                               compatible = "ti,ina226";
+                               reg = <0x40>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@41 { /* u77 */
+                               compatible = "ti,ina226";
+                               reg = <0x41>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@42 { /* u78 */
+                               compatible = "ti,ina226";
+                               reg = <0x42>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@43 { /* u87 */
+                               compatible = "ti,ina226";
+                               reg = <0x43>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@44 { /* u85 */
+                               compatible = "ti,ina226";
+                               reg = <0x44>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@45 { /* u86 */
+                               compatible = "ti,ina226";
+                               reg = <0x45>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@46 { /* u93 */
+                               compatible = "ti,ina226";
+                               reg = <0x46>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@47 { /* u88 */
+                               compatible = "ti,ina226";
+                               reg = <0x47>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@4a { /* u15 */
+                               compatible = "ti,ina226";
+                               reg = <0x4a>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@4b { /* u92 */
+                               compatible = "ti,ina226";
+                               reg = <0x4b>;
+                               shunt-resistor = <5000>;
+                       };
+               };
+               i2c@1 { /* i2c mw 75 0 1 */
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <1>;
+                       /* PL_PMBUS */
+                       ina226@40 { /* u79 */
+                               compatible = "ti,ina226";
+                               reg = <0x40>;
+                               shunt-resistor = <2000>;
+                       };
+                       ina226@41 { /* u81 */
+                               compatible = "ti,ina226";
+                               reg = <0x41>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@42 { /* u80 */
+                               compatible = "ti,ina226";
+                               reg = <0x42>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@43 { /* u84 */
+                               compatible = "ti,ina226";
+                               reg = <0x43>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@44 { /* u16 */
+                               compatible = "ti,ina226";
+                               reg = <0x44>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@45 { /* u65 */
+                               compatible = "ti,ina226";
+                               reg = <0x45>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@46 { /* u74 */
+                               compatible = "ti,ina226";
+                               reg = <0x46>;
+                               shunt-resistor = <5000>;
+                       };
+                       ina226@47 { /* u75 */
+                               compatible = "ti,ina226";
+                               reg = <0x47>;
+                               shunt-resistor = <5000>;
+                       };
+               };
+               i2c@2 { /* i2c mw 75 0 1 */
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <2>;
+                       /* MAXIM_PMBUS - 00 */
+                       max15301@a { /* u46 */
+                               reg = <0xa>;
+                       };
+                       max15303@b { /* u4 */
+                               reg = <0xb>;
+                       };
+                       max15303@10 { /* u13 */
+                               reg = <0x10>;
+                       };
+                       max15301@13 { /* u47 */
+                               reg = <0x13>;
+                       };
+                       max15303@14 { /* u7 */
+                               reg = <0x14>;
+                       };
+                       max15303@15 { /* u6 */
+                               reg = <0x15>;
+                       };
+                       max15303@16 { /* u10 */
+                               reg = <0x16>;
+                       };
+                       max15303@17 { /* u9 */
+                               reg = <0x17>;
+                       };
+                       max15301@18 { /* u63 */
+                               reg = <0x18>;
+                       };
+                       max15303@1a { /* u49 */
+                               reg = <0x1a>;
+                       };
+                       max15303@1d { /* u18 */
+                               reg = <0x1d>;
+                       };
+                       max15303@20 { /* u8 */
+                               reg = <0x20>;
+                       };
+
+/*                     drivers/hwmon/pmbus/Kconfig:86:   be called max20751.
+drivers/hwmon/pmbus/Makefile:11:obj-$(CONFIG_SENSORS_MAX20751)  += max20751.o
+*/
+                       max20751@72 { /* u95 FIXME - not detected */
+                               compatible = "max20751";
+                               reg = <0x72>;
+                       };
+                       max20751@73 { /* u96 FIXME - not detected */
+                               compatible = "max20751";
+                               reg = <0x73>;
+                       };
+               };
+               /* Bus 3 is not connected */
        };
 
        tca6416_u61: gpio@20 {
                 * 7 - 17 - not connected
                 */
        };
+       /* FIXME PL connection - u55 , PMOD - j160 */
+       /* FIXME MSP430F - u41 - not detected */
 };
 
 &i2c1 {
        status = "okay";
        clock-frequency = <400000>;
        clocks = <&clk100>;
-       eeprom@54 {
-               compatible = "at,24c64"; /* 24AA64 */
-               reg = <0x54>;
+       /* FIXME PL i2c via PCA9306 - u45 */
+       /* FIXME MSP430 - u41 - not detected */
+       i2cswitch@74 { /* u34 */
+               compatible = "nxp,pca9548";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x74>;
+               i2c@0 { /* i2c mw 74 0 1 */
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0>;
+                       /* IIC_EEPROM */
+                       eeprom@54 { /* u23 */
+                               compatible = "at,24c08";
+                               reg = <0x54>;
+                       };
+
+                       eeprom@55 { /* u-boot detection */
+                               compatible = "at,24c08";
+                               reg = <0x55>;
+                       };
+
+                       eeprom@56 { /* u-boot detection */
+                               compatible = "at,24c08";
+                               reg = <0x56>;
+                       };
+
+                       eeprom@57 { /* u-boot detection */
+                               compatible = "at,24c08";
+                               reg = <0x57>;
+                       };
+               };
+               i2c@1 { /* i2c mw 74 0 2 */
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <1>;
+                       si5341: clock-generato@36 { /* SI5341 - u69 */
+                               reg = <0x36>;
+                       };
+
+               };
+               i2c@2 { /* i2c mw 74 0 4 */
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <2>;
+                       si570_1: clock-generator@5d { /* USER SI570 - u42 */
+                               #clock-cells = <0>;
+                               compatible = "silabs,si570";
+                               reg = <0x5d>;
+                               temperature-stability = <50>; /* copy from zc702 */
+                               factory-fout = <156250000>;
+                               clock-frequency = <148500000>;
+                       };
+               };
+               i2c@3 { /* i2c mw 74 0 8 */
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <3>;
+                       si570_2: clock-generator@5d { /* USER MGT SI570 - u56 */
+                               #clock-cells = <0>;
+                               compatible = "silabs,si570";
+                               reg = <0x5d>;
+                               temperature-stability = <50>; /* copy from zc702 */
+                               factory-fout = <156250000>;
+                               clock-frequency = <148500000>;
+                       };
+               };
+               i2c@4 { /* i2c mw 74 0 10 */
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <4>;
+                       si5328: clock-generator@69 {/* SI5328 - u20 */
+                               reg = <0x69>;
+                       };
+               };
+               /* 5 - 7 unconnected */
+       };
+
+       i2cswitch@75 {
+               compatible = "nxp,pca9548"; /* u135 */
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x75>;
+
+               i2c@0 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0>;
+                       /* HPC0_IIC */
+               };
+               i2c@1 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <1>;
+                       /* HPC1_IIC */
+               };
+               i2c@2 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <2>;
+                       /* SYSMON */
+               };
+               i2c@3 { /* i2c mw 75 0 8 */
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <3>;
+                       /* DDR4 SODIMM */
+                       dev@19 { /* u-boot detection */
+                               reg = <0x19>;
+                       };
+                       dev@30 { /* u-boot detection */
+                               reg = <0x30>;
+                       };
+                       dev@35 { /* u-boot detection */
+                               reg = <0x35>;
+                       };
+                       dev@36 { /* u-boot detection */
+                               reg = <0x36>;
+                       };
+                       dev@51 { /* u-boot detection - maybe SPD */
+                               reg = <0x51>;
+                       };
+               };
+               i2c@4 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <4>;
+                       /* SEP 3 */
+               };
+               i2c@5 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <5>;
+                       /* SEP 2 */
+               };
+               i2c@6 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <6>;
+                       /* SEP 1 */
+               };
+               i2c@7 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <7>;
+                       /* SEP 0 */
+               };
        };
 };