spi: Add Renesas R-Car Gen3 RPC-IF SPI driver
Subsystems (2)
v7 cover spi: Add Renesas R-Car Gen3 RPC-IF SPI driver
Hi Mark,
v7 patch is according to Geert and Sergei's comments:
1) Add all R-Car Gen3 model in dts.
2) patch rpc-if child node search.
3) minror coding style.
v6 patch is accroding to Geert, Marek and Sergei's comments:
1) spi_controller for new code.
2) "renesas,rcar-gen3-rpc" instead of "renesas,r8a77995-rpc."
3) patch external address read mode w/o u64 readq().
4) patch dts for write buffer & drop "renesas,rpc-mode".
5) coding style and so on.
v5 patch is accroding to Sergei's comments:
1) Read 6 bytes ID from Sergei's patch.
2) regmap_update_bits().
3) C++ style comment.
v4 patch is according to Sergei's comments including:
1) Drop soc_device_match().
2) Drop unused RPC registers.
3) Use ilog2() instead of fls().
4) Patch read 6 bytes ID w/ one command.
5) Coding style and so on.
v3 patch is according to Marek and Geert's comments including:
1) soc_device_mach() to set up RPC_PHYCNT_STRTIM.
2) get_unaligned().
3) rpc-mode for rpi-spi-flash or rpc-hyperflash.
4) coding style and so on.
v2 patch including:
1) remove RPC clock enable/dis-able control,
2) patch run time PM.
3) add RPC module software reset,
4) add regmap.
5) other coding style and so on.
thanks for your review.
best regards,
Mason
Mason Yang (2):
spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
dt-bindings: spi: Document Renesas R-Car Gen3 RPC-IF controller
bindings
.../devicetree/bindings/spi/spi-renesas-rpc.txt | 46 ++ drivers/spi/Kconfig | 6 + drivers/spi/Makefile | 1 + drivers/spi/spi-renesas-rpc.c | 805 +++++++++++++++++++++ 4 files changed, 858 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt create mode 100644 drivers/spi/spi-renesas-rpc.c
Signature · 1 line
1.9.1
PATCH v7 1/2 spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
Add a driver for Renesas R-Car Gen3 RPC-IF SPI controller.
--- drivers/spi/Kconfig | 6 + drivers/spi/Makefile | 1 + drivers/spi/spi-renesas-rpc.c | 805 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 812 insertions(+) create mode 100644 drivers/spi/spi-renesas-rpc.c
drivers/spi/Kconfig +6 -0
@@ -544,6 +544,12 @@ config SPI_RSPI help SPI driver for Renesas RSPI and QSPI blocks. +config SPI_RENESAS_RPC + tristate "Renesas R-Car Gen3 RPC-IF controller" + depends on ARCH_RENESAS || COMPILE_TEST + help + SPI driver for Renesas R-Car Gen3 RPC-IF. + config SPI_QCOM_QSPI tristate "QTI QSPI controller" depends on ARCH_QCOM
drivers/spi/Makefile +1 -0
@@ -84,6 +84,7 @@ obj-$(CONFIG_SPI_QUP) += spi-qup.o obj-$(CONFIG_SPI_ROCKCHIP) += spi-rockchip.o obj-$(CONFIG_SPI_RB4XX) += spi-rb4xx.o obj-$(CONFIG_SPI_RSPI) += spi-rspi.o +obj-$(CONFIG_SPI_RENESAS_RPC) += spi-renesas-rpc.o obj-$(CONFIG_SPI_S3C24XX) += spi-s3c24xx-hw.o spi-s3c24xx-hw-y := spi-s3c24xx.o spi-s3c24xx-hw-$(CONFIG_SPI_S3C24XX_FIQ) += spi-s3c24xx-fiq.o
drivers/spi/spi-renesas-rpc.c new file +805 -0
805 lines not on this page · raw message
Signature · 1 line
1.9.1
Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
Hello!
Quoted 4 lines · Mason Yang
Add a driver for Renesas R-Car Gen3 RPC-IF SPI controller.
Signed-off-by Mason Yang <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
[...]
drivers/spi/spi-renesas-rpc.c line 6
Quoted 12 lines
drivers/spi/spi-renesas-rpc.c new file +6
-0@@ -0,0 +1,805 @@ +// SPDX-License-Identifier: GPL-2.0 +// +// Copyright (C) 2018 ~ 2019 Renesas Solutions Corp. +// Copyright (C) 2018 Macronix International Co., Ltd. +// +// R-Car Gen3 RPC-IF SPI/QSPI/Octa driver
Do we really support Octa?
Quoted 4 lines
drivers/spi/spi-renesas-rpc.c new file +4
-0+// +// Authors: +// Mason Yang <[email protected]> +//
[...]
Quoted 1 line
+#include <
asm/unaligned.h>
[...]
Quoted 8 lines
drivers/spi/spi-renesas-rpc.c new file +8
-0+ }else if (rx_buf) { +// +// RPC-IF spoils the data for the commands without an address +// phase (like RDID) in the manual mode, so we'll have to work +// around this issue by using the external address space read +// mode instead. +// +if (!(smenr &RPC_SMENR_ADE (0xf ))) {
drivers/spi/spi-renesas-rpc.c line 277
Quoted 10 lines
drivers/spi/spi-renesas-rpc.c new file +10
-0+regmap_update_bits (rpc->regmap,RPC_CMNCR , +RPC_CMNCR_MD ,0 ); +regmap_write (rpc->regmap,RPC_DRCR , +RPC_DRCR_RBURST (32 ) |RPC_DRCR_RBE ); +regmap_write (rpc->regmap,RPC_DREAR ,RPC_DREAR_EAC (1 )); +regmap_write (rpc->regmap,RPC_DRCMR , rpc->cmd); +regmap_write (rpc->regmap,RPC_DRDMCR , rpc->dummy); +regmap_write (rpc->regmap,RPC_DROPR ,0 ); +regmap_write (rpc->regmap,RPC_DRENR , smenr); +memcpy_fromio (rx_buf, rpc->dirmap, rpc->xferlen);
Just noticed: if rpc->dirmap is NULL (which is now allowed), we have a kernel oops
here. :-(
[...]
drivers/spi/spi-renesas-rpc.c line 671
Quoted 6 lines
drivers/spi/spi-renesas-rpc.c new file +6
-0+static int rpc_spi_probe (struct platform_device *pdev) +{ +struct spi_controller *ctlr; +struct resource *res; +struct rpc_spi *rpc; +struct device_node *rpc_if;
Don't think that's a good name. Why not call it 'flash'?
drivers/spi/spi-renesas-rpc.c line 676
Quoted 5 lines
drivers/spi/spi-renesas-rpc.c new file +5
-0+int ret; + + rpc_if =of_get_next_child (pdev->dev.of_node,NULL ); +if (!rpc_if) { +dev_warn (&pdev->dev,"no spi-nor device node found\n" );
How about "no flash node found"?
drivers/spi/spi-renesas-rpc.c line 682
Quoted 6 lines
drivers/spi/spi-renesas-rpc.c new file +6
-0+return -ENODEV ; + } + + ret =of_device_is_compatible (rpc_if,"jedec,spi-nor" ); +if (!ret) { +dev_warn (&pdev->dev,"no compatible spi-nor device found\n" );
"no SPI-NOR device found"?
[...]
Quoted 13 lines
drivers/spi/spi-renesas-rpc.c new file +13
-0+ ret =spi_register_controller (ctlr); +if (ret) { +dev_err (&pdev->dev,"spi_register_controller failed\n" ); + goto err_put_ctlr; + } +return 0 ; + +err_put_ctlr: +spi_controller_put (ctlr); +pm_runtime_disable (&pdev->dev); + +return ret; +}
[...]
drivers/spi/spi-renesas-rpc.c line 765
Quoted 2 lines
drivers/spi/spi-renesas-rpc.c new file +2
-0+static const struct of_device_id rpc_spi_of_ids[] = { + { .compatible ="renesas,r8a77995-rpc" , },
Why (if it has no differences with the generic gen3 value below)?
Please remove.
drivers/spi/spi-renesas-rpc.c line 769
Quoted 4 lines
drivers/spi/spi-renesas-rpc.c new file +4
-0+ { .compatible = "renesas,rcar-gen3-rpc", }, + {/* sentinel */ } +}; +MODULE_DEVICE_TABLE (of, rpc_spi_of_ids);
[...]
MBR, Sergei
A message that is not in the archive (sent off-list or not yet received): OFC86383C3.5347178A-ON4825838C.00093E95-4825838C.000B9D6F@mxic.com.tw
Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
Hi Mason,
Quoted 9 lines · On Thu, Jan 24, 2019 at 3:07 AM <[email protected]> wrote:
Quoted 8 lines
"Sergei Shtylyov" <[email protected]> 2019/01/24 上午 02:04
drivers/spi/spi-renesas-rpc.c line 765
Quoted 2 lines
drivers/spi/spi-renesas-rpc.c new file +2
-0+static const struct of_device_id rpc_spi_of_ids[] = { + { .compatible ="renesas,r8a77995-rpc" , },Why (if it has no differences with the generic gen3 value below)?
Please remove.
Quoted 8 lines
By Geert's comments in dts,
rpc: rpc@ee200000 { compatible = "renesas,r8a7795-rpc", "renesas,rcar-gen3-rpc"; reg = <0 0xee200000 0 0x200>, <0 0x08000000 0 0x4000000>, <0 0xee208000 0 0x100>;I modified it to "renesas,r8a77995-rpc" because this is Soc I developed and validated.
There's a difference between compatible values in DT and in drivers:
- DT should list all compatible values that are applicable, from most-specific to least-specific,
- Drivers should match against the least-specific compatible value that is sufficient to get the job done.
In this case, that's "renesas,rcar-gen3-rpc".
The driver will probably have to be extended to match against "renesas,r8a77970-rpc" when R-Car V3M support is added, as RPC on V3M has an extra register that must be set, and thus cannot be declared compatible with "renesas,rcar-gen3-rpc".
I hope this explanation makes it clearer.
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 v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
In reply to a message not in the archiveQuoted 10 lines · On 01/24/2019 05:06 AM, [email protected] wrote:
Quoted 8 lines
drivers/spi/spi-renesas-rpc.c line 6
Quoted 6 lines
drivers/spi/spi-renesas-rpc.c new file +6
-0+// SPDX-License-Identifier: GPL-2.0 +// +// Copyright (C) 2018 ~ 2019 Renesas Solutions Corp. +// Copyright (C) 2018 Macronix International Co., Ltd. +// +// R-Car Gen3 RPC-IF SPI/QSPI/Octa driver Do we really support Octa?
yes and it needs to patch spi-nor layer and RPC driver for sure.
It?
Quoted 26 lines
Quoted 26 lines
Quoted 4 lines
drivers/spi/spi-renesas-rpc.c new file +4
-0+// +// Authors: +// Mason Yang <[email protected]> +// [...]
Quoted 1 line
+#include <
asm/unaligned.h>[...]
Quoted 18 lines
drivers/spi/spi-renesas-rpc.c new file +18
-0+ }else if (rx_buf) { +// +// RPC-IF spoils the data for the commands without an address +// phase (like RDID) in the manual mode, so we'll have to work +// around this issue by using the external address space read +// mode instead. +// +if (!(smenr &RPC_SMENR_ADE (0xf ))) { +regmap_update_bits (rpc->regmap,RPC_CMNCR , +RPC_CMNCR_MD ,0 ); +regmap_write (rpc->regmap,RPC_DRCR , +RPC_DRCR_RBURST (32 ) |RPC_DRCR_RBE ); +regmap_write (rpc->regmap,RPC_DREAR ,RPC_DREAR_EAC (1 )); +regmap_write (rpc->regmap,RPC_DRCMR , rpc->cmd); +regmap_write (rpc->regmap,RPC_DRDMCR , rpc->dummy); +regmap_write (rpc->regmap,RPC_DROPR ,0 ); +regmap_write (rpc->regmap,RPC_DRENR , smenr); +memcpy_fromio (rx_buf, rpc->dirmap, rpc->xferlen);
Quoted 5 lines
Quoted 3 lines
Just noticed: if
rpc->dirmapis NULL (which is now allowed), we
have a kernel oops
here. :-(Do you patch your
spi-mem.c?
What do yuo mean? The only extra patch I have to apply now to renesas.git repo's devel
branch is "mtd: devices: m25p80: Use the spi-mem dirmap API"...
Quoted 1 line
both
dirmap_create()in your rpc driver and spi-mem layer should handle it well.
I just saw that you don't fail the driver's probe() method if devm_ioremap_resource()
fails for the "dirmap" and "wbuf" resources...
Quoted 7 lines
Quoted 6 lines
[...]
drivers/spi/spi-renesas-rpc.c line 765
Quoted 2 lines
drivers/spi/spi-renesas-rpc.c new file +2
-0+static const struct of_device_id rpc_spi_of_ids[] = { + { .compatible ="renesas,r8a77995-rpc" , },Why (if it has no differences with the generic gen3 value below)?
Please remove.
Quoted 8 lines
By Geert's comments in dts,
rpc: rpc@ee200000 { compatible = "renesas,r8a7795-rpc", "renesas,rcar-gen3-rpc"; reg = <0 0xee200000 0 0x200>, <0 0x08000000 0 0x4000000>, <0 0xee208000 0 0x100>;I modified it to "renesas,r8a77995-rpc" because this is Soc I developed and validated.
Hopefully this matter is cleared up by Geert... :-)
Quoted 2 lines
thanks,
Mason
MBR, Sergei
Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
In reply to a message not in the archiveQuoted 10 lines · On 01/24/2019 05:06 AM, [email protected] wrote:
Quoted 8 lines
drivers/spi/spi-renesas-rpc.c line 6
Quoted 6 lines
drivers/spi/spi-renesas-rpc.c new file +6
-0+// SPDX-License-Identifier: GPL-2.0 +// +// Copyright (C) 2018 ~ 2019 Renesas Solutions Corp. +// Copyright (C) 2018 Macronix International Co., Ltd. +// +// R-Car Gen3 RPC-IF SPI/QSPI/Octa driver Do we really support Octa?
yes and it needs to patch spi-nor layer and RPC driver for sure.
It?
Quoted 26 lines
Quoted 26 lines
Quoted 4 lines
drivers/spi/spi-renesas-rpc.c new file +4
-0+// +// Authors: +// Mason Yang <[email protected]> +// [...]
Quoted 1 line
+#include <
asm/unaligned.h>[...]
Quoted 18 lines
drivers/spi/spi-renesas-rpc.c new file +18
-0+ }else if (rx_buf) { +// +// RPC-IF spoils the data for the commands without an address +// phase (like RDID) in the manual mode, so we'll have to work +// around this issue by using the external address space read +// mode instead. +// +if (!(smenr &RPC_SMENR_ADE (0xf ))) { +regmap_update_bits (rpc->regmap,RPC_CMNCR , +RPC_CMNCR_MD ,0 ); +regmap_write (rpc->regmap,RPC_DRCR , +RPC_DRCR_RBURST (32 ) |RPC_DRCR_RBE ); +regmap_write (rpc->regmap,RPC_DREAR ,RPC_DREAR_EAC (1 )); +regmap_write (rpc->regmap,RPC_DRCMR , rpc->cmd); +regmap_write (rpc->regmap,RPC_DRDMCR , rpc->dummy); +regmap_write (rpc->regmap,RPC_DROPR ,0 ); +regmap_write (rpc->regmap,RPC_DRENR , smenr); +memcpy_fromio (rx_buf, rpc->dirmap, rpc->xferlen);
Quoted 5 lines
Quoted 3 lines
Just noticed: if
rpc->dirmapis NULL (which is now allowed), we
have a kernel oops
here. :-(Do you patch your
spi-mem.c?
What do you mean? The only extra patch I have to apply now to renesas.git repo's devel
branch is "mtd: devices: m25p80: Use the spi-mem dirmap API"...
Quoted 1 line
both
dirmap_create()in your rpc driver and spi-mem layer should handle it well.
I just saw that you don't fail the driver's probe() method if devm_ioremap_resource()
fails for the "dirmap" and "wbuf" resources...
Quoted 7 lines
Quoted 6 lines
[...]
drivers/spi/spi-renesas-rpc.c line 765
Quoted 2 lines
drivers/spi/spi-renesas-rpc.c new file +2
-0+static const struct of_device_id rpc_spi_of_ids[] = { + { .compatible ="renesas,r8a77995-rpc" , },Why (if it has no differences with the generic gen3 value below)?
Please remove.
Quoted 8 lines
By Geert's comments in dts,
rpc: rpc@ee200000 { compatible = "renesas,r8a7795-rpc", "renesas,rcar-gen3-rpc"; reg = <0 0xee200000 0 0x200>, <0 0x08000000 0 0x4000000>, <0 0xee208000 0 0x100>;I modified it to "renesas,r8a77995-rpc" because this is Soc I developed and validated.
Hopefully this matter is cleared up by Geert... :-)
Quoted 2 lines
thanks,
Mason
MBR, Sergei
Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
In reply to Mason YangQuoted 4 lines · Mason Yang
Add a driver for Renesas R-Car Gen3 RPC-IF SPI controller.
Signed-off-by Mason Yang <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>
[...]
Quoted 1 line
+#define
RPC_CMNCR0x0000// R/W
Is there any reason for using those horrible C++ comments ?
[...]
Quoted 1 line
+module_platform_driver(rpc_spi_driver);
RPC is not a SPI controller, it's a SPI and HF controller.
Also, how difficult will it be to add the HF support ?
Quoted 4 lines
drivers/spi/spi-renesas-rpc.c new file +3
-0+MODULE_AUTHOR ("Mason Yang <[email protected]>" ); +MODULE_DESCRIPTION ("Renesas R-Car Gen3 RPC-IF SPI controller driver" ); +MODULE_LICENSE ("GPL v2" );
Signature · 2 lines
Best regards, Marek Vasut
A message that is not in the archive (sent off-list or not yet received): OF767ACC95.EECC73BE-ON4825838C.000BD6A3-4825838C.000D23A6@mxic.com.tw
Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
Quoted 1 line · On 1/24/19 3:23 AM, [email protected] wrote:
Hi Marek,
Hi,
Quoted 11 lines
Quoted 7 lines
"Marek Vasut" <[email protected]>
2019/01/24 上午 09:54Quoted 1 line
+#define
RPC_CMNCR0x0000 // R/WIs there any reason for using those horrible C++ comments ?
By Mark's comments for the SPDX header needs to be C++ style and I patch the whole RPC driver comments using C++ style otherwise it looks messy.
I think the C++ comments should only be applied to the SPDX identifier, maybe the header, but not the entire file.
Quoted 11 lines
Quoted 7 lines
[...]
Quoted 1 line
+module_platform_driver(rpc_spi_driver);
RPC is not a SPI controller, it's a SPI and HF controller.
Also, how difficult will it be to add the HF support ?
One of my customers needs RPC SPI driver for our company's Octal-Flash,MX25UW51245G.
We don't have HF product and hope you could understanding.
I am worried that when we need to add RPC HF support (which is what all boards but the D3 Draak use), we will have to rewrite the entire driver and/or convert it to MFD and that would be a tremendous undertaking. I'd prefer to have the driver ready for the HF addition before it's accepted upstream.
Signature · 2 lines
Best regards, Marek Vasut
A message that is not in the archive (sent off-list or not yet received): OF891E176A.614DBEEF-ON4825838C.0022D454-4825838C.002396ED@mxic.com.tw
Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
Quoted 1 line · On 1/24/19 7:28 AM, [email protected] wrote:
Hi Marek,
Hi,
Quoted 20 lines
Quoted 13 lines
"Marek Vasut" <[email protected]>
2019/01/24 上午 11:14Quoted 10 lines
Quoted 6 lines
Quoted 2 lines
+module_platform_driver(rpc_spi_driver);
RPC is not a SPI controller, it's a SPI and HF controller.
Also, how difficult will it be to add the HF support ?
One of my customers needs RPC SPI driver for our company's Octal-Flash,MX25UW51245G.
We don't have HF product and hope you could understanding.Quoted 6 lines
I am worried that when we need to add RPC HF support (which is what all boards but the D3 Draak use), we will have to rewrite the entire driver and/or convert it to MFD and that would be a tremendous undertaking. I'd prefer to have the driver ready for the HF addition before it's accepted upstream.
Quoted 6 lines
I think maybe your concerned would be happened only if HF driver goes with spi-mem layer.
A comment for HF from Daniel Fishman. FYR.
https://www.quora.com/What-is-a-hyper-flash-memory-and-how-is-it-different-from-normal-flash-memory
I have a decent idea what HF and SPI NOR are, since I wrote the RPC driver for both HF and SPI mode for U-Boot (as I mentioned earlier).
The HF in Linux would use the CFI NOR part of MTD framework. My concern is that when we need to add HF support into this driver, this driver will have to be basically rewritten, since the architecture won't allow for that. I'd like to avoid that, since the majority of Gen3 boards, expect for the D3 Draak, use RPC in HF mode.
Signature · 2 lines
Best regards, Marek Vasut
A message that is not in the archive (sent off-list or not yet received): OFEAAE10B4.20C3E45D-ON48258390.0007CD37-48258390.0009066E@mxic.com.tw
Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
Quoted 1 line · On 1/28/19 2:38 AM, [email protected] wrote:
Hi Marek,
Hi,
Quoted 40 lines
Quoted 14 lines
"Marek Vasut" <[email protected]>
Quoted 13 lines
Quoted 13 lines
Quoted 9 lines
Quoted 5 lines
Quoted 1 line
+module_platform_driver(rpc_spi_driver);
RPC is not a SPI controller, it's a SPI and HF controller.
Also, how difficult will it be to add the HF support ?
One of my customers needs RPC SPI driver for our company's Octal-Flash,MX25UW51245G.
We don't have HF product and hope you could understanding.I am worried that when we need to add RPC HF support (which is what all boards but the D3 Draak use), we will have to rewrite the entire driver and/or convert it to MFD and that would be a tremendous
undertaking. I'd
Quoted 1 line
Quoted 1 line
Quoted 1 line
prefer to have the driver ready for the HF addition before it's
accepted
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
upstream.
I think maybe your concerned would be happened only if HF driver
goes with
Quoted 7 lines
Quoted 5 lines
spi-mem layer.
A comment for HF from Daniel Fishman. FYR.
https://www.quora.com/What-is-a-hyper-flash-memory-and-how-is-it-
different-from-normal-flash-memory
Quoted 8 lines
I have a decent idea what HF and SPI NOR are, since I wrote the RPC driver for both HF and SPI mode for U-Boot (as I mentioned earlier).
The HF in Linux would use the CFI NOR part of MTD framework. My concern is that when we need to add HF support into this driver, this driver will have to be basically rewritten, since the architecture won't allow for that. I'd like to avoid that, since the majority of Gen3 boards, expect for the D3 Draak, use RPC in HF mode.
FYI~
Quoted 7 lines
MX25UW51245g(64MByte Octa) S26KL512S(64MByte HF) 8 IO 8 IO 200MHz [email protected] 166MHz [email protected]
support Read-while-write Not support good for OTA,etc
powerful application
What does that mean ?
Signature · 2 lines
Best regards, Marek Vasut
A message that is not in the archive (sent off-list or not yet received): OF1DC7FF88.3574E5B9-ON48258391.000A5001-48258391.000D5DDE@mxic.com.tw
Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
Quoted 1 line · On 1/29/19 3:26 AM, [email protected] wrote:
Hi Marek,
Hi,
Quoted 46 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
"Marek Vasut" <[email protected]>
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
+module_platform_driver(rpc_spi_driver);
RPC is not a SPI controller, it's a SPI and HF controller.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Also, how difficult will it be to add the HF support ?
One of my customers needs RPC SPI driver for our company's Octal-Flash,MX25UW51245G.
We don't have HF product and hope you could understanding.I am worried that when we need to add RPC HF support (which is
what all
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
boards but the D3 Draak use), we will have to rewrite the entire
driver
Quoted 31 lines
Quoted 31 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
and/or convert it to MFD and that would be a tremendous
undertaking. I'd
Quoted 1 line
Quoted 1 line
Quoted 1 line
prefer to have the driver ready for the HF addition before it's
accepted
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
upstream.
I think maybe your concerned would be happened only if HF driver
goes with
Quoted 7 lines
Quoted 5 lines
spi-mem layer.
A comment for HF from Daniel Fishman. FYR.
https://www.quora.com/What-is-a-hyper-flash-memory-and-how-is-it-
different-from-normal-flash-memory
Quoted 8 lines
I have a decent idea what HF and SPI NOR are, since I wrote the RPC driver for both HF and SPI mode for U-Boot (as I mentioned earlier).
The HF in Linux would use the CFI NOR part of MTD framework. My concern is that when we need to add HF support into this driver, this driver will have to be basically rewritten, since the architecture won't allow for that. I'd like to avoid that, since the majority of Gen3 boards, expect for the D3 Draak, use RPC in HF mode.
FYI~
MX25UW51245g(64MByte Octa) S26KL512S(64MByte HF) 8 IO 8 IO 200MHz [email protected] 166MHz [email protected]
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
support Read-while-write Not support good for OTA,etc
powerful applicationWhat does that mean ?
I have no idea why would you say "since the majority of Gen3 boards use RPC in HF mode" ?
Well, the H3/M3W/M3N S-X(S) and the H3/M3 ULCB and E3 Ebisu all boot from HF. Only the D3 Draak uses QSPI NOR.
Quoted 5 lines
So far as I know that HF is provided by Cypress only and
any mass production product use the component which is provided by only one provider
will be a big risk.
Quoted 7 lines
Compare to HF, there are more provider of SPI/Octa could support the mass production product
as their second provider.In addition, from the technical points of view, mx25uw51245g is more powerful than HF and
good for complicate user application, i.e., OTA and so on.
Did you consider protocol overhead too ? I don't think you can compare them just by raw numbers of pins and bus frequency.
Note that over-the-air update (if that's what you mean by OTA) is completely separate from the underlying storage device.
Quoted 1 line
I think customer have more choice for their flash memory component.
Note that none of this is really relevant to my concerns above regarding HF support. This driver should be implemented as MFD driver and the SPI part should use the MFD core part , just like the future HF part.
Signature · 2 lines
Best regards, Marek Vasut
A message that is not in the archive (sent off-list or not yet received): OFA6EF1EB2.198B44D0-ON48258392.00099520-48258392.000D03A4@mxic.com.tw
Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
Quoted 1 line · On 1/30/19 3:22 AM, [email protected] wrote:
Hi Marek,
Hi,
Quoted 79 lines
Quoted 15 lines
"Marek Vasut" <[email protected]>
2019/01/29 下午 12:45To
cc
[email protected], [email protected], "Geert Uytterhoeven" <[email protected]>, "Simon Horman" <[email protected]>, [email protected], [email protected], linux-renesas- [email protected], [email protected], [email protected], [email protected]
Quoted 3 lines
Subject
Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller
driver
Quoted 41 lines · On 1/29/19 3:26 AM, [email protected] wrote:
Quoted 1 line
Hi Marek,
Hi,
Quoted 35 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
"Marek Vasut" <[email protected]>
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
+module_platform_driver(rpc_spi_driver);
RPC is not a SPI controller, it's a SPI and HF controller.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Also, how difficult will it be to add the HF support ?
One of my customers needs RPC SPI driver for our company's Octal-Flash,MX25UW51245G.
We don't have HF product and hope you could understanding.I am worried that when we need to add RPC HF support (which is
what all
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
boards but the D3 Draak use), we will have to rewrite the entire
driver
Quoted 20 lines
Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
and/or convert it to MFD and that would be a tremendous
undertaking. I'd
Quoted 1 line
Quoted 1 line
Quoted 1 line
prefer to have the driver ready for the HF addition before it's
accepted
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
upstream.
I think maybe your concerned would be happened only if HF driver
goes with
Quoted 11 lines
Quoted 5 lines
spi-mem layer.
A comment for HF from Daniel Fishman. FYR.
https://www.quora.com/What-is-a-hyper-flash-memory-and-how-is-it-
different-from-normal-flash-memory
I have a decent idea what HF and SPI NOR are, since I wrote the RPC driver for both HF and SPI mode for U-Boot (as I mentioned earlier).
The HF in Linux would use the CFI NOR part of MTD framework. My
concern
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
is that when we need to add HF support into this driver, this driver will have to be basically rewritten, since the architecture
won't allow
Quoted 15 lines
Quoted 15 lines
Quoted 14 lines
Quoted 5 lines
Quoted 2 lines
for that. I'd like to avoid that, since the majority of Gen3 boards, expect for the D3 Draak, use RPC in HF mode.
FYI~
Quoted 7 lines
MX25UW51245g(64MByte Octa) S26KL512S(64MByte HF) 8 IO 8 IO 200MHz [email protected] 166MHz [email protected]
support Read-while-write Not support good for OTA,etc
powerful applicationWhat does that mean ?
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
I have no idea why would you say "since the majority of Gen3 boards use RPC in HF mode" ?
Well, the H3/M3W/M3N S-X(S) and the H3/M3 ULCB and E3 Ebisu all boot from HF. Only the D3 Draak uses QSPI NOR.
It's understandable because mx25uw51245g is a new product and it has been adopted by Renesas’ Automotive Instrument Cluster RH850/D1M1A MCU.
The aforementioned boards are not going away however. There's too many users to ignore those.
Quoted 15 lines
We also have patched R-Car's BL for booting from Octa-Flash as bellow log:
NOTICE: BL2: R-Car D3 Initial Program Loader(CA53) Rev.0.5.1
NOTICE: BL2: PRR is R-Car D3 Ver1.0
NOTICE: BL2: Boot device isMXIC_OctaFlash
NOTICE: BL2: LCM state is CM
NOTICE: BL2: DDR3L-1866(rev.0.02)
NOTICE: BL2: QoS is default setting(rev.0.07)
NOTICE: BL2: v1.3(release):
NOTICE: BL2: Built : 09:56:31, Sep 26 2018
NOTICE: BL2: Normal boot
NOTICE: BL2: dst=0xe63111f0 src=0x8180000 len=512(0x200)
NOTICE: BL2: dst=0x43f00000 src=0x8180400 len=6144(0x1800)
NOTICE: BL2: dst=0x44000000 src=0x81c0000 len=65536(0x10000)
NOTICE: BL2: dst=0x50000000 src=0x8640000 len=1048576(0x100000)
This looks like a very old ATF version. Anyway, please submit those patches upstream, they should be generic.
Quoted 16 lines
Quoted 16 lines
Quoted 5 lines
So far as I know that HF is provided by Cypress only and
any mass production product use the component which is provided by only one provider
will be a big risk.Quoted 7 lines
Compare to HF, there are more provider of SPI/Octa could support the mass production product
as their second provider.In addition, from the technical points of view, mx25uw51245g is more powerful than HF and
good for complicate user application, i.e., OTA and so on.Did you consider protocol overhead too ? I don't think you can compare them just by raw numbers of pins and bus frequency.
Quoted 6 lines
Quoted 2 lines
Note that over-the-air update (if that's what you mean by OTA) is completely separate from the underlying storage device.
It's key feature of mx25uw51245g supports Read-while-Write capability that allows read access from one memory bank while writing to another memory bank.
Note that this sales pitch is rather off-topic.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
I think customer have more choice for their flash memory component.
Note that none of this is really relevant to my concerns above regarding HF support. This driver should be implemented as MFD driver and the SPI part should use the MFD core part , just like the future HF part.
Even though they are both internal NOR memory chip, is it a trend of Kernel for the different HW controller and protocol ?
I'm not sure I understand the question, but the HF behaves like a CFI NOR, that's why it should be operated via the CFI part of the MTD framework. The SPI NOR behaves, well, like a SPI NOR and so should be operated via the SPI NOR part of the MTD framework.
However, a lot of the code operating the RPC is common for the HF and SPI NOR modes, which is why that part should be a MFD driver or some common core driver.
Quoted 1 line
What about others,i.e., raw-NAND and spi-NAND ?
I don't think the RPC supports those, does it ?
Quoted 2 lines
oh, a little bit leaving the topic !
anyway, nice to talk to you about this R-Car Gen3 RPC driver.
[...]
Signature · 2 lines
Best regards, Marek Vasut
Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
Quoted 16 lines · On Wed, 30 Jan 2019 08:15:25 +0100 Marek Vasut <[email protected]> wrote:
Quoted 16 lines
Quoted 16 lines
Quoted 5 lines
So far as I know that HF is provided by Cypress only and
any mass production product use the component which is provided by only one provider
will be a big risk.Quoted 7 lines
Compare to HF, there are more provider of SPI/Octa could support the mass production product
as their second provider.In addition, from the technical points of view, mx25uw51245g is more powerful than HF and
good for complicate user application, i.e., OTA and so on.Did you consider protocol overhead too ? I don't think you can compare them just by raw numbers of pins and bus frequency.
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
Note that over-the-air update (if that's what you mean by OTA) is completely separate from the underlying storage device.
It's key feature of mx25uw51245g supports Read-while-Write capability that allows read access from one memory bank while writing to another memory bank.
Note that this sales pitch is rather off-topic.
Fully agree with Marek on that point. The discussion is about supporting both HF and SPI-MEM modes (or, at least have a plan to support HF at some point) not figuring out which option is better.
Re: [PATCH v7 1/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver
In reply to a message not in the archiveQuoted 10 lines · On 01/24/2019 05:23 AM, [email protected] wrote:
Quoted 7 lines
[...]
Quoted 1 line
+module_platform_driver(rpc_spi_driver);
RPC is not a SPI controller, it's a SPI and HF controller.
Also, how difficult will it be to add the HF support ?
One of my customers needs RPC SPI driver for our company's Octal-Flash,MX25UW51245G. We don't have HF product and hope you could understanding.
I'm looking into the HF support (we have a driver internally).
Quoted 3 lines
thanks & best regards,
Mason
MBR, Sergei
PATCH v7 2/2 dt-bindings: spi: Document Renesas R-Car Gen3 RPC-IF controller bindings
In reply to Mason YangDocument the bindings used by the Renesas R-Car Gen3 RPC-IF controller.
--- .../devicetree/bindings/spi/spi-renesas-rpc.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt new file +46 -0
@@ -0,0 +1,46 @@ +Renesas R-Car Gen3 RPC-IF controller Device Tree Bindings +-------------------------------------------------------------------- + +Required properties: +- compatible: should be an SoC-specific compatible value, followed by + "renesas,rcar-gen3-rpc" as a fallback, i.e., + "renesas,r8a77995-rpc", "renesas,rcar-gen3-rpc". + "renesas,r8a7795-rpc" (R-Car H3) + "renesas,r8a7796-rpc" (R-Car M3-W) + "renesas,r8a77965-rpc" (R-Car M3-N) + "renesas,r8a77970-rpc" (R-Car V3M) + "renesas,r8a77980-rpc" (R-Car V3H) + "renesas,r8a77990-rpc" (R-Car E3) + "renesas,r8a77995-rpc" (R-Car D3) +- reg: should contain three register areas: + first for the base address of rpc-if registers, + second for the direct mapping read mode and + third for the write buffer area. +- reg-names: should contain "regs", "dirmap" and "wbuf" +- clocks: should contain 1 entries for the module's clock +- clock-names: should contain "rpc" +- #address-cells: should be 1 +- #size-cells: should be 0 + +Example: + + rpc: rpc@ee200000 { + compatible = "renesas,r8a77995-rpc", "renesas,rcar-gen3-rpc"; + reg = <0 0xee200000 0 0x200>, <0 0x08000000 0 0x4000000>, + <0 0xee208000 0 0x100>; + reg-names = "regs", "dirmap", "wbuf"; + clocks = <&cpg CPG_MOD 917>; + clock-names = "rpc"; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 917>; + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + spi-tx-bus-width = <1>; + spi-rx-bus-width = <1>; + }; + };
Signature · 1 line
1.9.1
Re: [PATCH v7 2/2] dt-bindings: spi: Document Renesas R-Car Gen3 RPC-IF controller bindings
Quoted 19 lines · Mason Yang
Document the bindings used by the Renesas R-Car Gen3 RPC-IF controller.
Signed-off-by Mason Yang <[email protected]>--- .../devicetree/bindings/spi/spi-renesas-rpc.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-renesas-rpc.txtDocumentation/devicetree/bindings/spi/spi-renesas-rpc.txt new file +5
-0@@ -0,0 +1,46 @@ +Renesas R-Car Gen3 RPC-IF controller Device Tree Bindings +-------------------------------------------------------------------- + +Required properties: +- compatible: should be an SoC-specific compatible value, followed by
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt line 15
Quoted 10 lines
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt new file +10
-0+ "renesas,rcar-gen3-rpc" as a fallback, i.e., + "renesas,r8a77995-rpc", "renesas,rcar-gen3-rpc". + "renesas,r8a7795-rpc" (R-Car H3) + "renesas,r8a7796-rpc" (R-Car M3-W) + "renesas,r8a77965-rpc" (R-Car M3-N) + "renesas,r8a77970-rpc" (R-Car V3M) + "renesas,r8a77980-rpc" (R-Car V3H) + "renesas,r8a77990-rpc" (R-Car E3) + "renesas,r8a77995-rpc" (R-Car D3) +- reg: should contain three register areas:
The driver now handles "dirmap" and "wbuf" resources as optional --
you need to document that.
[...]
MBR, Sergei
A message that is not in the archive (sent off-list or not yet received): OF87800430.BAF731CA-ON4825838C.0006CCEE-4825838C.00092BDE@mxic.com.tw
Re: [PATCH v7 2/2] dt-bindings: spi: Document Renesas R-Car Gen3 RPC-IF controller bindings
Quoted 21 lines · On 24.01.2019 4:40, [email protected] wrote:
Quoted 11 lines
Quoted 11 lines
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt new file +10
-0@@ -0,0 +1,46 @@ +Renesas R-Car Gen3 RPC-IF controller Device Tree Bindings +-------------------------------------------------------------------- + +Required properties: +- compatible: should be an SoC-specific compatible value, followed by + "renesas,rcar-gen3-rpc" as a fallback, i.e., + "renesas,r8a77995-rpc", "renesas,rcar-gen3-rpc". + "renesas,r8a7795-rpc" (R-Car H3) + "renesas,r8a7796-rpc" (R-Car M3-W) + "renesas,r8a77965-rpc" (R-Car M3-N)Quoted 9 lines
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt line 15
Quoted 5 lines
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt new file +5
-0+ "renesas,r8a77970-rpc" (R-Car V3M) + "renesas,r8a77980-rpc" (R-Car V3H) + "renesas,r8a77990-rpc" (R-Car E3) + "renesas,r8a77995-rpc" (R-Car D3) +- reg: should contain three register areas:The driver now handles "dirmap" and "wbuf" resources as optional -- you need to document that.
Quoted 1 line
Why ?
Because the driver treats "dirmap" and "wbuf" as optional resources.
[...]
Quoted 2 lines
best regards,
Mason
MBR, Sergei
Re: [PATCH v7 2/2] dt-bindings: spi: Document Renesas R-Car Gen3 RPC-IF controller bindings
In reply to Mason YangQuoted 18 lines · Mason Yang
Document the bindings used by the Renesas R-Car Gen3 RPC-IF controller.
Signed-off-by Mason Yang <[email protected]>--- .../devicetree/bindings/spi/spi-renesas-rpc.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-renesas-rpc.txtDocumentation/devicetree/bindings/spi/spi-renesas-rpc.txt new file +4
-0@@ -0,0 +1,46 @@ +Renesas R-Car Gen3 RPC-IF controller Device Tree Bindings +-------------------------------------------------------------------- + +Required properties:
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt line 14
Quoted 10 lines
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt new file +10
-0+- compatible: should be an SoC-specific compatible value, followed by + "renesas,rcar-gen3-rpc" as a fallback, i.e., + "renesas,r8a77995-rpc", "renesas,rcar-gen3-rpc". + "renesas,r8a7795-rpc" (R-Car H3) + "renesas,r8a7796-rpc" (R-Car M3-W) + "renesas,r8a77965-rpc" (R-Car M3-N) + "renesas,r8a77970-rpc" (R-Car V3M) + "renesas,r8a77980-rpc" (R-Car V3H) + "renesas,r8a77990-rpc" (R-Car E3) + "renesas,r8a77995-rpc" (R-Car D3)
Was it tested on all of those SoCs and do we already handle all the quirks of those ?
Quoted 20 lines
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt new file +20
-0+- reg: should contain three register areas: + first for the base address of rpc-if registers, + second for the direct mapping read mode and + third for the write buffer area. +- reg-names: should contain "regs", "dirmap" and "wbuf" +- clocks: should contain 1 entries for the module's clock +- clock-names: should contain "rpc" +- #address-cells: should be 1 +- #size-cells: should be 0 + +Example: + + rpc: rpc@ee200000 { + compatible = "renesas,r8a77995-rpc", "renesas,rcar-gen3-rpc"; + reg = <0 0xee200000 0 0x200>, <0 0x08000000 0 0x4000000>, + <0 0xee208000 0 0x100>; + reg-names = "regs", "dirmap", "wbuf"; + clocks = <&cpg CPG_MOD 917>; + clock-names = "rpc"; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt line 44
Quoted 10 lines
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt new file +10
-0+ resets = <&cpg 917>; + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + spi-tx-bus-width = <1>; + spi-rx-bus-width = <1>;
Is the bus width really 1 or is it 4 on the D3 ?
Quoted 3 lines
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt new file +2
-0+ }; + };
Signature · 2 lines
Best regards, Marek Vasut
A message that is not in the archive (sent off-list or not yet received): OFB904EE00.27B08F2C-ON4825838C.000D6846-4825838C.000E90F7@mxic.com.tw
Re: [PATCH v7 2/2] dt-bindings: spi: Document Renesas R-Car Gen3 RPC-IF controller bindings
Hi Mason,
Quoted 28 lines · On Thu, Jan 24, 2019 at 3:39 AM <[email protected]> wrote:
Quoted 19 lines
"Marek Vasut" <[email protected]>
2019/01/24 上午 09:54Review
Quoted 2 lines
(quoted diff) +0
-0rpc.txt
b/Documentation/devicetree/bindings/spi/spi-renesas-rpc.txtQuoted 14 lines
new file mode 100644
index 0000000..305bd10Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt new file +9
-0@@ -0,0 +1,46 @@ +Renesas R-Car Gen3 RPC-IF controller Device Tree Bindings +-------------------------------------------------------------------- + +Required properties: +- compatible: should be an SoC-specific compatible value, followed by + "renesas,rcar-gen3-rpc" as a fallback, i.e., + "renesas,r8a77995-rpc", "renesas,rcar-gen3-rpc". + "renesas,r8a7795-rpc" (R-Car H3) + "renesas,r8a7796-rpc" (R-Car M3-W)Quoted 8 lines
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt line 14
Quoted 5 lines
Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt new file +5
-0+ "renesas,r8a77965-rpc" (R-Car M3-N) + "renesas,r8a77970-rpc" (R-Car V3M) + "renesas,r8a77980-rpc" (R-Car V3H) + "renesas,r8a77990-rpc" (R-Car E3) + "renesas,r8a77995-rpc" (R-Car D3)Was it tested on all of those SoCs and do we already handle all the quirks of those ?
Quoted 2 lines
These are R-Car Gen3 series and I list these by Geert's comments, or I misunderstand Geert's comments ?
I think you misunderstood. Typically we only list the SoC-specific compatible values for SoCs that have been tested with the driver. So for now I'd go with:
- compatible: should be an SoC-specific compatible value, followed by "renesas,rcar-gen3-rpc" as a fallback. Supported SoC-specific values are:
- "renesas,r8a77995-rpc" (R-Car D3)
The list can be extended when the driver has been tested/enhanced to support more SoC types.
Does that sound OK?
Thanks!
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