Hi All,
I am trying to take MCLK from Hikey960 GPIO_024 pin for my codec driver, for this I added code in dts & dtsi files.
https://archive.armlinux.org.uk/lurker/message/20170614.082323.17817b21.en.html
As per above patch,
-
gpio24: gpio@fff0d000 { + compatible = "arm,pl061", "arm,primecell"; + reg = <0 0xfff0d000 0 0x1000>; + interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; + gpio-controller; + #gpio-cells = <2>; + /* GPIO192 */ + gpio-ranges = <&pmx4 0 13 8>; + interrupt-controller; + #interrupt-cells = <2>; + clocks = <&sctrl HI3660_PCLK_AO_GPIO2>; + **clock-names = "gpio_clk";** + };
modified clock-names = “gpio_clk”, and defined gpio_clk in dts file as “clock-frequency = <19200000>”.
After build and flash on the board, but I am not getting any clock at GPIO_024 pin.
Please help me, how to proceed further.