xref: /linux/Documentation/devicetree/bindings/nvmem/sunplus,sp7021-ocotp.yaml (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
18fb29b45SVincent Shih# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28fb29b45SVincent Shih# Copyright (C) Sunplus Co., Ltd. 2021
38fb29b45SVincent Shih%YAML 1.2
48fb29b45SVincent Shih---
58fb29b45SVincent Shih$id: http://devicetree.org/schemas/nvmem/sunplus,sp7021-ocotp.yaml#
68fb29b45SVincent Shih$schema: http://devicetree.org/meta-schemas/core.yaml#
78fb29b45SVincent Shih
88fb29b45SVincent Shihtitle: On-Chip OTP Memory for Sunplus SP7021
98fb29b45SVincent Shih
108fb29b45SVincent Shihmaintainers:
118fb29b45SVincent Shih  - Vincent Shih <vincent.sunplus@gmail.com>
128fb29b45SVincent Shih
138fb29b45SVincent ShihallOf:
14d14d9f0eSRob Herring  - $ref: nvmem.yaml#
15*c5330723SRafał Miłecki  - $ref: nvmem-deprecated-cells.yaml#
168fb29b45SVincent Shih
178fb29b45SVincent Shihproperties:
188fb29b45SVincent Shih  compatible:
198fb29b45SVincent Shih    const: sunplus,sp7021-ocotp
208fb29b45SVincent Shih
218fb29b45SVincent Shih  reg:
228fb29b45SVincent Shih    maxItems: 2
238fb29b45SVincent Shih
248fb29b45SVincent Shih  reg-names:
258fb29b45SVincent Shih    items:
268fb29b45SVincent Shih      - const: hb_gpio
278fb29b45SVincent Shih      - const: otprx
288fb29b45SVincent Shih
298fb29b45SVincent Shih  clocks:
308fb29b45SVincent Shih    maxItems: 1
318fb29b45SVincent Shih
328fb29b45SVincent Shih  thermal-calibration:
338fb29b45SVincent Shih    type: object
348fb29b45SVincent Shih    description: thermal calibration values
358fb29b45SVincent Shih
368fb29b45SVincent Shih  disconnect-voltage:
378fb29b45SVincent Shih    type: object
388fb29b45SVincent Shih    description: disconnect voltages of usb2 port 0 and port 1
398fb29b45SVincent Shih
408fb29b45SVincent Shih  mac-address0:
418fb29b45SVincent Shih    type: object
428fb29b45SVincent Shih    description: MAC address of ethernet port 0
438fb29b45SVincent Shih
448fb29b45SVincent Shih  mac-address1:
458fb29b45SVincent Shih    type: object
468fb29b45SVincent Shih    description: MAC address of ethernet port 1
478fb29b45SVincent Shih
488fb29b45SVincent Shihrequired:
498fb29b45SVincent Shih  - compatible
508fb29b45SVincent Shih  - reg
518fb29b45SVincent Shih  - reg-names
528fb29b45SVincent Shih  - clocks
538fb29b45SVincent Shih
548fb29b45SVincent ShihunevaluatedProperties: false
558fb29b45SVincent Shih
568fb29b45SVincent Shihexamples:
578fb29b45SVincent Shih  - |
588fb29b45SVincent Shih    otp: otp@9c00af00 {
598fb29b45SVincent Shih        compatible = "sunplus,sp7021-ocotp";
608fb29b45SVincent Shih        reg = <0x9c00af00 0x34>, <0x9c00af80 0x58>;
618fb29b45SVincent Shih        reg-names = "hb_gpio", "otprx";
62cd936301SVincent Shih        clocks = <&clkc 0x15>;
638fb29b45SVincent Shih
648fb29b45SVincent Shih        #address-cells = <1>;
658fb29b45SVincent Shih        #size-cells = <1>;
668fb29b45SVincent Shih        therm_calib: thermal-calibration@14 {
678fb29b45SVincent Shih          reg = <0x14 0x3>;
688fb29b45SVincent Shih        };
698fb29b45SVincent Shih        disc_vol: disconnect-voltage@18 {
708fb29b45SVincent Shih          reg = <0x18 0x2>;
718fb29b45SVincent Shih        };
728fb29b45SVincent Shih        mac_addr0: mac-address0@34 {
738fb29b45SVincent Shih          reg = <0x34 0x6>;
748fb29b45SVincent Shih        };
758fb29b45SVincent Shih        mac_addr1: mac-address1@3a {
768fb29b45SVincent Shih          reg = <0x3a 0x6>;
778fb29b45SVincent Shih        };
788fb29b45SVincent Shih    };
798fb29b45SVincent Shih...
80