|
937 | 937 | #pinmux-cells = <2>; |
938 | 938 | reg = <0x40384000 0x4000>; |
939 | 939 | clocks = <&ccm IMX_CCM_SAI1_CLK 0x7C 2>; |
940 | | - pre-div = <0>; |
941 | | - podf = <63>; |
942 | | - pll-clocks = <&anatop 0x70 0xC000 0>, |
943 | | - <&anatop 0x70 0x7F 32>, |
944 | | - <&anatop 0x70 0x18 1>, |
945 | | - <&anatop 0x80 0x3FFFFFFF 77>, |
946 | | - <&anatop 0x90 0x3FFFFFFF 100>; |
| 940 | + /* Audio PLL Output Frequency is determined by: |
| 941 | + * (Fref * (DIV_SELECT + NUM/DENOM)) / POST_DIV |
| 942 | + * = (24MHz * (32 + 77 / 100)) / 1 = 786.48 MHz |
| 943 | + */ |
| 944 | + pll-clocks = <&anatop 0x70 0xC000 0>, |
| 945 | + <&anatop 0x70 0x7F 32>, |
| 946 | + <&anatop 0x70 0x180000 1>, |
| 947 | + <&anatop 0x80 0x3FFFFFFF 77>, |
| 948 | + <&anatop 0x90 0x3FFFFFFF 100>; |
947 | 949 | pll-clock-names = "src", "lp", "pd", "num", "den"; |
| 950 | + /* The maximum input frequency into the SAI mclk input is 300MHz |
| 951 | + * Based on this requirement, pre-div must be at least 3 |
| 952 | + * The pre-div and post-div are one less than the actual divide-by amount. |
| 953 | + * A pre-div value of 0x1 results in a pre-divider of |
| 954 | + * (1+1) = 2 |
| 955 | + */ |
| 956 | + pre-div = <0x3>; |
| 957 | + podf = <0x0F>; |
948 | 958 | pinmuxes = <&iomuxcgpr 0x4 0x80000>; |
949 | 959 | interrupts = <56 0>; |
950 | 960 | dmas = <&edma0 0 19>, <&edma0 0 20>; |
951 | 961 | dma-names = "rx", "tx"; |
952 | | - nxp,tx-channel = <0>; |
| 962 | + /* This translates to SAIChannelMask (fsl_sai.c) and |
| 963 | + * cannot be 0 |
| 964 | + */ |
| 965 | + nxp,tx-channel = <1>; |
953 | 966 | nxp,tx-dma-channel = <0>; |
954 | 967 | nxp,rx-dma-channel = <1>; |
955 | 968 | status = "disabled"; |
|
965 | 978 | clocks = <&ccm IMX_CCM_SAI2_CLK 0x7C 2>; |
966 | 979 | pre-div = <0>; |
967 | 980 | podf = <63>; |
968 | | - pll-clocks = <&anatop 0x70 0xC000 0>, |
969 | | - <&anatop 0x70 0x7F 32>, |
970 | | - <&anatop 0x70 0x18 1>, |
971 | | - <&anatop 0x80 0x3FFFFFFF 77>, |
972 | | - <&anatop 0x90 0x3FFFFFFF 100>; |
| 981 | + pll-clocks = <&anatop 0x70 0xC000 0x0>, |
| 982 | + <&anatop 0x70 0x7F 32>, |
| 983 | + <&anatop 0x70 0x180000 1>, |
| 984 | + <&anatop 0x80 0x3FFFFFFF 77>, |
| 985 | + <&anatop 0x90 0x3FFFFFFF 100>; |
973 | 986 | pll-clock-names = "src", "lp", "pd", "num", "den"; |
974 | 987 | pinmuxes = <&iomuxcgpr 0x4 0x100000>; |
975 | 988 | interrupts = <57 0>; |
|
993 | 1006 | podf = <63>; |
994 | 1007 | pll-clocks = <&anatop 0x70 0xC000 0>, |
995 | 1008 | <&anatop 0x70 0x7F 32>, |
996 | | - <&anatop 0x70 0x18 1>, |
| 1009 | + <&anatop 0x70 0x180000 1>, |
997 | 1010 | <&anatop 0x80 0x3FFFFFFF 77>, |
998 | 1011 | <&anatop 0x90 0x3FFFFFFF 100>; |
999 | 1012 | pll-clock-names = "src", "lp", "pd", "num", "den"; |
|
0 commit comments