riscv: dts: starfive: Add clock and reset for i2c
authorHal Feng <hal.feng@starfivetech.com>
Fri, 22 Apr 2022 07:05:40 +0000 (15:05 +0800)
committerHal Feng <hal.feng@starfivetech.com>
Mon, 25 Apr 2022 01:43:39 +0000 (09:43 +0800)
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110.dtsi
arch/riscv/boot/dts/starfive/jh7110_pinctrl.dtsi

index dcea9bd..968724f 100644 (file)
                i2c6: i2c@12060000 {
                        compatible = "snps,designware-i2c";
                        reg = <0x0 0x12060000 0x0 0x10000>;
+                       clocks = <&clkgen JH7110_I2C6_CLK_CORE>,
+                                <&clkgen JH7110_I2C6_CLK_APB>;
+                       clock-names = "ref", "pclk";
+                       resets = <&rstgen RSTN_U6_DW_I2C_APB>;
                        interrupts = <51>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                i2c0: i2c@10030000 {
                        compatible = "snps,designware-i2c";
                        reg = <0x0 0x10030000 0x0 0x10000>;
+                       clocks = <&clkgen JH7110_I2C0_CLK_CORE>,
+                                <&clkgen JH7110_I2C0_CLK_APB>;
+                       clock-names = "ref", "pclk";
+                       resets = <&rstgen RSTN_U0_DW_I2C_APB>;
                        interrupts = <35>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                i2c1: i2c@10040000 {
                        compatible = "snps,designware-i2c";
                        reg = <0x0 0x10040000 0x0 0x10000>;
+                       clocks = <&clkgen JH7110_I2C1_CLK_CORE>,
+                                <&clkgen JH7110_I2C1_CLK_APB>;
+                       clock-names = "ref", "pclk";
+                       resets = <&rstgen RSTN_U1_DW_I2C_APB>;
                        interrupts = <36>;
                        #address-cells = <1>;
                        #size-cells = <0>;
index ff79823..a974afd 100644 (file)
        pinctrl-0 = <&gmac1_pins>;
 };
 
+&i2c6 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c6_pins>;
+       status = "okay";
+};
+
 &i2c0 {
        pinctrl-names = "default";
        pinctrl-0 = <&i2c0_pins>;