RISCV: dts: starfive: Add spidev node 72/301072/3
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 8 Nov 2023 04:20:41 +0000 (13:20 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 8 Nov 2023 08:07:44 +0000 (17:07 +0900)
Add spidev driver node.

This spi and spi_dev node was applied to the mainline.
Refer to the patch below and apply it only to the spi_dev node.
[https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi?h=v6.6&id=74fb20c8f05df7a7ea5c98ca85a713758e0e59f6]

Change-Id: I05309739997f8bfbed61595e6fbc7e03e8944363
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi

index c9a2854..1a71179 100644 (file)
        status = "okay";
 };
 
+&spi0 {
+       spi_dev0: spi@0 {
+               compatible = "rohm,dh2228fv";
+               pl022,com-mode = <1>;
+               spi-max-frequency = <10000000>;
+               reg = <0>;
+               status = "okay";
+       };
+};
+
 &pcie0 {
        pinctrl-names = "default";
        reset-gpios = <&sysgpio 26 GPIO_ACTIVE_LOW>;