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: 14*d14d9f0eSRob Herring - $ref: nvmem.yaml# 158fb29b45SVincent Shih 168fb29b45SVincent Shihproperties: 178fb29b45SVincent Shih compatible: 188fb29b45SVincent Shih const: sunplus,sp7021-ocotp 198fb29b45SVincent Shih 208fb29b45SVincent Shih reg: 218fb29b45SVincent Shih maxItems: 2 228fb29b45SVincent Shih 238fb29b45SVincent Shih reg-names: 248fb29b45SVincent Shih items: 258fb29b45SVincent Shih - const: hb_gpio 268fb29b45SVincent Shih - const: otprx 278fb29b45SVincent Shih 288fb29b45SVincent Shih clocks: 298fb29b45SVincent Shih maxItems: 1 308fb29b45SVincent Shih 318fb29b45SVincent Shih "#address-cells": 328fb29b45SVincent Shih const: 1 338fb29b45SVincent Shih 348fb29b45SVincent Shih "#size-cells": 358fb29b45SVincent Shih const: 1 368fb29b45SVincent Shih 378fb29b45SVincent Shih thermal-calibration: 388fb29b45SVincent Shih type: object 398fb29b45SVincent Shih description: thermal calibration values 408fb29b45SVincent Shih 418fb29b45SVincent Shih disconnect-voltage: 428fb29b45SVincent Shih type: object 438fb29b45SVincent Shih description: disconnect voltages of usb2 port 0 and port 1 448fb29b45SVincent Shih 458fb29b45SVincent Shih mac-address0: 468fb29b45SVincent Shih type: object 478fb29b45SVincent Shih description: MAC address of ethernet port 0 488fb29b45SVincent Shih 498fb29b45SVincent Shih mac-address1: 508fb29b45SVincent Shih type: object 518fb29b45SVincent Shih description: MAC address of ethernet port 1 528fb29b45SVincent Shih 538fb29b45SVincent Shihrequired: 548fb29b45SVincent Shih - compatible 558fb29b45SVincent Shih - reg 568fb29b45SVincent Shih - reg-names 578fb29b45SVincent Shih - clocks 588fb29b45SVincent Shih 598fb29b45SVincent ShihunevaluatedProperties: false 608fb29b45SVincent Shih 618fb29b45SVincent Shihexamples: 628fb29b45SVincent Shih - | 638fb29b45SVincent Shih otp: otp@9c00af00 { 648fb29b45SVincent Shih compatible = "sunplus,sp7021-ocotp"; 658fb29b45SVincent Shih reg = <0x9c00af00 0x34>, <0x9c00af80 0x58>; 668fb29b45SVincent Shih reg-names = "hb_gpio", "otprx"; 67cd936301SVincent Shih clocks = <&clkc 0x15>; 688fb29b45SVincent Shih 698fb29b45SVincent Shih #address-cells = <1>; 708fb29b45SVincent Shih #size-cells = <1>; 718fb29b45SVincent Shih therm_calib: thermal-calibration@14 { 728fb29b45SVincent Shih reg = <0x14 0x3>; 738fb29b45SVincent Shih }; 748fb29b45SVincent Shih disc_vol: disconnect-voltage@18 { 758fb29b45SVincent Shih reg = <0x18 0x2>; 768fb29b45SVincent Shih }; 778fb29b45SVincent Shih mac_addr0: mac-address0@34 { 788fb29b45SVincent Shih reg = <0x34 0x6>; 798fb29b45SVincent Shih }; 808fb29b45SVincent Shih mac_addr1: mac-address1@3a { 818fb29b45SVincent Shih reg = <0x3a 0x6>; 828fb29b45SVincent Shih }; 838fb29b45SVincent Shih }; 848fb29b45SVincent Shih... 85