1# Copyright (c) 2024 Michael Hope 2# SPDX-License-Identifier: Apache-2.0 3 4description: WCH CH32V00x AFIO 5 6compatible: "wch,afio" 7 8include: base.yaml 9 10properties: 11 reg: 12 required: true 13 "#address-cells": 14 required: true 15 const: 1 16 "#size-cells": 17 required: true 18 const: 1 19 20child-binding: 21 description: | 22 Each child node defines the configuration for a particular state. 23 child-binding: 24 description: | 25 The grandchild nodes group pins that share the same pin configuration. 26 27 include: 28 - name: pincfg-node.yaml 29 property-allowlist: 30 - bias-high-impedance 31 - bias-pull-up 32 - bias-pull-down 33 - drive-open-drain 34 - drive-push-pull 35 - output-high 36 - output-low 37 38 properties: 39 slew-rate: 40 type: string 41 default: "max-speed-2mhz" 42 enum: 43 - "max-speed-10mhz" 44 - "max-speed-2mhz" 45 - "max-speed-30mhz" 46 47 pinmux: 48 required: true 49 type: array 50 description: | 51 An array of pins sharing the same group properties. The pins should 52 be defined using pre-defined macros. 53