mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
arm: dts: add/fix I2C controllers for sc5xx
sc59x processors have 6 I2C controllers, but their devicetrees currently have only 3. The length of its register block should be 0x100 instead of 0x1000. All I2C nodes should be disabled in sc5xx.dtsi. They can be enabled in board devicetree files if they are used on the boards. Add missing I2C controllers and fix the above issues. Signed-off-by: Jie Zhang <jie.zhang@analog.com>
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
|
||||
gpio_expander0: mcp23017@21 {
|
||||
compatible = "microchip,mcp23017";
|
||||
reg = <0x21>;
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
status = "okay";
|
||||
|
||||
gpio_expander0: mcp23017@21 {
|
||||
compatible = "microchip,mcp23017";
|
||||
reg = <0x21>;
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
&i2c0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
status = "okay";
|
||||
|
||||
gpio_expander0: mcp23017@21 {
|
||||
compatible = "microchip,mcp23017";
|
||||
reg = <0x21>;
|
||||
|
||||
@@ -79,6 +79,7 @@
|
||||
|
||||
&i2c2 {
|
||||
clocks = <&clk ADSP_SC594_CLK_CGU0_SCLK0>;
|
||||
status = "okay";
|
||||
|
||||
som_gpio_expander: mcp23017@21 {
|
||||
compatible = "microchip,mcp23017";
|
||||
@@ -153,6 +154,18 @@
|
||||
};
|
||||
};
|
||||
|
||||
&i2c3 {
|
||||
clocks = <&clk ADSP_SC594_CLK_CGU0_SCLK0>;
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
clocks = <&clk ADSP_SC594_CLK_CGU0_SCLK0>;
|
||||
};
|
||||
|
||||
&i2c5 {
|
||||
clocks = <&clk ADSP_SC594_CLK_CGU0_SCLK0>;
|
||||
};
|
||||
|
||||
&ospi {
|
||||
status = "okay";
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#include "sc598-som.dtsi"
|
||||
|
||||
&i2c2 {
|
||||
status = "okay";
|
||||
|
||||
som_gpio_expander: mcp23018@20 {
|
||||
compatible = "microchip,mcp23018";
|
||||
reg = <0x20>;
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#include "sc598-som.dtsi"
|
||||
|
||||
&i2c2 {
|
||||
status = "okay";
|
||||
|
||||
som_gpio_expander: adp5587@34 {
|
||||
compatible = "adi,adp5587";
|
||||
reg = <0x34>;
|
||||
|
||||
@@ -138,6 +138,18 @@
|
||||
clocks = <&clk ADSP_SC598_CLK_CGU0_SCLK0>;
|
||||
};
|
||||
|
||||
&i2c3 {
|
||||
clocks = <&clk ADSP_SC598_CLK_CGU0_SCLK0>;
|
||||
};
|
||||
|
||||
&i2c4 {
|
||||
clocks = <&clk ADSP_SC598_CLK_CGU0_SCLK0>;
|
||||
};
|
||||
|
||||
&i2c5 {
|
||||
clocks = <&clk ADSP_SC598_CLK_CGU0_SCLK0>;
|
||||
};
|
||||
|
||||
&spi2 {
|
||||
clocks = <&clk ADSP_SC598_CLK_SPI>;
|
||||
};
|
||||
|
||||
@@ -86,6 +86,36 @@
|
||||
pinctrl-0 = <&usb0_default>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
i2c3: i2c3@31001000 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "adi-i2c";
|
||||
reg = <0x31001000 0x100>;
|
||||
clock-names = "i2c";
|
||||
status = "disabled";
|
||||
bootph-pre-ram;
|
||||
};
|
||||
|
||||
i2c4: i2c4@31001100 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "adi-i2c";
|
||||
reg = <0x31001100 0x100>;
|
||||
clock-names = "i2c";
|
||||
status = "disabled";
|
||||
bootph-pre-ram;
|
||||
};
|
||||
|
||||
i2c5: i2c5@31001200 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "adi-i2c";
|
||||
reg = <0x31001200 0x100>;
|
||||
clock-names = "i2c";
|
||||
status = "disabled";
|
||||
bootph-pre-ram;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -140,9 +140,9 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "adi-i2c";
|
||||
reg = <0x31001400 0x1000>;
|
||||
reg = <0x31001400 0x100>;
|
||||
clock-names = "i2c";
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
bootph-pre-ram;
|
||||
};
|
||||
|
||||
@@ -150,9 +150,9 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "adi-i2c";
|
||||
reg = <0x31001500 0x1000>;
|
||||
reg = <0x31001500 0x100>;
|
||||
clock-names = "i2c";
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
bootph-pre-ram;
|
||||
};
|
||||
|
||||
@@ -160,9 +160,9 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "adi-i2c";
|
||||
reg = <0x31001600 0x1000>;
|
||||
reg = <0x31001600 0x100>;
|
||||
clock-names = "i2c";
|
||||
status = "okay";
|
||||
status = "disabled";
|
||||
bootph-pre-ram;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user