lkml.org 
[lkml]   [2020]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 1/3] dt-bindings: net: sparx5: Add sparx5-switch bindings
> +  reg-names:
> + minItems: 153
> + items:
> + - const: dev2g5_0
> + - const: dev5g_0
> + - const: pcs5g_br_0
> + - const: dev2g5_1
> + - const: dev5g_1
...
> + - const: ana_ac
> + - const: vop

> + switch: switch@600000000 {
> + compatible = "microchip,sparx5-switch";
> + reg = <0x10004000 0x4000>, /* dev2g5_0 */
> + <0x10008000 0x4000>, /* dev5g_0 */
> + <0x1000c000 0x4000>, /* pcs5g_br_0 */
> + <0x10010000 0x4000>, /* dev2g5_1 */
> + <0x10014000 0x4000>, /* dev5g_1 */

...

> + <0x11800000 0x100000>, /* ana_l2 */
> + <0x11900000 0x100000>, /* ana_ac */
> + <0x11a00000 0x100000>; /* vop */

This is a pretty unusual binding.

Why is it not

reg = <0x10004000 0x1af8000>

and the driver can then break up the memory into its sub ranges?

Andrew

\
 
 \ /
  Last update: 2020-11-27 18:03    [W:0.289 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site