From: Shawn Lin <shawn.lin@rock-chips.com> To: David Woodhouse <dwmw2@infradead.org>, Brian Norris <computersforpeace@gmail.com>, Cyrille Pitchen <cyrille.pitchen@atmel.com> Cc: Marek Vasut <marek.vasut@gmail.com>, linux-rockchip@lists.infradead.org, linux-mtd@lists.infradead.org, Shawn Lin <shawn.lin@rock-chips.com> Subject: [PATCH v6 1/2] mtd: spi-nor: Bindings for Rockchip serial flash controller Date: Wed, 22 Feb 2017 11:02:02 +0800 [thread overview] Message-ID: <1487732523-97390-2-git-send-email-shawn.lin@rock-chips.com> (raw) In-Reply-To: <1487732523-97390-1-git-send-email-shawn.lin@rock-chips.com> Add binding document for the Rockchip serial flash controller. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Acked-by: Marek Vasut <marek.vasut@gmail.com> Acked-by: Rob Herring <robh@kernel.org> --- Changes in v6: None Changes in v5: None Changes in v4: - use uppercase DMA for description Changes in v3: None Changes in v2: None .../devicetree/bindings/mtd/rockchip-sfc.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/rockchip-sfc.txt diff --git a/Documentation/devicetree/bindings/mtd/rockchip-sfc.txt b/Documentation/devicetree/bindings/mtd/rockchip-sfc.txt new file mode 100644 index 0000000..1e449b0 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/rockchip-sfc.txt @@ -0,0 +1,31 @@ +Rockchip Serial Flash Controller + +Required properties: +- compatible : Should be + "rockchip,rv1108-sfc", "rockchip,sfc" for ROCKCHIP RV1108. +- address-cells : Should be 1. +- size-cells : Should be 0. +- clocks: Must contain two entries for each entry in clock-names. +- clock-names: Shall be "sfc" for the transfer-clock, and "hsfc" for + the peripheral clock. +- interrupts : Should contain the interrupt for the device. +- reg: Physical base address of the controller and length of memory mapped. + +Optional properties: +- rockchip,sfc-no-dma: Indicate the controller doesn't support DMA transfer. + +Example: +nor_flash: sfc@301c0000 { + compatible = "rockchip,rv1108-sfc", "rockchip,sfc"; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>; + clock-names = "sfc", "hsfc"; + interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; + reg = <0x301c0000 0x1000>; + spi-nor@0 { + compatible = "jedec,spi-nor"; + spi-max-frequency = <12000000>; + reg = <0>; + }; +}; -- 1.9.1
WARNING: multiple messages have this Message-ID (diff)
From: Shawn Lin <shawn.lin-TNX95d0MmH7DzftRWevZcw@public.gmane.org> To: David Woodhouse <dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>, Brian Norris <computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, Cyrille Pitchen <cyrille.pitchen-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org> Cc: Marek Vasut <marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, Shawn Lin <shawn.lin-TNX95d0MmH7DzftRWevZcw@public.gmane.org>, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Subject: [PATCH v6 1/2] mtd: spi-nor: Bindings for Rockchip serial flash controller Date: Wed, 22 Feb 2017 11:02:02 +0800 [thread overview] Message-ID: <1487732523-97390-2-git-send-email-shawn.lin@rock-chips.com> (raw) In-Reply-To: <1487732523-97390-1-git-send-email-shawn.lin-TNX95d0MmH7DzftRWevZcw@public.gmane.org> Add binding document for the Rockchip serial flash controller. Signed-off-by: Shawn Lin <shawn.lin-TNX95d0MmH7DzftRWevZcw@public.gmane.org> Acked-by: Marek Vasut <marek.vasut-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> --- Changes in v6: None Changes in v5: None Changes in v4: - use uppercase DMA for description Changes in v3: None Changes in v2: None .../devicetree/bindings/mtd/rockchip-sfc.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/rockchip-sfc.txt diff --git a/Documentation/devicetree/bindings/mtd/rockchip-sfc.txt b/Documentation/devicetree/bindings/mtd/rockchip-sfc.txt new file mode 100644 index 0000000..1e449b0 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/rockchip-sfc.txt @@ -0,0 +1,31 @@ +Rockchip Serial Flash Controller + +Required properties: +- compatible : Should be + "rockchip,rv1108-sfc", "rockchip,sfc" for ROCKCHIP RV1108. +- address-cells : Should be 1. +- size-cells : Should be 0. +- clocks: Must contain two entries for each entry in clock-names. +- clock-names: Shall be "sfc" for the transfer-clock, and "hsfc" for + the peripheral clock. +- interrupts : Should contain the interrupt for the device. +- reg: Physical base address of the controller and length of memory mapped. + +Optional properties: +- rockchip,sfc-no-dma: Indicate the controller doesn't support DMA transfer. + +Example: +nor_flash: sfc@301c0000 { + compatible = "rockchip,rv1108-sfc", "rockchip,sfc"; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>; + clock-names = "sfc", "hsfc"; + interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; + reg = <0x301c0000 0x1000>; + spi-nor@0 { + compatible = "jedec,spi-nor"; + spi-max-frequency = <12000000>; + reg = <0>; + }; +}; -- 1.9.1
next prev parent reply other threads:[~2017-02-22 3:02 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-02-22 3:02 [PATCH v6 0/2] Add rockchip serial flash controller support Shawn Lin 2017-02-22 3:02 ` Shawn Lin 2017-02-22 3:02 ` Shawn Lin [this message] 2017-02-22 3:02 ` [PATCH v6 1/2] mtd: spi-nor: Bindings for Rockchip serial flash controller Shawn Lin 2017-02-22 3:02 ` [PATCH v6 2/2] mtd: spi-nor: add rockchip serial flash controller driver Shawn Lin 2017-02-22 3:02 ` Shawn Lin 2017-04-16 17:40 ` Cyrille Pitchen 2017-04-16 17:40 ` Cyrille Pitchen
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1487732523-97390-2-git-send-email-shawn.lin@rock-chips.com \ --to=shawn.lin@rock-chips.com \ --cc=computersforpeace@gmail.com \ --cc=cyrille.pitchen@atmel.com \ --cc=dwmw2@infradead.org \ --cc=linux-mtd@lists.infradead.org \ --cc=linux-rockchip@lists.infradead.org \ --cc=marek.vasut@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.