[PATCH] MIPS: Loongson64: Add Loongson-2K1000 reset support

2021-04-13 Thread Qing Zhang
Add power management register operations to support reboot and poweroff. Signed-off-by: Qing Zhang --- .../include/asm/mach-loongson64/loongson.h| 8 ++ arch/mips/loongson64/reset.c | 28 --- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git

[PATCH] MIPS: Loongson64: enable CONFIG_USB_SERIAL_PL2303

2021-03-29 Thread Qing Zhang
1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Signed-off-by: Qing Zhang --- arch/mips/configs

[PATCH v5 2/7] MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI

2021-03-15 Thread Qing Zhang
Add DTB boot support, only support Loongson-2K1000 processor for now, determine whether to use the built-in DTB or the DTB from the firmware by checking the range of CKSEG0 and XKPHYS. loongson_fw_interface will be used in the future. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Tested

[PATCH v5 7/7] MIPS: Loongson64: Add a Loongson-2K1000 default config file

2021-03-15 Thread Qing Zhang
Add default config for Loongson-2K1000. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Tested-by: Ming Wang --- v4-v5: - No change arch/mips/configs/loongson2k_defconfig | 353 + 1 file changed, 353 insertions(+) create mode 100644 arch/mips/configs

[PATCH v5 5/7] irqchip/loongson-liointc: irqchip add 2.0 version

2021-03-15 Thread Qing Zhang
Add IO interrupt controller support for Loongson-2K1000, different from the Loongson-3A series is that Loongson-2K1000 has 64 interrupt sources, 0-31 correspond to the device tree liointc0 device node, and the other correspond to liointc1 node. Signed-off-by: Jiaxun Yang Signed-off-by: Qing

[PATCH v5 3/7] MIPS: Loongson64: Add support for the Loongson-2K1000 to get cpu_clock_freq

2021-03-15 Thread Qing Zhang
Get the fixed-clock from the CPU0 node of the device tree. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Tested-by: Ming Wang --- v4-v5: - Delete clk initializer arch/mips/loongson64/time.c | 24 1 file changed, 24 insertions(+) diff --git a/arch/mips

[PATCH v5 4/7] MIPS: Loongson64: Add Loongson-2K1000 early_printk_port

2021-03-15 Thread Qing Zhang
Distinguish between Loongson-3A series CPU and Loongson-2K1000 CPU UART0. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Tested-by: Ming Wang --- v4-v5: - No change arch/mips/loongson64/init.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/mips/loongson64

[PATCH v5 0/7] Add basic support for Loongson-2K1000

2021-03-15 Thread Qing Zhang
will commit SMP and other driver support in the future. Qing Zhang (7): MIPS: Loongson64: DeviceTree for Loongson-2K1000 MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI MIPS: Loongson64: Add support for the Loongson-2K1000 to get cpu_clock_freq MIPS: Loongson64: Add Loongson-2K1000

[PATCH v5 1/7] MIPS: Loongson64: DeviceTree for Loongson-2K1000

2021-03-15 Thread Qing Zhang
Add DeviceTree files for Loongson-2K1000 processor, currently only supports single-core boot. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Tested-by: Ming Wang --- v4-v5: - No change arch/mips/boot/dts/loongson/Makefile | 1 + .../boot/dts/loongson/loongson64-2k1000.dtsi

[PATCH v5 6/7] dt-bindings: interrupt-controller: Add Loongson-2K1000 LIOINTC

2021-03-15 Thread Qing Zhang
Add liointc-2.0 properties support, so update the maxItems and condition description. Signed-off-by: Qing Zhang Tested-by: Ming Wang --- v4-v5: - Add reg condition description .../loongson,liointc.yaml | 36 --- 1 file changed, 32 insertions(+), 4

[PATCH v4 3/7] MIPS: Loongson64: Add support for the Loongson-2K1000 to get cpu_clock_freq

2021-03-09 Thread Qing Zhang
Get the fixed-clock from the CPU0 node of the device tree. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Tested-by: Ming Wang --- v3-v4: Standard submission of information Add return after error arch/mips/loongson64/time.c | 24 1 file changed, 24

[PATCH v4 2/7] MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI

2021-03-09 Thread Qing Zhang
Add DTB boot support, only support Loongson-2K1000 processor for now, determine whether to use the built-in DTB or the DTB from the firmware by checking the range of CKSEG0 and XKPHYS. loongson_fw_interface will be used in the future. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Tested

[PATCH v4 4/7] MIPS: Loongson64: Add Loongson-2K1000 early_printk_port

2021-03-09 Thread Qing Zhang
Distinguish between Loongson-3A series CPU and Loongson-2K1000 CPU UART0. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Tested-by: Ming Wang --- v3-v4: Standard submission of information arch/mips/loongson64/init.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v4 6/7] dt-bindings: interrupt-controller: Add Loongson-2K1000 LIOINTC

2021-03-09 Thread Qing Zhang
Add liointc-2.0 properties support, so update the maxItems and description. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Tested-by: Ming Wang --- v3-v4: Standard submission of information .../bindings/interrupt-controller/loongson,liointc.yaml| 7 --- 1 file changed, 4

[PATCH v4 0/7] Add basic support for Loongson-2K1000

2021-03-09 Thread Qing Zhang
will submit SMP and other peripheral support in the future. Qing Zhang (7): MIPS: Loongson64: DeviceTree for Loongson-2K1000 MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI MIPS: Loongson64: Add support for the Loongson-2K1000 to get cpu_clock_freq MIPS: Loongson64: Add Loongson

[PATCH v4 7/7] MIPS: Loongson64: Add a Loongson-2K1000 default config file

2021-03-09 Thread Qing Zhang
Add default config for Loongson-2K1000. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Tested-by: Ming Wang --- v3-v4: Standard submission of information arch/mips/configs/loongson2k_defconfig | 353 + 1 file changed, 353 insertions(+) create mode 100644 arch

[PATCH v4 1/7] MIPS: Loongson64: DeviceTree for Loongson-2K1000

2021-03-09 Thread Qing Zhang
Add DeviceTree files for Loongson-2K1000 processor,currently only supports single-core boot. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Tested-by: Ming Wang --- v3-v4: Standard submission of information arch/mips/boot/dts/loongson/Makefile | 1 + .../boot/dts/loongson

[PATCH v4 5/7] irqchip/loongson-liointc: irqchip add 2.0 version

2021-03-09 Thread Qing Zhang
Add IO interrupt controller support for Loongson-2K1000, different from the Loongson-3A series is that 2K1000 has 64 interrupt sources, 0-31 correspond to the device tree liointc0 device node, and the other correspond to liointc1 node. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Tested

[PATCH v3 7/7] MIPS: Loongson64: Add a Loongson-2k default config file

2021-03-05 Thread Qing Zhang
Add default config for 2K1000. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang --- v2-v3: No change arch/mips/configs/loongson2k_defconfig | 353 + 1 file changed, 353 insertions(+) create mode 100644 arch/mips/configs/loongson2k_defconfig diff --git a/arch

[PATCH v3 4/7] MIPS: Loongson64: Add 2K1000 early_printk_port

2021-03-05 Thread Qing Zhang
Distinguish between 3A series CPU and 2K1000 CPU UART0. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang --- v2-v3: No change arch/mips/loongson64/init.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/mips/loongson64/init.c b/arch/mips/loongson64/init.c

[PATCH v3 3/7] MIPS: Loongson64: Add support for the 2K1000 to get cpu_clock_freq

2021-03-05 Thread Qing Zhang
Get the fixed-clock from the CPU0 node of the device tree. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang --- v2-v3: Add error process arch/mips/loongson64/time.c | 20 1 file changed, 20 insertions(+) diff --git a/arch/mips/loongson64/time.c b/arch/mips

[PATCH v3 5/7] irqchip/loongson-liointc: irqchip add 2.0 version

2021-03-05 Thread Qing Zhang
Add IO interrupt controller support for Loongson 2k1000, different from the 3a series is that 2K1000 has 64 interrupt sources, 0-31 correspond to the device tree liointc0 device node, and the other correspond to liointc1 node. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang --- v2-v3

[PATCH v3 6/7] dt-bindings: interrupt-controller: Add Loongson-2K1000 LIOINTC

2021-03-05 Thread Qing Zhang
Add liointc-2.0 properties support, so update the maxItems and description. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang --- v2-v3: Fix warnings/errors abount running 'make dt_binding_check' .../bindings/interrupt-controller/loongson,liointc.yaml| 7 --- 1 file changed, 4

[PATCH v3 2/7] MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI

2021-03-05 Thread Qing Zhang
Add DTB boot support, only support LS2K1000 processor for now, determine whether to use the built-in DTB or the DTB from the firmware by checking the range of CKSEG0 and XKPHYS.loongson_fw _interface will be used in the future. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang --- v2-v3

[PATCH v3 0/7] Add basic support for Loongson-2K1000

2021-03-05 Thread Qing Zhang
These patches support single-core DTS boot to the serial port login interface, which can be operated using conventional commands. I have successfully tested it on the Loongson 2K1000 machine. pmon: http://cgit.loongnix.org/cgit/pmon-loongson3/ Qing Zhang (7): MIPS: Loongson64: DeviceTree

[PATCH v3 1/7] MIPS: Loongson64: DeviceTree for 2K1000

2021-03-05 Thread Qing Zhang
Add DeviceTree files for Loongson 2K1000 processor,currently only supports single-core boot. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang --- v2-v3: No changes arch/mips/boot/dts/loongson/Makefile | 1 + .../boot/dts/loongson/loongson64-2k1000.dtsi | 243

[PATCH v3 0/7] Add basic support for Loongson-2K1000

2021-03-05 Thread Qing Zhang
These patches support single-core DTS boot to the serial port login interface, which can be operated using conventional commands. I have successfully tested it on the Loongson 2K1000 machine. pmon: http://cgit.loongnix.org/cgit/pmon-loongson3/ Qing Zhang (7): MIPS: Loongson64: DeviceTree

[PATCH v3 0/7] Add basic support for Loongson-2K1000

2021-03-05 Thread Qing Zhang
These patches support single-core DTS boot to the serial port login interface, which can be operated using conventional commands. I have successfully tested it on the Loongson 2K1000 machine. pmon: http://cgit.loongnix.org/cgit/pmon-loongson3/ Qing Zhang (7): MIPS: Loongson64: DeviceTree

[PATCH 1/2] MIPS: Loongson64: Remove unused sysconf members

2021-03-04 Thread Qing Zhang
We don't need them anymore, They are uniform on all Loongson64 systems and have been fixed in DeviceTree.loongson3_platform_init is replaced with DTS + driver. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang --- .../include/asm/mach-loongson64/boot_param.h | 9 arch/mips/loongson64

[PATCH 0/2] some cleanup code

2021-03-04 Thread Qing Zhang
These patches clean up some code about Loongson64. Qing Zhang (2): MIPS: Loongson64: Remove unused sysconf members MIPS: Loongson64: Move loongson_system_configuration to loongson.h .../include/asm/mach-loongson64/boot_param.h | 27 .../include/asm/mach-loongson64/loongson.h

[PATCH 2/2] MIPS: Loongson64: Move loongson_system_configuration to loongson.h

2021-03-04 Thread Qing Zhang
The purpose of separating loongson_system_configuration from boot_param.h is to keep the other structure consistent with the firmware. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang --- .../include/asm/mach-loongson64/boot_param.h | 18 -- .../include/asm/mach

[PATCH v2 0/7] Add basic support for Loongson-2K1000

2021-03-03 Thread Qing Zhang
These patches support single-core DTS boot to the serial port login interface, which can be operated using conventional commands. I have successfully tested it on the Loongson 2K1000 machine. pmon: http://cgit.loongnix.org/cgit/pmon-loongson3/ Qing Zhang (7): MIPS: Loongson64: DeviceTree

[PATCH v2 3/7] MIPS: Loongson64: Add support for the 2K1000 to get cpu_clock_freq

2021-03-03 Thread Qing Zhang
Get the fixed-clock from the CPU0 node of the device tree. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- v2: - No changes arch/mips/loongson64/time.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/mips/loongson64/time.c b/arch

[PATCH v2 6/7] dt-bindings: interrupt-controller: Add Loongson-2K1000 LIOINTC

2021-03-03 Thread Qing Zhang
Add liointc-2.0 properties support, so update the maxItems and description. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang --- v2: - Add new patch .../bindings/interrupt-controller/loongson,liointc.yaml | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

[PATCH v2 2/7] MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI

2021-03-03 Thread Qing Zhang
Add DTB boot support, only support LS2K1000 processor for now, determine whether to use the built-in DTB or the DTB from the firmware by checking the range of CKSEG0 and XKPHYS.loongson_fw _interface will be used in the future. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off

[PATCH v2 1/7] MIPS: Loongson64: DeviceTree for 2K1000

2021-03-03 Thread Qing Zhang
Add DeviceTree files for Loongson 2K1000 processor,currently only supports single-core boot. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- v2: - NO changes arch/mips/boot/dts/loongson/Makefile | 1 + .../boot/dts/loongson/loongson64-2k1000

[PATCH v2 7/7] MIPS: Loongson64: Add a Loongson-2k default config file

2021-03-03 Thread Qing Zhang
Add default config for 2K1000. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- v2: - No changes arch/mips/configs/loongson2k_defconfig | 353 + 1 file changed, 353 insertions(+) create mode 100644 arch/mips/configs

[PATCH v2 5/7] irqchip/loongson-liointc: irqchip add 2.0 version

2021-03-03 Thread Qing Zhang
Add IO interrupt controller support for Loongson 2k1000, different from the 3a series is that 2K1000 has 64 interrupt sources, 0-31 correspond to the device tree liointc0 device node, and the other correspond to liointc1 node. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off

[PATCH v2 4/7] MIPS: Loongson64: Add 2K1000 early_printk_port

2021-03-03 Thread Qing Zhang
Distinguish between 3A series CPU and 2K1000 CPU UART0. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- v2: - No changes arch/mips/loongson64/init.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/mips/loongson64/init.c b/arch

[PATCH 5/6] irqchip/loongson-liointc: irqchip add 2.0 version.

2021-02-09 Thread Qing Zhang
Add IO interrupt controller support for Loongson 2k1000, different from the 3a series is that 2K1000 has 64 interrupt sources, 0-31 correspond to the device tree liointc0 device node, and the other correspond to liointc1 node. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off

[PATCH 1/6] MIPS: Loongson64: DeviceTree for 2K1000

2021-02-09 Thread Qing Zhang
Add DeviceTree files for Loongson 2K1000 processor,currently only supports single-core boot. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- arch/mips/boot/dts/loongson/Makefile | 1 + .../boot/dts/loongson/loongson64-2k1000.dtsi | 243

[PATCH 3/6] MIPS: Loongson64: Add support for the 2K1000 to get cpu_clock_freq

2021-02-09 Thread Qing Zhang
Get the fixed-clock from the CPU0 node of the device tree. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- arch/mips/loongson64/time.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/mips/loongson64/time.c b/arch/mips/loongson64

[PATCH 6/6] MIPS: Loongson64: Add a Loongson-2k default config file

2021-02-09 Thread Qing Zhang
Add default config for 2K1000. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- arch/mips/configs/loongson2k_defconfig | 353 + 1 file changed, 353 insertions(+) create mode 100644 arch/mips/configs/loongson2k_defconfig diff --git

[PATCH 4/6] MIPS: Loongson64: Add 2K1000 early_printk_port

2021-02-09 Thread Qing Zhang
Distinguish between 3A series CPU and 2K1000 CPU UART0. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- arch/mips/loongson64/init.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/mips/loongson64/init.c b/arch/mips/loongson64

[PATCH 2/6] MIPS: Loongson64: Distinguish firmware dependencies DTB/LEFI.

2021-02-09 Thread Qing Zhang
Add DTB boot support, only support LS2K1000 processor for now, determine whether to use the built-in DTB or the DTB from the firmware by checking the range of CKSEG0 and XKPHYS. Signed-off-by: Jiaxun Yang Signed-off-by: Qing Zhang Signed-off-by: Xingxing Su --- .../include/asm/mach-loongson64

[PATCH 0/6] Add basic support for Loongson-2K1000

2021-02-09 Thread Qing Zhang
These patches support single-core DTS boot to the serial port login interface, which can be operated using conventional commands. I have successfully tested it on the Loongson 2K1000 machine. pmon: http://cgit.loongnix.org/cgit/pmon-loongson3/ Qing Zhang (6): MIPS: Loongson64: DeviceTree

[PATCH v6 3/4] MIPS: Loongson64: DTS: Add SPI support to LS7A

2020-12-27 Thread Qing Zhang
Add spi support. Reviewed-by: Huacai Chen Signed-off-by: Qing Zhang --- v2: - Add spi about pci device DT v3: - Remove spiflash node v4: - Remove useless compatible v5: - Remove num-chipselects v6: - No changes --- arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 9 + 1 file changed

[PATCH v6 4/4] MIPS: Loongson: Enable Loongson LS7A SPI in loongson3_defconfig

2020-12-27 Thread Qing Zhang
This is now supported, enable for Loongson systems. Reviewed-by: Huacai Chen Signed-off-by: Qing Zhang --- v2: - Modify CONFIG_SPI_LOONGSON to CONFIG_SPI_LS7A v3: - No changes v4: - No changes v5: - No changes v6: - No changes --- arch/mips/configs/loongson3_defconfig | 3 +++ 1 file

[PATCH v6 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support

2020-12-27 Thread Qing Zhang
Signed-off-by: Qing Zhang --- v2: - keep Kconfig and Makefile sorted - make the entire comment a C++ one so things look more intentional - Fix unclear indentation - make conditional statements to improve legibility - Don't use static inline - the core handle message queue - Add a new binding document

[PATCH v6 2/4] spi: ls7a: Add YAML schemas

2020-12-27 Thread Qing Zhang
Switch the DT binding to a YAML schema to enable the DT validation. Reviewed-by: Huacai Chen Signed-off-by: Qing Zhang --- v4: - fix warnings/errors about running 'make dt_binding_check' v5: - remove num-chipelects v6: - No changes --- .../devicetree/bindings/spi/loongson,spi-ls7a.yaml

[PATCH v5 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support

2020-12-26 Thread Qing Zhang
Signed-off-by: Qing Zhang --- v2: - keep Kconfig and Makefile sorted - make the entire comment a C++ one so things look more intentional - Fix unclear indentation - make conditional statements to improve legibility - Don't use static inline - the core handle message queue - Add a new binding document

[PATCH v5 3/4] MIPS: Loongson64: DTS: Add SPI support to LS7A

2020-12-26 Thread Qing Zhang
Add spi support. Signed-off-by: Qing Zhang --- v2: - Add spi about pci device DT v3: - Remove spiflash node v4: - Remove useless compatible v5: - Remove num-chipselects --- arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/mips/boot

[PATCH v5 2/4] spi: ls7a: Add YAML schemas

2020-12-26 Thread Qing Zhang
Switch the DT binding to a YAML schema to enable the DT validation. Signed-off-by: Qing Zhang --- v4: - fix warnings/errors about running 'make dt_binding_check' v5: - remove num-chipelects --- .../devicetree/bindings/spi/loongson,spi-ls7a.yaml | 44 ++ 1 file changed

[PATCH v5 4/4] MIPS: Loongson: Enable Loongson LS7A SPI in loongson3_defconfig

2020-12-26 Thread Qing Zhang
This is now supported, enable for Loongson systems. Reviewed-by: Huacai Chen Signed-off-by: Qing Zhang --- v2: - Modify CONFIG_SPI_LOONGSON to CONFIG_SPI_LS7A v3: - No changes v4: - No changes v5: - No changes --- arch/mips/configs/loongson3_defconfig | 3 +++ 1 file changed, 3

[PATCH v4 3/4] MIPS: Loongson64: DTS: Add SPI support to LS7A

2020-12-25 Thread Qing Zhang
add spi support. Signed-off-by: Qing Zhang --- v2: - Add spi about pci device DT v3: - Remove spiflash node v4: - Remove useless compatible --- arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi

[PATCH v4 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support

2020-12-25 Thread Qing Zhang
Signed-off-by: Qing Zhang --- v2: - keep Kconfig and Makefile sorted - make the entire comment a C++ one so things look more intentional - Fix unclear indentation - make conditional statements to improve legibility - Don't use static inline - the core handle message queue - Add a new binding document

[PATCH v4 4/4] MIPS: Loongson: Enable Loongson LS7A SPI in loongson3_defconfig

2020-12-25 Thread Qing Zhang
This is now supported, enable for Loongson systems. Signed-off-by: Qing Zhang --- v2: - Modify CONFIG_SPI_LOONGSON to CONFIG_SPI_LS7A v3: - No changes v4: - No changes --- arch/mips/configs/loongson3_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/configs

[PATCH v4 2/4] spi: ls7a: Add YAML schemas

2020-12-25 Thread Qing Zhang
Switch the DT binding to a YAML schema to enable the DT validation. Signed-off-by: Qing Zhang --- v4: fix warnings/errors about running 'make dt_binding_check' --- .../devicetree/bindings/spi/loongson,spi-ls7a.yaml | 46 ++ 1 file changed, 46 insertions(+) create mode

[PATCH v3 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support

2020-12-13 Thread Qing Zhang
Signed-off-by: Juxin Gao Signed-off-by: Qing Zhang --- v2: - keep Kconfig and Makefile sorted - make the entire comment a C++ one so things look more intentional - Fix unclear indentation - make conditional statements to improve legibility - Don't use static inline - the core handle message queue

[PATCH v3 3/4] MIPS: Loongson64: DTS: Add SPI support to LS7A

2020-12-13 Thread Qing Zhang
add spi support. Signed-off-by: Qing Zhang --- v2: - Add spi about pci device DT v3: - Remove spiflash node --- arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi b/arch/mips/boot/dts/loongson

[PATCH v3 4/4] MIPS: Loongson: Enable Loongson LS7A SPI in loongson3_defconfig

2020-12-13 Thread Qing Zhang
This is now supported, enable for Loongson systems. Signed-off-by: Qing Zhang --- v2: - Modify CONFIG_SPI_LOONGSON to CONFIG_SPI_LS7A v3: - No changes --- arch/mips/configs/loongson3_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/configs/loongson3_defconfig b

[PATCH v3 2/4] spi: ls7a: Add YAML schemas

2020-12-13 Thread Qing Zhang
Switch the DT binding to a YAML schema to enable the DT validation. Signed-off-by: Qing Zhang --- .../devicetree/bindings/spi/loongson,spi-ls7a.yaml | 49 ++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/loongson,spi-ls7a.yaml

[PATCH v2 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support

2020-12-07 Thread Qing Zhang
Signed-off-by: Juxin Gao Signed-off-by: Qing Zhang --- v2: - keep Kconfig and Makefile sorted - make the entire comment a C++ one so things look more intentional - Fix unclear indentation - make conditional statements to improve legibility - Don't use static inline - the core handle message queue

[PATCH v2 2/4] spi: Add devicetree bindings documentation for Loongson SPI

2020-12-07 Thread Qing Zhang
Add spi-ls7a binding documentation. Signed-off-by: Qing Zhang --- Documentation/devicetree/bindings/spi/spi-ls7a.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-ls7a.txt diff --git a/Documentation/devicetree

[PATCH v2 4/4] MIPS: Loongson: Enable Loongson LS7A SPI in loongson3_defconfig

2020-12-07 Thread Qing Zhang
This is now supported, enable for Loongson systems. Signed-off-by: Qing Zhang --- v2: - Modify CONFIG_SPI_LOONGSON to CONFIG_SPI_LS7A --- arch/mips/configs/loongson3_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/configs/loongson3_defconfig b/arch/mips/configs

[PATCH v2 3/4] MIPS: Loongson64: DTS: Add SPI support to LS7A

2020-12-07 Thread Qing Zhang
add spi and amd node support. Signed-off-by: Qing Zhang --- v2: - Add spi about pci device DT --- arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi b/arch/mips/boot/dts/loongson/ls7a

[PATCH 1/3] spi: Loongson: Add Loongson 3A+7A SPI controller driver support

2020-11-23 Thread Qing Zhang
subsystem is used for testing. Signed-off-by: Qing Zhang --- drivers/spi/Kconfig| 6 + drivers/spi/Makefile | 1 + drivers/spi/spi-loongson.c | 428 + 3 files changed, 435 insertions(+) create mode 100644 drivers/spi/spi-loongson.c diff

[PATCH 3/3] MIPS: Loongson: Enable Loongson SPI in loongson3_defconfig

2020-11-23 Thread Qing Zhang
This is now supported, enable for Loongson systems. Signed-off-by: Qing Zhang --- arch/mips/configs/loongson3_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/configs/loongson3_defconfig b/arch/mips/configs/loongson3_defconfig index 38a817e..3f88e6c 100644 --- a/arch

[PATCH 2/3] MIPS: Loongson64: DTS: Add SPI support to LS3A

2020-11-23 Thread Qing Zhang
The LS3A SPI module is now supported, enable it. Signed-off-by: Qing Zhang --- arch/mips/boot/dts/loongson/loongson64c-package.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/mips/boot/dts/loongson/loongson64c-package.dtsi b/arch/mips/boot/dts/loongson/loongson64c

[PATCH] spi: amd: Use devm_platform_ioremap_resource() in amd_spi_probe

2020-11-20 Thread Qing Zhang
Simplify this function implementation by using a known wrapper function. Signed-off-by: Qing Zhang --- drivers/spi/spi-amd.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/spi/spi-amd.c b/drivers/spi/spi-amd.c index 7f62954..3cf7609 100644 --- a/drivers/spi/spi

[PATCH v2 2/2] spi: coldfire-qspi: Use clk_prepare_enable and clk_disable_unprepare

2020-07-14 Thread Qing Zhang
Convert clk_enable() to clk_prepare_enable() and clk_disable() to clk_disable_unprepare() respectively in the spi-coldfire-qspi.c. Signed-off-by: Qing Zhang --- v2: -Modify the commit message -Split into two patches drivers/spi/spi-coldfire-qspi.c | 4 ++-- 1 file changed, 2

[PATCH v2 1/2] spi: omap-uwire: Use clk_prepare_enable and clk_disable_unprepare

2020-07-14 Thread Qing Zhang
Convert clk_enable() to clk_prepare_enable() and clk_disable() to clk_disable_unprepare() respectively in the spi-omap-uwire.c. Signed-off-by: Qing Zhang --- v2: -Modify the commit message -Split into two patches drivers/spi/spi-omap-uwire.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: Re: [PATCH] spi: Use clk_prepare_enable and clk_disable_unprepare

2020-07-14 Thread Qing Zhang
-Original Messages- From: "Mark Brown" Sent Time: 2020-07-14 17:44:06 (Tuesday) To: "Qing Zhang" Cc: linux-...@vger.kernel.org, linux-kernel@vger.kernel.org, "Xuefeng Li" , "Tiezhu Yang" Subject: Re: [PATCH] spi: Use clk_prepare_enable

[PATCH] spi: Use clk_prepare_enable and clk_disable_unprepare

2020-07-14 Thread Qing Zhang
Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare calls as required by common clock framework. Signed-off-by: Qing Zhang --- drivers/spi/spi-coldfire-qspi.c | 4 ++-- drivers/spi/spi-omap-uwire.c| 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v2 2/2] spi: tools: Add macro definitions to fix build errors

2020-06-11 Thread Qing Zhang
y, maybe SPI_CS_WORD and SPI_3WIRE_HIZ will be used in the future, so add them too. Fixes: 896fa735084e ("spi: spidev_test: Add support for Octal mode data transfers") Reviewed-by: Geert Uytterhoeven Signed-off-by: Qing Zhang --- v2: -Modify the patch subject -Update the commit me

[PATCH v2 1/2] spi: tools: Make default_tx/rx and input_tx static

2020-06-11 Thread Qing Zhang
it be static? Signed-off-by: Qing Zhang --- tools/spi/spidev_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/spi/spidev_test.c b/tools/spi/spidev_test.c index 56ea053f..83844f8 100644 --- a/tools/spi/spidev_test.c +++ b/tools/spi/spidev_test.c @@ -47,7 +47,7

[PATCH 2/2] spi: tools: Fix build errors

2020-06-10 Thread Qing Zhang
cipe for target 'spidev_test-in.o' failed make[1]: *** [spidev_test-in.o] Error 1 make[1]: Leaving directory '/home/zhangqing/spi.git2/tools/spi' Makefile:39: recipe for target 'spidev_test-in.o' failed make: *** [spidev_test-in.o] Error 2 Signed-off-by: Qing Zhang --- include/uapi/linux/spi/spi

[PATCH 1/2] spi: tools: Make default_tx/rx and input_tx static

2020-06-10 Thread Qing Zhang
it be static? Signed-off-by: Qing Zhang --- tools/spi/spidev_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/spi/spidev_test.c b/tools/spi/spidev_test.c index 56ea053f..83844f8 100644 --- a/tools/spi/spidev_test.c +++ b/tools/spi/spidev_test.c @@ -47,7 +47,7