mirror of
https://github.com/torvalds/linux.git
synced 2026-04-24 17:42:27 -04:00
Pull more devicetree updates from Rob Herring:
"This is mostly a treewide clean-up from Krzysztof. There's also a
couple of fixes and things that fell thru the cracks.
I must say this has been a nice merge window without bindings dumped
in at the last minute introducing warnings.
Summary:
- Treewide dropping of redundant 'binding' or 'schema' from schema
titles. This will be followed up with a automated check to catch
these.
- Re-sort vendor-prefies
- Convert GPIO based watchdog to schema
- Handle all the variations for clocks, resets, power domains in i.MX
PCIe binding
- Document missing 'power-domains' property in mxsfb
- Fix error with path references in Tegra XUSB example
- Honor CONFIG_CMDLINE* even without /chosen node"
* tag 'devicetree-for-6.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
dt-bindings: drop redundant part of title (manual)
dt-bindings: clock: drop redundant part of title
dt-bindings: drop redundant part of title (beginning)
dt-bindings: drop redundant part of title (end, part three)
dt-bindings: drop redundant part of title (end, part two)
dt-bindings: drop redundant part of title (end)
dt-bindings: clock: st,stm32mp1-rcc: add proper title
dt-bindings: memory-controllers: ti,gpmc-child: drop redundant part of title
dt-bindings: drop redundant part of title of shared bindings
dt-bindings: watchdog: gpio: Convert bindings to YAML
dt-bindings: imx6q-pcie: Handle more resets on legacy platforms
dt-bindings: imx6q-pcie: Handle various PD configurations
dt-bindings: imx6q-pcie: Handle various clock configurations
dt-bindings: hwmon: ntc-thermistor: drop Naveen Krishna Chatradhi from maintainers
dt-bindings: mxsfb: Document i.MX8M/i.MX6SX/i.MX6SL power-domains property
dt-bindings: vendor-prefixes: sort entries alphabetically
dt-bindings: usb: tegra-xusb: Remove path references
of: fdt: Honor CONFIG_CMDLINE* even without /chosen node
166 lines
4.8 KiB
YAML
166 lines
4.8 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
# Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
|
|
%YAML 1.2
|
|
---
|
|
$id: "http://devicetree.org/schemas/phy/ti,phy-gmii-sel.yaml#"
|
|
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
|
|
|
|
title: CPSW Port's Interface Mode Selection PHY
|
|
|
|
maintainers:
|
|
- Kishon Vijay Abraham I <kishon@ti.com>
|
|
|
|
description: |
|
|
TI am335x/am437x/dra7(am5)/dm814x CPSW3G Ethernet Subsystem supports
|
|
two 10/100/1000 Ethernet ports with selectable G/MII, RMII, and RGMII interfaces.
|
|
The interface mode is selected by configuring the MII mode selection register(s)
|
|
(GMII_SEL) in the System Control Module chapter (SCM). GMII_SEL register(s) and
|
|
bit fields placement in SCM are different between SoCs while fields meaning
|
|
is the same.
|
|
+--------------+
|
|
+-------------------------------+ |SCM |
|
|
| CPSW | | +---------+ |
|
|
| +--------------------------------+gmii_sel | |
|
|
| | | | +---------+ |
|
|
| +----v---+ +--------+ | +--------------+
|
|
| |Port 1..<--+-->GMII/MII<------->
|
|
| | | | | | |
|
|
| +--------+ | +--------+ |
|
|
| | |
|
|
| | +--------+ |
|
|
| | | RMII <------->
|
|
| +--> | |
|
|
| | +--------+ |
|
|
| | |
|
|
| | +--------+ |
|
|
| | | RGMII <------->
|
|
| +--> | |
|
|
| +--------+ |
|
|
+-------------------------------+
|
|
|
|
CPSW Port's Interface Mode Selection PHY describes MII interface mode between
|
|
CPSW Port and Ethernet PHY which depends on Eth PHY and board configuration.
|
|
|
|
|
CPSW Port's Interface Mode Selection PHY device should defined as child device
|
|
of SCM node (scm_conf) and can be attached to each CPSW port node using standard
|
|
PHY bindings.
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- ti,am3352-phy-gmii-sel
|
|
- ti,dra7xx-phy-gmii-sel
|
|
- ti,am43xx-phy-gmii-sel
|
|
- ti,dm814-phy-gmii-sel
|
|
- ti,am654-phy-gmii-sel
|
|
- ti,j7200-cpsw5g-phy-gmii-sel
|
|
- ti,j721e-cpsw9g-phy-gmii-sel
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
'#phy-cells': true
|
|
|
|
ti,qsgmii-main-ports:
|
|
$ref: /schemas/types.yaml#/definitions/uint32-array
|
|
description: |
|
|
Required only for QSGMII mode. Array to select the port/s for QSGMII
|
|
main mode. The size of the array corresponds to the number of QSGMII
|
|
interfaces and thus, the number of distinct QSGMII main ports,
|
|
supported by the device. If the device supports two QSGMII interfaces
|
|
but only one QSGMII interface is desired, repeat the QSGMII main port
|
|
value corresponding to the QSGMII interface in the array.
|
|
minItems: 1
|
|
maxItems: 2
|
|
items:
|
|
minimum: 1
|
|
maximum: 8
|
|
|
|
allOf:
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- ti,dra7xx-phy-gmii-sel
|
|
- ti,dm814-phy-gmii-sel
|
|
- ti,am654-phy-gmii-sel
|
|
- ti,j7200-cpsw5g-phy-gmii-sel
|
|
- ti,j721e-cpsw9g-phy-gmii-sel
|
|
then:
|
|
properties:
|
|
'#phy-cells':
|
|
const: 1
|
|
description: CPSW port number (starting from 1)
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- ti,j7200-cpsw5g-phy-gmii-sel
|
|
then:
|
|
properties:
|
|
ti,qsgmii-main-ports:
|
|
maxItems: 1
|
|
items:
|
|
minimum: 1
|
|
maximum: 4
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- ti,j721e-cpsw9g-phy-gmii-sel
|
|
then:
|
|
properties:
|
|
ti,qsgmii-main-ports:
|
|
minItems: 2
|
|
maxItems: 2
|
|
items:
|
|
minimum: 1
|
|
maximum: 8
|
|
|
|
- if:
|
|
not:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- ti,j7200-cpsw5g-phy-gmii-sel
|
|
- ti,j721e-cpsw9g-phy-gmii-sel
|
|
then:
|
|
properties:
|
|
ti,qsgmii-main-ports: false
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- ti,am3352-phy-gmii-sel
|
|
- ti,am43xx-phy-gmii-sel
|
|
then:
|
|
properties:
|
|
'#phy-cells':
|
|
const: 2
|
|
description: |
|
|
- CPSW port number (starting from 1)
|
|
- RMII refclk mode
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- '#phy-cells'
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
phy_gmii_sel: phy@650 {
|
|
compatible = "ti,am3352-phy-gmii-sel";
|
|
reg = <0x650 0x4>;
|
|
#phy-cells = <2>;
|
|
};
|