The A31 gates have a non continuous set of clock IDs that are valid. Add
the clock-indices property to the DT to express this.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
This commit is contained in:
Maxime Ripard 2015-07-31 19:46:18 +02:00 коммит произвёл Stephen Boyd
Родитель dd4de433aa
Коммит dbbb69223c
1 изменённых файлов: 24 добавлений и 0 удалений

Просмотреть файл

@ -252,6 +252,20 @@
compatible = "allwinner,sun6i-a31-ahb1-gates-clk"; compatible = "allwinner,sun6i-a31-ahb1-gates-clk";
reg = <0x01c20060 0x8>; reg = <0x01c20060 0x8>;
clocks = <&ahb1>; clocks = <&ahb1>;
clock-indices = <1>, <5>,
<6>, <8>, <9>,
<10>, <11>, <12>,
<13>, <14>,
<17>, <18>, <19>,
<20>, <21>, <22>,
<23>, <24>, <26>,
<27>, <29>,
<30>, <31>, <32>,
<36>, <37>, <40>,
<43>, <44>, <45>,
<46>, <47>, <50>,
<52>, <55>, <56>,
<57>, <58>;
clock-output-names = "ahb1_mipidsi", "ahb1_ss", clock-output-names = "ahb1_mipidsi", "ahb1_ss",
"ahb1_dma", "ahb1_mmc0", "ahb1_mmc1", "ahb1_dma", "ahb1_mmc0", "ahb1_mmc1",
"ahb1_mmc2", "ahb1_mmc3", "ahb1_nand1", "ahb1_mmc2", "ahb1_mmc3", "ahb1_nand1",
@ -281,6 +295,9 @@
compatible = "allwinner,sun6i-a31-apb1-gates-clk"; compatible = "allwinner,sun6i-a31-apb1-gates-clk";
reg = <0x01c20068 0x4>; reg = <0x01c20068 0x4>;
clocks = <&apb1>; clocks = <&apb1>;
clock-indices = <0>, <4>,
<5>, <12>,
<13>;
clock-output-names = "apb1_codec", "apb1_digital_mic", clock-output-names = "apb1_codec", "apb1_digital_mic",
"apb1_pio", "apb1_daudio0", "apb1_pio", "apb1_daudio0",
"apb1_daudio1"; "apb1_daudio1";
@ -299,6 +316,10 @@
compatible = "allwinner,sun6i-a31-apb2-gates-clk"; compatible = "allwinner,sun6i-a31-apb2-gates-clk";
reg = <0x01c2006c 0x4>; reg = <0x01c2006c 0x4>;
clocks = <&apb2>; clocks = <&apb2>;
clock-indices = <0>, <1>,
<2>, <3>, <16>,
<17>, <18>, <19>,
<20>, <21>;
clock-output-names = "apb2_i2c0", "apb2_i2c1", clock-output-names = "apb2_i2c0", "apb2_i2c1",
"apb2_i2c2", "apb2_i2c3", "apb2_i2c2", "apb2_i2c3",
"apb2_uart0", "apb2_uart1", "apb2_uart0", "apb2_uart1",
@ -384,6 +405,9 @@
compatible = "allwinner,sun6i-a31-usb-clk"; compatible = "allwinner,sun6i-a31-usb-clk";
reg = <0x01c200cc 0x4>; reg = <0x01c200cc 0x4>;
clocks = <&osc24M>; clocks = <&osc24M>;
clock-indices = <8>, <9>, <10>,
<16>, <17>,
<18>;
clock-output-names = "usb_phy0", "usb_phy1", "usb_phy2", clock-output-names = "usb_phy0", "usb_phy1", "usb_phy2",
"usb_ohci0", "usb_ohci1", "usb_ohci0", "usb_ohci1",
"usb_ohci2"; "usb_ohci2";