Re: [PATCH v2 5/5] dt-bindings: net: ftgmac100: convert to yaml version from txt

From
Ivan Mikhaylov <hidden>
Date
2023-05-10 21:15:36
Also in
linux-devicetree, lkml, openbmc
Reply to
Krzysztof Kozlowski, 2023-05-10
On Wed, 2023-05-10 at 16:50 +0200, Krzysztof Kozlowski wrote:
On 09/05/2023 16:35, Ivan Mikhaylov wrote:
quoted
Signed-off-by: Ivan Mikhaylov <redacted>
Need some commit msg.

quoted
---
 .../bindings/net/faraday,ftgmac100.yaml       | 110
++++++++++++++++++
Missing actual conversion (removal).
quoted
 1 file changed, 110 insertions(+)
 create mode 100644
Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml

diff --git
a/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
b/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
new file mode 100644
index 000000000000..98cd142f74bb
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
@@ -0,0 +1,110 @@
+# SPDX-License-Identifier: GPL-2.0
Dual-license, unless you copied some chunks of old binding... but was
there old binding?
Krzysztof, I copied a lot from old one ftgmac100.txt.
quoted
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/faraday,ftgmac100.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Faraday Technology FTGMAC100 gigabit ethernet controller
+
+allOf:
+  - $ref: "ethernet-controller.yaml#"
Drop quotes.

quoted
+
+maintainers:
+  - Po-Yu Chuang <ratbert@faraday-tech.com>
+
+properties:
+  compatible:
+    oneOf:
+      - const: faraday,ftgmac100
+      - items:
+          - enum:
+              - aspeed,ast2400-mac
+              - aspeed,ast2500-mac
+              - aspeed,ast2600-mac
+          - const: faraday,ftgmac100
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    description: |
+      In accordance with the generic clock bindings.
Drop this part. Obvious.
quoted
 Must describe the MAC
+      IP clock, and optionally an RMII RCLK gate for the
AST2500/AST2600. The
+      required MAC clock must be the first cell.
The cells depend on clock provider. Do you mean something else?
It's exactly from ftgmac100.txt, this section without any changes, I
didn't add anything new in the sentence.
quoted
+    minItems: 1
+    maxItems: 2
+
+  clock-names:
+    items:
+      - enum:
+          - MACCLK
+          - RCLK
This does not allow two clocks... List all the items and add
minItems: 1.

quoted
+
+  phy-mode:
+    enum:
+      - rgmii
+      - rmii
+
+  phy-handle: true
+
+  use-ncsi:
+    description: |
Do not need '|' unless you need to preserve formatting.

I will stop review, because it depends whether this is true
conversion
or new binding.
I've tried to convert it from ftgmac100.txt, everything is same in it
except mac-address-increment option with explanation for which purpose
it there, need I divide conversion from that option or is it fine in
one?

Thanks.
Thread (22 messages) 22 messages, 4 authors, last reply 2023-06-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help