sunplus,sp7021-ocotp.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. # Copyright (C) Sunplus Co., Ltd. 2021
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/nvmem/sunplus,sp7021-ocotp.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: On-Chip OTP Memory for Sunplus SP7021
  8. maintainers:
  9. - Vincent Shih <vincent.sunplus@gmail.com>
  10. allOf:
  11. - $ref: nvmem.yaml#
  12. - $ref: nvmem-deprecated-cells.yaml#
  13. properties:
  14. compatible:
  15. const: sunplus,sp7021-ocotp
  16. reg:
  17. maxItems: 2
  18. reg-names:
  19. items:
  20. - const: hb_gpio
  21. - const: otprx
  22. clocks:
  23. maxItems: 1
  24. thermal-calibration:
  25. type: object
  26. description: thermal calibration values
  27. disconnect-voltage:
  28. type: object
  29. description: disconnect voltages of usb2 port 0 and port 1
  30. mac-address0:
  31. type: object
  32. description: MAC address of ethernet port 0
  33. mac-address1:
  34. type: object
  35. description: MAC address of ethernet port 1
  36. required:
  37. - compatible
  38. - reg
  39. - reg-names
  40. - clocks
  41. unevaluatedProperties: false
  42. examples:
  43. - |
  44. otp: otp@9c00af00 {
  45. compatible = "sunplus,sp7021-ocotp";
  46. reg = <0x9c00af00 0x34>, <0x9c00af80 0x58>;
  47. reg-names = "hb_gpio", "otprx";
  48. clocks = <&clkc 0x15>;
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. therm_calib: thermal-calibration@14 {
  52. reg = <0x14 0x3>;
  53. };
  54. disc_vol: disconnect-voltage@18 {
  55. reg = <0x18 0x2>;
  56. };
  57. mac_addr0: mac-address0@34 {
  58. reg = <0x34 0x6>;
  59. };
  60. mac_addr1: mac-address1@3a {
  61. reg = <0x3a 0x6>;
  62. };
  63. };
  64. ...