* [PATCH v2] arm64: dts: ti: k3-am642-evm: Add support for SPI EEPROM
@ 2021-03-09 16:23 Aswath Govindraju
2021-03-11 14:17 ` Nishanth Menon
0 siblings, 1 reply; 2+ messages in thread
From: Aswath Govindraju @ 2021-03-09 16:23 UTC (permalink / raw)
Cc: Vignesh Raghavendra, Lokesh Vutla, Aswath Govindraju,
Nishanth Menon, Tero Kristo, Rob Herring, linux-arm-kernel,
devicetree, linux-kernel
Add pinmux details and device tree node for the EEPROM attached to SPI0
module in main domain.
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
---
Link to test log,
https://pastebin.ubuntu.com/p/jDgvyhF9BQ/
Changes since v1:
- Removed the dependency on USB support patches
- Picked up reviewed-by
- Added test logs for SPI EEPROM
arch/arm64/boot/dts/ti/k3-am642-evm.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts
index 1f1787750fef..f5a8c5c4c8c3 100644
--- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts
+++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts
@@ -127,6 +127,15 @@
>;
};
+ main_spi0_pins_default: main-spi0-pins-default {
+ pinctrl-single,pins = <
+ AM64X_IOPAD(0x0210, PIN_INPUT, 0) /* (D13) SPI0_CLK */
+ AM64X_IOPAD(0x0208, PIN_OUTPUT, 0) /* (D12) SPI0_CS0 */
+ AM64X_IOPAD(0x0214, PIN_OUTPUT, 0) /* (A13) SPI0_D0 */
+ AM64X_IOPAD(0x0218, PIN_INPUT, 0) /* (A14) SPI0_D1 */
+ >;
+ };
+
main_i2c1_pins_default: main-i2c1-pins-default {
pinctrl-single,pins = <
AM64X_IOPAD(0x0268, PIN_INPUT_PULLUP, 0) /* (C18) I2C1_SCL */
@@ -227,6 +236,19 @@
status = "disabled";
};
+&main_spi0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&main_spi0_pins_default>;
+ ti,pindir-d0-out-d1-in = <1>;
+ eeprom@0 {
+ compatible = "microchip,93lc46b";
+ reg = <0>;
+ spi-max-frequency = <1000000>;
+ spi-cs-high;
+ data-size = <16>;
+ };
+};
+
&sdhci0 {
/* emmc */
bus-width = <8>;
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] arm64: dts: ti: k3-am642-evm: Add support for SPI EEPROM
2021-03-09 16:23 [PATCH v2] arm64: dts: ti: k3-am642-evm: Add support for SPI EEPROM Aswath Govindraju
@ 2021-03-11 14:17 ` Nishanth Menon
0 siblings, 0 replies; 2+ messages in thread
From: Nishanth Menon @ 2021-03-11 14:17 UTC (permalink / raw)
To: Aswath Govindraju
Cc: Nishanth Menon, Rob Herring, linux-kernel, Lokesh Vutla,
linux-arm-kernel, Tero Kristo, devicetree, Vignesh Raghavendra
On Tue, 9 Mar 2021 21:53:15 +0530, Aswath Govindraju wrote:
> Add pinmux details and device tree node for the EEPROM attached to SPI0
> module in main domain.
Hi Aswath Govindraju,
I have applied the following to branch ti-k3-dts-next on [1].
Thank you!
[1/1] arm64: dts: ti: k3-am642-evm: Add support for SPI EEPROM
commit: 4fb6c04683aa5b45f3876f45465e13265e09eb56
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant 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.
[1] git://git.kernel.org/pub/scm/linux/kernel/git/nmenon/linux.git
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D)/Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-11 14:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-09 16:23 [PATCH v2] arm64: dts: ti: k3-am642-evm: Add support for SPI EEPROM Aswath Govindraju
2021-03-11 14:17 ` Nishanth Menon
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).