dt-bindings: arm: Document Renesas R-Car M3-N-based ULCB board
PATCH v2 1/7 dt-bindings: arm: Document Renesas R-Car M3-N-based ULCB board
In harmony with ATF and U-Boot outputs [1] and [2], the new board is based on M3-N revision ES1.1 and the amount of memory present on SiP is 2GiB, contiguously addressed.
The amount of RAM is mentioned based on the assumption that it is encoded in the board id/string. There is some evidence supporting this in form of last-digit-mismatch between two R-Car H3 ES2.0 ULCB board ids, one with 4GiB and one with 8GiB of RAM (see [3]).
[1] BL2: R-Car Gen3 Initial Program Loader(CA57) Rev.1.0.21
BL2: PRR is R-Car M3N Ver.1.1
[2] U-Boot 2015.04-00295-*
CPU: Renesas Electronics R8A77965 rev 1.1
---8<----
DRAM: 1.9 GiB
Bank #0: 0x048000000 - 0x0bfffffff, 1.9 GiB
---8<----[3] https://patchwork.kernel.org/patch/10555957/#22169325
---
Changes in v2:
- [Jacopo Mondi] Emphasized the fact the amount of RAM is encoded in the board id, so documenting it *is* relevant for this commit.
- [Simon Horman]
- Renamed board name 's/M3-N ULCB/M3NULCB/'
- Renamed compatible string 's/renesas,ulcb/renesas,m3nulcb/'
- Pushed all dt-bindings patches to the beginning of the series.
--- Documentation/devicetree/bindings/arm/shmobile.txt | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/arm/shmobile.txt +2 -0
@@ -106,6 +106,8 @@ Boards: compatible = "renesas,lager", "renesas,r8a7790" - M3ULCB (R-Car Starter Kit Pro, RTP0RC7796SKBX0010SA09 (M3 ES1.0)) compatible = "renesas,m3ulcb", "renesas,r8a7796" + - M3NULCB (R-Car Starter Kit Pro, RTP0RC77965SKBX010SA00 (M3-N ES1.1)) + compatible = "renesas,m3nulcb", "renesas,r8a77965" - Marzen (R0P7779A00010S) compatible = "renesas,marzen", "renesas,r8a7779" - Porter (M2-LCDP)
Signature · 1 line
2.18.0
PATCH v2 2/7 dt-bindings: can: rcar_can: document r8a77965 can support
Document the support for rcar_can on R8A77965 SoC devices. Add R8A77965 to the list of SoCs which require the "assigned-clocks" and "assigned-clock-rates" properties (thanks, Sergei). Rewrap text.
---
Changes in v2:
- [Kieran Bingham] Simplified commit description. Rewrapped text.
- [Sergei Shtylyov] Replaced footnotes with inline text.
- Pushed all dt-bindings patches to the beginning of the series.
--- Documentation/devicetree/bindings/net/can/rcar_can.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/net/can/rcar_can.txt +5 -5
@@ -13,6 +13,7 @@ Required properties: "renesas,can-r8a7794" if CAN controller is a part of R8A7794 SoC. "renesas,can-r8a7795" if CAN controller is a part of R8A7795 SoC. "renesas,can-r8a7796" if CAN controller is a part of R8A7796 SoC. + "renesas,can-r8a77965" if CAN controller is a part of R8A77965 SoC. "renesas,rcar-gen1-can" for a generic R-Car Gen1 compatible device. "renesas,rcar-gen2-can" for a generic R-Car Gen2 or RZ/G1 compatible device.
@@ -28,11 +29,10 @@ Required properties: - pinctrl-0: pin control group to be used for this controller. - pinctrl-names: must be "default". -Required properties for "renesas,can-r8a7795" and "renesas,can-r8a7796" -compatible: -In R8A7795 and R8A7796 SoCs, "clkp2" can be CANFD clock. This is a div6 clock -and can be used by both CAN and CAN FD controller at the same time. It needs to -be scaled to maximum frequency if any of these controllers use it. This is done +Required properties for R8A7795, R8A7796 and R8A77965: +For the denoted SoCs, "clkp2" can be CANFD clock. This is a div6 clock and can +be used by both CAN and CAN FD controller at the same time. It needs to be +scaled to maximum frequency if any of these controllers use it. This is done using the below properties: - assigned-clocks: phandle of clkp2(CANFD) clock.
Signature · 1 line
2.18.0
Re: [PATCH v2 2/7] dt-bindings: can: rcar_can: document r8a77965 can support
Quoted 5 lines · Eugeniu Rosca
Document the support for
rcar_canon R8A77965 SoC devices. Add R8A77965 to the list of SoCs which require the "assigned-clocks" and "assigned-clock-rates" properties (thanks, Sergei). Rewrap text.Signed-off-by Eugeniu Rosca <[email protected]>
Quoted 8 lines
---
Changes in v2:
- [Kieran Bingham] Simplified commit description. Rewrapped text.
- [Sergei Shtylyov] Replaced footnotes with inline text.
- Pushed all dt-bindings patches to the beginning of the series.--- Documentation/devicetree/bindings/net/can/rcar_can.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
As this is a CAN patch I believe it should be:
* Targeted at the net-next tree.
* Have net-next in the subject prefix
e.g.:
"[PATCH v3 net-next] dt-bindings: can: rcar_can: document r8a77965 support"
* Sent to:
Wolfgang Grandegger <[email protected]>
Marc Kleine-Budde <[email protected]>
"David S. Miller" <[email protected]>
[email protected]
[email protected]
As it is a DT binding patch I believe it should also be sent to:
Rob Herring <[email protected]>
Mark Rutland <[email protected]> [email protected]
And as it is related to Renesas SoCs it should also be sent to:
Simon Horman <[email protected]>
Magnus Damm <[email protected]> [email protected]
Sending it to more people is ok too :)
Re: [PATCH v2 2/7] dt-bindings: can: rcar_can: document r8a77965 can support
Hi Simon,
Quoted 19 lines · Simon Horman
Quoted 5 lines · Eugeniu Rosca
Document the support for
rcar_canon R8A77965 SoC devices. Add R8A77965 to the list of SoCs which require the "assigned-clocks" and "assigned-clock-rates" properties (thanks, Sergei). Rewrap text.Signed-off-by Eugeniu Rosca <[email protected]>Quoted 8 lines
---
Changes in v2:
- [Kieran Bingham] Simplified commit description. Rewrapped text.
- [Sergei Shtylyov] Replaced footnotes with inline text.
- Pushed all dt-bindings patches to the beginning of the series.--- Documentation/devicetree/bindings/net/can/rcar_can.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)Reviewed-by Simon Horman <[email protected]>As this is a CAN patch I believe it should be:
Quoted 7 lines
* Targeted at the net-next tree.
* Have net-next in the subject prefix
e.g.:
"[PATCH v3 net-next] dt-bindings: can:
rcar_can: document r8a77965 support"
I will re-spin this particular patch as v3 with your Reviewed-by and all the suggested names included in the "Sent to" field.
Quoted 13 lines
* Sent to:
Wolfgang Grandegger <[email protected]>
Marc Kleine-Budde <[email protected]>
"David S. Miller" <[email protected]>
[email protected]
[email protected]As it is a DT binding patch I believe it should also be sent to:
Rob Herring <[email protected]>
Mark Rutland <[email protected]> [email protected]
Quoted 6 lines
And as it is related to Renesas SoCs it should also be sent to:
Simon Horman <[email protected]>
Magnus Damm <[email protected]> [email protected]Sending it to more people is ok too :)
Best regards,
Eugeniu.
Re: [PATCH v2 2/7] dt-bindings: can: rcar_can: document r8a77965 can support
In reply to Eugeniu RoscaHi Eugeniu
Thank you for the patch.
Quoted 3 lines · Eugeniu Rosca
Document the support for
rcar_canon R8A77965 SoC devices. Add R8A77965 to the list of SoCs which require the "assigned-clocks" and "assigned-clock-rates" properties (thanks, Sergei). Rewrap text.
I don't think you needed to say you rewrapped the text in the commit log
- but it's fine :)
Quoted 1 line
Signed-off-by Eugeniu Rosca <[email protected]>
Quoted 38 lines
---
Changes in v2:
- [Kieran Bingham] Simplified commit description. Rewrapped text.
- [Sergei Shtylyov] Replaced footnotes with inline text.
- Pushed all dt-bindings patches to the beginning of the series.--- Documentation/devicetree/bindings/net/can/rcar_can.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)Documentation/devicetree/bindings/net/can/rcar_can.txt +5
-5@@ -13,6 +13,7 @@ Required properties: "renesas,can-r8a7794" if CAN controller is a part of R8A7794 SoC. "renesas,can-r8a7795" if CAN controller is a part of R8A7795 SoC. "renesas,can-r8a7796" if CAN controller is a part of R8A7796 SoC. + "renesas,can-r8a77965" if CAN controller is a part of R8A77965 SoC. "renesas,rcar-gen1-can" for a generic R-Car Gen1 compatible device. "renesas,rcar-gen2-can" for a generic R-Car Gen2 or RZ/G1 compatible device.@@ -28,11 +29,10 @@ Required properties: - pinctrl-0: pin control group to be used for this controller. - pinctrl-names: must be "default". -Required properties for "renesas,can-r8a7795" and "renesas,can-r8a7796" -compatible: -In R8A7795 and R8A7796 SoCs, "clkp2" can be CANFD clock. This is a div6 clock -and can be used by both CAN and CAN FD controller at the same time. It needs to -be scaled to maximum frequency if any of these controllers use it. This is done +Required properties for R8A7795, R8A7796 and R8A77965: +For the denoted SoCs, "clkp2" can be CANFD clock. This is a div6 clock and can +be used by both CAN and CAN FD controller at the same time. It needs to be +scaled to maximum frequency if any of these controllers use it. This is done using the below properties: - assigned-clocks: phandle of clkp2(CANFD) clock.
Re: [PATCH v2 2/7] dt-bindings: can: rcar_can: document r8a77965 can support
Hello Kieran,
Quoted 11 lines · Kieran Bingham
Hi Eugeniu
Thank you for the patch.
Quoted 3 lines · Eugeniu Rosca
Document the support for
rcar_canon R8A77965 SoC devices. Add R8A77965 to the list of SoCs which require the "assigned-clocks" and "assigned-clock-rates" properties (thanks, Sergei). Rewrap text.I don't think you needed to say you rewrapped the text in the commit log
- but it's fine :)
IMHO "Rewrap text" is pretty much from the same category as "no functional change was intended". As a reviewer, I would take these details in the commit description any day (and sometimes I would NAK a patch which lacks these details), since they precisely express the goals set by the author and make reviewer's life easier.
But, of course, preferences vary and therefore I won't elaborate on that too much.
Quoted 5 lines
Quoted 2 lines
Signed-off-by Eugeniu Rosca <[email protected]>Reviewed-by Kieran Bingham <[email protected]>
Best regards,
Eugeniu.
Re: [PATCH v2 2/7] dt-bindings: can: rcar_can: document r8a77965 can support
Hi Eugeniu,
Quoted 12 lines · Eugeniu Rosca
Hello Kieran,
Quoted 9 lines · Kieran Bingham
Hi Eugeniu
Thank you for the patch.
Quoted 3 lines · Eugeniu Rosca
Document the support for
rcar_canon R8A77965 SoC devices. Add R8A77965 to the list of SoCs which require the "assigned-clocks" and "assigned-clock-rates" properties (thanks, Sergei). Rewrap text.
Quoted 5 lines
Quoted 2 lines
I don't think you needed to say you rewrapped the text in the commit log
- but it's fine :)IMHO "Rewrap text" is pretty much from the same category as "no functional change was intended".
Indeed, but in this instance - there was a functional change. You modified the paragraph. In fact, mentioning that you have rewrapped the text, thus implying that you have made no functional change might cause a reviewer not to look deeper at the actual differences?
Quoted 7 lines
As a reviewer, I would take these
details in the commit description any day (and sometimes I would NAK a patch which lacks these details), since they precisely express the goals set by the author and make reviewer's life easier.But, of course, preferences vary and therefore I won't elaborate on that too much.
If this was a separate hunk, which you had re-wrapped without making a change to - I would absolutely agree with you here. The 'rewrapping' should be mentioned in the commit message, but this in relation to a paragraph which you had modified.
IMO - if you modify a paragraph of text, rewrapping to make sure it fits the constraints is part of that modification ... but ... yes we are debating minor details and preferences here ;) - I have no objection to you mentioning it.
Regards
Kieran
Quoted 10 lines
Quoted 6 lines
Quoted 3 lines
Signed-off-by Eugeniu Rosca <[email protected]>Reviewed-by Kieran Bingham <[email protected]>Best regards,
Eugeniu.
Re: [PATCH v2 2/7] dt-bindings: can: rcar_can: document r8a77965 can support
Hi Kieran,
Quoted 40 lines · Kieran Bingham
Hi Eugeniu,
Quoted 12 lines · Eugeniu Rosca
Hello Kieran,
Quoted 9 lines · Kieran Bingham
Hi Eugeniu
Thank you for the patch.
Quoted 3 lines · Eugeniu Rosca
Document the support for
rcar_canon R8A77965 SoC devices. Add R8A77965 to the list of SoCs which require the "assigned-clocks" and "assigned-clock-rates" properties (thanks, Sergei). Rewrap text.Quoted 5 lines
Quoted 2 lines
I don't think you needed to say you rewrapped the text in the commit log
- but it's fine :)IMHO "Rewrap text" is pretty much from the same category as "no functional change was intended".
Indeed, but in this instance - there was a functional change. You modified the paragraph. In fact, mentioning that you have rewrapped the text, thus implying that you have made no functional change might cause a reviewer not to look deeper at the actual differences?
Quoted 7 lines
As a reviewer, I would take these
details in the commit description any day (and sometimes I would NAK a patch which lacks these details), since they precisely express the goals set by the author and make reviewer's life easier.But, of course, preferences vary and therefore I won't elaborate on that too much.
If this was a separate hunk, which you had re-wrapped without making a change to - I would absolutely agree with you here. The 'rewrapping' should be mentioned in the commit message, but this in relation to a paragraph which you had modified.
Quoted 4 lines
IMO - if you modify a paragraph of text, rewrapping to make sure it fits the constraints is part of that modification ... but ... yes we are debating minor details and preferences here ;) - I have no objection to you mentioning it.
Ok, I get your point. I have to tune my auto-pilot to avoid writing down obvious things in the commit descriptions.
Quoted 4 lines
Regards
Kieran
Thanks,
Eugeniu.
PATCH v2 3/7 pinctrl: sh-pfc: r8a77965: Add HSCIF0 pins, groups, and functions
In reply to Eugeniu RoscaAccording to R-Car Gen3 HW manual Rev.1.00 Apr 2018, M3-N SoC implements five (0..4) HSCIF channels, similar to H3, M3-W and E3.
The story behind this patch is tackling below dmesg warnings, which pop up when booting M3NULCB Kingfisher board:
$ dmesg | grep sh-pfc sh-pfc e6060000.pin-controller: r8a77965_pfc support registered sh-pfc e6060000.pin-controller: function 'hscif0' not supported sh-pfc e6060000.pin-controller: invalid function hscif0 in map table sh-pfc e6060000.pin-controller: function 'hscif0' not supported sh-pfc e6060000.pin-controller: invalid function hscif0 in map table
To fix them, extract the HSCIF0 part from below v4.15-rc1 commits:
- commit 7a362e3488cb ("pinctrl: sh-pfc: r8a7795: Add HSCIF pins, groups, and functions")
- commit 0e4e4999aac1 ("pinctrl: sh-pfc: r8a7796: Add HSCIF pins, groups, and functions")
Note that checkpatch --strict throws several "CHECK: Please use a blank line after function/struct/union/enum declarations", which are ignored for the sake of staying in sync with the aforementioned commits.
---
Changes in v2:
- Newly added.
- IMHO mirroring the mentioned H3 and M3-W sh-pfc commits *entirely* is a better option to avoid work fragmentation, but I leave this decision to the maintainer.
--- drivers/pinctrl/sh-pfc/pfc-r8a77965.c | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)
drivers/pinctrl/sh-pfc/pfc-r8a77965.c +32 -0
@@ -1758,6 +1758,28 @@ static const unsigned int du_disp_mux[] = { DU_DISP_MARK, }; +/* - HSCIF0 ----------------------------------------------------------------- */ +static const unsigned int hscif0_data_pins[] = { +/* RX, TX */ +RCAR_GP_PIN (5 ,13 ),RCAR_GP_PIN (5 ,14 ), +}; +static const unsigned int hscif0_data_mux[] = { +HRX0_MARK ,HTX0_MARK , +}; +static const unsigned int hscif0_clk_pins[] = { +/* SCK */ +RCAR_GP_PIN (5 ,12 ), +}; +static const unsigned int hscif0_clk_mux[] = { +HSCK0_MARK , +}; +static const unsigned int hscif0_ctrl_pins[] = { +/* RTS, CTS */ +RCAR_GP_PIN (5 ,16 ),RCAR_GP_PIN (5 ,15 ), +}; +static const unsigned int hscif0_ctrl_mux[] = { +HRTS0_N_MARK ,HCTS0_N_MARK , +};/* - I2C -------------------------------------------------------------------- */ static const unsigned int i2c1_a_pins[] = {/* SDA, SCL */
@@ -3169,6 +3191,9 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {SH_PFC_PIN_GROUP (du_oddf),SH_PFC_PIN_GROUP (du_cde),SH_PFC_PIN_GROUP (du_disp), +SH_PFC_PIN_GROUP (hscif0_data), +SH_PFC_PIN_GROUP (hscif0_clk), +SH_PFC_PIN_GROUP (hscif0_ctrl),SH_PFC_PIN_GROUP (i2c1_a),SH_PFC_PIN_GROUP (i2c1_b), SH_PFC_PIN_GROUP(i2c2_a),
@@ -3379,6 +3404,12 @@ static const char * const du_groups[] = { "du_disp", }; +static const char *const hscif0_groups[] = { +"hscif0_data" , +"hscif0_clk" , +"hscif0_ctrl" , +}; +static const char *const i2c1_groups[] = {"i2c1_a" ,"i2c1_b" ,
@@ -3651,6 +3682,7 @@ static const char * const usb30_groups[] = {static const struct sh_pfc_function pinmux_functions[] = {SH_PFC_FUNCTION (avb),SH_PFC_FUNCTION (du), +SH_PFC_FUNCTION (hscif0),SH_PFC_FUNCTION (i2c1),SH_PFC_FUNCTION (i2c2),SH_PFC_FUNCTION (i2c6),
Signature · 1 line
2.18.0
Re: [PATCH v2 3/7] pinctrl: sh-pfc: r8a77965: Add HSCIF0 pins, groups, and functions
Quoted 17 lines · Eugeniu Rosca
According to R-Car Gen3 HW manual Rev.1.00 Apr 2018, M3-N SoC implements five (0..4) HSCIF channels, similar to H3, M3-W and E3.
The story behind this patch is tackling below dmesg warnings, which pop up when booting M3NULCB Kingfisher board:
$ dmesg | grep sh-pfc sh-pfc e6060000.pin-controller: r8a77965_pfc support registered sh-pfc e6060000.pin-controller: function 'hscif0' not supported sh-pfc e6060000.pin-controller: invalid function hscif0 in map table sh-pfc e6060000.pin-controller: function 'hscif0' not supported sh-pfc e6060000.pin-controller: invalid function hscif0 in map tableTo fix them, extract the HSCIF0 part from below v4.15-rc1 commits:
- commit7a362e3488cb("pinctrl: sh-pfc: r8a7795: Add HSCIF pins, groups, and functions")
- commit0e4e4999aac1("pinctrl: sh-pfc: r8a7796: Add HSCIF pins, groups, and functions")
Quoted 5 lines
Note that
checkpatch --strictthrows several "CHECK: Please use a blank line after function/struct/union/enum declarations", which are ignored for the sake of staying in sync with the aforementioned commits.Signed-off-by Eugeniu Rosca <[email protected]>
Re: [PATCH v2 3/7] pinctrl: sh-pfc: r8a77965: Add HSCIF0 pins, groups, and functions
In reply to Eugeniu RoscaHi Eugeniu,
Quoted 17 lines · Eugeniu Rosca
According to R-Car Gen3 HW manual Rev.1.00 Apr 2018, M3-N SoC implements five (0..4) HSCIF channels, similar to H3, M3-W and E3.
The story behind this patch is tackling below dmesg warnings, which pop up when booting M3NULCB Kingfisher board:
$ dmesg | grep sh-pfc sh-pfc e6060000.pin-controller: r8a77965_pfc support registered sh-pfc e6060000.pin-controller: function 'hscif0' not supported sh-pfc e6060000.pin-controller: invalid function hscif0 in map table sh-pfc e6060000.pin-controller: function 'hscif0' not supported sh-pfc e6060000.pin-controller: invalid function hscif0 in map tableTo fix them, extract the HSCIF0 part from below v4.15-rc1 commits:
- commit7a362e3488cb("pinctrl: sh-pfc: r8a7795: Add HSCIF pins, groups, and functions")
- commit0e4e4999aac1("pinctrl: sh-pfc: r8a7796: Add HSCIF pins, groups, and functions")
Quoted 5 lines
Note that
checkpatch --strictthrows several "CHECK: Please use a blank line after function/struct/union/enum declarations", which are ignored for the sake of staying in sync with the aforementioned commits.Signed-off-by Eugeniu Rosca <[email protected]>
Thanks for your patch, but please see commit 7628fa811b8af571 ("pinctrl:
sh-pfc: r8a77965: Add HSCIF pins, groups, and functions") in v4.19-rc1.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH v2 3/7] pinctrl: sh-pfc: r8a77965: Add HSCIF0 pins, groups, and functions
Hi Geert,
Quoted 20 lines · Geert Uytterhoeven
Hi Eugeniu,
Quoted 17 lines · Eugeniu Rosca
According to R-Car Gen3 HW manual Rev.1.00 Apr 2018, M3-N SoC implements five (0..4) HSCIF channels, similar to H3, M3-W and E3.
The story behind this patch is tackling below dmesg warnings, which pop up when booting M3NULCB Kingfisher board:
$ dmesg | grep sh-pfc sh-pfc e6060000.pin-controller: r8a77965_pfc support registered sh-pfc e6060000.pin-controller: function 'hscif0' not supported sh-pfc e6060000.pin-controller: invalid function hscif0 in map table sh-pfc e6060000.pin-controller: function 'hscif0' not supported sh-pfc e6060000.pin-controller: invalid function hscif0 in map tableTo fix them, extract the HSCIF0 part from below v4.15-rc1 commits:
- commit7a362e3488cb("pinctrl: sh-pfc: r8a7795: Add HSCIF pins, groups, and functions")
- commit0e4e4999aac1("pinctrl: sh-pfc: r8a7796: Add HSCIF pins, groups, and functions")
Quoted 8 lines
Quoted 5 lines
Note that
checkpatch --strictthrows several "CHECK: Please use a blank line after function/struct/union/enum declarations", which are ignored for the sake of staying in sync with the aforementioned commits.Signed-off-by Eugeniu Rosca <[email protected]>Thanks for your patch, but please see commit
7628fa811b8af571("pinctrl:
sh-pfc: r8a77965: Add HSCIF pins, groups, and functions") in v4.19-rc1.
Thanks for pointing out. Please, feel free to drop the patch. Its purpose was to build a self-contained (no new compiler/dmesg warnings/errors) patch series assuming v4.18.
Quoted 10 lines
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Best regards,
Eugeniu.
PATCH v2 4/7 arm64: dts: renesas: r8a77965: m3nulcb: Initial device tree
In reply to Eugeniu RoscaAllow the bare M3-N-based ULCB board to boot.
---
Changes in v2:
- [Jacopo Mondi] Removed redundant license text. Added Reviewed-by.
- [Simon Horman]
- Renamed DTS 's/r8a77965-ulcb.dts/r8a77965-m3nulcb.dts/'
- Renamed board name 's/M3-N ULCB/M3NULCB/'
- Renamed compatible string 's/renesas,ulcb/renesas,m3nulcb/'
- Adapted Makefile and commit summary line 's/ulcb/m3nulcb/'
--- arch/arm64/boot/dts/renesas/Makefile | 1 + .../boot/dts/renesas/r8a77965-m3nulcb.dts | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a77965-m3nulcb.dts
arch/arm64/boot/dts/renesas/Makefile +1 -0
@@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-salvator-x.dtb r8a7796-m3ulcb.dtb dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-m3ulcb-kf.dtb dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-salvator-x.dtb r8a77965-salvator-xs.dtb +dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-m3nulcb.dtb dtb-$(CONFIG_ARCH_R8A77970) += r8a77970-eagle.dtb r8a77970-v3msk.dtb dtb-$(CONFIG_ARCH_R8A77980) += r8a77980-condor.dtb r8a77980-v3hsk.dtb dtb-$(CONFIG_ARCH_R8A77990) += r8a77990-ebisu.dtb
arch/arm64/boot/dts/renesas/r8a77965-m3nulcb.dts new file +33 -0
@@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the M3NULCB (R-Car Starter Kit Pro) board + * + * Copyright (C) 2018 Renesas Electronics Corp. + * Copyright (C) 2018 Cogent Embedded, Inc. + */ + +/dts-v1/; +#include "r8a77965.dtsi" +#include "ulcb.dtsi" + +/ { + model = "Renesas M3NULCB board based on r8a77965"; + compatible = "renesas,m3nulcb", "renesas,r8a77965"; + + memory@48000000 { + device_type = "memory"; + /* first 128MB is reserved for secure area. */ + reg = <0x0 0x48000000 0x0 0x78000000>; + }; +}; + +&du { + clocks = <&cpg CPG_MOD 724>, + <&cpg CPG_MOD 723>, + <&cpg CPG_MOD 721>, + <&versaclock5 1>, + <&versaclock5 3>, + <&versaclock5 2>; + clock-names = "du.0", "du.1", "du.3", + "dclkin.0", "dclkin.1", "dclkin.3"; +};
Signature · 1 line
2.18.0
Re: [PATCH v2 4/7] arm64: dts: renesas: r8a77965: m3nulcb: Initial device tree
Quoted 4 lines · Eugeniu Rosca
Allow the bare M3-N-based ULCB board to boot.
Signed-off-by Eugeniu Rosca <[email protected]>Reviewed-by Jacopo Mondi <[email protected]>
Thanks Eugeniu,
applied for v4.20.
PATCH v2 5/7 arm64: dts: renesas: r8a77965: Add CAN{0,1} placeholder nodes
In reply to Eugeniu RoscaAccording to R-Car Gen3 HW manual rev1.00, R-Car M3-N has two CAN interfaces, similar to H3, M3-W and other SoCs from the same family.
Add CAN placeholder nodes to avoid below DTC errors:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:19.1-6 Label or path can0 not found
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:25.1-6 Label or path can1 not found
These errors occur *after* the addition of r8a77965-m3nulcb-kf.dts. Fix them beforehand.
CAN support is inspired from below commits:
- v4.7 commit 308b7e4ba62e ("arm64: dts: r8a7795: Add CAN support")
- v4.11 commit 909c16252415 ("arm64: dts: r8a7796: Add CAN support")
- v4.12 commit bec0948e810f ("arm64: dts: r8a7796: Add reset control properties")
---
Changes in v2:
- [Kieran Bingham] Improved commit description:
- Referenced the newer HW manual rev1.00 instead of rev0.55E.
- Kept the "true story" behind the patch. Just made it more clear.
- [Geert Uytterhoeven] Replaced CAN0 and CAN1 nodes with placeholders (no CAN testing was done to validate the DTS configuration).
--- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm64/boot/dts/renesas/r8a77965.dtsi +16 -0
@@ -656,6 +656,22 @@ status = "disabled"; }; + can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + /* placeholder */ + status = "disabled"; + }; + + can1: can@e6c38000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c38000 0 0x1000>; + /* placeholder */ + status = "disabled"; + }; + pwm0: pwm@e6e30000 { compatible = "renesas,pwm-r8a77965", "renesas,pwm-rcar"; reg = <0 0xe6e30000 0 8>;
Signature · 1 line
2.18.0
Re: [PATCH v2 5/7] arm64: dts: renesas: r8a77965: Add CAN{0,1} placeholder nodes
Hi Eugeniu,
Thank you for the patch,
Quoted 10 lines · Eugeniu Rosca
According to R-Car Gen3 HW manual rev1.00, R-Car M3-N has two CAN interfaces, similar to H3, M3-W and other SoCs from the same family.
Add CAN placeholder nodes to avoid below DTC errors:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:19.1-6 Label or path can0 not found
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:25.1-6 Label or path can1 not foundThese errors occur *after* the addition of
r8a77965-m3nulcb-kf.dts. Fix them beforehand.
Quoted 6 lines
CAN support is inspired from below commits:
- v4.7 commit308b7e4ba62e("arm64: dts: r8a7795: Add CAN support")
- v4.11 commit909c16252415("arm64: dts: r8a7796: Add CAN support")
- v4.12 commitbec0948e810f("arm64: dts: r8a7796: Add reset control properties")Signed-off-by Eugeniu Rosca <[email protected]>
Quoted 16 lines
---
Changes in v2:
- [Kieran Bingham] Improved commit description:
- Referenced the newer HW manual rev1.00 instead of rev0.55E.
- Kept the "true story" behind the patch. Just made it more clear.
- [Geert Uytterhoeven] Replaced CAN0 and CAN1 nodes with placeholders (no CAN testing was done to validate the DTS configuration).--- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm64/boot/dts/renesas/r8a77965.dtsi +0
-0
arch/arm64/boot/dts/renesas/r8a77965.dtsi line 665
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +7
-0@@ -656,6 +656,22 @@ status = "disabled"; }; + can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + /* placeholder */ + status = "disabled"; + };
This is probably more detail than is needed for a placeholder, but it looks correct so I think this is fine.
--
Kieran
Quoted 13 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +9
-0+ + can1: can@e6c38000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c38000 0 0x1000>; + /* placeholder */ + status = "disabled"; + }; + pwm0: pwm@e6e30000 { compatible = "renesas,pwm-r8a77965", "renesas,pwm-rcar"; reg = <0 0xe6e30000 0 8>;
Re: [PATCH v2 5/7] arm64: dts: renesas: r8a77965: Add CAN{0,1} placeholder nodes
Quoted 15 lines · Kieran Bingham
Hi Eugeniu,
Thank you for the patch,
Quoted 10 lines · Eugeniu Rosca
According to R-Car Gen3 HW manual rev1.00, R-Car M3-N has two CAN interfaces, similar to H3, M3-W and other SoCs from the same family.
Add CAN placeholder nodes to avoid below DTC errors:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:19.1-6 Label or path can0 not found
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:25.1-6 Label or path can1 not foundThese errors occur *after* the addition of
r8a77965-m3nulcb-kf.dts. Fix them beforehand.
Quoted 8 lines
Quoted 6 lines
CAN support is inspired from below commits:
- v4.7 commit308b7e4ba62e("arm64: dts: r8a7795: Add CAN support")
- v4.11 commit909c16252415("arm64: dts: r8a7796: Add CAN support")
- v4.12 commitbec0948e810f("arm64: dts: r8a7796: Add reset control properties")Signed-off-by Eugeniu Rosca <[email protected]>Reviewed-by Kieran Bingham <[email protected]>
Thanks Eugeniu and Kieran,
I have applied this for v4.20.
Quoted 19 lines
Quoted 19 lines
---
Changes in v2:
- [Kieran Bingham] Improved commit description:
- Referenced the newer HW manual rev1.00 instead of rev0.55E.
- Kept the "true story" behind the patch. Just made it more clear.
- [Geert Uytterhoeven] Replaced CAN0 and CAN1 nodes with placeholders (no CAN testing was done to validate the DTS configuration).--- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm64/boot/dts/renesas/r8a77965.dtsi +0
-0@@ -656,6 +656,22 @@ status = "disabled"; };
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi line 665
Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +7
-0+ can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + /* placeholder */ + status = "disabled"; + };This is probably more detail than is needed for a placeholder, but it looks correct so I think this is fine.
Agreed.
Quoted 20 lines
--
KieranQuoted 13 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +9
-0+ + can1: can@e6c38000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c38000 0 0x1000>; + /* placeholder */ + status = "disabled"; + }; + pwm0: pwm@e6e30000 { compatible = "renesas,pwm-r8a77965", "renesas,pwm-rcar"; reg = <0 0xe6e30000 0 8>;
Re: [PATCH v2 5/7] arm64: dts: renesas: r8a77965: Add CAN{0,1} placeholder nodes
In reply to Kieran BinghamQuoted 40 lines · Kieran Bingham
Quoted 10 lines · Eugeniu Rosca
According to R-Car Gen3 HW manual rev1.00, R-Car M3-N has two CAN interfaces, similar to H3, M3-W and other SoCs from the same family.
Add CAN placeholder nodes to avoid below DTC errors:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:19.1-6 Label or path can0 not found
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:25.1-6 Label or path can1 not foundThese errors occur *after* the addition of
r8a77965-m3nulcb-kf.dts. Fix them beforehand.Quoted 6 lines
CAN support is inspired from below commits:
- v4.7 commit308b7e4ba62e("arm64: dts: r8a7795: Add CAN support")
- v4.11 commit909c16252415("arm64: dts: r8a7796: Add CAN support")
- v4.12 commitbec0948e810f("arm64: dts: r8a7796: Add reset control properties")Signed-off-by Eugeniu Rosca <[email protected]>Reviewed-by Kieran Bingham <[email protected]>Quoted 19 lines
---
Changes in v2:
- [Kieran Bingham] Improved commit description:
- Referenced the newer HW manual rev1.00 instead of rev0.55E.
- Kept the "true story" behind the patch. Just made it more clear.
- [Geert Uytterhoeven] Replaced CAN0 and CAN1 nodes with placeholders (no CAN testing was done to validate the DTS configuration).--- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm64/boot/dts/renesas/r8a77965.dtsi +0
-0@@ -656,6 +656,22 @@ status = "disabled"; };
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi line 665
Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +7
-0+ can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + /* placeholder */ + status = "disabled"; + };This is probably more detail than is needed for a placeholder, but it looks correct so I think this is fine.
Indeed. Adding the "compatible" properties means they're no longer placeholders, and will be probed by the driver, possibly leading to undefined behavior.
Hence please limit the placeholders to the absolute required minimum, and thus drop the "compatible" and "status" properties.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH v2 5/7] arm64: dts: renesas: r8a77965: Add CAN{0,1} placeholder nodes
Quoted 50 lines · Geert Uytterhoeven
Quoted 39 lines
Quoted 10 lines
According to R-Car Gen3 HW manual rev1.00, R-Car M3-N has two CAN interfaces, similar to H3, M3-W and other SoCs from the same family.
Add CAN placeholder nodes to avoid below DTC errors:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:19.1-6 Label or path can0 not found
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:25.1-6 Label or path can1 not foundThese errors occur *after* the addition of
r8a77965-m3nulcb-kf.dts. Fix them beforehand.Quoted 6 lines
CAN support is inspired from below commits:
- v4.7 commit308b7e4ba62e("arm64: dts: r8a7795: Add CAN support")
- v4.11 commit909c16252415("arm64: dts: r8a7796: Add CAN support")
- v4.12 commitbec0948e810f("arm64: dts: r8a7796: Add reset control properties")Signed-off-by Eugeniu Rosca <[email protected]>Reviewed-by Kieran Bingham <[email protected]>Quoted 19 lines
---
Changes in v2:
- [Kieran Bingham] Improved commit description:
- Referenced the newer HW manual rev1.00 instead of rev0.55E.
- Kept the "true story" behind the patch. Just made it more clear.
- [Geert Uytterhoeven] Replaced CAN0 and CAN1 nodes with placeholders (no CAN testing was done to validate the DTS configuration).--- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm64/boot/dts/renesas/r8a77965.dtsi +0
-0@@ -656,6 +656,22 @@ status = "disabled"; };Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi line 665
Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +7
-0+ can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + /* placeholder */ + status = "disabled"; + };This is probably more detail than is needed for a placeholder, but it looks correct so I think this is fine.
Quoted 3 lines
Indeed. Adding the "compatible" properties means they're no longer placeholders, and will be probed by the driver, possibly leading to undefined behavior.
I don't think the disabled device nodes are actually probed.
Quoted 2 lines
Hence please limit the placeholders to the absolute required minimum, and thus drop the "compatible" and "status" properties.
OTOH, they're not needed (yet).
Quoted 3 lines
Gr{oetje,eeting}s,
Geert
MBR, Sergei
Re: [PATCH v2 5/7] arm64: dts: renesas: r8a77965: Add CAN{0,1} placeholder nodes
Hi Sergei,
Quoted 35 lines · Sergei Shtylyov
Quoted 34 lines · Geert Uytterhoeven
Quoted 33 lines
Quoted 20 lines
According to R-Car Gen3 HW manual rev1.00, R-Car M3-N has two CAN interfaces, similar to H3, M3-W and other SoCs from the same family.
Add CAN placeholder nodes to avoid below DTC errors:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:19.1-6 Label or path can0 not found
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:25.1-6 Label or path can1 not foundThese errors occur *after* the addition of
r8a77965-m3nulcb-kf.dts. Fix them beforehand.CAN support is inspired from below commits:
- v4.7 commit308b7e4ba62e("arm64: dts: r8a7795: Add CAN support")
- v4.11 commit909c16252415("arm64: dts: r8a7796: Add CAN support")
- v4.12 commitbec0948e810f("arm64: dts: r8a7796: Add reset control properties")Signed-off-by Eugeniu Rosca <[email protected]>arch/arm64/boot/dts/renesas/r8a77965.dtsi line 665
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +7
-0@@ -656,6 +656,22 @@ status = "disabled"; }; + can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + /* placeholder */ + status = "disabled"; + };This is probably more detail than is needed for a placeholder, but it looks correct so I think this is fine.
Quoted 5 lines
Quoted 3 lines
Indeed. Adding the "compatible" properties means they're no longer placeholders, and will be probed by the driver, possibly leading to undefined behavior.
I don't think the disabled device nodes are actually probed.
They will be by ulcb-kf.dtsi, after the addition of r8a77965-m3nulcb-kf.dts, cfr.
the errors and rationale documented in the commit message.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH v2 5/7] arm64: dts: renesas: r8a77965: Add CAN{0,1} placeholder nodes
Dear reviewers,
Quoted 43 lines · Geert Uytterhoeven
Hi Sergei,
Quoted 39 lines · Sergei Shtylyov
Quoted 37 lines · Geert Uytterhoeven
Quoted 23 lines
Quoted 23 lines
According to R-Car Gen3 HW manual rev1.00, R-Car M3-N has two CAN interfaces, similar to H3, M3-W and other SoCs from the same family.
Add CAN placeholder nodes to avoid below DTC errors:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:19.1-6 Label or path can0 not found
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:25.1-6 Label or path can1 not foundThese errors occur *after* the addition of
r8a77965-m3nulcb-kf.dts. Fix them beforehand.CAN support is inspired from below commits:
- v4.7 commit308b7e4ba62e("arm64: dts: r8a7795: Add CAN support")
- v4.11 commit909c16252415("arm64: dts: r8a7796: Add CAN support")
- v4.12 commitbec0948e810f("arm64: dts: r8a7796: Add reset control properties")Signed-off-by Eugeniu Rosca <[email protected]>arch/arm64/boot/dts/renesas/r8a77965.dtsi +0
-0@@ -656,6 +656,22 @@ status = "disabled"; };Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi line 665
Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +7
-0+ can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + /* placeholder */ + status = "disabled"; + };This is probably more detail than is needed for a placeholder, but it looks correct so I think this is fine.
Indeed. Adding the "compatible" properties means they're no longer placeholders, and will be probed by the driver, possibly leading to undefined behavior.
Quoted 5 lines
Quoted 1 line
I don't think the disabled device nodes are actually probed.
They will be by
ulcb-kf.dtsi, after the addition ofr8a77965-m3nulcb-kf.dts, cfr.
the errors and rationale documented in the commit message.
I took some time to examine the "52. Controller Area Network Interface (CAN interface)" chapter of HW SoC manual rev1.00 in detail and there is no difference mentioned between the SoCs (H3, M3-W, M3-N, D3, E3) which implement the two CAN (non-FD) interfaces. This is confirmed by the perfectly symmetrical can{0,1} configuration present in the H3, M3-W and D3 device tree sources:
$ git grep -l can0 -- arch/arm64/boot/dts/renesas/r8*dtsi arch/arm64/boot/dts/renesas/r8a7795.dtsi arch/arm64/boot/dts/renesas/r8a7796.dtsi arch/arm64/boot/dts/renesas/r8a77995.dtsi
So, to be honest, in my opinion, besides consuming time arguing about what a placeholder DTS node is (btw, commits [1] and [2] do include a compatible string while adding a "placeholder" node), we also force users to 'git blame' multiple times to reconstruct the history of CAN controller nodes on M3-N, while for H3, M3-W and D3 a single commit was enough to add the functionality.
That said, I don't see any dmesg differences on M3NULCB between having and not having the compatible string in the can{0,1} nodes.
Quoted 2 lines
Hence please limit the placeholders to the absolute required minimum, and thus drop the "compatible" and "status" properties.
My understanding is that the lack of status is equivalent with 'status = "okay"' (i.e. enable the node), so I don't really see why 'status = "disabled"' should hurt for a placeholder, especially seeing a high number of commits [3] using 'status = "disabled"' by default. At least I ask for an explanation regarding this last part before incrementing the version of this patch. TIA.
[1] fae3a9f023b7 ("ARM: dts: dra7: Add ti,secure-ram node to ocmcram1 node")
[2] 162669876bbe ("ARM: dts: sun9i: Switch to the AC100 RTC clock outputs for osc32k")
[3] git blame arch/arm64/boot/dts/renesas/r8a7795.dtsi | grep disabled | awk '{print $1}' | sort -u | wc -l
22
Quoted 4 lines
Gr{oetje,eeting}s,
Geert
Thanks,
Eugeniu.
Re: [PATCH v2 5/7] arm64: dts: renesas: r8a77965: Add CAN{0,1} placeholder nodes
Hi Eugeniu,
Quoted 59 lines · Eugeniu Rosca
Dear reviewers,
Quoted 43 lines · Geert Uytterhoeven
Hi Sergei,
Quoted 39 lines · Sergei Shtylyov
Quoted 37 lines · Geert Uytterhoeven
Quoted 23 lines
Quoted 23 lines
According to R-Car Gen3 HW manual rev1.00, R-Car M3-N has two CAN interfaces, similar to H3, M3-W and other SoCs from the same family.
Add CAN placeholder nodes to avoid below DTC errors:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:19.1-6 Label or path can0 not found
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:25.1-6 Label or path can1 not foundThese errors occur *after* the addition of
r8a77965-m3nulcb-kf.dts. Fix them beforehand.CAN support is inspired from below commits:
- v4.7 commit308b7e4ba62e("arm64: dts: r8a7795: Add CAN support")
- v4.11 commit909c16252415("arm64: dts: r8a7796: Add CAN support")
- v4.12 commitbec0948e810f("arm64: dts: r8a7796: Add reset control properties")Signed-off-by Eugeniu Rosca <[email protected]>arch/arm64/boot/dts/renesas/r8a77965.dtsi +0
-0@@ -656,6 +656,22 @@ status = "disabled"; };Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi line 665
Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +7
-0+ can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + /* placeholder */ + status = "disabled"; + };This is probably more detail than is needed for a placeholder, but it looks correct so I think this is fine.
Indeed. Adding the "compatible" properties means they're no longer placeholders, and will be probed by the driver, possibly leading to undefined behavior.
Quoted 5 lines
Quoted 1 line
I don't think the disabled device nodes are actually probed.
They will be by
ulcb-kf.dtsi, after the addition ofr8a77965-m3nulcb-kf.dts, cfr.
the errors and rationale documented in the commit message.I took some time to examine the "52. Controller Area Network Interface (CAN interface)" chapter of HW SoC manual rev1.00 in detail and there is no difference mentioned between the SoCs (H3, M3-W, M3-N, D3, E3) which implement the two CAN (non-FD) interfaces. This is confirmed by the perfectly symmetrical can{0,1} configuration present in the H3, M3-W and D3 device tree sources:
Quoted 4 lines
$ git grep -l can0 -- arch/arm64/boot/dts/renesas/r8*dtsi arch/arm64/boot/dts/renesas/r8a7795.dtsi arch/arm64/boot/dts/renesas/r8a7796.dtsi arch/arm64/boot/dts/renesas/r8a77995.dtsi
The problem is, until it's tested - we don't actually know it works. Even 'identical' chips can have different changes between the revisions.
Quoted 3 lines
So, to be honest, in my opinion, besides consuming time arguing about what a placeholder DTS node is (btw, commits [1] and [2] do include a compatible string while adding a "placeholder" node),
[1] is a special case. It's not actually going to probe a driver.
sources/linux$ git grep secure-ram arch/arm/boot/dts/dra7.dtsi: compatible = "ti,secure-ram";
<there is no driver which will match on this compatible>
[2] is also a different case:
You can see in the patch that the 'placeholder' is used in the same commit by sun9i-a80-cubieboard4.dts and sun9i-a80-optimus.dts
Quoted 8 lines
we also force
users to 'git blame' multiple times to reconstruct the history of CAN controller nodes on M3-N, while for H3, M3-W and D3 a single commit was enough to add the functionality.That said, I don't see any dmesg differences on M3NULCB between having and not having the compatible string in the can{0,1} nodes.
Quoted 7 lines
Quoted 2 lines
Hence please limit the placeholders to the absolute required minimum, and thus drop the "compatible" and "status" properties.
My understanding is that the lack of status is equivalent with 'status = "okay"' (i.e. enable the node), so I don't really see why 'status = "disabled"' should hurt for a placeholder, especially seeing a high number of commits [3] using 'status = "disabled"' by default.
It's not so much the 'status' field that hurts in this patch, but the compatible matching.
The file r8a7795.dtsi is a SoC level description. It tries to describe all the features provided by that SoC. But all of those features may not be brought out on the "board", and so many are disabled by default.
- Essentially 'status = "disabled";'
is like saying - This node is good - but don't use it.
It's then up to the board file (Salvator-XS.dtb, ULCB.dtb YourBoardHere.dtb ...) to enable the features that are available.
That's the case here in the KingFisher board.
The ulcb-kf.dtsi will override the CAN nodes and set 'status = Okay' to enable the devices available on the KF board:
Quoted 5 lines
&can0 {
pinctrl-0 = <&can0_pins>;
pinctrl-names = "default";
status = "okay";
};So - once that file is included (even though you have set 'status = 'disabled'), the DTB asserts that the can0 is connected, available, and 'okay' to be probed.
For an example of adding 'lots' of placeholders take a look at df863d6f95f5 ("arm64: dts: renesas: initial R8A77965 SoC device tree")
and a patch which then populates a placeholder when it's ready:2f2c71bfc8c5 ("arm64: dts: renesas: r8a77965: Populate the DU instance placeholder")
Now we get political rather than technical ...
If you are adding the DTB node which implements this (by adding the full node in r8a77965.dtsi), you should be able to assert that this is functional. Either by testing it yourself, or by finding someone to submit a Tested-by: <[email protected]> tag.
The alternative, is to provide a placeholder which is set as non-functional - and will not probe. <which you've mostly done>
It's just that by providing the compatible strings in your placeholder, the status = "okay" /will/ allow the driver framework to probe this device.
Then we are into undefined behaviour because we are saying that the device is ready to probe - but without fully defining the required properties.
Quoted 3 lines
At
least I ask for an explanation regarding this last part before incrementing the version of this patch. TIA.
I hope that's made something clearer in a murky world.
Welcome to open source :D ... I appreciate your frustration on re-spinning patches that are not your intended target or goal. I've faced similar blocking situations in my time.
It's all part of the goal of striving towards 'perfect-as-can-be' upstream code I guess.
Quoted 6 lines
[1]
fae3a9f023b7("ARM: dts: dra7: Add ti,secure-ram node to ocmcram1 node")
[2]162669876bbe("ARM: dts: sun9i: Switch to the AC100 RTC clock outputs for osc32k")
[3] git blamearch/arm64/boot/dts/renesas/r8a7795.dtsi| grep disabled | awk '{print $1}' | sort -u | wc -l22Quoted 1 line
Quoted 6 lines
Quoted 3 lines
Gr{oetje,eeting}s,
Geert
Thanks,
Eugeniu.
--
Kieran
Re: [PATCH v2 5/7] arm64: dts: renesas: r8a77965: Add CAN{0,1} placeholder nodes
Hi Kieran,
I appreciate the detailed reply zooming in into many aspects (both technical and related to process/workflow) of contributing/reviewing patches. I take it as is. I could elaborate on specific parts of it, like applying the "undefined behavior" term (which comes from the world of compilers) to the software we write. This doesn't sound right to me, since our software is guided by our own requirements and one of this requirements is (should be) predictable and safe behavior given some junky/incomplete DTS configuration. If any bugs exist dealing with nonsense configuration, IMHO they should be fixed in the driver. Since my purpose is simply seeing the patches in upstream the way maintainers like them best, I will put little to no time discussing this and will mainly focus on submitting any changes requested by the reviewers.
Thanks,
Eugeniu.
Re: [PATCH v2 5/7] arm64: dts: renesas: r8a77965: Add CAN{0,1} placeholder nodes
In reply to Geert UytterhoevenQuoted 53 lines · Geert Uytterhoeven
Quoted 40 lines · Kieran Bingham
Quoted 10 lines · Eugeniu Rosca
According to R-Car Gen3 HW manual rev1.00, R-Car M3-N has two CAN interfaces, similar to H3, M3-W and other SoCs from the same family.
Add CAN placeholder nodes to avoid below DTC errors:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:19.1-6 Label or path can0 not found
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:25.1-6 Label or path can1 not foundThese errors occur *after* the addition of
r8a77965-m3nulcb-kf.dts. Fix them beforehand.Quoted 6 lines
CAN support is inspired from below commits:
- v4.7 commit308b7e4ba62e("arm64: dts: r8a7795: Add CAN support")
- v4.11 commit909c16252415("arm64: dts: r8a7796: Add CAN support")
- v4.12 commitbec0948e810f("arm64: dts: r8a7796: Add reset control properties")Signed-off-by Eugeniu Rosca <[email protected]>Reviewed-by Kieran Bingham <[email protected]>Quoted 19 lines
---
Changes in v2:
- [Kieran Bingham] Improved commit description:
- Referenced the newer HW manual rev1.00 instead of rev0.55E.
- Kept the "true story" behind the patch. Just made it more clear.
- [Geert Uytterhoeven] Replaced CAN0 and CAN1 nodes with placeholders (no CAN testing was done to validate the DTS configuration).--- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm64/boot/dts/renesas/r8a77965.dtsi +0
-0@@ -656,6 +656,22 @@ status = "disabled"; };Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi line 665
Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +7
-0+ can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + /* placeholder */ + status = "disabled"; + };This is probably more detail than is needed for a placeholder, but it looks correct so I think this is fine.
Quoted 6 lines
Indeed. Adding the "compatible" properties means they're no longer placeholders, and will be probed by the driver, possibly leading to undefined behavior.
Hence please limit the placeholders to the absolute required minimum, and thus drop the "compatible" and "status" properties.
Agreed, I will update the patch accordingly.
Re: [PATCH v2 5/7] arm64: dts: renesas: r8a77965: Add CAN{0,1} placeholder nodes
Hi Simon, hi Geert,
Quoted 54 lines · Simon Horman
Quoted 53 lines · Geert Uytterhoeven
Quoted 50 lines · Kieran Bingham
Quoted 10 lines · Eugeniu Rosca
According to R-Car Gen3 HW manual rev1.00, R-Car M3-N has two CAN interfaces, similar to H3, M3-W and other SoCs from the same family.
Add CAN placeholder nodes to avoid below DTC errors:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:19.1-6 Label or path can0 not found
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:25.1-6 Label or path can1 not foundThese errors occur *after* the addition of
r8a77965-m3nulcb-kf.dts. Fix them beforehand.Quoted 6 lines
CAN support is inspired from below commits:
- v4.7 commit308b7e4ba62e("arm64: dts: r8a7795: Add CAN support")
- v4.11 commit909c16252415("arm64: dts: r8a7796: Add CAN support")
- v4.12 commitbec0948e810f("arm64: dts: r8a7796: Add reset control properties")Signed-off-by Eugeniu Rosca <[email protected]>Reviewed-by Kieran Bingham <[email protected]>Quoted 16 lines
---
Changes in v2:
- [Kieran Bingham] Improved commit description:
- Referenced the newer HW manual rev1.00 instead of rev0.55E.
- Kept the "true story" behind the patch. Just made it more clear.
- [Geert Uytterhoeven] Replaced CAN0 and CAN1 nodes with placeholders (no CAN testing was done to validate the DTS configuration).--- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm64/boot/dts/renesas/r8a77965.dtsi +0
-0arch/arm64/boot/dts/renesas/r8a77965.dtsi line 665
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +7
-0@@ -656,6 +656,22 @@ status = "disabled"; }; + can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + /* placeholder */ + status = "disabled"; + };This is probably more detail than is needed for a placeholder, but it looks correct so I think this is fine.
Quoted 8 lines
Quoted 6 lines
Indeed. Adding the "compatible" properties means they're no longer placeholders, and will be probed by the driver, possibly leading to undefined behavior.
Hence please limit the placeholders to the absolute required minimum, and thus drop the "compatible" and "status" properties.
Agreed, I will update the patch accordingly.
My understanding is that Simon will drop the compatible strings and no action is needed from my end. Let me know otherwise.
Thanks,
Eugeniu.
Re: [PATCH v2 5/7] arm64: dts: renesas: r8a77965: Add CAN{0,1} placeholder nodes
Quoted 61 lines · Eugeniu Rosca
Hi Simon, hi Geert,
Quoted 58 lines · Simon Horman
Quoted 57 lines · Geert Uytterhoeven
Quoted 40 lines · Kieran Bingham
Quoted 10 lines · Eugeniu Rosca
According to R-Car Gen3 HW manual rev1.00, R-Car M3-N has two CAN interfaces, similar to H3, M3-W and other SoCs from the same family.
Add CAN placeholder nodes to avoid below DTC errors:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:19.1-6 Label or path can0 not found
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:25.1-6 Label or path can1 not foundThese errors occur *after* the addition of
r8a77965-m3nulcb-kf.dts. Fix them beforehand.Quoted 6 lines
CAN support is inspired from below commits:
- v4.7 commit308b7e4ba62e("arm64: dts: r8a7795: Add CAN support")
- v4.11 commit909c16252415("arm64: dts: r8a7796: Add CAN support")
- v4.12 commitbec0948e810f("arm64: dts: r8a7796: Add reset control properties")Signed-off-by Eugeniu Rosca <[email protected]>Reviewed-by Kieran Bingham <[email protected]>Quoted 19 lines
---
Changes in v2:
- [Kieran Bingham] Improved commit description:
- Referenced the newer HW manual rev1.00 instead of rev0.55E.
- Kept the "true story" behind the patch. Just made it more clear.
- [Geert Uytterhoeven] Replaced CAN0 and CAN1 nodes with placeholders (no CAN testing was done to validate the DTS configuration).--- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm64/boot/dts/renesas/r8a77965.dtsi +0
-0@@ -656,6 +656,22 @@ status = "disabled"; };Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi line 665
Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +7
-0+ can0: can@e6c30000 { + compatible = "renesas,can-r8a77965", + "renesas,rcar-gen3-can"; + reg = <0 0xe6c30000 0 0x1000>; + /* placeholder */ + status = "disabled"; + };This is probably more detail than is needed for a placeholder, but it looks correct so I think this is fine.
Indeed. Adding the "compatible" properties means they're no longer placeholders, and will be probed by the driver, possibly leading to undefined behavior.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Hence please limit the placeholders to the absolute required minimum, and thus drop the "compatible" and "status" properties.
Agreed, I will update the patch accordingly.
My understanding is that Simon will drop the compatible strings and no action is needed from my end. Let me know otherwise.
Your understanding is correct.
PATCH v2 6/7 arm64: dts: renesas: r8a77965: Add HSCIF0 device node
In reply to Eugeniu RoscaFix below DTC error:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:36.1-8 Label or path hscif0 not found
The DTC error occurs *after* the addition of r8a77965-m3nulcb-kf.dts. Fix it beforehand.
Inspired from v4.12-rc1 commits:
- commit 68cd16107260 ("arm64: dts: r8a7796 dtsi: Add all HSCIF nodes")
- commit 6d50bb893504 ("arm64: dts: r8a7796: Enable HSCIF DMA")
- commit bec0948e810f ("arm64: dts: r8a7796: Add reset control properties")
---
Changes in v2:
- Slightly improved the commit description.
- Note that this commit could be replaced by
https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git/commit/?h=b8e3c8e17611
--- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm64/boot/dts/renesas/r8a77965.dtsi +18 -0
@@ -451,6 +451,24 @@ status = "disabled"; }; + hscif0: serial@e6540000 { + compatible = "renesas,hscif-r8a77965", + "renesas,rcar-gen3-hscif", + "renesas,hscif"; + reg = <0 0xe6540000 0 0x60>; + interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 520>, + <&cpg CPG_CORE R8A77965_CLK_S3D1>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x31>, <&dmac1 0x30>, + <&dmac2 0x31>, <&dmac2 0x30>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 520>; + status = "disabled"; + }; + hsusb: usb@e6590000 { compatible = "renesas,usbhs-r8a7796", "renesas,rcar-gen3-usbhs";
Signature · 1 line
2.18.0
Re: [PATCH v2 6/7] arm64: dts: renesas: r8a77965: Add HSCIF0 device node
Quoted 11 lines · Eugeniu Rosca
Fix below DTC error:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:36.1-8 Label or path hscif0 not foundThe DTC error occurs *after* the addition of
r8a77965-m3nulcb-kf.dts. Fix it beforehand.Inspired from v4.12-rc1 commits:
- commit68cd16107260("arm64: dts: r8a7796 dtsi: Add all HSCIF nodes")
- commit6d50bb893504("arm64: dts: r8a7796: Enable HSCIF DMA")
- commitbec0948e810f("arm64: dts: r8a7796: Add reset control properties")
Quoted 6 lines
Signed-off-by Eugeniu Rosca <[email protected]>---
Changes in v2:
- Slightly improved the commit description.
- Note that this commit could be replaced by
https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git/commit/?h=b8e3c8e17611
That commit has been accepted for upstream so it should be used.
Quoted 36 lines
--- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)arch/arm64/boot/dts/renesas/r8a77965.dtsi +18
-0@@ -451,6 +451,24 @@ status = "disabled"; }; + hscif0: serial@e6540000 { + compatible = "renesas,hscif-r8a77965", + "renesas,rcar-gen3-hscif", + "renesas,hscif"; + reg = <0 0xe6540000 0 0x60>; + interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 520>, + <&cpg CPG_CORE R8A77965_CLK_S3D1>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x31>, <&dmac1 0x30>, + <&dmac2 0x31>, <&dmac2 0x30>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 520>; + status = "disabled"; + }; + hsusb: usb@e6590000 { compatible = "renesas,usbhs-r8a7796", "renesas,rcar-gen3-usbhs";Signature · 1 line
2.18.0
Re: [PATCH v2 6/7] arm64: dts: renesas: r8a77965: Add HSCIF0 device node
Hi Simon,
Quoted 12 lines · Simon Horman
Quoted 11 lines · Eugeniu Rosca
Fix below DTC error:
Error: arch/arm64/boot/dts/renesas/ulcb-kf.dtsi:36.1-8 Label or path hscif0 not foundThe DTC error occurs *after* the addition of
r8a77965-m3nulcb-kf.dts. Fix it beforehand.Inspired from v4.12-rc1 commits:
- commit68cd16107260("arm64: dts: r8a7796 dtsi: Add all HSCIF nodes")
- commit6d50bb893504("arm64: dts: r8a7796: Enable HSCIF DMA")
- commitbec0948e810f("arm64: dts: r8a7796: Add reset control properties")
Quoted 8 lines
Quoted 6 lines
Signed-off-by Eugeniu Rosca <[email protected]>---
Changes in v2:
- Slightly improved the commit description.
- Note that this commit could be replaced by
https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git/commit/?h=b8e3c8e17611That commit has been accepted for upstream so it should be used.
Thanks for the explanation. No further questions/concerns.
Best regards,
Eugeniu.
PATCH v2 7/7 arm64: dts: renesas: r8a77965: m3nulcb-kf: Initial device tree
In reply to Eugeniu RoscaThis is based on the existing KF device tree sources:
$ ls -1 arch/arm64/boot/dts/renesas/*-kf.dts arch/arm64/boot/dts/renesas/r8a7795-es1-h3ulcb-kf.dts arch/arm64/boot/dts/renesas/r8a7795-h3ulcb-kf.dts arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts
---
Changes in v2:
- [Jacopo Mondi] Removed redundant license text.
- [Simon Horman]
- Renamed DTS 's/r8a77965-ulcb-kf.dts/r8a77965-m3nulcb-kf.dts/'
- Renamed board name 's/M3-N ULCB/M3NULCB/'
- Renamed compatible string 's/renesas,ulcb/renesas,m3nulcb/'
- Adapted Makefile and commit summary line 's/ulcb-kf/m3nulcb-kf/'
- Documented the source of inspiration in the commit description.
--- arch/arm64/boot/dts/renesas/Makefile | 1 + .../boot/dts/renesas/r8a77965-m3nulcb-kf.dts | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a77965-m3nulcb-kf.dts
arch/arm64/boot/dts/renesas/Makefile +1 -0
@@ -9,6 +9,7 @@ dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-m3ulcb-kf.dtb dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-salvator-x.dtb r8a77965-salvator-xs.dtb dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-m3nulcb.dtb +dtb-$(CONFIG_ARCH_R8A77965) += r8a77965-m3nulcb-kf.dtb dtb-$(CONFIG_ARCH_R8A77970) += r8a77970-eagle.dtb r8a77970-v3msk.dtb dtb-$(CONFIG_ARCH_R8A77980) += r8a77980-condor.dtb r8a77980-v3hsk.dtb dtb-$(CONFIG_ARCH_R8A77990) += r8a77990-ebisu.dtb
arch/arm64/boot/dts/renesas/r8a77965-m3nulcb-kf.dts new file +16 -0
@@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the M3NULCB Kingfisher board + * + * Copyright (C) 2018 Renesas Electronics Corp. + * Copyright (C) 2018 Cogent Embedded, Inc. + */ + +#include "r8a77965-m3nulcb.dts" +#include "ulcb-kf.dtsi" + +/ { + model = "Renesas M3NULCB Kingfisher board based on r8a77965"; + compatible = "shimafuji,kingfisher", "renesas,m3nulcb", + "renesas,r8a77965"; +};
Signature · 1 line
2.18.0
Re: [PATCH v2 7/7] arm64: dts: renesas: r8a77965: m3nulcb-kf: Initial device tree
Quoted 7 lines · Eugeniu Rosca
This is based on the existing KF device tree sources:
$ ls -1 arch/arm64/boot/dts/renesas/*-kf.dts arch/arm64/boot/dts/renesas/r8a7795-es1-h3ulcb-kf.dts arch/arm64/boot/dts/renesas/r8a7795-h3ulcb-kf.dts arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dtsSigned-off-by Eugeniu Rosca <[email protected]>
Thanks,
This looks fine to me but I will wait to see if there are other reviews before applying.
Re: [PATCH v2 7/7] arm64: dts: renesas: r8a77965: m3nulcb-kf: Initial device tree
Quoted 7 lines · Simon Horman
Quoted 6 lines · Eugeniu Rosca
This is based on the existing KF device tree sources:
$ ls -1 arch/arm64/boot/dts/renesas/*-kf.dts arch/arm64/boot/dts/renesas/r8a7795-es1-h3ulcb-kf.dts arch/arm64/boot/dts/renesas/r8a7795-h3ulcb-kf.dts arch/arm64/boot/dts/renesas/r8a7796-m3ulcb-kf.dts
Quoted 6 lines
Quoted 1 line
Signed-off-by Eugeniu Rosca <[email protected]>Thanks,
This looks fine to me but I will wait to see if there are other reviews before applying.
Thanks again, applied for v4.20.
I believe that this entire series has now been applied or at least all of the portions to be merged via my renesas tree. Please let me know if I am mistaken.
Quoted 19 lines · Eugeniu Rosca
In harmony with ATF and U-Boot outputs [1] and [2], the new board is based on M3-N revision ES1.1 and the amount of memory present on SiP is 2GiB, contiguously addressed.
The amount of RAM is mentioned based on the assumption that it is encoded in the board id/string. There is some evidence supporting this in form of last-digit-mismatch between two R-Car H3 ES2.0 ULCB board ids, one with 4GiB and one with 8GiB of RAM (see [3]).
[1] BL2: R-Car Gen3 Initial Program Loader(CA57) Rev.1.0.21
BL2: PRR is R-Car M3N Ver.1.1[2] U-Boot 2015.04-00295-*
CPU: Renesas Electronics R8A77965 rev 1.1 ---8<---- DRAM: 1.9 GiB Bank #0: 0x048000000 - 0x0bfffffff, 1.9 GiB ---8<----
Quoted 3 lines
[3] https://patchwork.kernel.org/patch/10555957/#22169325
Signed-off-by Eugeniu Rosca <[email protected]>
Thanks,
This looks fine to me but I will wait to see if there are other reviews before applying.
Quoted 22 lines · Simon Horman
Quoted 21 lines · Eugeniu Rosca
In harmony with ATF and U-Boot outputs [1] and [2], the new board is based on M3-N revision ES1.1 and the amount of memory present on SiP is 2GiB, contiguously addressed.
The amount of RAM is mentioned based on the assumption that it is encoded in the board id/string. There is some evidence supporting this in form of last-digit-mismatch between two R-Car H3 ES2.0 ULCB board ids, one with 4GiB and one with 8GiB of RAM (see [3]).
[1] BL2: R-Car Gen3 Initial Program Loader(CA57) Rev.1.0.21
BL2: PRR is R-Car M3N Ver.1.1[2] U-Boot 2015.04-00295-*
CPU: Renesas Electronics R8A77965 rev 1.1 ---8<---- DRAM: 1.9 GiB Bank #0: 0x048000000 - 0x0bfffffff, 1.9 GiB ---8<----
Quoted 8 lines
Quoted 1 line
Signed-off-by Eugeniu Rosca <[email protected]>Thanks,
This looks fine to me but I will wait to see if there are other reviews before applying.
Reviewed-by Simon Horman <[email protected]>
Thanks again, applied for v4.20.