Message ID | 20240401-b4-upstream-j721s2-ospi-support-v1-2-20e4a0024db9@ti.com |
---|---|
State | New |
Delegated to: | Jagannadha Sutradharudu Teki |
Headers | show |
Series | Enable OSPI boot for j721s2 | expand |
On 01/04/24 11:16, Manorit Chawdhry wrote: > R5 being a 32-bit processor can't understand the 64-bit mapping being > done in ospi node. Override the ospi node for 32-bit register ranges and > the fss node ( the parent node of ospi ) to map the ranges for the > updated child node correctly. > > Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com> > --- > arch/arm/dts/k3-j721s2-r5-common-proc-board.dts | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts b/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts > index 03bd680f4421..5c4b34915ccf 100644 > --- a/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts > +++ b/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts > @@ -86,3 +86,16 @@ > &mcu_udmap { > ti,sci = <&dm_tifs>; > }; > + > +&ospi0 { > + reg = <0x0 0x47040000 0x0 0x100>, > + <0x0 0x50000000 0x0 0x8000000>; > +}; > + > +&fss { > + /* fss node has 64 bit address regions mapped to it and since the ospi > + * nodes is being override, override the fss node ranges as well > + */ > + ranges = <0x0 0x47000000 0x0 0x47000000 0x0 0x00068400>, > + <0x0 0x50000000 0x0 0x50000000 0x0 0x08000000>; > +}; > Reviewed-by: Apurva Nandan <a-nandan@ti.com>
diff --git a/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts b/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts index 03bd680f4421..5c4b34915ccf 100644 --- a/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts +++ b/arch/arm/dts/k3-j721s2-r5-common-proc-board.dts @@ -86,3 +86,16 @@ &mcu_udmap { ti,sci = <&dm_tifs>; }; + +&ospi0 { + reg = <0x0 0x47040000 0x0 0x100>, + <0x0 0x50000000 0x0 0x8000000>; +}; + +&fss { + /* fss node has 64 bit address regions mapped to it and since the ospi + * nodes is being override, override the fss node ranges as well + */ + ranges = <0x0 0x47000000 0x0 0x47000000 0x0 0x00068400>, + <0x0 0x50000000 0x0 0x50000000 0x0 0x08000000>; +};
R5 being a 32-bit processor can't understand the 64-bit mapping being done in ospi node. Override the ospi node for 32-bit register ranges and the fss node ( the parent node of ospi ) to map the ranges for the updated child node correctly. Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com> --- arch/arm/dts/k3-j721s2-r5-common-proc-board.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+)