dts:starfive:pinctrl:Add mclk_ext pin
authorXingyu Wu <xingyu.wu@starfivetech.com>
Thu, 8 Sep 2022 08:34:21 +0000 (16:34 +0800)
committerXingyu Wu <xingyu.wu@starfivetech.com>
Tue, 13 Sep 2022 09:36:00 +0000 (17:36 +0800)
Add mclk_ext pin and it's rate is 12.288m.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110-clk.dtsi
arch/riscv/boot/dts/starfive/jh7110-evb-pinctrl.dtsi [changed mode: 0644->0755]

index 9461520..701bc21 100755 (executable)
@@ -61,7 +61,7 @@
        mclk_ext: mclk_ext {
                compatible = "fixed-clock";
                #clock-cells = <0>;
-               clock-frequency = <49152000>;
+               clock-frequency = <12288000>;
        };
 
        jtag_tck_inner: jtag_tck_inner {
old mode 100644 (file)
new mode 100755 (executable)
index 3553b13..ab388c0
                        starfive,pin-gpio-doen = <OEN_HIGH>;
                };
        };
+
+       mclk_ext_pins: mclk_ext_pins {
+               mclk_ext_pins {
+                       starfive,pins = <PAD_GPIO61>;
+                       starfive,pinmux = <PAD_GPIO61_FUNC_SEL 0>;
+                       starfive,pin-ioconfig = <IO(GPIO_IE(1))>;
+                       starfive,pin-gpio-din = <GPI_CRG0_EXT_MCLK>;
+                       starfive,pin-gpio-doen = <OEN_HIGH>;
+               };
+       };
 };
 
 &gpioa {