rzg2l-smarc.dtsi 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. /*
  3. * Device Tree Source for the RZ/{G2L,V2L} SMARC EVK common parts
  4. *
  5. * Copyright (C) 2021 Renesas Electronics Corp.
  6. */
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
  9. /* comment the #define statement to disable SCIF2 (SER0) on PMOD1 (CN7) */
  10. #define PMOD1_SER0 1
  11. / {
  12. aliases {
  13. serial1 = &scif2;
  14. i2c3 = &i2c3;
  15. };
  16. };
  17. &cpu_dai {
  18. sound-dai = <&ssi0>;
  19. };
  20. &i2c3 {
  21. pinctrl-0 = <&i2c3_pins>;
  22. pinctrl-names = "default";
  23. clock-frequency = <400000>;
  24. status = "okay";
  25. wm8978: codec@1a {
  26. compatible = "wlf,wm8978";
  27. #sound-dai-cells = <0>;
  28. reg = <0x1a>;
  29. };
  30. };
  31. /*
  32. * To enable SCIF2 (SER0) on PMOD1 (CN7)
  33. * SW1 should be at position 2->3 so that SER0_CTS# line is activated
  34. * SW2 should be at position 2->3 so that SER0_TX line is activated
  35. * SW3 should be at position 2->3 so that SER0_RX line is activated
  36. * SW4 should be at position 2->3 so that SER0_RTS# line is activated
  37. */
  38. #if PMOD1_SER0
  39. &scif2 {
  40. pinctrl-0 = <&scif2_pins>;
  41. pinctrl-names = "default";
  42. uart-has-rtscts;
  43. status = "okay";
  44. };
  45. #endif
  46. &ssi0 {
  47. pinctrl-0 = <&ssi0_pins>;
  48. pinctrl-names = "default";
  49. status = "okay";
  50. };
  51. &vccq_sdhi1 {
  52. gpios = <&pinctrl RZG2L_GPIO(39, 1) GPIO_ACTIVE_HIGH>;
  53. };