diff mbox series

[v5,2/3] mips: dts: realtek: Add SPI NAND controller

Message ID 20241015225434.3970360-3-chris.packham@alliedtelesis.co.nz (mailing list archive)
State Accepted
Commit 5a38a5d40f2fa01591ab961ff37385a74b1ec7e1
Headers show
Series Realtek SPI-NAND controller | expand

Commit Message

Chris Packham Oct. 15, 2024, 10:54 p.m. UTC
Add the SPI-NAND controller on the RTL9300 family of devices. This
supports serial/dual/quad data width and DMA for read/program
operations.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
---

Notes:
    Changes in v4 & v5:
    - none
    Changes in v3:
    - drop wildcard rtl9300-snand compatible
    - drop clock-names
    Changes in v2:
    - Add clocks

 arch/mips/boot/dts/realtek/rtl930x.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Chris Packham Nov. 20, 2024, 2:41 a.m. UTC | #1
Hi Thomas,

On 16/10/24 11:54, Chris Packham wrote:
> Add the SPI-NAND controller on the RTL9300 family of devices. This
> supports serial/dual/quad data width and DMA for read/program
> operations.
>
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>

Has this one fallen through the cracks?

I see you picked up a couple of my other changes for 6.13 but this seems 
to be missing from mips/linux.

> ---
>
> Notes:
>      Changes in v4 & v5:
>      - none
>      Changes in v3:
>      - drop wildcard rtl9300-snand compatible
>      - drop clock-names
>      Changes in v2:
>      - Add clocks
>
>   arch/mips/boot/dts/realtek/rtl930x.dtsi | 13 +++++++++++++
>   1 file changed, 13 insertions(+)
>
> diff --git a/arch/mips/boot/dts/realtek/rtl930x.dtsi b/arch/mips/boot/dts/realtek/rtl930x.dtsi
> index f271940f82be..b01a40ec3064 100644
> --- a/arch/mips/boot/dts/realtek/rtl930x.dtsi
> +++ b/arch/mips/boot/dts/realtek/rtl930x.dtsi
> @@ -32,6 +32,8 @@ lx_clk: clock-175mhz {
>   };
>   
>   &soc {
> +	ranges = <0x0 0x18000000 0x20000>;
> +
>   	intc: interrupt-controller@3000 {
>   		compatible = "realtek,rtl9300-intc", "realtek,rtl-intc";
>   		reg = <0x3000 0x18>, <0x3018 0x18>;
> @@ -59,6 +61,17 @@ timer0: timer@3200 {
>   		interrupts = <7>, <8>, <9>, <10>, <11>;
>   		clocks = <&lx_clk>;
>   	};
> +
> +	snand: spi@1a400 {
> +		compatible = "realtek,rtl9301-snand";
> +		reg = <0x1a400 0x44>;
> +		interrupt-parent = <&intc>;
> +		interrupts = <19>;
> +		clocks = <&lx_clk>;
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		status = "disabled";
> +	};
>   };
>   
>   &uart0 {
Thomas Bogendoerfer Nov. 20, 2024, 9:02 a.m. UTC | #2
On Wed, Nov 20, 2024 at 02:41:15AM +0000, Chris Packham wrote:
> Hi Thomas,
> 
> On 16/10/24 11:54, Chris Packham wrote:
> > Add the SPI-NAND controller on the RTL9300 family of devices. This
> > supports serial/dual/quad data width and DMA for read/program
> > operations.
> >
> > Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> 
> Has this one fallen through the cracks?
> 
> I see you picked up a couple of my other changes for 6.13 but this seems 
> to be missing from mips/linux.

hmm, I thought I saw some unresolved problems with the other patches...
But if this is all good, I'll add it to my second pull request.

Thomas.
Chris Packham Nov. 20, 2024, 8:07 p.m. UTC | #3
On 20/11/24 22:02, Thomas Bogendoerfer wrote:
> On Wed, Nov 20, 2024 at 02:41:15AM +0000, Chris Packham wrote:
>> Hi Thomas,
>>
>> On 16/10/24 11:54, Chris Packham wrote:
>>> Add the SPI-NAND controller on the RTL9300 family of devices. This
>>> supports serial/dual/quad data width and DMA for read/program
>>> operations.
>>>
>>> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
>> Has this one fallen through the cracks?
>>
>> I see you picked up a couple of my other changes for 6.13 but this seems
>> to be missing from mips/linux.
> hmm, I thought I saw some unresolved problems with the other patches...
> But if this is all good, I'll add it to my second pull request.

The binding patch got an r-by from Krzysztof. The driver itself was 
applied by by Mark, it did have a problem but that was fixed with 
another patch. So from my point of view this is good to go (please speak 
up if I've missed something).

I do intend to add a few more compatibles for other RTL chips that use 
this spi-nand controller but I'll do that as new patches.
Thomas Bogendoerfer Nov. 23, 2024, 11:03 a.m. UTC | #4
On Wed, Oct 16, 2024 at 11:54:33AM +1300, Chris Packham wrote:
> Add the SPI-NAND controller on the RTL9300 family of devices. This
> supports serial/dual/quad data width and DMA for read/program
> operations.
> 
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> ---
> 
> Notes:
>     Changes in v4 & v5:
>     - none
>     Changes in v3:
>     - drop wildcard rtl9300-snand compatible
>     - drop clock-names
>     Changes in v2:
>     - Add clocks
> 
>  arch/mips/boot/dts/realtek/rtl930x.dtsi | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/arch/mips/boot/dts/realtek/rtl930x.dtsi b/arch/mips/boot/dts/realtek/rtl930x.dtsi
> index f271940f82be..b01a40ec3064 100644
> --- a/arch/mips/boot/dts/realtek/rtl930x.dtsi
> +++ b/arch/mips/boot/dts/realtek/rtl930x.dtsi
> @@ -32,6 +32,8 @@ lx_clk: clock-175mhz {
>  };
>  
>  &soc {
> +	ranges = <0x0 0x18000000 0x20000>;
> +
>  	intc: interrupt-controller@3000 {
>  		compatible = "realtek,rtl9300-intc", "realtek,rtl-intc";
>  		reg = <0x3000 0x18>, <0x3018 0x18>;
> @@ -59,6 +61,17 @@ timer0: timer@3200 {
>  		interrupts = <7>, <8>, <9>, <10>, <11>;
>  		clocks = <&lx_clk>;
>  	};
> +
> +	snand: spi@1a400 {
> +		compatible = "realtek,rtl9301-snand";
> +		reg = <0x1a400 0x44>;
> +		interrupt-parent = <&intc>;
> +		interrupts = <19>;
> +		clocks = <&lx_clk>;
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +		status = "disabled";
> +	};
>  };
>  
>  &uart0 {
> -- 
> 2.47.0

applied to mips-next.

Thomas.
diff mbox series

Patch

diff --git a/arch/mips/boot/dts/realtek/rtl930x.dtsi b/arch/mips/boot/dts/realtek/rtl930x.dtsi
index f271940f82be..b01a40ec3064 100644
--- a/arch/mips/boot/dts/realtek/rtl930x.dtsi
+++ b/arch/mips/boot/dts/realtek/rtl930x.dtsi
@@ -32,6 +32,8 @@  lx_clk: clock-175mhz {
 };
 
 &soc {
+	ranges = <0x0 0x18000000 0x20000>;
+
 	intc: interrupt-controller@3000 {
 		compatible = "realtek,rtl9300-intc", "realtek,rtl-intc";
 		reg = <0x3000 0x18>, <0x3018 0x18>;
@@ -59,6 +61,17 @@  timer0: timer@3200 {
 		interrupts = <7>, <8>, <9>, <10>, <11>;
 		clocks = <&lx_clk>;
 	};
+
+	snand: spi@1a400 {
+		compatible = "realtek,rtl9301-snand";
+		reg = <0x1a400 0x44>;
+		interrupt-parent = <&intc>;
+		interrupts = <19>;
+		clocks = <&lx_clk>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+	};
 };
 
 &uart0 {