pxa300-raumfeld-tuneable-clock.dtsi 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <dt-bindings/clock/maxim,max9485.h>
  3. / {
  4. xo_27mhz: oscillator-27mhz {
  5. compatible = "fixed-clock";
  6. #clock-cells = <0>;
  7. clock-frequency = <27000000>;
  8. clock-accuracy = <100>;
  9. };
  10. sound {
  11. compatible = "simple-audio-card";
  12. simple-audio-card,name = "Raumfeld Speaker";
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. simple-audio-card,dai-link@0 {
  16. reg = <0>;
  17. format = "i2s";
  18. bitclock-master = <&dailink_master_analog>;
  19. frame-master = <&dailink_master_analog>;
  20. mclk-fs = <256>;
  21. dailink_master_analog: cpu {
  22. sound-dai = <&ssp_dai0>;
  23. };
  24. codec {
  25. sound-dai = <&cs4270>;
  26. };
  27. };
  28. };
  29. };
  30. &ssp_dai0 {
  31. clocks = <&max9485 MAX9485_CLKOUT1>;
  32. };
  33. &ssp_dai1 {
  34. clocks = <&max9485 MAX9485_CLKOUT1>;
  35. };
  36. &pxai2c1 {
  37. cs4270: codec@48 {
  38. compatible = "cirrus,cs4270";
  39. pinctrl-names = "default";
  40. pinctrl-0 = <&cs4270_pins>;
  41. reg = <0x48>;
  42. va-supply = <&reg_va_5v0>;
  43. vd-supply = <&reg_3v3>;
  44. vlc-supply = <&reg_3v3>;
  45. reset-gpios = <&gpio 120 GPIO_ACTIVE_HIGH>;
  46. #sound-dai-cells = <0>;
  47. };
  48. max9485: clock-generator@63 {
  49. compatible = "maxim,max9485";
  50. pinctrl-names = "default";
  51. pinctrl-0 = <&max9485_pins>;
  52. reg = <0x63>;
  53. vdd-supply = <&reg_3v3>;
  54. clock-names = "xclk";
  55. clocks = <&xo_27mhz>;
  56. reset-gpios = <&gpio 111 GPIO_ACTIVE_HIGH>;
  57. #clock-cells = <1>;
  58. };
  59. };
  60. &pinctrl {
  61. cs4270_pins: cs4270-pins {
  62. pinctrl-single,pins = <
  63. MFP_PIN_PXA300(120) MFP_AF0 /* RESET */
  64. >;
  65. pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_PULL_LOW);
  66. };
  67. max9485_pins: max9485-pins {
  68. pinctrl-single,pins = <
  69. MFP_PIN_PXA300(111) MFP_AF0 /* RESET */
  70. >;
  71. pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_PULL_LOW);
  72. };
  73. };