Add support for AST2700 clk driver
Subsystems (6)
Ryan Chen
maintainercover Add support for AST2700 clk driver
This patch series is add clk driver for AST2700.
AST2700 is the 8th generation of Integrated Remote Management Processor introduced by ASPEED Technology Inc. Which is Board Management controller (BMC) SoC family.
Ryan Chen (4):
dt-bindings: mfd: aspeed: support for AST2700
dt-bindings: reset Add AST2700 reset bindings
dt-bindings: clock: Add AST2700 clock bindings
dt-bindings: clock: Add AST2700 clock bindings
.../bindings/mfd/aspeed,ast2x00-scu.yaml | 31 +- drivers/clk/Makefile | 1 + drivers/clk/clk-ast2700.c | 1091 +++++++++++++++++ .../dt-bindings/clock/aspeed,ast2700-clk.h | 175 +++ .../dt-bindings/reset/aspeed,ast2700-reset.h | 132 ++ 5 files changed, 1428 insertions(+), 2 deletions(-) create mode 100644 drivers/clk/clk-ast2700.c create mode 100644 include/dt-bindings/clock/aspeed,ast2700-clk.h create mode 100644 include/dt-bindings/reset/aspeed,ast2700-reset.h
Signature · 1 line
2.34.1
Ryan Chen
maintainerPATCH 1/4 dt-bindings: mfd: aspeed: support for AST2700
Add compatible support for AST2700 clk, reset, pinctrl, silicon-id and example for AST2700 scu.
--- .../bindings/mfd/aspeed,ast2x00-scu.yaml | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +29 -2
@@ -21,6 +21,8 @@ properties: - aspeed,ast2400-scu - aspeed,ast2500-scu - aspeed,ast2600-scu + - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1 - const: syscon - const: simple-mfd
@@ -30,10 +32,12 @@ properties: ranges: true '#address-cells': - const: 1 + minimum: 1 + maximum: 2 '#size-cells': - const: 1 + minimum: 1 + maximum: 2 '#clock-cells': const: 1
@@ -56,6 +60,8 @@ patternProperties: - aspeed,ast2400-pinctrl - aspeed,ast2500-pinctrl - aspeed,ast2600-pinctrl + - aspeed,ast2700-soc0-pinctrl + - aspeed,ast2700-soc1-pinctrl required: - compatible
@@ -76,6 +82,7 @@ patternProperties: - aspeed,ast2400-silicon-id - aspeed,ast2500-silicon-id - aspeed,ast2600-silicon-id + - aspeed,ast2700-silicon-id - const: aspeed,silicon-id reg:
@@ -115,4 +122,24 @@ examples: reg = <0x7c 0x4>, <0x150 0x8>; }; }; + - | + soc0 { + #address-cells = <2>; + #size-cells = <2>; + syscon at 12c02000 { + compatible = "aspeed,ast2700-scu0", "syscon", "simple-mfd"; + reg = <0x0 0x12c02000 0x0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x0 0x0 0 0x12c02000 0 0x1000>; + + silicon-id at 0 { + compatible = "aspeed,ast2700-silicon-id", "aspeed,silicon-id"; + reg = <0x0 0x0 0x0 0x4>; + }; + }; + }; ...
Signature · 1 line
2.34.1
Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 13 lines · Ryan Chen
Add compatible support for AST2700 clk, reset, pinctrl, silicon-id and example for AST2700 scu.
Signed-off-by Ryan Chen <[email protected]>--- .../bindings/mfd/aspeed,ast2x00-scu.yaml | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +0
-0
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml properties: · line 25
Quoted 5 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +2
-0@@ -21,6 +21,8 @@ properties: - aspeed,ast2400-scu - aspeed,ast2500-scu - aspeed,ast2600-scu + - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1
What are the differences between these two?
Quoted 36 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +7
-2- const: syscon - const: simple-mfd@@ -30,10 +32,12 @@ properties: ranges: true '#address-cells': - const: 1 + minimum: 1 + maximum: 2 '#size-cells': - const: 1 + minimum: 1 + maximum: 2 '#clock-cells': const: 1@@ -56,6 +60,8 @@ patternProperties: - aspeed,ast2400-pinctrl - aspeed,ast2500-pinctrl - aspeed,ast2600-pinctrl + - aspeed,ast2700-soc0-pinctrl + - aspeed,ast2700-soc1-pinctrl required: - compatible@@ -76,6 +82,7 @@ patternProperties: - aspeed,ast2400-silicon-id - aspeed,ast2500-silicon-id - aspeed,ast2600-silicon-id + - aspeed,ast2700-silicon-id - const: aspeed,silicon-id reg:
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml examples: · line 128
Quoted 7 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +4
-0@@ -115,4 +122,24 @@ examples: reg = <0x7c 0x4>, <0x150 0x8>; }; }; + - | + soc0 { + #address-cells = <2>; + #size-cells = <2>;
That's the same example as previous, right? The drop, no need.
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 12 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 6 lines · Ryan Chen
Add compatible support for AST2700 clk, reset, pinctrl, silicon-id and example for AST2700 scu.
Signed-off-by Ryan Chen <[email protected]>--- .../bindings/mfd/aspeed,ast2x00-scu.yaml | 31+++++++++++++++++--
Quoted 2 lines
1 file changed, 29 insertions(+), 2 deletions(-)
Quoted 14 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml properties: · line 25
Quoted 12 lines
diff --git
a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlb/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlindex86ee69c0f45b..c0965f08ae8c100644Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +2
-0@@ -21,6 +21,8 @@ properties: - aspeed,ast2400-scu - aspeed,ast2500-scu - aspeed,ast2600-scu + - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1What are the differences between these two?
The next [PATCH 4/4] is scu driver that include ast2700-scu0 and ast2700-scu1 CLK_OF_DECLARE_DRIVER(ast2700_soc0, "aspeed,ast2700-scu0", ast2700_soc0_clk_init); CLK_OF_DECLARE_DRIVER(ast2700_soc1, "aspeed,ast2700-scu1", ast2700_soc1_clk_init); So I add these two.
Quoted 35 lines
Quoted 35 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +7
-2- const: syscon - const: simple-mfd@@ -30,10 +32,12 @@ properties: ranges: true '#address-cells': - const: 1 + minimum: 1 + maximum: 2 '#size-cells': - const: 1 + minimum: 1 + maximum: 2 '#clock-cells': const: 1@@ -56,6 +60,8 @@ patternProperties: - aspeed,ast2400-pinctrl - aspeed,ast2500-pinctrl - aspeed,ast2600-pinctrl + - aspeed,ast2700-soc0-pinctrl + - aspeed,ast2700-soc1-pinctrl required: - compatible@@ -76,6 +82,7 @@ patternProperties: - aspeed,ast2400-silicon-id - aspeed,ast2500-silicon-id - aspeed,ast2600-silicon-id + - aspeed,ast2700-silicon-id - const: aspeed,silicon-id
Quoted 11 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml examples: · line 128
Quoted 9 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +4
-0reg:@@ -115,4 +122,24 @@ examples: reg = <0x7c 0x4>, <0x150 0x8>; }; }; + - | + soc0 { + #address-cells = <2>; + #size-cells = <2>;That's the same example as previous, right? The drop, no need.
AST2700 is 64bits address mode platform, that the reason. So I add example for 64bits platform descript in dtsi I have to add soc0 to be address-cells and size-cells to be <2> Then I can define the register to be 64bits address and size.
Quoted 3 lines
Best regards,
Krzysztof
************* Email Confidentiality Notice ********************
????:
???(????)????????????????? ???????????????????????????, ??????????????????????????????!
DISCLAIMER:
This message (and any attachments) may contain legally privileged and/or other confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents. Thank you.
Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 27 lines · Ryan Chen
Quoted 12 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 6 lines · Ryan Chen
Add compatible support for AST2700 clk, reset, pinctrl, silicon-id and example for AST2700 scu.
Signed-off-by Ryan Chen <[email protected]>--- .../bindings/mfd/aspeed,ast2x00-scu.yaml | 31+++++++++++++++++--
Quoted 2 lines
1 file changed, 29 insertions(+), 2 deletions(-)Quoted 14 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml properties: · line 25
Quoted 12 lines
diff --git
a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlb/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlindex86ee69c0f45b..c0965f08ae8c100644Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +2
-0@@ -21,6 +21,8 @@ properties: - aspeed,ast2400-scu - aspeed,ast2500-scu - aspeed,ast2600-scu + - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1What are the differences between these two?
Quoted 3 lines
The next [PATCH 4/4] is scu driver that include ast2700-scu0 and ast2700-scu1
CLK_OF_DECLARE_DRIVER(ast2700_soc0, "aspeed,ast2700-scu0", ast2700_soc0_clk_init);CLK_OF_DECLARE_DRIVER(ast2700_soc1, "aspeed,ast2700-scu1", ast2700_soc1_clk_init);
What are hardware differences? Entirely different devices?
Quoted 49 lines
So I add these two.
Quoted 35 lines
Quoted 35 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +7
-2- const: syscon - const: simple-mfd@@ -30,10 +32,12 @@ properties: ranges: true '#address-cells': - const: 1 + minimum: 1 + maximum: 2 '#size-cells': - const: 1 + minimum: 1 + maximum: 2 '#clock-cells': const: 1@@ -56,6 +60,8 @@ patternProperties: - aspeed,ast2400-pinctrl - aspeed,ast2500-pinctrl - aspeed,ast2600-pinctrl + - aspeed,ast2700-soc0-pinctrl + - aspeed,ast2700-soc1-pinctrl required: - compatible@@ -76,6 +82,7 @@ patternProperties: - aspeed,ast2400-silicon-id - aspeed,ast2500-silicon-id - aspeed,ast2600-silicon-id + - aspeed,ast2700-silicon-id - const: aspeed,silicon-idQuoted 11 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml examples: · line 128
Quoted 9 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +4
-0reg:@@ -115,4 +122,24 @@ examples: reg = <0x7c 0x4>, <0x150 0x8>; }; }; + - | + soc0 { + #address-cells = <2>; + #size-cells = <2>;That's the same example as previous, right? The drop, no need.
Quoted 4 lines
AST2700 is 64bits address mode platform, that the reason. So I add example for 64bits platform descript in dtsi I have to add soc0 to be address-cells and size-cells to be <2> Then I can define the register to be 64bits address and size.
That's trivial. Drop.
Quoted 10 lines
Quoted 3 lines
Best regards,
Krzysztof************* Email Confidentiality Notice ********************
????:
???(????)????????????????? ???????????????????????????, ??????????????????????????????!DISCLAIMER:
This message (and any attachments) may contain legally privileged and/or other confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents. Thank you.
Maybe I am the intended recipient of your message, maybe not. I don't want to have any legal questions regarding upstream, public collaboration, thus probably I should just remove your messages.
Please talk with your IT that such disclaimers in open-source are not desired (and maybe even harmful).
If you do not understand why, please also see:
https://www.youtube.com/live/fMeH7wqOwXA?si=GY7igfbda6vnjXlJ&t=835
If you need to go around company SMTP server, then consider using b4
web-relay: https://b4.docs.kernel.org/en/latest/contributor/send.html
I will not respond to any other confidential emails. That's the last one you got.
To be clear: all messages from your company will be made published. By responding to this email you agree that all communications from you and/or your company is made public.
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 31 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 28 lines · Ryan Chen
Quoted 27 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 6 lines · Ryan Chen
Add compatible support for AST2700 clk, reset, pinctrl, silicon-id and example for AST2700 scu.
Signed-off-by Ryan Chen <[email protected]>--- .../bindings/mfd/aspeed,ast2x00-scu.yaml | 31+++++++++++++++++--
Quoted 9 lines
1 file changed, 29 insertions(+), 2 deletions(-)diff --git
a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlb/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlindex86ee69c0f45b..c0965f08ae8c100644Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml properties: · line 25
Quoted 5 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +2
-0@@ -21,6 +21,8 @@ properties: - aspeed,ast2400-scu - aspeed,ast2500-scu - aspeed,ast2600-scu + - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1What are the differences between these two?
Quoted 7 lines
Quoted 5 lines
The next [PATCH 4/4] is scu driver that include ast2700-scu0 and ast2700-scu1
CLK_OF_DECLARE_DRIVER(ast2700_soc0, "aspeed,ast2700-scu0", ast2700_soc0_clk_init);CLK_OF_DECLARE_DRIVER(ast2700_soc1, "aspeed,ast2700-scu1", ast2700_soc1_clk_init);What are hardware differences? Entirely different devices?
AST2700 have two soc die connected each other.
Each soc die have it own scu, so the naming is ast2700-scu0 for soc0, another is ast2700-scu1 for soc1.
Quoted 50 lines
Quoted 50 lines
So I add these two.
Quoted 46 lines
Quoted 37 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +7
-2- const: syscon - const: simple-mfd@@ -30,10 +32,12 @@ properties: ranges: true '#address-cells': - const: 1 + minimum: 1 + maximum: 2 '#size-cells': - const: 1 + minimum: 1 + maximum: 2 '#clock-cells': const: 1@@ -56,6 +60,8 @@ patternProperties: - aspeed,ast2400-pinctrl - aspeed,ast2500-pinctrl - aspeed,ast2600-pinctrl + - aspeed,ast2700-soc0-pinctrl + - aspeed,ast2700-soc1-pinctrl required: - compatible@@ -76,6 +82,7 @@ patternProperties: - aspeed,ast2400-silicon-id - aspeed,ast2500-silicon-id - aspeed,ast2600-silicon-id + - aspeed,ast2700-silicon-id - const: aspeed,silicon-id reg:Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml examples: · line 128
Quoted 7 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +4
-0@@ -115,4 +122,24 @@ examples: reg = <0x7c 0x4>, <0x150 0x8>; }; }; + - | + soc0 { + #address-cells = <2>; + #size-cells = <2>;That's the same example as previous, right? The drop, no need.
Quoted 6 lines
Quoted 4 lines
AST2700 is 64bits address mode platform, that the reason. So I add example for 64bits platform descript in dtsi I have to add soc0 to be address-cells and size-cells to be <2> Then I can define the register to be 64bits address and size.
That's trivial. Drop.
Do you mean, I don?t need add example for ast2700-scu0?
Or delete #address-cells = <2>; #size-cells = <2>; If I remove it will make dt_binding_check fail.
Quoted 29 lines
Quoted 8 lines
Quoted 4 lines
Best regards,
Krzysztof************* Email Confidentiality Notice ******************** ????:
???(????)????????????????? ???????????????????????????, ?????????
?????????????????????!Quoted 3 lines
DISCLAIMER:
This message (and any attachments) may contain legally privileged and/orother confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents. Thank you.
Maybe I am the intended recipient of your message, maybe not. I don't want to have any legal questions regarding upstream, public collaboration, thus probably I should just remove your messages.
Please talk with your IT that such disclaimers in open-source are not desired (and maybe even harmful).
If you do not understand why, please also see:
https://www.youtube.com/live/fMeH7wqOwXA?si=GY7igfbda6vnjXlJ&t=835If you need to go around company SMTP server, then consider using b4
web-relay: https://b4.docs.kernel.org/en/latest/contributor/send.html
Quoted 8 lines
I will not respond to any other confidential emails. That's the last one you got.
To be clear: all messages from your company will be made published. By responding to this email you agree that all communications from you and/or your company is made public.
Best regards,
Krzysztof
************* Email Confidentiality Notice ********************
????:
???(????)????????????????? ???????????????????????????, ??????????????????????????????!
DISCLAIMER:
This message (and any attachments) may contain legally privileged and/or other confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents. Thank you.
Ryan Chen
maintainerRE: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 103 lines
Subject: RE: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 23 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 20 lines · Ryan Chen
Quoted 20 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 6 lines · Ryan Chen
Add compatible support for AST2700 clk, reset, pinctrl, silicon-id and example for AST2700 scu.
Signed-off-by Ryan Chen <[email protected]>--- .../bindings/mfd/aspeed,ast2x00-scu.yaml | 31+++++++++++++++++--
Quoted 9 lines
1 file changed, 29 insertions(+), 2 deletions(-)diff --git
a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlb/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlindex86ee69c0f45b..c0965f08ae8c100644
---a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
+++b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yam
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml properties: · line 25
Quoted 7 lines
+++ l
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +2
-0@@ -21,6 +21,8 @@ properties: - aspeed,ast2400-scu - aspeed,ast2500-scu - aspeed,ast2600-scu + - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1What are the differences between these two?
Quoted 7 lines
Quoted 5 lines
The next [PATCH 4/4] is scu driver that include ast2700-scu0 and ast2700-scu1
CLK_OF_DECLARE_DRIVER(ast2700_soc0, "aspeed,ast2700-scu0", ast2700_soc0_clk_init);CLK_OF_DECLARE_DRIVER(ast2700_soc1, "aspeed,ast2700-scu1", ast2700_soc1_clk_init);What are hardware differences? Entirely different devices?
AST2700 have two soc die connected each other.
Each soc die have it own scu, so the naming is ast2700-scu0 for soc0, another is ast2700-scu1 for soc1.Quoted 55 lines
Quoted 54 lines
So I add these two.
Quoted 35 lines
Quoted 35 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +7
-2- const: syscon - const: simple-mfd@@ -30,10 +32,12 @@ properties: ranges: true '#address-cells': - const: 1 + minimum: 1 + maximum: 2 '#size-cells': - const: 1 + minimum: 1 + maximum: 2 '#clock-cells': const: 1@@ -56,6 +60,8 @@ patternProperties: - aspeed,ast2400-pinctrl - aspeed,ast2500-pinctrl - aspeed,ast2600-pinctrl + - aspeed,ast2700-soc0-pinctrl + - aspeed,ast2700-soc1-pinctrl required: - compatible@@ -76,6 +82,7 @@ patternProperties: - aspeed,ast2400-silicon-id - aspeed,ast2500-silicon-id - aspeed,ast2600-silicon-id + - aspeed,ast2700-silicon-id - const: aspeed,silicon-idQuoted 11 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml examples: · line 128
Quoted 9 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +4
-0reg:@@ -115,4 +122,24 @@ examples: reg = <0x7c 0x4>, <0x150 0x8>; }; }; + - | + soc0 { + #address-cells = <2>; + #size-cells = <2>;That's the same example as previous, right? The drop, no need.
AST2700 is 64bits address mode platform, that the reason. So I add example for 64bits platform descript in dtsi I have to add soc0 to be address-cells and size-cells to be <2> Then I can define the register to be 64bits address and size.
Quoted 6 lines
Quoted 1 line
That's trivial. Drop.
Do you mean, I don?t need add example for ast2700-scu0?
Or delete #address-cells = <2>; #size-cells = <2>; If I remove it will make
dt_binding_checkfail.Quoted 1 line
Hello Krzysztof
Use dt_binding_check, it need #address-cells = <2>; #size-cells = <2> for 64 bit address description. Or I don't need example?
Quoted 28 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Best regards,
Krzysztof************* Email Confidentiality Notice ******************** ????:
???(????)????????????????? ???????????????????????????, ????????
?
Quoted 8 lines
?????????????????????!
Quoted 4 lines
DISCLAIMER:
This message (and any attachments) may contain legally privileged and/orother confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents.
Thank you.
Quoted 10 lines
Maybe I am the intended recipient of your message, maybe not. I don't want to have any legal questions regarding upstream, public collaboration, thus probably I should just remove your messages.
Please talk with your IT that such disclaimers in open-source are not desired (and maybe even harmful).
If you do not understand why, please also see:
https://www.youtube.com/live/fMeH7wqOwXA?si=GY7igfbda6vnjXlJ&t=835
Quoted 9 lines
Quoted 4 lines
If you need to go around company SMTP server, then consider using b4
web-relay: https://b4.docs.kernel.org/en/latest/contributor/send.htmlI will not respond to any other confidential emails. That's the last one you
got.
Quoted 4 lines
To be clear: all messages from your company will be made published. By responding to this email you agree that all communications from you and/or your company is made public.
Sorry, I have request IT remove it.
Quoted 4 lines
Quoted 3 lines
Best regards,
Krzysztof
Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 106 lines · Ryan Chen
Quoted 106 lines
Subject: RE: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 23 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 20 lines · Ryan Chen
Quoted 20 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 6 lines · Ryan Chen
Add compatible support for AST2700 clk, reset, pinctrl, silicon-id and example for AST2700 scu.
Signed-off-by Ryan Chen <[email protected]>--- .../bindings/mfd/aspeed,ast2x00-scu.yaml | 31+++++++++++++++++--
Quoted 9 lines
1 file changed, 29 insertions(+), 2 deletions(-)diff --git
a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlb/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlindex86ee69c0f45b..c0965f08ae8c100644
---a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
+++b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yam
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml properties: · line 25
Quoted 7 lines
+++ l
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +2
-0@@ -21,6 +21,8 @@ properties: - aspeed,ast2400-scu - aspeed,ast2500-scu - aspeed,ast2600-scu + - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1What are the differences between these two?
Quoted 7 lines
Quoted 5 lines
The next [PATCH 4/4] is scu driver that include ast2700-scu0 and ast2700-scu1
CLK_OF_DECLARE_DRIVER(ast2700_soc0, "aspeed,ast2700-scu0", ast2700_soc0_clk_init);CLK_OF_DECLARE_DRIVER(ast2700_soc1, "aspeed,ast2700-scu1", ast2700_soc1_clk_init);What are hardware differences? Entirely different devices?
AST2700 have two soc die connected each other.
Each soc die have it own scu, so the naming is ast2700-scu0 for soc0, another is ast2700-scu1 for soc1.Quoted 50 lines
Quoted 50 lines
So I add these two.
Quoted 46 lines
Quoted 37 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +7
-2- const: syscon - const: simple-mfd@@ -30,10 +32,12 @@ properties: ranges: true '#address-cells': - const: 1 + minimum: 1 + maximum: 2 '#size-cells': - const: 1 + minimum: 1 + maximum: 2 '#clock-cells': const: 1@@ -56,6 +60,8 @@ patternProperties: - aspeed,ast2400-pinctrl - aspeed,ast2500-pinctrl - aspeed,ast2600-pinctrl + - aspeed,ast2700-soc0-pinctrl + - aspeed,ast2700-soc1-pinctrl required: - compatible@@ -76,6 +82,7 @@ patternProperties: - aspeed,ast2400-silicon-id - aspeed,ast2500-silicon-id - aspeed,ast2600-silicon-id + - aspeed,ast2700-silicon-id - const: aspeed,silicon-id reg:Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml examples: · line 128
Quoted 7 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +4
-0@@ -115,4 +122,24 @@ examples: reg = <0x7c 0x4>, <0x150 0x8>; }; }; + - | + soc0 { + #address-cells = <2>; + #size-cells = <2>;That's the same example as previous, right? The drop, no need.
Quoted 6 lines
Quoted 4 lines
AST2700 is 64bits address mode platform, that the reason. So I add example for 64bits platform descript in dtsi I have to add soc0 to be address-cells and size-cells to be <2> Then I can define the register to be 64bits address and size.
That's trivial. Drop.
Do you mean, I don?t need add example for ast2700-scu0?
Quoted 7 lines
Quoted 3 lines
Or delete #address-cells = <2>; #size-cells = <2>; If I remove it will make
dt_binding_checkfail.Quoted 1 line
Hello Krzysztof
Use
dt_binding_check, it need #address-cells = <2>; #size-cells = <2> for 64 bit address description. Or I don't need example?
Drop example. It's basically the same as existing one.
Best regards,
Krzysztof
Rob Herring
maintainerRe: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
In reply to Ryan ChenQuoted 37 lines · Ryan Chen
Quoted 37 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 33 lines · Ryan Chen
Quoted 13 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 6 lines · Ryan Chen
Add compatible support for AST2700 clk, reset, pinctrl, silicon-id and example for AST2700 scu.
Signed-off-by Ryan Chen <[email protected]>--- .../bindings/mfd/aspeed,ast2x00-scu.yaml | 31+++++++++++++++++--
Quoted 2 lines
1 file changed, 29 insertions(+), 2 deletions(-)Quoted 14 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml properties: · line 25
Quoted 12 lines
diff --git
a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlb/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlindex86ee69c0f45b..c0965f08ae8c100644Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +2
-0@@ -21,6 +21,8 @@ properties: - aspeed,ast2400-scu - aspeed,ast2500-scu - aspeed,ast2600-scu + - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1What are the differences between these two?
The next [PATCH 4/4] is scu driver that include ast2700-scu0 and ast2700-scu1
CLK_OF_DECLARE_DRIVER(ast2700_soc0, "aspeed,ast2700-scu0", ast2700_soc0_clk_init);CLK_OF_DECLARE_DRIVER(ast2700_soc1, "aspeed,ast2700-scu1", ast2700_soc1_clk_init);
Quoted 4 lines
Quoted 1 line
What are hardware differences? Entirely different devices?
AST2700 have two soc die connected each other.
Each soc die have it own scu, so the naming is ast2700-scu0 for soc0, another is ast2700-scu1 for soc1.
Didn't I see in another patch one die is cpu and one is io? Use those in the compatible rather than 0 and 1 if so.
Rob
Ryan Chen
maintainerRE: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 43 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 40 lines · Ryan Chen
Quoted 40 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 35 lines · Ryan Chen
Quoted 13 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 6 lines · Ryan Chen
Add compatible support for AST2700 clk, reset, pinctrl, silicon-id and example for AST2700 scu.
Signed-off-by Ryan Chen <[email protected]>--- .../bindings/mfd/aspeed,ast2x00-scu.yaml | 31+++++++++++++++++--
Quoted 2 lines
1 file changed, 29 insertions(+), 2 deletions(-)Quoted 16 lines
Quoted 9 lines
diff --git
a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlb/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yamlindex86ee69c0f45b..c0965f08ae8c100644
---a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml+++ b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.y +++ amlDocumentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml properties: · line 25
Quoted 5 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +2
-0@@ -21,6 +21,8 @@ properties: - aspeed,ast2400-scu - aspeed,ast2500-scu - aspeed,ast2600-scu + - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1What are the differences between these two?
The next [PATCH 4/4] is scu driver that include ast2700-scu0 and ast2700-scu1
CLK_OF_DECLARE_DRIVER(ast2700_soc0, "aspeed,ast2700-scu0", ast2700_soc0_clk_init);CLK_OF_DECLARE_DRIVER(ast2700_soc1, "aspeed,ast2700-scu1", ast2700_soc1_clk_init);
Quoted 9 lines
Quoted 4 lines
Quoted 1 line
What are hardware differences? Entirely different devices?
AST2700 have two soc die connected each other.
Each soc die have it own scu, so the naming is ast2700-scu0 for soc0,another is ast2700-scu1 for soc1.
Didn't I see in another patch one die is cpu and one is io? Use those in the compatible rather than 0 and 1 if so.
Sorry, I want to align with our datasheet description. It will but scu0 and scu1 register setting.
Quoted 1 line
Rob
Andrew Jeffery
maintainerRe: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 56 lines · Ryan Chen
Quoted 56 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 52 lines · Ryan Chen
Quoted 40 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 36 lines · Ryan Chen
Quoted 35 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for
AST2700Quoted 6 lines · Ryan Chen
Add compatible support for AST2700 clk, reset, pinctrl, silicon-id and example for AST2700 scu.
Signed-off-by Ryan Chen <[email protected]>---
?.../bindings/mfd/aspeed,ast2x00-scu.yaml | 31+++++++++++++++++--
Quoted 19 lines
?1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-
scu.yamlb/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
index86ee69c0f45b..c0965f08ae8c100644
---
a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
+++
b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00- scu.y
+++ aml(quoted diff) +0
-0@@ -21,6 +21,8 @@ properties:???????????- aspeed,ast2400-scu
???????????- aspeed,ast2500-scu
???????????- aspeed,ast2600-scuReview
Quoted 2 lines
(quoted diff) +2
-0+ - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1What are the differences between these two?
Quoted 8 lines
Quoted 6 lines
The next [PATCH 4/4] is scu driver that include ast2700-scu0 and
ast2700-scu1CLK_OF_DECLARE_DRIVER(ast2700_soc0, "aspeed,ast2700-scu0", ast2700_soc0_clk_init);CLK_OF_DECLARE_DRIVER(ast2700_soc1, "aspeed,ast2700-scu1", ast2700_soc1_clk_init);What are hardware differences? Entirely different devices?
AST2700 have two soc die connected each other.
Each soc die have it own scu, so the naming is ast2700-scu0 for soc0,
Quoted 8 lines
Quoted 6 lines
another is ast2700-scu1 for soc1.
Didn't I see in another patch one die is cpu and one is io? Use those in the
compatible rather than 0 and 1 if so.Sorry, I want to align with our datasheet description. It will but scu0 and scu1 register setting.
Can we document that relationship in the binding? Rob's suggestion seems more descriptive.
Andrew
Ryan Chen
maintainerRE: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 61 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 58 lines · Ryan Chen
Quoted 58 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 47 lines · Ryan Chen
Quoted 47 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 42 lines · Ryan Chen
Quoted 27 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for
AST2700Quoted 6 lines · Ryan Chen
Add compatible support for AST2700 clk, reset, pinctrl, silicon-id and example for AST2700 scu.
Signed-off-by Ryan Chen <[email protected]>---
?.../bindings/mfd/aspeed,ast2x00-scu.yaml | 31+++++++++++++++++--
Quoted 15 lines
?1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-
scu.yamlb/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
index86ee69c0f45b..c0965f08ae8c100644
---
a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
+++
b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00- scu.y
+++ amlQuoted 8 lines
Review
Quoted 6 lines
(quoted diff) +0
-0@@ -21,6 +21,8 @@ properties:???????????- aspeed,ast2400-scu
???????????- aspeed,ast2500-scu
???????????- aspeed,ast2600-scu(quoted diff) +2
-0+ - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1What are the differences between these two?
The next [PATCH 4/4] is scu driver that include ast2700-scu0 and
ast2700-scu1CLK_OF_DECLARE_DRIVER(ast2700_soc0, "aspeed,ast2700-scu0", ast2700_soc0_clk_init);CLK_OF_DECLARE_DRIVER(ast2700_soc1, "aspeed,ast2700-scu1", ast2700_soc1_clk_init);Quoted 5 lines
Quoted 1 line
What are hardware differences? Entirely different devices?
AST2700 have two soc die connected each other.
Each soc die have it own scu, so the naming is ast2700-scu0 for soc0,another is ast2700-scu1 for soc1.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Didn't I see in another patch one die is cpu and one is io? Use those in the compatible rather than 0 and 1 if so.
Sorry, I want to align with our datasheet description. It will but scu0 and scu1 register setting.
Can we document that relationship in the binding? Rob's suggestion seems more descriptive.
Hello,
Do you want me document it in yaml file or just in commit message?
Andrew Jeffery
maintainerRe: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 78 lines · Ryan Chen
Quoted 78 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 73 lines · Ryan Chen
Quoted 62 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 58 lines · Ryan Chen
Quoted 57 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for
AST2700Quoted 42 lines · Ryan Chen
Quoted 33 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed:
support
for
AST2700Quoted 7 lines · Ryan Chen
Add compatible support for AST2700 clk, reset,
pinctrl,
silicon-id and example for AST2700 scu.Signed-off-by Ryan Chen <[email protected]>---
?.../bindings/mfd/aspeed,ast2x00-scu.yaml | 31+++++++++++++++++--
Quoted 19 lines
?1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/aspeed,ast2x0 0-
scu.yamlb/Documentation/devicetree/bindings/mfd/aspeed,ast2x0 0-scu.yaml
index86ee69c0f45b..c0965f08ae8c100644
---
a/Documentation/devicetree/bindings/mfd/aspeed,ast2x0 0-scu.yaml
+++
b/Documentation/devicetree/bindings/mfd/aspeed,ast2x0 0-
scu.y
+++ amlQuoted 8 lines
Review
Quoted 6 lines
(quoted diff) +0
-0@@ -21,6 +21,8 @@ properties:???????????- aspeed,ast2400-scu
???????????- aspeed,ast2500-scu
???????????- aspeed,ast2600-scu(quoted diff) +2
-0+ - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1What are the differences between these two?
Quoted 8 lines
The next [PATCH 4/4] is scu driver that include ast2700- scu0
and
ast2700-scu1CLK_OF_DECLARE_DRIVER(ast2700_soc0, "aspeed,ast2700-scu0", ast2700_soc0_clk_init); CLK_OF_DECLARE_DRIVER(ast2700_soc1, "aspeed,ast2700- scu1",ast2700_soc1_clk_init);What are hardware differences? Entirely different devices?
Quoted 9 lines
Quoted 4 lines
AST2700 have two soc die connected each other. Each soc die have it own scu, so the naming is ast2700-scu0 for
soc0,another is ast2700-scu1 for soc1.
Didn't I see in another patch one die is cpu and one is io? Use those in the compatible rather than 0 and 1 if so.
Sorry, I want to align with our datasheet description. It will but scu0 and scu1 register setting.
Quoted 6 lines
Quoted 3 lines
Can we document that relationship in the binding? Rob's suggestion seems
more descriptive.Hello,
Do you want me document it in yaml file or just in commit
message?
In the binding document please!
Andrew
Ryan Chen
maintainerRE: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
In reply to Ryan ChenQuoted 64 lines
Quoted 64 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 61 lines · Ryan Chen
Quoted 61 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 47 lines · Ryan Chen
Quoted 47 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 42 lines · Ryan Chen
Quoted 27 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for
AST2700Quoted 6 lines · Ryan Chen
Add compatible support for AST2700 clk, reset, pinctrl, silicon-id and example for AST2700 scu.
Signed-off-by Ryan Chen <[email protected]>---
?.../bindings/mfd/aspeed,ast2x00-scu.yaml | 31+++++++++++++++++--
Quoted 15 lines
?1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-
scu.yamlb/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
index86ee69c0f45b..c0965f08ae8c100644
---
a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
+++
b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00- scu.y
+++ amlQuoted 8 lines
Review
Quoted 6 lines
(quoted diff) +0
-0@@ -21,6 +21,8 @@ properties:???????????- aspeed,ast2400-scu
???????????- aspeed,ast2500-scu
???????????- aspeed,ast2600-scu(quoted diff) +2
-0+ - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1What are the differences between these two?
The next [PATCH 4/4] is scu driver that include ast2700-scu0 and
ast2700-scu1CLK_OF_DECLARE_DRIVER(ast2700_soc0, "aspeed,ast2700-scu0", ast2700_soc0_clk_init);CLK_OF_DECLARE_DRIVER(ast2700_soc1, "aspeed,ast2700-scu1", ast2700_soc1_clk_init);Quoted 5 lines
Quoted 1 line
What are hardware differences? Entirely different devices?
AST2700 have two soc die connected each other.
Each soc die have it own scu, so the naming is ast2700-scu0 for soc0,another is ast2700-scu1 for soc1.
Didn't I see in another patch one die is cpu and one is io? Use those in the compatible rather than 0 and 1 if so.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Sorry, I want to align with our datasheet description. It will but scu0 and scu1 register setting.
Can we document that relationship in the binding? Rob's suggestion seems more descriptive.
Hello,
Do you want me document it in yaml file or just in commit message?
Hello Rob, Andrew,
I will add in yaml file in description. Like following.
description:
The Aspeed System Control Unit manages the global behaviour of the SoC, configuring elements such as clocks, pinmux, and reset.
+ In AST2700, it has two soc combination. Each soc include its own scu register control.
+ ast2700-scu0 for soc0, ast2700-scu1 for soc1.
Is that will be better way ?
Andrew Jeffery
maintainerRe: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 99 lines · Ryan Chen
Quoted 81 lines
Quoted 81 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 76 lines · Ryan Chen
Quoted 68 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for
AST2700Quoted 56 lines · Ryan Chen
Quoted 56 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed:
support for
AST2700Quoted 50 lines · Ryan Chen
Quoted 33 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed:
support
for
AST2700Quoted 7 lines · Ryan Chen
Add compatible support for AST2700 clk, reset,
pinctrl,
silicon-id and example for AST2700 scu.Signed-off-by Ryan Chen <[email protected]>---
?.../bindings/mfd/aspeed,ast2x00-scu.yaml | 31+++++++++++++++++--
Quoted 19 lines
?1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/aspeed,ast2 x00-
scu.yamlb/Documentation/devicetree/bindings/mfd/aspeed,ast2 x00-scu.yaml
index86ee69c0f45b..c0965f08ae8c100644
---
a/Documentation/devicetree/bindings/mfd/aspeed,ast2 x00-scu.yaml
+++
b/Documentation/devicetree/bindings/mfd/aspeed,ast2 x00-
scu.y
+++ amlQuoted 8 lines
Review
Quoted 6 lines
(quoted diff) +0
-0@@ -21,6 +21,8 @@ properties:???????????- aspeed,ast2400-scu
???????????- aspeed,ast2500-scu
???????????- aspeed,ast2600-scu(quoted diff) +2
-0+ - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1What are the differences between these two?
The next [PATCH 4/4] is scu driver that include ast2700-scu0
and
ast2700-scu1CLK_OF_DECLARE_DRIVER(ast2700_soc0, "aspeed,ast2700-scu0", ast2700_soc0_clk_init); CLK_OF_DECLARE_DRIVER(ast2700_soc1, "aspeed,ast2700- scu1",ast2700_soc1_clk_init);Quoted 7 lines
Quoted 2 lines
What are hardware differences? Entirely different
devices?AST2700 have two soc die connected each other. Each soc die have it own scu, so the naming is ast2700-scu0 for
soc0,Quoted 6 lines
another is ast2700-scu1 for soc1.
Didn't I see in another patch one die is cpu and one is io? Use
those in the compatible rather than 0 and 1 if so.Sorry, I want to align with our datasheet description. It will but scu0 and scu1 register setting.
Quoted 6 lines
Quoted 3 lines
Can we document that relationship in the binding? Rob's suggestion
seems more descriptive.Hello,
Do you want me document it in yaml file or just in commit
message?Hello Rob, Andrew,
I will add in yaml file in description. Like following.description:
??The Aspeed System Control Unit manages the global behaviour of the SoC,
??configuring elements such as clocks, pinmux, and reset.
+ In AST2700, it has two soc combination. Each soc include its own scu register control.
+ ast2700-scu0 for soc0, ast2700-scu1 for soc1.
Quoted 1 line
Is that will be better way ?
What Rob is suggesting is to add the compatibles "aspeed,ast2700-scu- cpu" and "aspeed,ast2700-scu-io", and then in the description say something like:
The AST2700 integrates both a CPU and an IO die, each with their own SCU. The "aspeed,ast2700-scu-cpu" and "aspeed,ast2700-scu-io" compatibles correspond to SCU0 and SCU1 respectively.
Andrew
Ryan Chen
maintainerRE: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 99 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 94 lines · Ryan Chen
Quoted 76 lines
Quoted 76 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 71 lines · Ryan Chen
Quoted 60 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 56 lines · Ryan Chen
Quoted 55 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed:
support for
AST2700Quoted 41 lines · Ryan Chen
Quoted 32 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed:
support
for
AST2700Quoted 6 lines · Ryan Chen
Add compatible support for AST2700 clk, reset,
pinctrl, silicon-id and example for AST2700 scu.Signed-off-by Ryan Chen <[email protected]>---
?.../bindings/mfd/aspeed,ast2x00-scu.yaml | 31+++++++++++++++++--
Quoted 19 lines
?1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/mfd/aspeed,ast2 x00-
scu.yamlb/Documentation/devicetree/bindings/mfd/aspeed,ast2 x00-scu.yaml
index86ee69c0f45b..c0965f08ae8c100644
---
a/Documentation/devicetree/bindings/mfd/aspeed,ast2 x00-scu.yaml
+++
b/Documentation/devicetree/bindings/mfd/aspeed,ast2 x00-
scu.y
+++ amlQuoted 8 lines
Review
Quoted 6 lines
(quoted diff) +0
-0@@ -21,6 +21,8 @@ properties:???????????- aspeed,ast2400-scu
???????????- aspeed,ast2500-scu
???????????- aspeed,ast2600-scu(quoted diff) +2
-0+ - aspeed,ast2700-scu0 + - aspeed,ast2700-scu1What are the differences between these two?
Quoted 7 lines
The next [PATCH 4/4] is scu driver that include ast2700-scu0
and
ast2700-scu1CLK_OF_DECLARE_DRIVER(ast2700_soc0, "aspeed,ast2700-scu0", ast2700_soc0_clk_init);CLK_OF_DECLARE_DRIVER(ast2700_soc1, "aspeed,ast2700- scu1", ast2700_soc1_clk_init);What are hardware differences? Entirely different devices?
Quoted 9 lines
Quoted 3 lines
AST2700 have two soc die connected each other. Each soc die have it own scu, so the naming is ast2700-scu0 for soc0,
another is ast2700-scu1 for soc1.
Didn't I see in another patch one die is cpu and one is io? Use
those in the compatible rather than 0 and 1 if so.Sorry, I want to align with our datasheet description. It will but scu0 and scu1 register setting.
Quoted 6 lines
Quoted 3 lines
Can we document that relationship in the binding? Rob's suggestion
seems more descriptive.Hello,
Do you want me document it in yaml file or just in commit
message?Hello Rob, Andrew,
I will add in yaml file in description. Like following.description:
??The Aspeed System Control Unit manages the global behaviour of the SoC,
??configuring elements such as clocks, pinmux, and reset.
+ In AST2700, it has two soc combination. Each soc include its own scu register control.
+ ast2700-scu0 for soc0, ast2700-scu1 for soc1.Quoted 1 line
Is that will be better way ?
Quoted 8 lines
What Rob is suggesting is to add the compatibles "aspeed,ast2700-scu- cpu" and "aspeed,ast2700-scu-io", and then in the description say something like:
The AST2700 integrates both a CPU and an IO die, each with their own SCU. The "aspeed,ast2700-scu-cpu" and "aspeed,ast2700-scu-io" compatibles correspond to SCU0 and SCU1 respectively.
Hello Andrew,
Sorry, for correspond for ast2700 datasheet, the description is scu0/scu1. System Control Unit #0 (SCU0)/ System Control Unit #1 (SCU1) why not we Keep align with datasheet statement?
Andrew Jeffery
maintainerRe: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 51 lines · Ryan Chen
Quoted 46 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 35 lines · Ryan Chen
Quoted 14 lines
Quoted 14 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for
AST2700Quoted 8 lines · Ryan Chen
Quoted 6 lines
Didn't I see in another patch one die is cpu and one is io?
Use
those in the compatible rather than 0 and 1 if so.Sorry, I want to align with our datasheet description. It will but scu0 and scu1 register setting.
Quoted 7 lines
Quoted 3 lines
Can we document that relationship in the binding? Rob's suggestion
seems more descriptive.Hello,
Do you want me document it in yaml file or just in
commit
message?Hello Rob, Andrew,
I will add in yaml file in description. Like following.description:
??The Aspeed System Control Unit manages the global behaviour of the
SoC,
??configuring elements such as clocks, pinmux, and reset.
+ In AST2700, it has two soc combination. Each soc include its own
scu register control.
+ ast2700-scu0 for soc0, ast2700-scu1 for soc1.Quoted 1 line
Is that will be better way ?
What Rob is suggesting is to add the compatibles "aspeed,ast2700- scu-
cpu" and "aspeed,ast2700-scu-io", and then in the description say something like:Quoted 5 lines
???The AST2700 integrates both a CPU and an IO die, each with their own
???SCU. The "aspeed,ast2700-scu-cpu" and "aspeed,ast2700-scu-io" ???compatibles correspond to SCU0 and SCU1 respectively.
Quoted 6 lines
Hello Andrew,
Sorry, for correspond for ast2700 datasheet, the description
is scu0/scu1.
System Control Unit #0 (SCU0)/ System Control Unit #1 (SCU1)
why not we
Keep align with datasheet statement?
Well, IMO we have an opportunity do better in the compatibles. I expect we should take advantage of it. As some support for Rob's suggestion, the datasheet chapter for SCU1 calls it "SCUIO" in the first sentence of the description. Further, there are only two SCUs, and I don't think the mapping of "cpu" to 0 and "io" to 1 is too difficult to keep track of, certainly not if it's written in the binding documentation (as long as these names are accurate!). The argument works both ways but I don't think it's contentious that using the indexes is _less_ descriptive.
That said, this is just my semi-informed opinion. It's up to you to decide what names you're going to push for. Rob's suggestion seems reasonable to me though.
Andrew
Ryan Chen
maintainerRE: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 66 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 47 lines · Ryan Chen
Quoted 42 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 31 lines · Ryan Chen
Quoted 10 lines
Quoted 10 lines
Subject: Re: [PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700
Quoted 6 lines · Ryan Chen
Quoted 6 lines
Didn't I see in another patch one die is cpu and one is io?
Use
those in the compatible rather than 0 and 1 if so.Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Sorry, I want to align with our datasheet description. It will but scu0 and scu1 register setting.
Can we document that relationship in the binding? Rob's suggestion seems more descriptive.
Hello,
Do you want me document it in yaml file or just in commit
message?Hello Rob, Andrew,
I will add in yaml file in description. Like following.description:
??The Aspeed System Control Unit manages the global behaviour of the SoC,
??configuring elements such as clocks, pinmux, and reset.
+ In AST2700, it has two soc combination. Each soc include its own
scu register control.
+ ast2700-scu0 for soc0, ast2700-scu1 for soc1.Quoted 1 line
Is that will be better way ?
What Rob is suggesting is to add the compatibles "aspeed,ast2700- scu-
cpu" and "aspeed,ast2700-scu-io", and then in the description say something like:Quoted 5 lines
???The AST2700 integrates both a CPU and an IO die, each with their own
???SCU. The "aspeed,ast2700-scu-cpu" and "aspeed,ast2700-scu-io" ???compatibles correspond to SCU0 and SCU1 respectively.Quoted 6 lines
Hello Andrew,
Sorry, for correspond for ast2700 datasheet, the description is
scu0/scu1.
System Control Unit #0 (SCU0)/ System Control Unit #1 (SCU1) why not
we
Keep align with datasheet statement?Well, IMO we have an opportunity do better in the compatibles. I expect we should take advantage of it. As some support for Rob's suggestion, the datasheet chapter for SCU1 calls it "SCUIO" in the first sentence of the description. Further, there are only two SCUs, and I don't think the mapping of "cpu" to 0 and "io" to 1 is too difficult to keep track of, certainly not if it's written in the binding documentation (as long as these names are accurate!). The argument works both ways but I don't think it's contentious that using the indexes is _less_ descriptive.
Quoted 4 lines
That said, this is just my semi-informed opinion. It's up to you to decide what names you're going to push for. Rob's suggestion seems reasonable to me though.
Understood, I think I will keep ast2700-scu0,ast2700-scu1, and I will also align with Our datasheet generates to be consistence. scu0 and scu1.
Quoted 1 line
Andrew
Ryan Chen
maintainerPATCH 2/4 dt-bindings: reset Add AST2700 reset bindings
In reply to Ryan ChenAdd dt bindings for AST2700 reset driver.
--- .../dt-bindings/reset/aspeed,ast2700-reset.h | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 include/dt-bindings/reset/aspeed,ast2700-reset.h
include/dt-bindings/reset/aspeed,ast2700-reset.h new file +132 -0
@@ -0,0 +1,132 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Device Tree binding constants for AST2700 reset controller. +* +* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef _MACH_ASPEED_AST2700_RESET_H_ +#define _MACH_ASPEED_AST2700_RESET_H_ + +/* SOC0 */ +#define SCU0_RESET_SDRAM (0) +#define SCU0_RESET_DDRPHY (1) +#define SCU0_RESET_RSA (2) +#define SCU0_RESET_SHA3 (3) +#define SCU0_RESET_HACE (4) +#define SCU0_RESET_SOC (5) +#define SCU0_RESET_VIDEO (6) +#define SCU0_RESET_2D (7) +#define SCU0_RESET_PCIS (8) +#define SCU0_RESET_RVAS0 (9) +#define SCU0_RESET_RVAS1 (10) +#define SCU0_RESET_SM3 (11) +#define SCU0_RESET_SM4 (12) +#define SCU0_RESET_CRT0 (13) +#define SCU0_RESET_ECC (14) +#define SCU0_RESET_DP_PCI (15) +#define SCU0_RESET_UFS (16) +#define SCU0_RESET_EMMC (17) +#define SCU0_RESET_PCIE1RST (18) +#define SCU0_RESET_PCIE1RSTOE (19) +#define SCU0_RESET_PCIE0RST (20) +#define SCU0_RESET_PCIE0RSTOE (21) +#define SCU0_RESET_JTAG (22) +#define SCU0_RESET_MCTP0 (23) +#define SCU0_RESET_MCTP1 (24) +#define SCU0_RESET_XDMA0 (25) +#define SCU0_RESET_XDMA1 (26) +#define SCU0_RESET_H2X1 (27) +#define SCU0_RESET_DP (28) +#define SCU0_RESET_DP_MCU (29) +#define SCU0_RESET_SSP (30) +#define SCU0_RESET_H2X0 (31) +#define SCU0_RESET_PORTA_VHUB1 (32) +#define SCU0_RESET_PORTA_PHY3 (33) +#define SCU0_RESET_PORTA_XHCI (34) +#define SCU0_RESET_PORTB_VHUB1 (35) +#define SCU0_RESET_PORTB_PHY3 (36) +#define SCU0_RESET_PORTB_XHCI (37) +#define SCU0_RESET_PORTA_EHCI (38) +#define SCU0_RESET_PORTA_VHUB0 (38) +#define SCU0_RESET_PORTB_EHCI (39) +#define SCU0_RESET_PORTB_VHUB0 (39) +#define SCU0_RESET_UHCI (40) +#define SCU0_RESET_TSP (41) +#define SCU0_RESET_E2M0 (42) +#define SCU0_RESET_E2M1 (43) +#define SCU0_RESET_VLINK (44) + +#define SCU0_RESET_NUMS (SCU0_RESET_VLINK + 1) + +/* SOC1 */ +#define SCU1_RESET_LPC0 (0) +#define SCU1_RESET_LPC1 (1) +#define SCU1_RESET_MII (2) +#define SCU1_RESET_PECI (3) +#define SCU1_RESET_PWM (4) +#define SCU1_RESET_MAC0 (5) +#define SCU1_RESET_MAC1 (6) +#define SCU1_RESET_MAC2 (7) +#define SCU1_RESET_ADC (8) +#define SCU1_RESET_SD (9) +#define SCU1_RESET_ESPI0 (10) +#define SCU1_RESET_ESPI1 (11) +#define SCU1_RESET_JTAG1 (12) +#define SCU1_RESET_SPI0 (13) +#define SCU1_RESET_SPI1 (14) +#define SCU1_RESET_SPI2 (15) +#define SCU1_RESET_I3C0 (16) +#define SCU1_RESET_I3C1 (17) +#define SCU1_RESET_I3C2 (18) +#define SCU1_RESET_I3C3 (19) +#define SCU1_RESET_I3C4 (20) +#define SCU1_RESET_I3C5 (21) +#define SCU1_RESET_I3C6 (22) +#define SCU1_RESET_I3C7 (23) +#define SCU1_RESET_I3C8 (24) +#define SCU1_RESET_I3C9 (25) +#define SCU1_RESET_I3C10 (26) +#define SCU1_RESET_I3C11 (27) +#define SCU1_RESET_I3C12 (28) +#define SCU1_RESET_I3C13 (29) +#define SCU1_RESET_I3C14 (30) +#define SCU1_RESET_I3C15 (31) +#define SCU1_RESET_I3C15 (31) +#define SCU1_RESET_MCU0 (32) +#define SCU1_RESET_MCU1 (33) +#define SCU1_RESET_H2A_SPI1 (34) +#define SCU1_RESET_H2A_SPI2 (35) +#define SCU1_RESET_UART0 (36) +#define SCU1_RESET_UART1 (37) +#define SCU1_RESET_UART2 (38) +#define SCU1_RESET_UART3 (39) +#define SCU1_RESET_I2C_FILTER (40) +#define SCU1_RESET_CALIPTRA (41) +#define SCU1_RESET_XDMA (42) +/* reserved 43 */ +#define SCU1_RESET_FSI (44) +#define SCU1_RESET_CAN (45) +#define SCU1_RESET_MCTP (46) +#define SCU1_RESET_I2C (47) +#define SCU1_RESET_UART6 (48) +#define SCU1_RESET_UART7 (49) +#define SCU1_RESET_UART8 (50) +#define SCU1_RESET_UART9 (51) +#define SCU1_RESET_LTPI (52) +#define SCU1_RESET_VGAL (53) +#define SCU1_RESET_LTPI1 (54) +#define SCU1_RESET_ACE (55) +#define SCU1_RESET_E2M (56) +#define SCU1_RESET_UHCI (57) +#define SCU1_RESET_PORTC_EHCI (58) +#define SCU1_RESET_PORTC_VHUB (59) +#define SCU1_RESET_PORTD_EHCI (60) +#define SCU1_RESET_PORTD_VHUB (61) +#define SCU1_RESET_H2X (62) +#define SCU1_RESET_I3CDMA (63) +#define SCU1_RESET_PCIE2RST (64) + +#define SCU1_RESET_NUMS (SCU1_RESET_PCIE2RST + 1) + +#endif /* _MACH_ASPEED_AST2700_RESET_H_ */
Signature · 1 line
2.34.1
Re: [PATCH 2/4] dt-bindings: reset Add AST2700 reset bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit?:
Quoted 55 lines
Add dt bindings for AST2700 reset driver.
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/reset/aspeed,ast2700-reset.h | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+)create mode 100644
include/dt-bindings/reset/aspeed,ast2700-reset.hinclude/dt-bindings/reset/aspeed,ast2700-reset.h new file +41
-0@@ -0,0 +1,132 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Device Tree binding constants for AST2700 reset controller. +* +* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef _MACH_ASPEED_AST2700_RESET_H_ +#define _MACH_ASPEED_AST2700_RESET_H_ + +/* SOC0 */ +#define SCU0_RESET_SDRAM (0) +#define SCU0_RESET_DDRPHY (1) +#define SCU0_RESET_RSA (2) +#define SCU0_RESET_SHA3 (3) +#define SCU0_RESET_HACE (4) +#define SCU0_RESET_SOC (5) +#define SCU0_RESET_VIDEO (6) +#define SCU0_RESET_2D (7) +#define SCU0_RESET_PCIS (8) +#define SCU0_RESET_RVAS0 (9) +#define SCU0_RESET_RVAS1 (10) +#define SCU0_RESET_SM3 (11) +#define SCU0_RESET_SM4 (12) +#define SCU0_RESET_CRT0 (13) +#define SCU0_RESET_ECC (14) +#define SCU0_RESET_DP_PCI (15) +#define SCU0_RESET_UFS (16) +#define SCU0_RESET_EMMC (17) +#define SCU0_RESET_PCIE1RST (18) +#define SCU0_RESET_PCIE1RSTOE (19) +#define SCU0_RESET_PCIE0RST (20) +#define SCU0_RESET_PCIE0RSTOE (21) +#define SCU0_RESET_JTAG (22) +#define SCU0_RESET_MCTP0 (23) +#define SCU0_RESET_MCTP1 (24) +#define SCU0_RESET_XDMA0 (25) +#define SCU0_RESET_XDMA1 (26) +#define SCU0_RESET_H2X1 (27) +#define SCU0_RESET_DP (28) +#define SCU0_RESET_DP_MCU (29)
include/dt-bindings/reset/aspeed,ast2700-reset.h line 51
Quoted 10 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h new file +10
-0+#define SCU0_RESET_SSP (30) +#define SCU0_RESET_H2X0 (31) +#define SCU0_RESET_PORTA_VHUB1 (32) +#define SCU0_RESET_PORTA_PHY3 (33) +#define SCU0_RESET_PORTA_XHCI (34) +#define SCU0_RESET_PORTB_VHUB1 (35) +#define SCU0_RESET_PORTB_PHY3 (36) +#define SCU0_RESET_PORTB_XHCI (37) +#define SCU0_RESET_PORTA_EHCI (38) +#define SCU0_RESET_PORTA_VHUB0 (38)
Is having 38 twice expected?
If not, why not use an enum, BTW?
Quoted 34 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h new file +34
-0+#define SCU0_RESET_PORTB_EHCI (39) +#define SCU0_RESET_PORTB_VHUB0 (39) +#define SCU0_RESET_UHCI (40) +#define SCU0_RESET_TSP (41) +#define SCU0_RESET_E2M0 (42) +#define SCU0_RESET_E2M1 (43) +#define SCU0_RESET_VLINK (44) + +#define SCU0_RESET_NUMS (SCU0_RESET_VLINK + 1) + +/* SOC1 */ +#define SCU1_RESET_LPC0 (0) +#define SCU1_RESET_LPC1 (1) +#define SCU1_RESET_MII (2) +#define SCU1_RESET_PECI (3) +#define SCU1_RESET_PWM (4) +#define SCU1_RESET_MAC0 (5) +#define SCU1_RESET_MAC1 (6) +#define SCU1_RESET_MAC2 (7) +#define SCU1_RESET_ADC (8) +#define SCU1_RESET_SD (9) +#define SCU1_RESET_ESPI0 (10) +#define SCU1_RESET_ESPI1 (11) +#define SCU1_RESET_JTAG1 (12) +#define SCU1_RESET_SPI0 (13) +#define SCU1_RESET_SPI1 (14) +#define SCU1_RESET_SPI2 (15) +#define SCU1_RESET_I3C0 (16) +#define SCU1_RESET_I3C1 (17) +#define SCU1_RESET_I3C2 (18) +#define SCU1_RESET_I3C3 (19) +#define SCU1_RESET_I3C4 (20) +#define SCU1_RESET_I3C5 (21) +#define SCU1_RESET_I3C6 (22)
include/dt-bindings/reset/aspeed,ast2700-reset.h line 95
Quoted 10 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h new file +10
-0+#define SCU1_RESET_I3C7 (23) +#define SCU1_RESET_I3C8 (24) +#define SCU1_RESET_I3C9 (25) +#define SCU1_RESET_I3C10 (26) +#define SCU1_RESET_I3C11 (27) +#define SCU1_RESET_I3C12 (28) +#define SCU1_RESET_I3C13 (29) +#define SCU1_RESET_I3C14 (30) +#define SCU1_RESET_I3C15 (31) +#define SCU1_RESET_I3C15 (31)
SCU1_RESET_I3C15 is defined twice.
Quoted 37 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h new file +37
-0+#define SCU1_RESET_MCU0 (32) +#define SCU1_RESET_MCU1 (33) +#define SCU1_RESET_H2A_SPI1 (34) +#define SCU1_RESET_H2A_SPI2 (35) +#define SCU1_RESET_UART0 (36) +#define SCU1_RESET_UART1 (37) +#define SCU1_RESET_UART2 (38) +#define SCU1_RESET_UART3 (39) +#define SCU1_RESET_I2C_FILTER (40) +#define SCU1_RESET_CALIPTRA (41) +#define SCU1_RESET_XDMA (42) +/* reserved 43 */ +#define SCU1_RESET_FSI (44) +#define SCU1_RESET_CAN (45) +#define SCU1_RESET_MCTP (46) +#define SCU1_RESET_I2C (47) +#define SCU1_RESET_UART6 (48) +#define SCU1_RESET_UART7 (49) +#define SCU1_RESET_UART8 (50) +#define SCU1_RESET_UART9 (51) +#define SCU1_RESET_LTPI (52) +#define SCU1_RESET_VGAL (53) +#define SCU1_RESET_LTPI1 (54) +#define SCU1_RESET_ACE (55) +#define SCU1_RESET_E2M (56) +#define SCU1_RESET_UHCI (57) +#define SCU1_RESET_PORTC_EHCI (58) +#define SCU1_RESET_PORTC_VHUB (59) +#define SCU1_RESET_PORTD_EHCI (60) +#define SCU1_RESET_PORTD_VHUB (61) +#define SCU1_RESET_H2X (62) +#define SCU1_RESET_I3CDMA (63) +#define SCU1_RESET_PCIE2RST (64) + +#define SCU1_RESET_NUMS (SCU1_RESET_PCIE2RST + 1) + +#endif /* _MACH_ASPEED_AST2700_RESET_H_ */
Ryan Chen
maintainerRE: [PATCH 2/4] dt-bindings: reset Add AST2700 reset bindings
Quoted 65 lines
Subject: Re: [PATCH 2/4] dt-bindings: reset Add AST2700 reset bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit :
Quoted 5 lines
Add dt bindings for AST2700 reset driver.
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/reset/aspeed,ast2700-reset.h | 132++++++++++++++++++
Quoted 56 lines
1 file changed, 132 insertions(+)create mode 100644
include/dt-bindings/reset/aspeed,ast2700-reset.hinclude/dt-bindings/reset/aspeed,ast2700-reset.h new file +46
-0@@ -0,0 +1,132 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Device Tree binding constants for AST2700 reset controller. +* +* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef _MACH_ASPEED_AST2700_RESET_H_#define +_MACH_ASPEED_AST2700_RESET_H_ + +/* SOC0 */ +#define SCU0_RESET_SDRAM (0) +#define SCU0_RESET_DDRPHY (1) +#define SCU0_RESET_RSA (2) +#define SCU0_RESET_SHA3 (3) +#define SCU0_RESET_HACE (4) +#define SCU0_RESET_SOC (5) +#define SCU0_RESET_VIDEO (6) +#define SCU0_RESET_2D (7) +#define SCU0_RESET_PCIS (8) +#define SCU0_RESET_RVAS0 (9) +#define SCU0_RESET_RVAS1 (10) +#define SCU0_RESET_SM3 (11) +#define SCU0_RESET_SM4 (12) +#define SCU0_RESET_CRT0 (13) +#define SCU0_RESET_ECC (14) +#define SCU0_RESET_DP_PCI (15) +#define SCU0_RESET_UFS (16) +#define SCU0_RESET_EMMC (17) +#define SCU0_RESET_PCIE1RST (18) +#define SCU0_RESET_PCIE1RSTOE (19) +#define SCU0_RESET_PCIE0RST (20) +#define SCU0_RESET_PCIE0RSTOE (21) +#define SCU0_RESET_JTAG (22) +#define SCU0_RESET_MCTP0 (23) +#define SCU0_RESET_MCTP1 (24) +#define SCU0_RESET_XDMA0 (25) +#define SCU0_RESET_XDMA1 (26) +#define SCU0_RESET_H2X1 (27) +#define SCU0_RESET_DP (28) +#define SCU0_RESET_DP_MCU (29) +#define SCU0_RESET_SSP (30) +#define SCU0_RESET_H2X0 (31) +#define SCU0_RESET_PORTA_VHUB1 (32) +#define SCU0_RESET_PORTA_PHY3 (33) +#define SCU0_RESET_PORTA_XHCI (34)
Quoted 9 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h line 51
Quoted 5 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h new file +5
-0+#define SCU0_RESET_PORTB_VHUB1 (35) +#define SCU0_RESET_PORTB_PHY3 (36) +#define SCU0_RESET_PORTB_XHCI (37) +#define SCU0_RESET_PORTA_EHCI (38) +#define SCU0_RESET_PORTA_VHUB0 (38)Is having 38 twice expected?
If not, why not use an enum, BTW?
Yes, it is expected. Due to 38 is shared reset for 2 usb controller. One for EHCI, another is for vhub0. So I do define the same value. That I can do more clear in dtsi description.
The following will be expected dtsi file descript.
ehci0: usb at 12061000 {
.....
resets = <&syscon0 SCU0_RESET_PORTA_EHCI>;
};vhuba0: usb-vhub at 12060000 {
.......
resets = <&syscon0 SCU0_RESET_PORTA_VHUB0>;
};Quoted 76 lines
Quoted 34 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h new file +34
-0+#define SCU0_RESET_PORTB_EHCI (39) +#define SCU0_RESET_PORTB_VHUB0 (39) +#define SCU0_RESET_UHCI (40) +#define SCU0_RESET_TSP (41) +#define SCU0_RESET_E2M0 (42) +#define SCU0_RESET_E2M1 (43) +#define SCU0_RESET_VLINK (44) + +#define SCU0_RESET_NUMS (SCU0_RESET_VLINK + 1) + +/* SOC1 */ +#define SCU1_RESET_LPC0 (0) +#define SCU1_RESET_LPC1 (1) +#define SCU1_RESET_MII (2) +#define SCU1_RESET_PECI (3) +#define SCU1_RESET_PWM (4) +#define SCU1_RESET_MAC0 (5) +#define SCU1_RESET_MAC1 (6) +#define SCU1_RESET_MAC2 (7) +#define SCU1_RESET_ADC (8) +#define SCU1_RESET_SD (9) +#define SCU1_RESET_ESPI0 (10) +#define SCU1_RESET_ESPI1 (11) +#define SCU1_RESET_JTAG1 (12) +#define SCU1_RESET_SPI0 (13) +#define SCU1_RESET_SPI1 (14) +#define SCU1_RESET_SPI2 (15) +#define SCU1_RESET_I3C0 (16) +#define SCU1_RESET_I3C1 (17) +#define SCU1_RESET_I3C2 (18) +#define SCU1_RESET_I3C3 (19) +#define SCU1_RESET_I3C4 (20) +#define SCU1_RESET_I3C5 (21) +#define SCU1_RESET_I3C6 (22)include/dt-bindings/reset/aspeed,ast2700-reset.h line 95
Quoted 10 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h new file +10
-0+#define SCU1_RESET_I3C7 (23) +#define SCU1_RESET_I3C8 (24) +#define SCU1_RESET_I3C9 (25) +#define SCU1_RESET_I3C10 (26) +#define SCU1_RESET_I3C11 (27) +#define SCU1_RESET_I3C12 (28) +#define SCU1_RESET_I3C13 (29) +#define SCU1_RESET_I3C14 (30) +#define SCU1_RESET_I3C15 (31) +#define SCU1_RESET_I3C15 (31)
SCU1_RESET_I3C15is defined twice.Quoted 29 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h new file +29
-0+#define SCU1_RESET_MCU0 (32) +#define SCU1_RESET_MCU1 (33) +#define SCU1_RESET_H2A_SPI1 (34) +#define SCU1_RESET_H2A_SPI2 (35) +#define SCU1_RESET_UART0 (36) +#define SCU1_RESET_UART1 (37) +#define SCU1_RESET_UART2 (38) +#define SCU1_RESET_UART3 (39) +#define SCU1_RESET_I2C_FILTER (40) +#define SCU1_RESET_CALIPTRA (41) +#define SCU1_RESET_XDMA (42) +/* reserved 43 */ +#define SCU1_RESET_FSI (44) +#define SCU1_RESET_CAN (45) +#define SCU1_RESET_MCTP (46) +#define SCU1_RESET_I2C (47) +#define SCU1_RESET_UART6 (48) +#define SCU1_RESET_UART7 (49) +#define SCU1_RESET_UART8 (50) +#define SCU1_RESET_UART9 (51) +#define SCU1_RESET_LTPI (52) +#define SCU1_RESET_VGAL (53) +#define SCU1_RESET_LTPI1 (54) +#define SCU1_RESET_ACE (55) +#define SCU1_RESET_E2M (56) +#define SCU1_RESET_UHCI (57) +#define SCU1_RESET_PORTC_EHCI (58) +#define SCU1_RESET_PORTC_VHUB (59) +#define SCU1_RESET_PORTD_EHCI (60)
Quoted 8 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h line 132
Quoted 8 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h new file +8
-0+#define SCU1_RESET_PORTD_VHUB (61) +#define SCU1_RESET_H2X (62) +#define SCU1_RESET_I3CDMA (63) +#define SCU1_RESET_PCIE2RST (64) + +#define SCU1_RESET_NUMS (SCU1_RESET_PCIE2RST + 1) + +#endif /* _MACH_ASPEED_AST2700_RESET_H_ */
************* Email Confidentiality Notice ********************
????:
???(????)????????????????? ???????????????????????????, ??????????????????????????????!
DISCLAIMER:
This message (and any attachments) may contain legally privileged and/or other confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents. Thank you.
Re: [PATCH 2/4] dt-bindings: reset Add AST2700 reset bindings
Quoted 10 lines · Ryan Chen
Quoted 6 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h line 51
Quoted 2 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h new file +2
-0+#define SCU0_RESET_PORTA_EHCI (38) +#define SCU0_RESET_PORTA_VHUB0 (38)Is having 38 twice expected?
If not, why not use an enum, BTW?Yes, it is expected. Due to 38 is shared reset for 2 usb controller. One for EHCI, another is for vhub0. So I do define the same value. That I can do more clear in dtsi description.
The following will be expected dtsi file descript.
No, that's confusing. Don't do this. You are hiding information that one reset is shared. Terrible idea.
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 2/4] dt-bindings: reset Add AST2700 reset bindings
Quoted 9 lines
Subject: Re: [PATCH 2/4] dt-bindings: reset Add AST2700 reset bindings
Quoted 6 lines · Ryan Chen
Quoted 6 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h line 51
Quoted 2 lines
include/dt-bindings/reset/aspeed,ast2700-reset.h new file +2
-0+#define SCU0_RESET_PORTA_EHCI (38) +#define SCU0_RESET_PORTA_VHUB0 (38)Is having 38 twice expected?
If not, why not use an enum, BTW?
Quoted 7 lines
Quoted 4 lines
Yes, it is expected. Due to 38 is shared reset for 2 usb controller. One for EHCI, another is for vhub0. So I do define the same value. That I can do more clear in dtsi description.
The following will be expected dtsi file descript.No, that's confusing. Don't do this. You are hiding information that one reset is shared. Terrible idea.
OK I can remove this.
Use #define SCU0_RESET_PORTA_USB (38)
Quoted 3 lines
Best regards,
Krzysztof
************* Email Confidentiality Notice ********************
????:
???(????)????????????????? ???????????????????????????, ??????????????????????????????!
DISCLAIMER:
This message (and any attachments) may contain legally privileged and/or other confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents. Thank you.
Re: [PATCH 2/4] dt-bindings: reset Add AST2700 reset bindings
In reply to Ryan ChenQuoted 3 lines · Ryan Chen
Add dt bindings for AST2700 reset driver.
Signed-off-by Ryan Chen <[email protected]>
No, that's not how it works. Aspeed already sent it and recieved feedback. Do not send duplicated patches, without history/changelog. You keep avoiding discussion, do not reply and then send something again without changes.
Respond to feedback you got and implement it.
NAK
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 2/4] dt-bindings: reset Add AST2700 reset bindings
Quoted 8 lines
Subject: Re: [PATCH 2/4] dt-bindings: reset Add AST2700 reset bindings
Quoted 3 lines · Ryan Chen
Add dt bindings for AST2700 reset driver.
Signed-off-by Ryan Chen <[email protected]>
Quoted 7 lines
No, that's not how it works. Aspeed already sent it and recieved feedback. Do not send duplicated patches, without history/changelog. You keep avoiding discussion, do not reply and then send something again without changes.
Respond to feedback you got and implement it.
NAK
Apologize for your mis-lead, I do the internal discussion, it should not send "Introduce ASPEED AST27XX BMC SoC" series patch. it should be separate series patch. Not mess together like previous "Introduce ASPEED AST27XX BMC SoC".
It should be bite by bite, example clk driver patches, platform patches, interrupt patches.
That the reason I send clk driver patch series in separate.
Apologize again.
Quoted 3 lines
Best regards,
Krzysztof
************* Email Confidentiality Notice ********************
????:
???(????)????????????????? ???????????????????????????, ??????????????????????????????!
DISCLAIMER:
This message (and any attachments) may contain legally privileged and/or other confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents. Thank you.
Re: [PATCH 2/4] dt-bindings: reset Add AST2700 reset bindings
Quoted 12 lines · Ryan Chen
Quoted 12 lines
Subject: Re: [PATCH 2/4] dt-bindings: reset Add AST2700 reset bindings
Quoted 3 lines · Ryan Chen
Add dt bindings for AST2700 reset driver.
Signed-off-by Ryan Chen <[email protected]>No, that's not how it works. Aspeed already sent it and recieved feedback. Do not send duplicated patches, without history/changelog. You keep avoiding discussion, do not reply and then send something again without changes.
Quoted 7 lines
Quoted 3 lines
Respond to feedback you got and implement it.
NAK
Apologize for your mis-lead, I do the internal discussion, it should not send "Introduce ASPEED AST27XX BMC SoC" series patch. it should be separate series patch. Not mess together like previous "Introduce ASPEED AST27XX BMC SoC".
It should be bite by bite, example clk driver patches, platform patches, interrupt patches.
That the reason I send clk driver patch series in separate.
Best regards,
Krzysztof
Ryan Chen
maintainerPATCH 3/4 dt-bindings: clock: Add AST2700 clock bindings
In reply to Ryan ChenAdd dt bindings for AST2700 clock controller
--- .../dt-bindings/clock/aspeed,ast2700-clk.h | 175 ++++++++++++++++++ 1 file changed, 175 insertions(+) create mode 100644 include/dt-bindings/clock/aspeed,ast2700-clk.h
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +175 -0
@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Device Tree binding constants for AST2700 clock controller. +* +* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef __DT_BINDINGS_CLOCK_AST2700_H +#define __DT_BINDINGS_CLOCK_AST2700_H + +/* SOC0 clk-gate */ +#define SCU0_CLK_GATE_MCLK (0) +#define SCU0_CLK_GATE_ECLK (1) +#define SCU0_CLK_GATE_2DCLK (2) +#define SCU0_CLK_GATE_VCLK (3) +#define SCU0_CLK_GATE_BCLK (4) +#define SCU0_CLK_GATE_VGA0CLK (5) +#define SCU0_CLK_GATE_REFCLK (6) +#define SCU0_CLK_GATE_PORTBUSB2CLK (7) +#define SCU0_CLK_GATE_RSV8 (8) +#define SCU0_CLK_GATE_UHCICLK (9) +#define SCU0_CLK_GATE_VGA1CLK (10) +#define SCU0_CLK_GATE_DDRPHYCLK (11) +#define SCU0_CLK_GATE_E2M0CLK (12) +#define SCU0_CLK_GATE_HACCLK (13) +#define SCU0_CLK_GATE_PORTAUSB2CLK (14) +#define SCU0_CLK_GATE_UART4CLK (15) +#define SCU0_CLK_GATE_SLICLK (16) +#define SCU0_CLK_GATE_DACCLK (17) +#define SCU0_CLK_GATE_DP (18) +#define SCU0_CLK_GATE_E2M1CLK (19) +#define SCU0_CLK_GATE_CRT0CLK (20) +#define SCU0_CLK_GATE_CRT1CLK (21) +#define SCU0_CLK_GATE_VLCLK (22) +#define SCU0_CLK_GATE_ECDSACLK (23) +#define SCU0_CLK_GATE_RSACLK (24) +#define SCU0_CLK_GATE_RVAS0CLK (25) +#define SCU0_CLK_GATE_UFSCLK (26) +#define SCU0_CLK_GATE_EMMCCLK (27) +#define SCU0_CLK_GATE_RVAS1CLK (28) +/* reserved 29 ~ 31*/ +#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RVAS1CLK + 1) + +/* SOC0 clk */ +#define SCU0_CLKIN (SCU0_CLK_GATE_NUM + 0) +#define SCU0_CLK_24M (SCU0_CLK_GATE_NUM + 1) +#define SCU0_CLK_192M (SCU0_CLK_GATE_NUM + 2) +#define SCU0_CLK_UART (SCU0_CLK_GATE_NUM + 3) +#define SCU0_CLK_PSP (SCU0_CLK_GATE_NUM + 4) +#define SCU0_CLK_HPLL (SCU0_CLK_GATE_NUM + 5) +#define SCU0_CLK_HPLL_DIV2 (SCU0_CLK_GATE_NUM + 6) +#define SCU0_CLK_HPLL_DIV4 (SCU0_CLK_GATE_NUM + 7) +#define SCU0_CLK_DPLL (SCU0_CLK_GATE_NUM + 8) +#define SCU0_CLK_MPLL (SCU0_CLK_GATE_NUM + 9) +#define SCU0_CLK_MPLL_DIV2 (SCU0_CLK_GATE_NUM + 10) +#define SCU0_CLK_MPLL_DIV4 (SCU0_CLK_GATE_NUM + 11) +#define SCU0_CLK_MPLL_DIV8 (SCU0_CLK_GATE_NUM + 12) +#define SCU0_CLK_VGA0 (SCU0_CLK_GATE_NUM + 13) +#define SCU0_CLK_VGA1 (SCU0_CLK_GATE_NUM + 14) +#define SCU0_CLK_CRT0 (SCU0_CLK_GATE_NUM + 15) +#define SCU0_CLK_CRT1 (SCU0_CLK_GATE_NUM + 16) +#define SCU0_CLK_MPHY (SCU0_CLK_GATE_NUM + 17) +#define SCU0_CLK_AXI0 (SCU0_CLK_GATE_NUM + 18) +#define SCU0_CLK_AXI1 (SCU0_CLK_GATE_NUM + 19) +#define SCU0_CLK_AHB (SCU0_CLK_GATE_NUM + 20) +#define SCU0_CLK_APB (SCU0_CLK_GATE_NUM + 21) +#define SCU0_CLK_MCLK (SCU0_CLK_GATE_NUM + 22) +#define SCU0_CLK_ECLK (SCU0_CLK_GATE_NUM + 23) +#define SCU0_CLK_VCLK (SCU0_CLK_GATE_NUM + 24) +#define SCU0_CLK_BCLK (SCU0_CLK_GATE_NUM + 25) +#define SCU0_CLK_REF (SCU0_CLK_GATE_NUM + 26) +#define SCU0_CLK_UART4 (SCU0_CLK_GATE_NUM + 27) +#define SCU0_CLK_SLI (SCU0_CLK_GATE_NUM + 28) +#define SCU0_CLK_UFS (SCU0_CLK_GATE_NUM + 29) +#define SCU0_CLK_EMMCMUX (SCU0_CLK_GATE_NUM + 30) +#define SCU0_CLK_EMMC (SCU0_CLK_GATE_NUM + 31) +#define SCU0_CLK_U2PHY_CLK12M (SCU0_CLK_GATE_NUM + 32) +#define SCU0_CLK_U2PHY_REFCLK (SCU0_CLK_GATE_NUM + 33) + +#define SCU0_NUM_CLKS (SCU0_CLK_U2PHY_REFCLK + 1) + +/* SOC1 clk gate */ +#define SCU1_CLK_GATE_LCLK0 (0) +#define SCU1_CLK_GATE_LCLK1 (1) +#define SCU1_CLK_GATE_ESPI0CLK (2) +#define SCU1_CLK_GATE_ESPI1CLK (3) +#define SCU1_CLK_GATE_SDCLK (4) +#define SCU1_CLK_GATE_IPEREFCLK (5)/* io die pcie ref clk */ +#define SCU1_CLK_GATE_RSV5CLK (6) +#define SCU1_CLK_GATE_LPCHCLK (7) +#define SCU1_CLK_GATE_MAC0CLK (8) +#define SCU1_CLK_GATE_MAC1CLK (9) +#define SCU1_CLK_GATE_MAC2CLK (10) +#define SCU1_CLK_GATE_UART0CLK (11) +#define SCU1_CLK_GATE_UART1CLK (12) +#define SCU1_CLK_GATE_UART2CLK (13) +#define SCU1_CLK_GATE_UART3CLK (14) +#define SCU1_CLK_GATE_I2CCLK (15) +#define SCU1_CLK_GATE_I3C0CLK (16) +#define SCU1_CLK_GATE_I3C1CLK (17) +#define SCU1_CLK_GATE_I3C2CLK (18) +#define SCU1_CLK_GATE_I3C3CLK (19) +#define SCU1_CLK_GATE_I3C4CLK (20) +#define SCU1_CLK_GATE_I3C5CLK (21) +#define SCU1_CLK_GATE_I3C6CLK (22) +#define SCU1_CLK_GATE_I3C7CLK (23) +#define SCU1_CLK_GATE_I3C8CLK (24) +#define SCU1_CLK_GATE_I3C9CLK (25) +#define SCU1_CLK_GATE_I3C10CLK (26) +#define SCU1_CLK_GATE_I3C11CLK (27) +#define SCU1_CLK_GATE_I3C12CLK (28) +#define SCU1_CLK_GATE_I3C13CLK (29) +#define SCU1_CLK_GATE_I3C14CLK (30) +#define SCU1_CLK_GATE_I3C15CLK (31) + +#define SCU1_CLK_GATE_UART5CLK (32 + 0) +#define SCU1_CLK_GATE_UART6CLK (32 + 1) +#define SCU1_CLK_GATE_UART7CLK (32 + 2) +#define SCU1_CLK_GATE_UART8CLK (32 + 3) +#define SCU1_CLK_GATE_UART9CLK (32 + 4) +#define SCU1_CLK_GATE_UART10CLK (32 + 5) +#define SCU1_CLK_GATE_UART11CLK (32 + 6) +#define SCU1_CLK_GATE_UART12CLK (32 + 7) +#define SCU1_CLK_GATE_FSICLK (32 + 8) +#define SCU1_CLK_GATE_LTPIPHYCLK (32 + 9) +#define SCU1_CLK_GATE_LTPICLK (32 + 10) +#define SCU1_CLK_GATE_VGALCLK (32 + 11) +#define SCU1_CLK_GATE_USBUARTCLK (32 + 12) +#define SCU1_CLK_GATE_CANCLK (32 + 13) +#define SCU1_CLK_GATE_PCICLK (32 + 14) +#define SCU1_CLK_GATE_SLICLK (32 + 15) +#define SCU1_CLK_GATE_E2MCLK (32 + 16) +#define SCU1_CLK_GATE_PORTCUSB2CLK (32 + 17) +#define SCU1_CLK_GATE_PORTDUSB2CLK (32 + 18) +#define SCU1_CLK_GATE_LTPI1TXCLK (32 + 19) + +#define SCU1_CLK_GATE_NUM (SCU1_CLK_GATE_LTPI1TXCLK + 1) + +/* SOC1 clk */ +#define SCU1_CLKIN (SCU1_CLK_GATE_NUM + 0) +#define SCU1_CLK_HPLL (SCU1_CLK_GATE_NUM + 1) +#define SCU1_CLK_APLL (SCU1_CLK_GATE_NUM + 2) +#define SCU1_CLK_APLL_DIV2 (SCU1_CLK_GATE_NUM + 3) +#define SCU1_CLK_APLL_DIV4 (SCU1_CLK_GATE_NUM + 4) +#define SCU1_CLK_DPLL (SCU1_CLK_GATE_NUM + 5) +#define SCU1_CLK_UXCLK (SCU1_CLK_GATE_NUM + 6) +#define SCU1_CLK_HUXCLK (SCU1_CLK_GATE_NUM + 7) +#define SCU1_CLK_UARTX (SCU1_CLK_GATE_NUM + 8) +#define SCU1_CLK_HUARTX (SCU1_CLK_GATE_NUM + 9) +#define SCU1_CLK_AHB (SCU1_CLK_GATE_NUM + 10) +#define SCU1_CLK_APB (SCU1_CLK_GATE_NUM + 11) +#define SCU1_CLK_UART0 (SCU1_CLK_GATE_NUM + 12) +#define SCU1_CLK_UART1 (SCU1_CLK_GATE_NUM + 13) +#define SCU1_CLK_UART2 (SCU1_CLK_GATE_NUM + 14) +#define SCU1_CLK_UART3 (SCU1_CLK_GATE_NUM + 15) +#define SCU1_CLK_UART5 (SCU1_CLK_GATE_NUM + 16) +#define SCU1_CLK_UART6 (SCU1_CLK_GATE_NUM + 17) +#define SCU1_CLK_UART7 (SCU1_CLK_GATE_NUM + 18) +#define SCU1_CLK_UART8 (SCU1_CLK_GATE_NUM + 19) +#define SCU1_CLK_UART9 (SCU1_CLK_GATE_NUM + 20) +#define SCU1_CLK_UART10 (SCU1_CLK_GATE_NUM + 21) +#define SCU1_CLK_UART11 (SCU1_CLK_GATE_NUM + 22) +#define SCU1_CLK_UART12 (SCU1_CLK_GATE_NUM + 23) +#define SCU1_CLK_APLL_DIVN (SCU1_CLK_GATE_NUM + 24) +#define SCU1_CLK_SDMUX (SCU1_CLK_GATE_NUM + 25) +#define SCU1_CLK_SDCLK (SCU1_CLK_GATE_NUM + 26) +#define SCU1_CLK_RMII (SCU1_CLK_GATE_NUM + 27) +#define SCU1_CLK_RGMII (SCU1_CLK_GATE_NUM + 28) +#define SCU1_CLK_MACHCLK (SCU1_CLK_GATE_NUM + 29) +#define SCU1_CLK_MAC0RCLK (SCU1_CLK_GATE_NUM + 30) +#define SCU1_CLK_MAC1RCLK (SCU1_CLK_GATE_NUM + 31) + +#define SCU1_NUM_CLKS (SCU1_CLK_MAC1RCLK + 1) + +#endif
Signature · 1 line
2.34.1
Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit?:
Quoted 49 lines
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/clock/aspeed,ast2700-clk.h | 175 ++++++++++++++++++ 1 file changed, 175 insertions(+)create mode 100644
include/dt-bindings/clock/aspeed,ast2700-clk.hinclude/dt-bindings/clock/aspeed,ast2700-clk.h new file +35
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Device Tree binding constants for AST2700 clock controller. +* +* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef __DT_BINDINGS_CLOCK_AST2700_H +#define __DT_BINDINGS_CLOCK_AST2700_H + +/* SOC0 clk-gate */ +#define SCU0_CLK_GATE_MCLK (0) +#define SCU0_CLK_GATE_ECLK (1) +#define SCU0_CLK_GATE_2DCLK (2) +#define SCU0_CLK_GATE_VCLK (3) +#define SCU0_CLK_GATE_BCLK (4) +#define SCU0_CLK_GATE_VGA0CLK (5) +#define SCU0_CLK_GATE_REFCLK (6) +#define SCU0_CLK_GATE_PORTBUSB2CLK (7) +#define SCU0_CLK_GATE_RSV8 (8) +#define SCU0_CLK_GATE_UHCICLK (9) +#define SCU0_CLK_GATE_VGA1CLK (10) +#define SCU0_CLK_GATE_DDRPHYCLK (11) +#define SCU0_CLK_GATE_E2M0CLK (12) +#define SCU0_CLK_GATE_HACCLK (13) +#define SCU0_CLK_GATE_PORTAUSB2CLK (14) +#define SCU0_CLK_GATE_UART4CLK (15) +#define SCU0_CLK_GATE_SLICLK (16) +#define SCU0_CLK_GATE_DACCLK (17) +#define SCU0_CLK_GATE_DP (18) +#define SCU0_CLK_GATE_E2M1CLK (19) +#define SCU0_CLK_GATE_CRT0CLK (20) +#define SCU0_CLK_GATE_CRT1CLK (21) +#define SCU0_CLK_GATE_VLCLK (22) +#define SCU0_CLK_GATE_ECDSACLK (23)
include/dt-bindings/clock/aspeed,ast2700-clk.h line 45
Quoted 10 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +10
-0+#define SCU0_CLK_GATE_RSACLK (24) +#define SCU0_CLK_GATE_RVAS0CLK (25) +#define SCU0_CLK_GATE_UFSCLK (26) +#define SCU0_CLK_GATE_EMMCCLK (27) +#define SCU0_CLK_GATE_RVAS1CLK (28) +/* reserved 29 ~ 31*/ +#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RVAS1CLK + 1) + +/* SOC0 clk */ +#define SCU0_CLKIN (SCU0_CLK_GATE_NUM + 0)
So SCU0_CLKIN is 28+1+0 = 29 which is said to be reserved in the comment above.
Quoted 5 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +5
-0+#define SCU0_CLK_24M (SCU0_CLK_GATE_NUM + 1) +#define SCU0_CLK_192M (SCU0_CLK_GATE_NUM + 2) +#define SCU0_CLK_UART (SCU0_CLK_GATE_NUM + 3) +#define SCU0_CLK_PSP (SCU0_CLK_GATE_NUM + 4) +#define SCU0_CLK_HPLL (SCU0_CLK_GATE_NUM + 5)
...
Ryan Chen
maintainerRE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 59 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit :
Quoted 5 lines
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/clock/aspeed,ast2700-clk.h | 175++++++++++++++++++
Quoted 50 lines
1 file changed, 175 insertions(+)create mode 100644
include/dt-bindings/clock/aspeed,ast2700-clk.hinclude/dt-bindings/clock/aspeed,ast2700-clk.h new file +40
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Device Tree binding constants for AST2700 clock controller. +* +* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef __DT_BINDINGS_CLOCK_AST2700_H#define +__DT_BINDINGS_CLOCK_AST2700_H + +/* SOC0 clk-gate */ +#define SCU0_CLK_GATE_MCLK (0) +#define SCU0_CLK_GATE_ECLK (1) +#define SCU0_CLK_GATE_2DCLK (2) +#define SCU0_CLK_GATE_VCLK (3) +#define SCU0_CLK_GATE_BCLK (4) +#define SCU0_CLK_GATE_VGA0CLK (5) +#define SCU0_CLK_GATE_REFCLK (6) +#define SCU0_CLK_GATE_PORTBUSB2CLK (7) +#define SCU0_CLK_GATE_RSV8 (8) +#define SCU0_CLK_GATE_UHCICLK (9) +#define SCU0_CLK_GATE_VGA1CLK (10) +#define SCU0_CLK_GATE_DDRPHYCLK (11) +#define SCU0_CLK_GATE_E2M0CLK (12) +#define SCU0_CLK_GATE_HACCLK (13) +#define SCU0_CLK_GATE_PORTAUSB2CLK (14) +#define SCU0_CLK_GATE_UART4CLK (15) +#define SCU0_CLK_GATE_SLICLK (16) +#define SCU0_CLK_GATE_DACCLK (17) +#define SCU0_CLK_GATE_DP (18) +#define SCU0_CLK_GATE_E2M1CLK (19) +#define SCU0_CLK_GATE_CRT0CLK (20) +#define SCU0_CLK_GATE_CRT1CLK (21) +#define SCU0_CLK_GATE_VLCLK (22) +#define SCU0_CLK_GATE_ECDSACLK (23) +#define SCU0_CLK_GATE_RSACLK (24) +#define SCU0_CLK_GATE_RVAS0CLK (25) +#define SCU0_CLK_GATE_UFSCLK (26) +#define SCU0_CLK_GATE_EMMCCLK (27) +#define SCU0_CLK_GATE_RVAS1CLK (28)
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 45
Quoted 5 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +5
-0+/* reserved 29 ~ 31*/ +#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RVAS1CLK + 1) + +/* SOC0 clk */ +#define SCU0_CLKIN (SCU0_CLK_GATE_NUM + 0)So
SCU0_CLKINis 28+1+0 = 29 which is said to be reserved in the comment above.
Acutely, I keep reserved is because data sheet has reserved bits from 29~31. If you have concern about it, I can remove the comment.
Or are you prefer by following?
#define SCU0_CLK_GATE_RESERVED29 (29) #define SCU0_CLK_GATE_RESERVED30 (30) #define SCU0_CLK_GATE_RESERVED31 (31)
#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RESERVED31 + 1)
Quoted 8 lines
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +5
-0+#define SCU0_CLK_24M (SCU0_CLK_GATE_NUM + 1) +#define SCU0_CLK_192M (SCU0_CLK_GATE_NUM + 2) +#define SCU0_CLK_UART (SCU0_CLK_GATE_NUM + 3) +#define SCU0_CLK_PSP (SCU0_CLK_GATE_NUM + 4) +#define SCU0_CLK_HPLL (SCU0_CLK_GATE_NUM + 5)...
************* Email Confidentiality Notice ********************
????:
???(????)????????????????? ???????????????????????????, ??????????????????????????????!
DISCLAIMER:
This message (and any attachments) may contain legally privileged and/or other confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents. Thank you.
Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 52 lines · Ryan Chen
Quoted 52 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit :
Quoted 5 lines
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/clock/aspeed,ast2700-clk.h | 175++++++++++++++++++
Quoted 43 lines
1 file changed, 175 insertions(+)create mode 100644
include/dt-bindings/clock/aspeed,ast2700-clk.hinclude/dt-bindings/clock/aspeed,ast2700-clk.h new file +33
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Device Tree binding constants for AST2700 clock controller. +* +* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef __DT_BINDINGS_CLOCK_AST2700_H#define +__DT_BINDINGS_CLOCK_AST2700_H + +/* SOC0 clk-gate */ +#define SCU0_CLK_GATE_MCLK (0) +#define SCU0_CLK_GATE_ECLK (1) +#define SCU0_CLK_GATE_2DCLK (2) +#define SCU0_CLK_GATE_VCLK (3) +#define SCU0_CLK_GATE_BCLK (4) +#define SCU0_CLK_GATE_VGA0CLK (5) +#define SCU0_CLK_GATE_REFCLK (6) +#define SCU0_CLK_GATE_PORTBUSB2CLK (7) +#define SCU0_CLK_GATE_RSV8 (8) +#define SCU0_CLK_GATE_UHCICLK (9) +#define SCU0_CLK_GATE_VGA1CLK (10) +#define SCU0_CLK_GATE_DDRPHYCLK (11) +#define SCU0_CLK_GATE_E2M0CLK (12) +#define SCU0_CLK_GATE_HACCLK (13) +#define SCU0_CLK_GATE_PORTAUSB2CLK (14) +#define SCU0_CLK_GATE_UART4CLK (15) +#define SCU0_CLK_GATE_SLICLK (16) +#define SCU0_CLK_GATE_DACCLK (17) +#define SCU0_CLK_GATE_DP (18) +#define SCU0_CLK_GATE_E2M1CLK (19) +#define SCU0_CLK_GATE_CRT0CLK (20) +#define SCU0_CLK_GATE_CRT1CLK (21)
Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 41
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+#define SCU0_CLK_GATE_VLCLK (22) +#define SCU0_CLK_GATE_ECDSACLK (23) +#define SCU0_CLK_GATE_RSACLK (24) +#define SCU0_CLK_GATE_RVAS0CLK (25) +#define SCU0_CLK_GATE_UFSCLK (26) +#define SCU0_CLK_GATE_EMMCCLK (27) +#define SCU0_CLK_GATE_RVAS1CLK (28) +/* reserved 29 ~ 31*/
No, you cannot reserve IDs. They are always continous.
Quoted 1 line
Quoted 1 line
include/dt-bindings/clock/aspeed,ast2700-clk.h line 42
Quoted 1 line
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +1
-0+#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RVAS1CLK + 1)
No, not a binding.
Quoted 24 lines
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 45
Quoted 3 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +3
-0+ +/* SOC0 clk */ +#define SCU0_CLKIN (SCU0_CLK_GATE_NUM + 0)So
SCU0_CLKINis 28+1+0 = 29 which is said to be reserved in the comment above.Acutely, I keep reserved is because data sheet has reserved bits from 29~31. If you have concern about it, I can remove the comment.
Or are you prefer by following?#define SCU0_CLK_GATE_RESERVED29 (29) #define SCU0_CLK_GATE_RESERVED30 (30) #define SCU0_CLK_GATE_RESERVED31 (31)#define
SCU0_CLK_GATE_NUM(SCU0_CLK_GATE_RESERVED31+ 1)Quoted 8 lines
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +5
-0+#define SCU0_CLK_24M (SCU0_CLK_GATE_NUM + 1) +#define SCU0_CLK_192M (SCU0_CLK_GATE_NUM + 2) +#define SCU0_CLK_UART (SCU0_CLK_GATE_NUM + 3) +#define SCU0_CLK_PSP (SCU0_CLK_GATE_NUM + 4) +#define SCU0_CLK_HPLL (SCU0_CLK_GATE_NUM + 5)...
Quoted 6 lines
************* Email Confidentiality Notice ********************
????:
???(????)????????????????? ???????????????????????????, ??????????????????????????????!DISCLAIMER:
This message (and any attachments) may contain legally privileged and/or other confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents. Thank you.
Maybe I am the intended recipient of your message, maybe not. I don't want to have any legal questions regarding upstream, public collaboration, thus probably I should just remove your messages.
Please talk with your IT that such disclaimers in open-source are not desired (and maybe even harmful).
If you do not understand why, please also see:
https://www.youtube.com/live/fMeH7wqOwXA?si=GY7igfbda6vnjXlJ&t=835
If you need to go around company SMTP server, then consider using b4
web-relay: https://b4.docs.kernel.org/en/latest/contributor/send.html
Please be informed that by responding to this email you agree that all communications from you and/or your company is made public. In other words, all messages originating from you and/or your company will be made public.
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 59 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 31 lines · Ryan Chen
Quoted 31 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit :
Quoted 5 lines
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/clock/aspeed,ast2700-clk.h | 175++++++++++++++++++
Quoted 21 lines
1 file changed, 175 insertions(+)create mode 100644
include/dt-bindings/clock/aspeed,ast2700-clk.hinclude/dt-bindings/clock/aspeed,ast2700-clk.h new file +11
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Device Tree binding constants for AST2700 clock controller. +* +* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef __DT_BINDINGS_CLOCK_AST2700_H#define +__DT_BINDINGS_CLOCK_AST2700_H + +/* SOC0 clk-gate */ Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+#define SCU0_CLK_GATE_MCLK (0) +#define SCU0_CLK_GATE_ECLK (1) +#define SCU0_CLK_GATE_2DCLK (2) +#define SCU0_CLK_GATE_VCLK (3) +#define SCU0_CLK_GATE_BCLK (4) +#define SCU0_CLK_GATE_VGA0CLK (5) +#define SCU0_CLK_GATE_REFCLK (6) +#define SCU0_CLK_GATE_PORTBUSB2CLK (7) #define
SCU0_CLK_GATE_RSV8Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +16
-0+(8) +#define SCU0_CLK_GATE_UHCICLK (9) +#define SCU0_CLK_GATE_VGA1CLK (10) +#define SCU0_CLK_GATE_DDRPHYCLK (11) +#define SCU0_CLK_GATE_E2M0CLK (12) +#define SCU0_CLK_GATE_HACCLK (13) +#define SCU0_CLK_GATE_PORTAUSB2CLK (14) +#define SCU0_CLK_GATE_UART4CLK (15) +#define SCU0_CLK_GATE_SLICLK (16) +#define SCU0_CLK_GATE_DACCLK (17) +#define SCU0_CLK_GATE_DP (18) +#define SCU0_CLK_GATE_E2M1CLK (19) +#define SCU0_CLK_GATE_CRT0CLK (20) +#define SCU0_CLK_GATE_CRT1CLK (21) +#define SCU0_CLK_GATE_VLCLK (22) +#define SCU0_CLK_GATE_ECDSACLK (23)
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 41
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +6
-0+#define SCU0_CLK_GATE_RSACLK (24) +#define SCU0_CLK_GATE_RVAS0CLK (25) +#define SCU0_CLK_GATE_UFSCLK (26) +#define SCU0_CLK_GATE_EMMCCLK (27) +#define SCU0_CLK_GATE_RVAS1CLK (28) +/* reserved 29 ~ 31*/ No, you cannot reserve IDs. They are always continous.
I think for mis-understood.
I will remove the comment.
And keep it is continuous. Thanks.
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 42
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +1
-0+#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RVAS1CLK + 1)No, not a binding.
I will modify the subject.
Quoted 49 lines
Quoted 25 lines
Quoted 7 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 45
Quoted 4 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +3
-0+ +/* SOC0 clk */ +#define SCU0_CLKIN (SCU0_CLK_GATE_NUM + 0)So
SCU0_CLKINis 28+1+0 = 29 which is said to be reserved in the comment above.Acutely, I keep reserved is because data sheet has reserved bits from 29~31. If you have concern about it, I can remove the comment.
Or are you prefer by following?#define SCU0_CLK_GATE_RESERVED29 (29) #define SCU0_CLK_GATE_RESERVED30 (30) #define SCU0_CLK_GATE_RESERVED31 (31)#define
SCU0_CLK_GATE_NUM(SCU0_CLK_GATE_RESERVED31+ 1)Quoted 8 lines
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +5
-0+#define SCU0_CLK_24M (SCU0_CLK_GATE_NUM + 1) +#define SCU0_CLK_192M (SCU0_CLK_GATE_NUM + 2) +#define SCU0_CLK_UART (SCU0_CLK_GATE_NUM + 3) +#define SCU0_CLK_PSP (SCU0_CLK_GATE_NUM + 4) +#define SCU0_CLK_HPLL (SCU0_CLK_GATE_NUM + 5)...
Quoted 3 lines
************* Email Confidentiality Notice ******************** ????:
???(????)????????????????? ???????????????????????????, ?????????
?????????????????????!Quoted 3 lines
DISCLAIMER:
This message (and any attachments) may contain legally privileged and/orother confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents. Thank you.
Maybe I am the intended recipient of your message, maybe not. I don't want to have any legal questions regarding upstream, public collaboration, thus probably I should just remove your messages.
Please talk with your IT that such disclaimers in open-source are not desired (and maybe even harmful).
If you do not understand why, please also see:
https://www.youtube.com/live/fMeH7wqOwXA?si=GY7igfbda6vnjXlJ&t=835If you need to go around company SMTP server, then consider using b4
web-relay: https://b4.docs.kernel.org/en/latest/contributor/send.html
Quoted 6 lines
Please be informed that by responding to this email you agree that all communications from you and/or your company is made public. In other words, all messages originating from you and/or your company will be made public.
Best regards,
Krzysztof
************* Email Confidentiality Notice ********************
????:
???(????)????????????????? ???????????????????????????, ??????????????????????????????!
DISCLAIMER:
This message (and any attachments) may contain legally privileged and/or other confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents. Thank you.
Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 5 lines · Ryan Chen
Quoted 5 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 2 lines · Ryan Chen
Quoted 2 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Again you keep sending "confidential" emails. I am not going to continue this.
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
In reply to Ryan ChenQuoted 71 lines
Subject: RE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 61 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 32 lines · Ryan Chen
Quoted 32 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit :
Quoted 5 lines
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/clock/aspeed,ast2700-clk.h | 175++++++++++++++++++
Quoted 22 lines
1 file changed, 175 insertions(+)create mode 100644
include/dt-bindings/clock/aspeed,ast2700-clk.hinclude/dt-bindings/clock/aspeed,ast2700-clk.h new file +11
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Device Tree binding constants for AST2700 clock controller. +* +* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef __DT_BINDINGS_CLOCK_AST2700_H#define +__DT_BINDINGS_CLOCK_AST2700_H + +/* SOC0 clk-gate */ Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+#define SCU0_CLK_GATE_MCLK (0) +#define SCU0_CLK_GATE_ECLK (1) +#define SCU0_CLK_GATE_2DCLK (2) +#define SCU0_CLK_GATE_VCLK (3) +#define SCU0_CLK_GATE_BCLK (4) +#define SCU0_CLK_GATE_VGA0CLK (5) +#define SCU0_CLK_GATE_REFCLK (6) +#define SCU0_CLK_GATE_PORTBUSB2CLK (7) #define
SCU0_CLK_GATE_RSV8Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +16
-0+(8) +#define SCU0_CLK_GATE_UHCICLK (9) +#define SCU0_CLK_GATE_VGA1CLK (10) +#define SCU0_CLK_GATE_DDRPHYCLK (11) +#define SCU0_CLK_GATE_E2M0CLK (12) +#define SCU0_CLK_GATE_HACCLK (13) +#define SCU0_CLK_GATE_PORTAUSB2CLK (14) +#define SCU0_CLK_GATE_UART4CLK (15) +#define SCU0_CLK_GATE_SLICLK (16) +#define SCU0_CLK_GATE_DACCLK (17) +#define SCU0_CLK_GATE_DP (18) +#define SCU0_CLK_GATE_E2M1CLK (19) +#define SCU0_CLK_GATE_CRT0CLK (20) +#define SCU0_CLK_GATE_CRT1CLK (21) +#define SCU0_CLK_GATE_VLCLK (22) +#define SCU0_CLK_GATE_ECDSACLK (23)Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 41
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +6
-0+#define SCU0_CLK_GATE_RSACLK (24) +#define SCU0_CLK_GATE_RVAS0CLK (25) +#define SCU0_CLK_GATE_UFSCLK (26) +#define SCU0_CLK_GATE_EMMCCLK (27) +#define SCU0_CLK_GATE_RVAS1CLK (28) +/* reserved 29 ~ 31*/ No, you cannot reserve IDs. They are always continous.
Quoted 8 lines
I think for mis-understood.
I will remove the comment.
And keep it is continuous. Thanks.Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 42
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +1
-0+#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RVAS1CLK + 1)No, not a binding.
I will modify by following.
#define SCU0_CLK_GATE_RVAS1CLK (28)
#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RVAS1CLK + 1)
Quoted 77 lines
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 45
Quoted 5 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +3
-0+ +/* SOC0 clk */ +#define SCU0_CLKIN (SCU0_CLK_GATE_NUM + 0)So
SCU0_CLKINis 28+1+0 = 29 which is said to be reserved in the comment above.Acutely, I keep reserved is because data sheet has reserved bits from
29~31.
Quoted 6 lines
Quoted 6 lines
If you have concern about it, I can remove the comment. Or are you prefer by following?
#define SCU0_CLK_GATE_RESERVED29 (29) #define SCU0_CLK_GATE_RESERVED30 (30) #define SCU0_CLK_GATE_RESERVED31 (31)#define
SCU0_CLK_GATE_NUM(SCU0_CLK_GATE_RESERVED31+1)
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 46
Quoted 3 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +1
-0+#define SCU0_CLK_24M (SCU0_CLK_GATE_NUM +1)
Quoted 1 line
Quoted 1 line
Quoted 1 line
include/dt-bindings/clock/aspeed,ast2700-clk.h line 47
Quoted 1 line
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +1
-0+#define SCU0_CLK_192M (SCU0_CLK_GATE_NUM +2)
Quoted 1 line
Quoted 1 line
Quoted 1 line
include/dt-bindings/clock/aspeed,ast2700-clk.h line 48
Quoted 1 line
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +1
-0+#define SCU0_CLK_UART (SCU0_CLK_GATE_NUM +3)
Quoted 9 lines
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +2
-0+#define SCU0_CLK_PSP (SCU0_CLK_GATE_NUM + 4) +#define SCU0_CLK_HPLL (SCU0_CLK_GATE_NUM + 5)...
************* Email Confidentiality Notice ******************** ????:
???(????)????????????????? ???????????????????????????, ????????
?
Quoted 8 lines
?????????????????????!
Quoted 4 lines
DISCLAIMER:
This message (and any attachments) may contain legally privileged and/orother confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents.
Thank you.
Quoted 10 lines
Maybe I am the intended recipient of your message, maybe not. I don't want to have any legal questions regarding upstream, public collaboration, thus probably I should just remove your messages.
Please talk with your IT that such disclaimers in open-source are not desired (and maybe even harmful).
If you do not understand why, please also see:
https://www.youtube.com/live/fMeH7wqOwXA?si=GY7igfbda6vnjXlJ&t=835Quoted 6 lines
If you need to go around company SMTP server, then consider using b4
web-relay: https://b4.docs.kernel.org/en/latest/contributor/send.htmlPlease be informed that by responding to this email you agree that all communications from you and/or your company is made public. In other words, all messages originating from you and/or your company will be made
public.
Quoted 3 lines
Best regards,
Krzysztof************* Email Confidentiality Notice ******************** ????:
???(????)????????????????? ?????? ?????????????????????, ?????????? ????????????????????!DISCLAIMER:
This message (and any attachments) may contain legally privileged and/or other confidential information. If you have received it in error, please notify the sender by reply e-mail and immediately delete the e-mail and any attachments without copying or disclosing the contents. Thank you.
Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 75 lines · Ryan Chen
Quoted 75 lines
Subject: RE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 61 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 32 lines · Ryan Chen
Quoted 32 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit :
Quoted 5 lines
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/clock/aspeed,ast2700-clk.h | 175++++++++++++++++++
Quoted 22 lines
1 file changed, 175 insertions(+)create mode 100644
include/dt-bindings/clock/aspeed,ast2700-clk.hinclude/dt-bindings/clock/aspeed,ast2700-clk.h new file +11
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Device Tree binding constants for AST2700 clock controller. +* +* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef __DT_BINDINGS_CLOCK_AST2700_H#define +__DT_BINDINGS_CLOCK_AST2700_H + +/* SOC0 clk-gate */ Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+#define SCU0_CLK_GATE_MCLK (0) +#define SCU0_CLK_GATE_ECLK (1) +#define SCU0_CLK_GATE_2DCLK (2) +#define SCU0_CLK_GATE_VCLK (3) +#define SCU0_CLK_GATE_BCLK (4) +#define SCU0_CLK_GATE_VGA0CLK (5) +#define SCU0_CLK_GATE_REFCLK (6) +#define SCU0_CLK_GATE_PORTBUSB2CLK (7) #define
SCU0_CLK_GATE_RSV8Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +16
-0+(8) +#define SCU0_CLK_GATE_UHCICLK (9) +#define SCU0_CLK_GATE_VGA1CLK (10) +#define SCU0_CLK_GATE_DDRPHYCLK (11) +#define SCU0_CLK_GATE_E2M0CLK (12) +#define SCU0_CLK_GATE_HACCLK (13) +#define SCU0_CLK_GATE_PORTAUSB2CLK (14) +#define SCU0_CLK_GATE_UART4CLK (15) +#define SCU0_CLK_GATE_SLICLK (16) +#define SCU0_CLK_GATE_DACCLK (17) +#define SCU0_CLK_GATE_DP (18) +#define SCU0_CLK_GATE_E2M1CLK (19) +#define SCU0_CLK_GATE_CRT0CLK (20) +#define SCU0_CLK_GATE_CRT1CLK (21) +#define SCU0_CLK_GATE_VLCLK (22) +#define SCU0_CLK_GATE_ECDSACLK (23)Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 41
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +6
-0+#define SCU0_CLK_GATE_RSACLK (24) +#define SCU0_CLK_GATE_RVAS0CLK (25) +#define SCU0_CLK_GATE_UFSCLK (26) +#define SCU0_CLK_GATE_EMMCCLK (27) +#define SCU0_CLK_GATE_RVAS1CLK (28) +/* reserved 29 ~ 31*/ No, you cannot reserve IDs. They are always continous.
I think for mis-understood.
I will remove the comment.
And keep it is continuous. Thanks.Quoted 1 line
Quoted 8 lines
Quoted 4 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
include/dt-bindings/clock/aspeed,ast2700-clk.h line 42
Quoted 1 line
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +1
-0+#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RVAS1CLK + 1)No, not a binding.
I will modify by following.
#define
SCU0_CLK_GATE_RVAS1CLK(28)
#defineSCU0_CLK_GATE_NUM(SCU0_CLK_GATE_RVAS1CLK+ 1)
Nothing changed. Still not a binding. Why do you send the same and expect different result? Drop.
Address feedback sent to you from previous versions of the patchset. There was never a reply.
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 85 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 82 lines · Ryan Chen
Quoted 72 lines
Subject: RE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 61 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 32 lines · Ryan Chen
Quoted 32 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit :
Quoted 5 lines
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/clock/aspeed,ast2700-clk.h | 175++++++++++++++++++
Quoted 22 lines
1 file changed, 175 insertions(+)create mode 100644
include/dt-bindings/clock/aspeed,ast2700-clk.hinclude/dt-bindings/clock/aspeed,ast2700-clk.h new file +11
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Device Tree binding constants for AST2700 clock controller. +* +* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef __DT_BINDINGS_CLOCK_AST2700_H#define +__DT_BINDINGS_CLOCK_AST2700_H + +/* SOC0 clk-gate */ Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 19
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+#define SCU0_CLK_GATE_MCLK (0) +#define SCU0_CLK_GATE_ECLK (1) +#define SCU0_CLK_GATE_2DCLK (2) +#define SCU0_CLK_GATE_VCLK (3) +#define SCU0_CLK_GATE_BCLK (4) +#define SCU0_CLK_GATE_VGA0CLK (5) +#define SCU0_CLK_GATE_REFCLK (6) +#define SCU0_CLK_GATE_PORTBUSB2CLK (7) #define
SCU0_CLK_GATE_RSV8Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +16
-0+(8) +#define SCU0_CLK_GATE_UHCICLK (9) +#define SCU0_CLK_GATE_VGA1CLK (10) +#define SCU0_CLK_GATE_DDRPHYCLK (11) +#define SCU0_CLK_GATE_E2M0CLK (12) +#define SCU0_CLK_GATE_HACCLK (13) +#define SCU0_CLK_GATE_PORTAUSB2CLK (14) +#define SCU0_CLK_GATE_UART4CLK (15) +#define SCU0_CLK_GATE_SLICLK (16) +#define SCU0_CLK_GATE_DACCLK (17) +#define SCU0_CLK_GATE_DP (18) +#define SCU0_CLK_GATE_E2M1CLK (19) +#define SCU0_CLK_GATE_CRT0CLK (20) +#define SCU0_CLK_GATE_CRT1CLK (21) +#define SCU0_CLK_GATE_VLCLK (22) +#define SCU0_CLK_GATE_ECDSACLK (23)Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 41
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +6
-0+#define SCU0_CLK_GATE_RSACLK (24) +#define SCU0_CLK_GATE_RVAS0CLK (25) +#define SCU0_CLK_GATE_UFSCLK (26) +#define SCU0_CLK_GATE_EMMCCLK (27) +#define SCU0_CLK_GATE_RVAS1CLK (28) +/* reserved 29 ~ 31*/ No, you cannot reserve IDs. They are always continous.
Quoted 8 lines
I think for mis-understood.
I will remove the comment.
And keep it is continuous. Thanks.Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 42
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +1
-0+#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RVAS1CLK + 1)No, not a binding.
I will modify by following.
Quoted 8 lines
Quoted 2 lines
#define
SCU0_CLK_GATE_RVAS1CLK(28)
#defineSCU0_CLK_GATE_NUM(SCU0_CLK_GATE_RVAS1CLK+ 1)Nothing changed. Still not a binding. Why do you send the same and expect different result? Drop.
Address feedback sent to you from previous versions of the patchset. There was never a reply.
Sorry, mis-understood.
Since you think "#define SCU0_CLK_GATE_NUM" not a binding.
Do you mean I should #define SCU0_CLK_GATE_NUM in clk driver, not in binding header, am I right?
Quoted 3 lines
Best regards,
Krzysztof
Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 88 lines · Ryan Chen
Quoted 88 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 84 lines · Ryan Chen
Quoted 72 lines
Subject: RE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 61 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 32 lines · Ryan Chen
Quoted 32 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit :
Quoted 5 lines
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/clock/aspeed,ast2700-clk.h | 175++++++++++++++++++
Quoted 22 lines
1 file changed, 175 insertions(+)create mode 100644
include/dt-bindings/clock/aspeed,ast2700-clk.hinclude/dt-bindings/clock/aspeed,ast2700-clk.h new file +11
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Device Tree binding constants for AST2700 clock controller. +* +* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef __DT_BINDINGS_CLOCK_AST2700_H#define +__DT_BINDINGS_CLOCK_AST2700_H + +/* SOC0 clk-gate */ Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 19
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+#define SCU0_CLK_GATE_MCLK (0) +#define SCU0_CLK_GATE_ECLK (1) +#define SCU0_CLK_GATE_2DCLK (2) +#define SCU0_CLK_GATE_VCLK (3) +#define SCU0_CLK_GATE_BCLK (4) +#define SCU0_CLK_GATE_VGA0CLK (5) +#define SCU0_CLK_GATE_REFCLK (6) +#define SCU0_CLK_GATE_PORTBUSB2CLK (7) #define
SCU0_CLK_GATE_RSV8Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +16
-0+(8) +#define SCU0_CLK_GATE_UHCICLK (9) +#define SCU0_CLK_GATE_VGA1CLK (10) +#define SCU0_CLK_GATE_DDRPHYCLK (11) +#define SCU0_CLK_GATE_E2M0CLK (12) +#define SCU0_CLK_GATE_HACCLK (13) +#define SCU0_CLK_GATE_PORTAUSB2CLK (14) +#define SCU0_CLK_GATE_UART4CLK (15) +#define SCU0_CLK_GATE_SLICLK (16) +#define SCU0_CLK_GATE_DACCLK (17) +#define SCU0_CLK_GATE_DP (18) +#define SCU0_CLK_GATE_E2M1CLK (19) +#define SCU0_CLK_GATE_CRT0CLK (20) +#define SCU0_CLK_GATE_CRT1CLK (21) +#define SCU0_CLK_GATE_VLCLK (22) +#define SCU0_CLK_GATE_ECDSACLK (23)Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 41
Quoted 6 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +6
-0+#define SCU0_CLK_GATE_RSACLK (24) +#define SCU0_CLK_GATE_RVAS0CLK (25) +#define SCU0_CLK_GATE_UFSCLK (26) +#define SCU0_CLK_GATE_EMMCCLK (27) +#define SCU0_CLK_GATE_RVAS1CLK (28) +/* reserved 29 ~ 31*/ No, you cannot reserve IDs. They are always continous.
Quoted 8 lines
I think for mis-understood.
I will remove the comment.
And keep it is continuous. Thanks.Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 42
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +1
-0+#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RVAS1CLK + 1)No, not a binding.
I will modify by following.
#define
SCU0_CLK_GATE_RVAS1CLK(28)
#defineSCU0_CLK_GATE_NUM(SCU0_CLK_GATE_RVAS1CLK+ 1)
Quoted 8 lines
Quoted 5 lines
Nothing changed. Still not a binding. Why do you send the same and expect different result? Drop.
Address feedback sent to you from previous versions of the patchset. There was never a reply.
Sorry, mis-understood.
Since you think "#defineSCU0_CLK_GATE_NUM" not a binding.
Do you mean I should #defineSCU0_CLK_GATE_NUMin clk driver, not in binding header, am I right?
What did I write in the first Aspeed 2700 patch? So you are not going to respond there? Are you going to implement entire feedback received in the first version of the patchset?
Drop from the header. I am not saying you need to define it in the driver, because maybe it is pointless anyway.
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 98 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 36 lines · Ryan Chen
Quoted 36 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 32 lines · Ryan Chen
Quoted 32 lines
Subject: RE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 29 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 25 lines · Ryan Chen
Quoted 25 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit :
Quoted 5 lines
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/clock/aspeed,ast2700-clk.h | 175++++++++++++++++++
Quoted 15 lines
1 file changed, 175 insertions(+)create mode 100644
include/dt-bindings/clock/aspeed,ast2700-clk.hinclude/dt-bindings/clock/aspeed,ast2700-clk.h new file +4
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* +* Device Tree binding constants for AST2700 clock controller. +* Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 12
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef __DT_BINDINGS_CLOCK_AST2700_H#define +__DT_BINDINGS_CLOCK_AST2700_H + +/* SOC0 clk-gate */ +#define SCU0_CLK_GATE_MCLK (0) #define
SCU0_CLK_GATE_ECLK(1)Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 14
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +2
-0+#define SCU0_CLK_GATE_2DCLK (2) +#define SCU0_CLK_GATE_VCLK (3) #define SCU0_CLK_GATE_BCLK(4)
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 3 lines
Quoted 3 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 17
Quoted 3 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +3
-0+#define SCU0_CLK_GATE_VGA0CLK (5) +#define SCU0_CLK_GATE_REFCLK (6) +#define SCU0_CLK_GATE_PORTBUSB2CLK (7) #define
SCU0_CLK_GATE_RSV8Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +14
-0+(8) +#define SCU0_CLK_GATE_UHCICLK (9) +#define SCU0_CLK_GATE_VGA1CLK (10) +#define SCU0_CLK_GATE_DDRPHYCLK (11) +#define SCU0_CLK_GATE_E2M0CLK (12) +#define SCU0_CLK_GATE_HACCLK (13) +#define SCU0_CLK_GATE_PORTAUSB2CLK (14) +#define SCU0_CLK_GATE_UART4CLK (15) +#define SCU0_CLK_GATE_SLICLK (16) +#define SCU0_CLK_GATE_DACCLK (17) +#define SCU0_CLK_GATE_DP (18) +#define SCU0_CLK_GATE_E2M1CLK (19) +#define SCU0_CLK_GATE_CRT0CLK (20) +#define SCU0_CLK_GATE_CRT1CLK (21)Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 39
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+#define SCU0_CLK_GATE_VLCLK (22) +#define SCU0_CLK_GATE_ECDSACLK (23) +#define SCU0_CLK_GATE_RSACLK (24) +#define SCU0_CLK_GATE_RVAS0CLK (25) +#define SCU0_CLK_GATE_UFSCLK (26) +#define SCU0_CLK_GATE_EMMCCLK (27) +#define SCU0_CLK_GATE_RVAS1CLK (28) +/* reserved 29 ~ 31*/ No, you cannot reserve IDs. They are always continous.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
I think for mis-understood.
I will remove the comment.
And keep it is continuous. Thanks.Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +1
-0+#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RVAS1CLK +1)
Quoted 13 lines
Quoted 13 lines
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
No, not a binding.
I will modify by following.
#define
SCU0_CLK_GATE_RVAS1CLK(28)
#defineSCU0_CLK_GATE_NUM(SCU0_CLK_GATE_RVAS1CLK+ 1)Nothing changed. Still not a binding. Why do you send the same and expect different result? Drop.
Address feedback sent to you from previous versions of the patchset. There was never a reply.
Quoted 8 lines
Quoted 3 lines
Sorry, mis-understood.
Since you think "#defineSCU0_CLK_GATE_NUM" not a binding. Do you mean I should #defineSCU0_CLK_GATE_NUMin clk driver, not inbinding header, am I right?
What did I write in the first Aspeed 2700 patch? So you are not going to respond there? Are you going to implement entire feedback received in the first version of the patchset?
Apologize again, I do the internal discussion, it should not send "Introduce ASPEED AST27XX BMC SoC" series patch. it should be separate series patch. It should be bite by bite, example clk driver patches, platform patches, interrupt patches.
So I am not going to response there, prefer here.
So I still not understood your point "not a binding" is ~
Quoted 6 lines
Drop from the header. I am not saying you need to define it in the driver, because maybe it is pointless anyway.
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 113 lines
Subject: RE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 50 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 37 lines · Ryan Chen
Quoted 37 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 33 lines · Ryan Chen
Quoted 33 lines
Subject: RE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 30 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 26 lines · Ryan Chen
Quoted 26 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit :
Quoted 5 lines
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/clock/aspeed,ast2700-clk.h | 175++++++++++++++++++
Quoted 16 lines
1 file changed, 175 insertions(+)create mode 100644
include/dt-bindings/clock/aspeed,ast2700-clk.hinclude/dt-bindings/clock/aspeed,ast2700-clk.h new file +5
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +*/ +/* +* Device Tree binding constants for AST2700 clock controller. +* Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 13
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef __DT_BINDINGS_CLOCK_AST2700_H#define +__DT_BINDINGS_CLOCK_AST2700_H + +/* SOC0 clk-gate */ +#define SCU0_CLK_GATE_MCLK (0) #define
SCU0_CLK_GATE_ECLK(1)Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 15
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +2
-0+#define SCU0_CLK_GATE_2DCLK (2) +#define SCU0_CLK_GATE_VCLK (3) #define
SCU0_CLK_GATE_BCLKQuoted 29 lines
(4)
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 3 lines
Quoted 3 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 18
Quoted 3 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +3
-0+#define SCU0_CLK_GATE_VGA0CLK (5) +#define SCU0_CLK_GATE_REFCLK (6) +#define SCU0_CLK_GATE_PORTBUSB2CLK (7) #define
SCU0_CLK_GATE_RSV8Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +14
-0+(8) +#define SCU0_CLK_GATE_UHCICLK (9) +#define SCU0_CLK_GATE_VGA1CLK (10) +#define SCU0_CLK_GATE_DDRPHYCLK (11) +#define SCU0_CLK_GATE_E2M0CLK (12) +#define SCU0_CLK_GATE_HACCLK (13) +#define SCU0_CLK_GATE_PORTAUSB2CLK (14) +#define SCU0_CLK_GATE_UART4CLK (15) +#define SCU0_CLK_GATE_SLICLK (16) +#define SCU0_CLK_GATE_DACCLK (17) +#define SCU0_CLK_GATE_DP (18) +#define SCU0_CLK_GATE_E2M1CLK (19) +#define SCU0_CLK_GATE_CRT0CLK (20) +#define SCU0_CLK_GATE_CRT1CLK (21)Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 40
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+#define SCU0_CLK_GATE_VLCLK (22) +#define SCU0_CLK_GATE_ECDSACLK (23) +#define SCU0_CLK_GATE_RSACLK (24) +#define SCU0_CLK_GATE_RVAS0CLK (25) +#define SCU0_CLK_GATE_UFSCLK (26) +#define SCU0_CLK_GATE_EMMCCLK (27) +#define SCU0_CLK_GATE_RVAS1CLK (28) +/* reserved 29 ~ 31*/ No, you cannot reserve IDs. They are always continous.
Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
I think for mis-understood.
I will remove the comment.
And keep it is continuous. Thanks.Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +1
-0+#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RVAS1CLK +1)
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
No, not a binding.
I will modify by following.
#define
SCU0_CLK_GATE_RVAS1CLK(28)
#defineSCU0_CLK_GATE_NUM(SCU0_CLK_GATE_RVAS1CLK+1)
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Nothing changed. Still not a binding. Why do you send the same and expect different result? Drop.
Address feedback sent to you from previous versions of the patchset. There was never a reply.
Quoted 8 lines
Quoted 3 lines
Sorry, mis-understood.
Since you think "#defineSCU0_CLK_GATE_NUM" not a binding. Do you mean I should #defineSCU0_CLK_GATE_NUMin clk driver, not inbinding header, am I right?
What did I write in the first Aspeed 2700 patch? So you are not going to respond there? Are you going to implement entire feedback received in the first version of the patchset?
Quoted 9 lines
Apologize again, I do the internal discussion, it should not send "Introduce ASPEED AST27XX BMC SoC" series patch. it should be separate series patch. It should be bite by bite, example clk driver patches, platform patches, interrupt patches.
So I am not going to response there, prefer here.So I still not understood your point "not a binding" is ~
I review your point on
https://patchwork.kernel.org/project/linux-clk/patch/20240726110355.2181563-3-kevin_chen at aspeedtech.com/
Do you mean I should not be gate naming here, all should be clk. Example +#define SCU0_CLK_GATE_RVAS1CLK -> +#define SCU0_CLK_RVAS1 am I right?
Quoted 7 lines
Quoted 7 lines
Drop from the header. I am not saying you need to define it in the driver, because maybe it is pointless anyway.
Best regards,
Krzysztof
Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 119 lines · Ryan Chen
Quoted 119 lines
Subject: RE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 50 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 37 lines · Ryan Chen
Quoted 37 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 33 lines · Ryan Chen
Quoted 33 lines
Subject: RE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 30 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 26 lines · Ryan Chen
Quoted 26 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit :
Quoted 5 lines
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/clock/aspeed,ast2700-clk.h | 175++++++++++++++++++
Quoted 16 lines
1 file changed, 175 insertions(+)create mode 100644
include/dt-bindings/clock/aspeed,ast2700-clk.hinclude/dt-bindings/clock/aspeed,ast2700-clk.h new file +5
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +*/ +/* +* Device Tree binding constants for AST2700 clock controller. +* Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 13
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef __DT_BINDINGS_CLOCK_AST2700_H#define +__DT_BINDINGS_CLOCK_AST2700_H + +/* SOC0 clk-gate */ +#define SCU0_CLK_GATE_MCLK (0) #define
SCU0_CLK_GATE_ECLK(1)Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 15
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +2
-0+#define SCU0_CLK_GATE_2DCLK (2) +#define SCU0_CLK_GATE_VCLK (3) #define
SCU0_CLK_GATE_BCLKQuoted 29 lines
(4)
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 3 lines
Quoted 3 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 18
Quoted 3 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +3
-0+#define SCU0_CLK_GATE_VGA0CLK (5) +#define SCU0_CLK_GATE_REFCLK (6) +#define SCU0_CLK_GATE_PORTBUSB2CLK (7) #define
SCU0_CLK_GATE_RSV8Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +14
-0+(8) +#define SCU0_CLK_GATE_UHCICLK (9) +#define SCU0_CLK_GATE_VGA1CLK (10) +#define SCU0_CLK_GATE_DDRPHYCLK (11) +#define SCU0_CLK_GATE_E2M0CLK (12) +#define SCU0_CLK_GATE_HACCLK (13) +#define SCU0_CLK_GATE_PORTAUSB2CLK (14) +#define SCU0_CLK_GATE_UART4CLK (15) +#define SCU0_CLK_GATE_SLICLK (16) +#define SCU0_CLK_GATE_DACCLK (17) +#define SCU0_CLK_GATE_DP (18) +#define SCU0_CLK_GATE_E2M1CLK (19) +#define SCU0_CLK_GATE_CRT0CLK (20) +#define SCU0_CLK_GATE_CRT1CLK (21)Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 40
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+#define SCU0_CLK_GATE_VLCLK (22) +#define SCU0_CLK_GATE_ECDSACLK (23) +#define SCU0_CLK_GATE_RSACLK (24) +#define SCU0_CLK_GATE_RVAS0CLK (25) +#define SCU0_CLK_GATE_UFSCLK (26) +#define SCU0_CLK_GATE_EMMCCLK (27) +#define SCU0_CLK_GATE_RVAS1CLK (28) +/* reserved 29 ~ 31*/ No, you cannot reserve IDs. They are always continous.
Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
I think for mis-understood.
I will remove the comment.
And keep it is continuous. Thanks.Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +1
-0+#define SCU0_CLK_GATE_NUM (SCU0_CLK_GATE_RVAS1CLK +1)
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
No, not a binding.
I will modify by following.
#define
SCU0_CLK_GATE_RVAS1CLK(28)
#defineSCU0_CLK_GATE_NUM(SCU0_CLK_GATE_RVAS1CLK+1)
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Nothing changed. Still not a binding. Why do you send the same and expect different result? Drop.
Address feedback sent to you from previous versions of the patchset. There was never a reply.
Quoted 8 lines
Quoted 3 lines
Sorry, mis-understood.
Since you think "#defineSCU0_CLK_GATE_NUM" not a binding. Do you mean I should #defineSCU0_CLK_GATE_NUMin clk driver, not inbinding header, am I right?
What did I write in the first Aspeed 2700 patch? So you are not going to respond there? Are you going to implement entire feedback received in the first version of the patchset?
Apologize again, I do the internal discussion, it should not send "Introduce ASPEED AST27XX BMC SoC" series patch. it should be separate series patch. It should be bite by bite, example clk driver patches, platform patches, interrupt patches.
So I am not going to response there, prefer here.
Quoted 8 lines
Quoted 3 lines
So I still not understood your point "not a binding" is ~
I review your point on
https://patchwork.kernel.org/project/linux-clk/patch/20240726110355.2181563-3-kevin_chen at aspeedtech.com/Do you mean I should not be gate naming here, all should be clk. Example +#define
SCU0_CLK_GATE_RVAS1CLK-> +#defineSCU0_CLK_RVAS1am I right?
Drop the define for number of clocks from the header, because it is not a binding. You can put it in the driver or not, I don't care and do not provide guidance on this because I don't know if it makes sense at all. What I know is that number of clocks is not related to binding. It is not needed in the binding, either.
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 136 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 85 lines · Ryan Chen
Quoted 85 lines
Subject: RE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 50 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 37 lines · Ryan Chen
Quoted 37 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 33 lines · Ryan Chen
Quoted 33 lines
Subject: RE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 30 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 26 lines · Ryan Chen
Quoted 26 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Le 08/08/2024 ? 09:59, Ryan Chen a ?crit :
Quoted 5 lines
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>--- .../dt-bindings/clock/aspeed,ast2700-clk.h | 175++++++++++++++++++
Quoted 16 lines
1 file changed, 175 insertions(+)create mode 100644
include/dt-bindings/clock/aspeed,ast2700-clk.hinclude/dt-bindings/clock/aspeed,ast2700-clk.h new file +5
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +*/ +/* +* Device Tree binding constants for AST2700 clock controller. +* Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 13
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+* Copyright (c) 2024 Aspeed Technology Inc. +*/ + +#ifndef __DT_BINDINGS_CLOCK_AST2700_H#define +__DT_BINDINGS_CLOCK_AST2700_H + +/* SOC0 clk-gate */ +#define SCU0_CLK_GATE_MCLK (0) #define
SCU0_CLK_GATE_ECLK(1)Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 15
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +2
-0+#define SCU0_CLK_GATE_2DCLK (2) +#define SCU0_CLK_GATE_VCLK (3) #define
SCU0_CLK_GATE_BCLKQuoted 29 lines
(4)
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 3 lines
Quoted 3 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 18
Quoted 3 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +3
-0+#define SCU0_CLK_GATE_VGA0CLK (5) +#define SCU0_CLK_GATE_REFCLK (6) +#define SCU0_CLK_GATE_PORTBUSB2CLK (7) #define
SCU0_CLK_GATE_RSV8Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +14
-0+(8) +#define SCU0_CLK_GATE_UHCICLK (9) +#define SCU0_CLK_GATE_VGA1CLK (10) +#define SCU0_CLK_GATE_DDRPHYCLK (11) +#define SCU0_CLK_GATE_E2M0CLK (12) +#define SCU0_CLK_GATE_HACCLK (13) +#define SCU0_CLK_GATE_PORTAUSB2CLK (14) +#define SCU0_CLK_GATE_UART4CLK (15) +#define SCU0_CLK_GATE_SLICLK (16) +#define SCU0_CLK_GATE_DACCLK (17) +#define SCU0_CLK_GATE_DP (18) +#define SCU0_CLK_GATE_E2M1CLK (19) +#define SCU0_CLK_GATE_CRT0CLK (20) +#define SCU0_CLK_GATE_CRT1CLK (21)Quoted 8 lines
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h line 40
Quoted 8 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +8
-0+#define SCU0_CLK_GATE_VLCLK (22) +#define SCU0_CLK_GATE_ECDSACLK (23) +#define SCU0_CLK_GATE_RSACLK (24) +#define SCU0_CLK_GATE_RVAS0CLK (25) +#define SCU0_CLK_GATE_UFSCLK (26) +#define SCU0_CLK_GATE_EMMCCLK (27) +#define SCU0_CLK_GATE_RVAS1CLK (28) +/* reserved 29 ~ 31*/ No, you cannot reserve IDs. They are always continous.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
I think for mis-understood.
I will remove the comment.
And keep it is continuous. Thanks.Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
include/dt-bindings/clock/aspeed,ast2700-clk.h new file +1
-0+#define SCU0_CLK_GATE_NUM (
SCU0_CLK_GATE_RVAS1CLK+Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
1)
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
No, not a binding.
I will modify by following.
#define
SCU0_CLK_GATE_RVAS1CLK(28)
#defineSCU0_CLK_GATE_NUM(SCU0_CLK_GATE_RVAS1CLK+
Quoted 11 lines
Quoted 11 lines
1)
Quoted 10 lines
Quoted 10 lines
Quoted 6 lines
Nothing changed. Still not a binding. Why do you send the same and expect different result? Drop.
Address feedback sent to you from previous versions of the patchset. There was never a reply.
Sorry, mis-understood.
Since you think "#defineSCU0_CLK_GATE_NUM" not a binding. Do you mean I should #defineSCU0_CLK_GATE_NUMin clk driver, not inQuoted 8 lines
Quoted 8 lines
Quoted 5 lines
binding header, am I right?
What did I write in the first Aspeed 2700 patch? So you are not going to respond there? Are you going to implement entire feedback received in the first version of the patchset?
Apologize again, I do the internal discussion, it should not send "Introduce ASPEED AST27XX BMC SoC" series patch. it should be separate
series patch.
Quoted 7 lines
Quoted 7 lines
It should be bite by bite, example clk driver patches, platform patches, interrupt patches.
So I am not going to response there, prefer here.So I still not understood your point "not a binding" is ~
Quoted 6 lines
I review your point on
https://patchwork.kernel.org/project/linux-clk/patch/20240726110355.21
81563-3-kevin_chen at aspeedtech.com/Do you mean I should not be gate naming here, all should be clk. Example +#define
SCU0_CLK_GATE_RVAS1CLK-> +#define
Quoted 7 lines
SCU0_CLK_RVAS1am I right?Drop the define for number of clocks from the header, because it is not a binding. You can put it in the driver or not, I don't care and do not provide guidance on this because I don't know if it makes sense at all. What I know is that number of clocks is not related to binding. It is not needed in the binding, either.
Sorry, I am confused.
if you think that number of clocks is not related to binding. How dtsi claim for clk?
For example in dtsi.
include <dt-bindings/clock/aspeed,ast2700-clk.h>
usb3bhp: usb3bhp {
....
clocks = <&syscon0 SCU0_CLK_GATE_PORTAUSB>;
...
}
It need for dtsi binding include for clock enable.
If there is no binding clock include file, how device know the clock index?
Quoted 3 lines
Best regards,
Krzysztof
Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 1 line · Ryan Chen
Quoted 1 line
Drop the define for number of clocks from the header, because it is not a
*NUMBER OF CLOCKS*
Quoted 3 lines
Quoted 3 lines
binding. You can put it in the driver or not, I don't care and do not provide guidance on this because I don't know if it makes sense at all. What I know is that number of clocks is not related to binding. It is not needed
*NUMBER OF CLOCKS*
Quoted 4 lines
Quoted 1 line
in the binding, either.
Sorry, I am confused.
if you think that number of clocks is not related to binding.
*NUMBER OF CLOCKS*
Quoted 6 lines
How dtsi claim for clk?
For example in dtsi.
include <dt-bindings/clock/aspeed,ast2700-clk.h>
usb3bhp: usb3bhp {
....
clocks = <&syscon0SCU0_CLK_GATE_PORTAUSB>;
And where is *NUMBER OF CLOCKS* here? I don't see any problem. No useless SCU0_CLK_GATE_NUM define here.
Quoted 6 lines
...
}It need for dtsi binding include for clock enable.
If there is no binding clock include file, how device know the clock index?
Just look how ALL other bindings for new platforms are doing it. Why are we discussing obvious kernel aspects? Spend time to read other drivers before posting yours.
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 29 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 2 lines · Ryan Chen
Quoted 2 lines
Drop the define for number of clocks from the header, because it is not a
*NUMBER OF CLOCKS*
Quoted 4 lines
Quoted 4 lines
binding. You can put it in the driver or not, I don't care and do not provide guidance on this because I don't know if it makes sense at all. What I know is that number of clocks is not related to binding. It is not needed
*NUMBER OF CLOCKS*
Quoted 4 lines
Quoted 1 line
in the binding, either.
Sorry, I am confused.
if you think that number of clocks is not related to binding.*NUMBER OF CLOCKS*
Quoted 6 lines
How dtsi claim for clk?
For example in dtsi.
include <dt-bindings/clock/aspeed,ast2700-clk.h>
usb3bhp: usb3bhp {
....
clocks = <&syscon0SCU0_CLK_GATE_PORTAUSB>;
Quoted 3 lines
And where is *NUMBER OF CLOCKS* here? I don't see any problem. No useless
SCU0_CLK_GATE_NUMdefine here.
Understood now, I will remove those *NUMBER OF CLOCKS*. And will replace to
#define SCU0_CLK_END 34
Refer:
https://github.com/torvalds/linux/blob/master/include/dt-bindings/clock/imx8-clock.h#L87
Quoted 13 lines
Quoted 6 lines
...
}It need for dtsi binding include for clock enable.
If there is no binding clock include file, how device know the clock index?
Just look how ALL other bindings for new platforms are doing it. Why are we discussing obvious kernel aspects? Spend time to read other drivers before posting yours.
Best regards,
Krzysztof
Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 29 lines · Ryan Chen
Quoted 29 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 2 lines · Ryan Chen
Quoted 2 lines
Drop the define for number of clocks from the header, because it is not a
*NUMBER OF CLOCKS*
Quoted 4 lines
Quoted 4 lines
binding. You can put it in the driver or not, I don't care and do not provide guidance on this because I don't know if it makes sense at all. What I know is that number of clocks is not related to binding. It is not needed
*NUMBER OF CLOCKS*
Quoted 4 lines
Quoted 1 line
in the binding, either.
Sorry, I am confused.
if you think that number of clocks is not related to binding.*NUMBER OF CLOCKS*
Quoted 6 lines
How dtsi claim for clk?
For example in dtsi.
include <dt-bindings/clock/aspeed,ast2700-clk.h>
usb3bhp: usb3bhp {
....
clocks = <&syscon0SCU0_CLK_GATE_PORTAUSB>;
Quoted 6 lines
Quoted 3 lines
And where is *NUMBER OF CLOCKS* here? I don't see any problem. No useless
SCU0_CLK_GATE_NUMdefine here.Understood now, I will remove those *NUMBER OF CLOCKS*. And will replace to
#defineSCU0_CLK_END34
NAK, it's like you keep ignoring my comments entirely. Even if you call it "SCU0_CLK_NOT_END" it does not change. Do you understand that it is not about name? Read my first comment.
Quoted 3 lines
Refer:
https://github.com/torvalds/linux/blob/master/include/dt-bindings/clock/imx8-clock.h#L87
So you found a bug and this allows you to create the same bug?
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 45 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 30 lines · Ryan Chen
Quoted 30 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 2 lines · Ryan Chen
Quoted 2 lines
Drop the define for number of clocks from the header, because it is not a
*NUMBER OF CLOCKS*
Quoted 4 lines
Quoted 4 lines
binding. You can put it in the driver or not, I don't care and do not provide guidance on this because I don't know if it makes sense at all. What I know is that number of clocks is not related to binding. It is not needed
*NUMBER OF CLOCKS*
Quoted 4 lines
Quoted 1 line
in the binding, either.
Sorry, I am confused.
if you think that number of clocks is not related to binding.*NUMBER OF CLOCKS*
Quoted 6 lines
How dtsi claim for clk?
For example in dtsi.
include <dt-bindings/clock/aspeed,ast2700-clk.h>
usb3bhp: usb3bhp {
....
clocks = <&syscon0SCU0_CLK_GATE_PORTAUSB>;Quoted 6 lines
Quoted 3 lines
And where is *NUMBER OF CLOCKS* here? I don't see any problem. No useless
SCU0_CLK_GATE_NUMdefine here.Understood now, I will remove those *NUMBER OF CLOCKS*. And will replace to
#defineSCU0_CLK_END34NAK, it's like you keep ignoring my comments entirely. Even if you call it "
SCU0_CLK_NOT_END" it does not change. Do you understand that it is not about name? Read my first comment.Quoted 1 line
Quoted 6 lines
Quoted 3 lines
Refer:
https://github.com/torvalds/linux/blob/master/include/dt-bindings/cloc
k/imx8-clock.h#L87So you found a bug and this allows you to create the same bug?
Sorry, I don't see this is a bug.
But I try to understand your point, you prefer following for clock nums, am I correct?
https://github.com/torvalds/linux/blob/master/drivers/clk/meson/g12a.c#L5558-L5559
dt-binding is index table like following.
https://github.com/torvalds/linux/blob/master/drivers/clk/meson/g12a.c#L4380
Quoted 3 lines
Best regards,
Krzysztof
Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 45 lines · Ryan Chen
Quoted 45 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 30 lines · Ryan Chen
Quoted 30 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 2 lines · Ryan Chen
Quoted 2 lines
Drop the define for number of clocks from the header, because it is not a
*NUMBER OF CLOCKS*
Quoted 4 lines
Quoted 4 lines
binding. You can put it in the driver or not, I don't care and do not provide guidance on this because I don't know if it makes sense at all. What I know is that number of clocks is not related to binding. It is not needed
*NUMBER OF CLOCKS*
Quoted 4 lines
Quoted 1 line
in the binding, either.
Sorry, I am confused.
if you think that number of clocks is not related to binding.*NUMBER OF CLOCKS*
Quoted 6 lines
How dtsi claim for clk?
For example in dtsi.
include <dt-bindings/clock/aspeed,ast2700-clk.h>
usb3bhp: usb3bhp {
....
clocks = <&syscon0SCU0_CLK_GATE_PORTAUSB>;Quoted 6 lines
Quoted 3 lines
And where is *NUMBER OF CLOCKS* here? I don't see any problem. No useless
SCU0_CLK_GATE_NUMdefine here.Understood now, I will remove those *NUMBER OF CLOCKS*. And will replace to
#defineSCU0_CLK_END34NAK, it's like you keep ignoring my comments entirely. Even if you call it "
SCU0_CLK_NOT_END" it does not change. Do you understand that it is not about name? Read my first comment.Quoted 1 line
Quoted 7 lines
Quoted 6 lines
Quoted 3 lines
Refer:
https://github.com/torvalds/linux/blob/master/include/dt-bindings/cloc
k/imx8-clock.h#L87So you found a bug and this allows you to create the same bug?
Sorry, I don't see this is a bug.
No, it's not a bug, but I do not agree for using arguments like "someone did it, so I can do the same". Why did you pick up exactly this example instead of others who removed the clock number?
Quoted 2 lines
But I try to understand your point, you prefer following for clock nums, am I correct?
https://github.com/torvalds/linux/blob/master/drivers/clk/meson/g12a.c#L5558-L5559
I said that this is not a binding. Don't add to the binding things which are not a binding.
I don't care how do you implement in drivers - there are several ways how to achieve it.
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 65 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 7 lines · Ryan Chen
Quoted 7 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 3 lines · Ryan Chen
Quoted 3 lines
Subject: Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines · Ryan Chen
Quoted 2 lines
Quoted 2 lines
Drop the define for number of clocks from the header, because it is not a
*NUMBER OF CLOCKS*
Quoted 2 lines
Quoted 2 lines
binding. You can put it in the driver or not, I don't care and do not provide guidance on this because I don't know if it makes sense at
all.
Quoted 31 lines
Quoted 31 lines
Quoted 19 lines
Quoted 19 lines
Quoted 2 lines
Quoted 2 lines
What I know is that number of clocks is not related to binding. It is not needed
*NUMBER OF CLOCKS*
Quoted 4 lines
Quoted 1 line
in the binding, either.
Sorry, I am confused.
if you think that number of clocks is not related to binding.*NUMBER OF CLOCKS*
Quoted 6 lines
How dtsi claim for clk?
For example in dtsi.
include <dt-bindings/clock/aspeed,ast2700-clk.h>
usb3bhp: usb3bhp {
....
clocks = <&syscon0SCU0_CLK_GATE_PORTAUSB>;Quoted 6 lines
Quoted 3 lines
And where is *NUMBER OF CLOCKS* here? I don't see any problem. No useless
SCU0_CLK_GATE_NUMdefine here.Understood now, I will remove those *NUMBER OF CLOCKS*. And will replace to
#defineSCU0_CLK_END34NAK, it's like you keep ignoring my comments entirely. Even if you call it "
SCU0_CLK_NOT_END" it does not change. Do you understand that it is not about name? Read my first comment.Quoted 1 line
Quoted 8 lines
Quoted 7 lines
Quoted 4 lines
Refer:
https://github.com/torvalds/linux/blob/master/include/dt-bindings/cl
oc
k/imx8-clock.h#L87So you found a bug and this allows you to create the same bug?
Sorry, I don't see this is a bug.
No, it's not a bug, but I do not agree for using arguments like "someone did it, so I can do the same". Why did you pick up exactly this example instead of others who removed the clock number?
Quoted 1 line
But I try to understand your point, you prefer following for clock nums, am I
correct?
Quoted 8 lines
Quoted 2 lines
https://github.com/torvalds/linux/blob/master/drivers/clk/meson/g12a.c
#L5558-L5559I said that this is not a binding. Don't add to the binding things which are not a binding.
I don't care how do you implement in drivers - there are several ways how to achieve it.
Understood, I will remove *NUMBER OF CLOCKS*
Quoted 4 lines
Best regards,
Krzysztof
Re: [PATCH 3/4] dt-bindings: clock: Add AST2700 clock bindings
In reply to Ryan ChenQuoted 3 lines · Ryan Chen
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>
NAK, why did you ignore all previous comments? Where is the changelog and proper versioning?
Is there total mess in Aspeed that you all do the same in the same time?
Best regards,
Krzysztof
Ryan Chen
maintainerPATCH 4/4 dt-bindings: clock: Add AST2700 clock bindings
In reply to Ryan ChenAdd dt bindings for AST2700 clock controller
--- drivers/clk/Makefile | 1 + drivers/clk/clk-ast2700.c | 1091 +++++++++++++++++++++++++++++++++++++ 2 files changed, 1092 insertions(+) create mode 100644 drivers/clk/clk-ast2700.c
drivers/clk/Makefile +1 -0
@@ -38,6 +38,7 @@ obj-$(CONFIG_COMMON_CLK_FSL_SAI) += clk-fsl-sai.o obj-$(CONFIG_COMMON_CLK_GEMINI) += clk-gemini.o obj-$(CONFIG_COMMON_CLK_ASPEED) += clk-aspeed.o obj-$(CONFIG_MACH_ASPEED_G6) += clk-ast2600.o +obj-$(CONFIG_MACH_ASPEED_G7) += clk-ast2700.o obj-$(CONFIG_ARCH_HIGHBANK) += clk-highbank.o obj-$(CONFIG_CLK_HSDK) += clk-hsdk-pll.o obj-$(CONFIG_COMMON_CLK_K210) += clk-k210.o
drivers/clk/clk-ast2700.c new file +1091 -0
1,091 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH 4/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 3 lines · Ryan Chen
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>
NAK, that's wrong on so many levels. There are no bindings here!
You ignored previous feedback given to Assped.
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 4/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 10 lines
Subject: Re: [PATCH 4/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 3 lines · Ryan Chen
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>NAK, that's wrong on so many levels. There are no bindings here!
You ignored previous feedback given to Assped.
Will modify subject to "clk: aspeed: add ast2700 clk driver"
Quoted 3 lines
Best regards,
Krzysztof
Re: [PATCH 4/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 5 lines · Ryan Chen
Quoted 5 lines
Subject: Re: [PATCH 4/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 2 lines · Ryan Chen
Add dt bindings for AST2700 clock controller
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Ryan Chen <[email protected]>NAK, that's wrong on so many levels. There are no bindings here!
You ignored previous feedback given to Assped.
Will modify subject to "clk: aspeed: add ast2700 clk driver"
Respond and implement first feedback which was given to Aspeed.
Best regards,
Krzysztof
Ryan Chen
maintainerRE: [PATCH 4/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 10 lines
Subject: Re: [PATCH 4/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 7 lines · Ryan Chen
Quoted 7 lines
Subject: Re: [PATCH 4/4] dt-bindings: clock: Add AST2700 clock bindings
Quoted 3 lines · Ryan Chen
Add dt bindings for AST2700 clock controller
Signed-off-by Ryan Chen <[email protected]>
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
NAK, that's wrong on so many levels. There are no bindings here!
You ignored previous feedback given to Assped.
Will modify subject to "clk: aspeed: add ast2700 clk driver"
Respond and implement first feedback which was given to Aspeed.
Sorry, I check your first feedback, I will remove "Drop WARN_ON", "Weird comment"
https://patchwork.kernel.org/project/linux-clk/patch/20240726110355.2181563-4-kevin_chen at aspeedtech.com/ What else I miss with your response?
Quoted 2 lines
Best regards,
Krzysztof