Secure96.dts 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /** @file
  2. * Copyright (c) 2018, Linaro Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause-Patent
  5. */
  6. #include "Secure96.h"
  7. //
  8. // Define a placeholder value for the GPIO phandle property cells appearing
  9. // in this file. It is up to the driver code to discover the actual phandle
  10. // value from the platform device tree and patch the overlay DTB before it
  11. // can be applied.
  12. //
  13. #define GPIO_PARENT_PLACEHOLDER_PHANDLE 0x0
  14. /dts-v1/;
  15. / {
  16. fragment@0 {
  17. target-path = "I2C_PARENT_PLACEHOLDER_STRING";
  18. __overlay__ {
  19. clock-frequency = <100000>;
  20. ATSHA204A_DT_NODENAME {
  21. compatible = "atmel,atsha204a";
  22. reg = <ATSHA204A_SLAVE_ADDRESS>;
  23. };
  24. ATECC508A_DT_NODENAME {
  25. compatible = "atmel,atecc508a";
  26. reg = <ATECC508A_SLAVE_ADDRESS>;
  27. };
  28. };
  29. };
  30. fragment@1 {
  31. target-path = "SPI_PARENT_PLACEHOLDER_STRING";
  32. __overlay__ {
  33. INFINEON_SLB9670_DT_NODENAME {
  34. compatible = "infineon,slb9670";
  35. reg = <SECURE96_SPI0_CS>;
  36. spi-max-frequency = <22500000>;
  37. };
  38. };
  39. };
  40. fragment@2 {
  41. target-path = "/";
  42. __overlay__ {
  43. gpio-leds {
  44. compatible = "gpio-leds";
  45. secure96-u1 {
  46. gpios = <GPIO_PARENT_PLACEHOLDER_PHANDLE
  47. FixedPcdGet32 (PcdGpioPinG)
  48. FixedPcdGet32 (PcdGpioPolarity)>;
  49. };
  50. secure96-u2 {
  51. gpios = <GPIO_PARENT_PLACEHOLDER_PHANDLE
  52. FixedPcdGet32 (PcdGpioPinF)
  53. FixedPcdGet32 (PcdGpioPolarity)>;
  54. };
  55. secure96-u3 {
  56. gpios = <GPIO_PARENT_PLACEHOLDER_PHANDLE
  57. FixedPcdGet32 (PcdGpioPinI)
  58. FixedPcdGet32 (PcdGpioPolarity)>;
  59. };
  60. secure96-u4 {
  61. gpios = <GPIO_PARENT_PLACEHOLDER_PHANDLE
  62. FixedPcdGet32 (PcdGpioPinH)
  63. FixedPcdGet32 (PcdGpioPolarity)>;
  64. };
  65. };
  66. };
  67. };
  68. };