* [PATCH 0/3] ARM: dts: keystone-k2g-evm: Add SPI nodes and enable SPI1 on K2G EVM @ 2017-09-08 20:46 Franklin S Cooper Jr [not found] ` <20170908204638.13149-1-fcooper-l0cyMroinI0@public.gmane.org> ` (2 more replies) 0 siblings, 3 replies; 7+ messages in thread From: Franklin S Cooper Jr @ 2017-09-08 20:46 UTC (permalink / raw) To: broonie, robh+dt, mark.rutland, ssantosh, linux, linux-spi, devicetree, linux-kernel, linux-arm-kernel Cc: Franklin S Cooper Jr Update the binding document to indicate the required requirements for 66AK2G. In addition add the proper SPI nodes for 66AK2G. For K2G EVM enable SPI1 which is used for the on board SPI NOR. Franklin S Cooper Jr (1): dt-bindings: spi: spi-davinci: Update binding for 66AK2Gx pwr dm property Murali Karicheri (1): ARM: dts: keystone-k2g-evm: add bindings for SPI NOR flash Vitaly Andrianov (1): ARM: dts: keystone-k2g: Add SPI nodes .../devicetree/bindings/spi/spi-davinci.txt | 10 +++++ arch/arm/boot/dts/keystone-k2g-evm.dts | 37 +++++++++++++++++ arch/arm/boot/dts/keystone-k2g.dtsi | 48 ++++++++++++++++++++++ 3 files changed, 95 insertions(+) -- 2.9.4.dirty ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20170908204638.13149-1-fcooper-l0cyMroinI0@public.gmane.org>]
* [PATCH 1/3] dt-bindings: spi: spi-davinci: Update binding for 66AK2Gx pwr dm property [not found] ` <20170908204638.13149-1-fcooper-l0cyMroinI0@public.gmane.org> @ 2017-09-08 20:46 ` Franklin S Cooper Jr 2017-09-18 19:29 ` Rob Herring [not found] ` <20170908204638.13149-2-fcooper-l0cyMroinI0@public.gmane.org> 0 siblings, 2 replies; 7+ messages in thread From: Franklin S Cooper Jr @ 2017-09-08 20:46 UTC (permalink / raw) To: broonie-DgEjT+Ai2ygdnm+yROfE0A, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, ssantosh-DgEjT+Ai2ygdnm+yROfE0A, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-spi-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Cc: Franklin S Cooper Jr Add pm-domains property which is required for 66AK2Gx. Also document 66AK2G unique clocks property usage. Signed-off-by: Franklin S Cooper Jr <fcooper-l0cyMroinI0@public.gmane.org> --- Documentation/devicetree/bindings/spi/spi-davinci.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/spi-davinci.txt b/Documentation/devicetree/bindings/spi/spi-davinci.txt index f5916c9..1925277 100644 --- a/Documentation/devicetree/bindings/spi/spi-davinci.txt +++ b/Documentation/devicetree/bindings/spi/spi-davinci.txt @@ -24,6 +24,16 @@ Required properties: based on a specific SoC configuration. - interrupts: interrupt number mapped to CPU. - clocks: spi clk phandle + For 66AK2G this property should be set per binding, + Documentation/devicetree/bindings/clock/ti,sci-clk.txt + +SoC-specific Required Properties: + +The following are mandatory properties for Keystone 2 66AK2G SoCs only: + +- power-domains: Should contain a phandle to a PM domain provider node + and an args specifier containing the SPI device id + value. This property is as per the binding, Optional: - cs-gpios: gpio chip selects -- 2.9.4.dirty -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] dt-bindings: spi: spi-davinci: Update binding for 66AK2Gx pwr dm property 2017-09-08 20:46 ` [PATCH 1/3] dt-bindings: spi: spi-davinci: Update binding for 66AK2Gx pwr dm property Franklin S Cooper Jr @ 2017-09-18 19:29 ` Rob Herring [not found] ` <20170908204638.13149-2-fcooper-l0cyMroinI0@public.gmane.org> 1 sibling, 0 replies; 7+ messages in thread From: Rob Herring @ 2017-09-18 19:29 UTC (permalink / raw) To: Franklin S Cooper Jr Cc: broonie, mark.rutland, ssantosh, linux, linux-spi, devicetree, linux-kernel, linux-arm-kernel On Fri, Sep 08, 2017 at 03:46:36PM -0500, Franklin S Cooper Jr wrote: > Add pm-domains property which is required for 66AK2Gx. Also document 66AK2G > unique clocks property usage. > > Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com> > --- > Documentation/devicetree/bindings/spi/spi-davinci.txt | 10 ++++++++++ > 1 file changed, 10 insertions(+) Acked-by: Rob Herring <robh@kernel.org> ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20170908204638.13149-2-fcooper-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH 1/3] dt-bindings: spi: spi-davinci: Update binding for 66AK2Gx pwr dm property [not found] ` <20170908204638.13149-2-fcooper-l0cyMroinI0@public.gmane.org> @ 2017-09-19 12:35 ` Mark Brown 2017-09-19 13:47 ` Applied "spi: spi-davinci: Update binding for 66AK2Gx pwr dm property" to the spi tree Mark Brown 1 sibling, 0 replies; 7+ messages in thread From: Mark Brown @ 2017-09-19 12:35 UTC (permalink / raw) To: Franklin S Cooper Jr Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, ssantosh-DgEjT+Ai2ygdnm+yROfE0A, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-spi-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r [-- Attachment #1: Type: text/plain, Size: 466 bytes --] On Fri, Sep 08, 2017 at 03:46:36PM -0500, Franklin S Cooper Jr wrote: > Add pm-domains property which is required for 66AK2Gx. Also document 66AK2G > unique clocks property usage. Please submit patches using subject lines reflecting the style for the subsystem. This makes it easier for people to identify relevant patches. Look at what existing commits in the area you're changing are doing and make sure your subject lines visually resemble what they're doing. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Applied "spi: spi-davinci: Update binding for 66AK2Gx pwr dm property" to the spi tree [not found] ` <20170908204638.13149-2-fcooper-l0cyMroinI0@public.gmane.org> 2017-09-19 12:35 ` Mark Brown @ 2017-09-19 13:47 ` Mark Brown 1 sibling, 0 replies; 7+ messages in thread From: Mark Brown @ 2017-09-19 13:47 UTC (permalink / raw) To: Franklin Cooper Cc: Franklin S Cooper Jr, Rob Herring, Mark Brown, broonie-DgEjT+Ai2ygdnm+yROfE0A, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, ssantosh-DgEjT+Ai2ygdnm+yROfE0A, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-spi-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Franklin S Cooper Jr, linux-spi-u79uwXL29TY76Z2rM5mHXA The patch spi: spi-davinci: Update binding for 66AK2Gx pwr dm property has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 32c30f73687a7ea5fe6add62b7bc3b520115d0d9 Mon Sep 17 00:00:00 2001 From: Franklin Cooper <fcooper-l0cyMroinI0@public.gmane.org> Date: Fri, 8 Sep 2017 15:46:36 -0500 Subject: [PATCH] spi: spi-davinci: Update binding for 66AK2Gx pwr dm property Add pm-domains property which is required for 66AK2Gx. Also document 66AK2G unique clocks property usage. Signed-off-by: Franklin S Cooper Jr <fcooper-l0cyMroinI0@public.gmane.org> Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Signed-off-by: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> --- Documentation/devicetree/bindings/spi/spi-davinci.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/spi-davinci.txt b/Documentation/devicetree/bindings/spi/spi-davinci.txt index f5916c92fe91..1925277bfc1e 100644 --- a/Documentation/devicetree/bindings/spi/spi-davinci.txt +++ b/Documentation/devicetree/bindings/spi/spi-davinci.txt @@ -24,6 +24,16 @@ Required properties: based on a specific SoC configuration. - interrupts: interrupt number mapped to CPU. - clocks: spi clk phandle + For 66AK2G this property should be set per binding, + Documentation/devicetree/bindings/clock/ti,sci-clk.txt + +SoC-specific Required Properties: + +The following are mandatory properties for Keystone 2 66AK2G SoCs only: + +- power-domains: Should contain a phandle to a PM domain provider node + and an args specifier containing the SPI device id + value. This property is as per the binding, Optional: - cs-gpios: gpio chip selects -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/3] ARM: dts: keystone-k2g: Add SPI nodes 2017-09-08 20:46 [PATCH 0/3] ARM: dts: keystone-k2g-evm: Add SPI nodes and enable SPI1 on K2G EVM Franklin S Cooper Jr [not found] ` <20170908204638.13149-1-fcooper-l0cyMroinI0@public.gmane.org> @ 2017-09-08 20:46 ` Franklin S Cooper Jr 2017-09-08 20:46 ` [PATCH 3/3] ARM: dts: keystone-k2g-evm: add bindings for SPI NOR flash Franklin S Cooper Jr 2 siblings, 0 replies; 7+ messages in thread From: Franklin S Cooper Jr @ 2017-09-08 20:46 UTC (permalink / raw) To: broonie, robh+dt, mark.rutland, ssantosh, linux, linux-spi, devicetree, linux-kernel, linux-arm-kernel Cc: Vitaly Andrianov, Franklin S Cooper Jr From: Vitaly Andrianov <vitalya@ti.com> Add nodes for the various SPI instances. Signed-off-by: Vitaly Andrianov <vitalya@ti.com> Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com> --- arch/arm/boot/dts/keystone-k2g.dtsi | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g.dtsi b/arch/arm/boot/dts/keystone-k2g.dtsi index 826b286..9f9e9e1 100644 --- a/arch/arm/boot/dts/keystone-k2g.dtsi +++ b/arch/arm/boot/dts/keystone-k2g.dtsi @@ -343,5 +343,53 @@ clock-names = "fck", "mmchsdb_fck"; status = "disabled"; }; + + spi0: spi@21805400 { + compatible = "ti,keystone-spi"; + reg = <0x21805400 0x200>; + num-cs = <4>; + ti,davinci-spi-intr-line = <0>; + interrupts = <GIC_SPI 64 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + power-domains = <&k2g_pds 0x0010>; + clocks = <&k2g_clks 0x0010 0>; + }; + + spi1: spi@21805800 { + compatible = "ti,keystone-spi"; + reg = <0x21805800 0x200>; + num-cs = <4>; + ti,davinci-spi-intr-line = <0>; + interrupts = <GIC_SPI 66 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + power-domains = <&k2g_pds 0x0011>; + clocks = <&k2g_clks 0x0011 0>; + }; + + spi2: spi@21805c00 { + compatible = "ti,keystone-spi"; + reg = <0x21805C00 0x200>; + num-cs = <4>; + ti,davinci-spi-intr-line = <0>; + interrupts = <GIC_SPI 68 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + power-domains = <&k2g_pds 0x0012>; + clocks = <&k2g_clks 0x0012 0>; + }; + + spi3: spi@21806000 { + compatible = "ti,keystone-spi"; + reg = <0x21806000 0x200>; + num-cs = <4>; + ti,davinci-spi-intr-line = <0>; + interrupts = <GIC_SPI 70 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + power-domains = <&k2g_pds 0x0013>; + clocks = <&k2g_clks 0x0013 0>; + }; }; }; -- 2.9.4.dirty ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] ARM: dts: keystone-k2g-evm: add bindings for SPI NOR flash 2017-09-08 20:46 [PATCH 0/3] ARM: dts: keystone-k2g-evm: Add SPI nodes and enable SPI1 on K2G EVM Franklin S Cooper Jr [not found] ` <20170908204638.13149-1-fcooper-l0cyMroinI0@public.gmane.org> 2017-09-08 20:46 ` [PATCH 2/3] ARM: dts: keystone-k2g: Add SPI nodes Franklin S Cooper Jr @ 2017-09-08 20:46 ` Franklin S Cooper Jr 2 siblings, 0 replies; 7+ messages in thread From: Franklin S Cooper Jr @ 2017-09-08 20:46 UTC (permalink / raw) To: broonie, robh+dt, mark.rutland, ssantosh, linux, linux-spi, devicetree, linux-kernel, linux-arm-kernel Cc: Murali Karicheri, Franklin S Cooper Jr From: Murali Karicheri <m-karicheri2@ti.com> K2G EVM has n25q128a13 SPI NOR flash on SPI1. Enable SPI1 in the DT node as well as add a subnode for the SPI NOR. Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com> --- arch/arm/boot/dts/keystone-k2g-evm.dts | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g-evm.dts b/arch/arm/boot/dts/keystone-k2g-evm.dts index f462f10..d5c43c7 100644 --- a/arch/arm/boot/dts/keystone-k2g-evm.dts +++ b/arch/arm/boot/dts/keystone-k2g-evm.dts @@ -81,6 +81,16 @@ K2G_CORE_IOPAD(0x1110) (BUFFER_CLASS_B | PIN_PULLUP | MUX_MODE0) /* mmc1_cmd.mmc1_cmd */ >; }; + + spi1_pins: pinmux_spi1_pins { + pinctrl-single,pins = < + K2G_CORE_IOPAD(0x11a4) (BUFFER_CLASS_B | PULL_DISABLE | MUX_MODE0) /* spi1_scs0.spi1_scs0 */ + K2G_CORE_IOPAD(0x11ac) (BUFFER_CLASS_B | PULL_DISABLE | MUX_MODE0) /* spi1_clk.spi1_clk */ + K2G_CORE_IOPAD(0x11b0) (BUFFER_CLASS_B | PULL_DISABLE | MUX_MODE0) /* spi1_miso.spi1_miso */ + K2G_CORE_IOPAD(0x11b4) (BUFFER_CLASS_B | PULL_DISABLE | MUX_MODE0) /* spi1_mosi.spi1_mosi */ + >; + }; + }; &uart0 { @@ -112,3 +122,30 @@ memory-region = <&dsp_common_memory>; status = "okay"; }; + +&spi1 { + pinctrl-names = "default"; + pinctrl-0 = <&spi1_pins>; + status = "okay"; + + spi_nor: flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + spi-max-frequency = <5000000>; + m25p,fast-read; + reg = <0>; + + partition@0 { + label = "u-boot-spl"; + reg = <0x0 0x100000>; + read-only; + }; + + partition@1 { + label = "misc"; + reg = <0x100000 0xf00000>; + }; + }; +}; + -- 2.9.4.dirty ^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-09-19 13:47 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-09-08 20:46 [PATCH 0/3] ARM: dts: keystone-k2g-evm: Add SPI nodes and enable SPI1 on K2G EVM Franklin S Cooper Jr [not found] ` <20170908204638.13149-1-fcooper-l0cyMroinI0@public.gmane.org> 2017-09-08 20:46 ` [PATCH 1/3] dt-bindings: spi: spi-davinci: Update binding for 66AK2Gx pwr dm property Franklin S Cooper Jr 2017-09-18 19:29 ` Rob Herring [not found] ` <20170908204638.13149-2-fcooper-l0cyMroinI0@public.gmane.org> 2017-09-19 12:35 ` Mark Brown 2017-09-19 13:47 ` Applied "spi: spi-davinci: Update binding for 66AK2Gx pwr dm property" to the spi tree Mark Brown 2017-09-08 20:46 ` [PATCH 2/3] ARM: dts: keystone-k2g: Add SPI nodes Franklin S Cooper Jr 2017-09-08 20:46 ` [PATCH 3/3] ARM: dts: keystone-k2g-evm: add bindings for SPI NOR flash Franklin S Cooper Jr
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).