mirror of
https://gitee.com/open-loongarch/linux-5.10.git
synced 2026-10-25 20:57:11 +08:00
update to b8ae5357def2c
1.Support RTL8821CU_BT USB-BlueTooth 2.pwm: support analy polarity from dts pwm desc node and setup polarity as normal default 3.2K300 OTG:Optimize otg compatibility 4.FT5426: Fix reset GPIO Dump 5.perf: Fix perf compile error 6.dts:ls2k300:Correct label of spi 7.2K300: drivers/net/can/spi: mcp251x: Fix mcp251x irq bug 8.2K300-G2K03Z02: dts: spi-flash: Lower spi flash frequency 9.2k300: i2c: refactor to improve stablility
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/clock/loongson2k1000-clock.h>
|
||||
#include <dt-bindings/usb/dwc2-loongson-fix.h>
|
||||
|
||||
/ {
|
||||
model = "loongson-2k1000";
|
||||
@@ -505,12 +506,14 @@
|
||||
};
|
||||
|
||||
otg: otg@40000000 {
|
||||
compatible = "loongson,dwc2-otg";
|
||||
compatible = "loongson,loongson2-dwc2";
|
||||
reg = <0 0x40000000 0 0x40000>;
|
||||
interrupt-parent = <&icu>;
|
||||
interrupts = <49>;
|
||||
dma-mask = <0x0 0xffffffff>;
|
||||
status = "disabled";
|
||||
/* 2k1000 暂时不用修正 */
|
||||
loongson,dwc2-fix = <DWC2_LOONGSON_FIX_NONE>;
|
||||
};
|
||||
|
||||
ohci@40070000 {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/dts-v1/;
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/clock/loongson2k300-clock.h>
|
||||
#include <dt-bindings/usb/dwc2-loongson-fix.h>
|
||||
|
||||
/ {
|
||||
model = "loongson,generic";
|
||||
@@ -163,10 +164,23 @@
|
||||
pinctrl-single,bits = <0x14 0x00000a00 0x000000f00>;
|
||||
};
|
||||
|
||||
spi0_as_gpio_pins: pinmux_G56_G79_as_gpio {
|
||||
pinctrl-single,bits = <0xc 0x00000000 0x00ff0000>;
|
||||
};
|
||||
|
||||
spi0_full_cs_pins: pinmux_G56_G70_as_spi1 {
|
||||
pinctrl-single,bits = <0xc 0x00ff0000 0x00ff0000
|
||||
0x10 0x00005500 0x0000ff00>;
|
||||
};
|
||||
|
||||
spi1_pins: pinmux_G60_G63_as_spi1 {
|
||||
pinctrl-single,bits = <0xc 0xff000000 0xff000000>;
|
||||
};
|
||||
|
||||
spi1_as_gpio_pins: pinmux_G60_G63_as_gpio {
|
||||
pinctrl-single,bits = <0xc 0x00000000 0xff000000>;
|
||||
};
|
||||
|
||||
spi2_pins: pinmux_G64_G67_as_spi2 {
|
||||
pinctrl-single,bits = <0x10 0x000000ff 0x000000ff>;
|
||||
};
|
||||
@@ -232,10 +246,18 @@
|
||||
pinctrl-single,bits = <0x14 0x0000000c 0x0000000c>;
|
||||
};
|
||||
|
||||
tim1_ch1n_as_gpio:pinmux_G84_as_gpio{
|
||||
pinctrl-single,bits = <0x14 0x00000000 0x000000300>;
|
||||
};
|
||||
|
||||
tim1_ch1n:pinmux_G84_as_tim1_ch1n {
|
||||
pinctrl-single,bits = <0x14 0x00000300 0x000000300>;
|
||||
};
|
||||
|
||||
tim1_ch2n_as_gpio:pinmux_G85_as_gpio{
|
||||
pinctrl-single,bits = <0x14 0x00000000 0x000000c00>;
|
||||
};
|
||||
|
||||
tim1_ch2n:pinmux_G85_as_tim1_ch2n {
|
||||
pinctrl-single,bits = <0x14 0x00000c00 0x000000c00>;
|
||||
};
|
||||
@@ -610,7 +632,7 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
spi2: spi@0x1601c000 {
|
||||
spi2: spi@0x1610c000 {
|
||||
compatible = "loongson,ls-spi-io";
|
||||
reg = <0 0x1610c000 0 0x2000>;
|
||||
#address-cells = <1>;
|
||||
@@ -621,7 +643,7 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
spi3: spi@0x1601e000 {
|
||||
spi3: spi@0x1610e000 {
|
||||
compatible = "loongson,ls-spi-io";
|
||||
reg = <0 0x1610e000 0 0x2000>;
|
||||
#address-cells = <1>;
|
||||
@@ -738,12 +760,16 @@
|
||||
dma-mask = <0x0 0xffffffff>;
|
||||
};
|
||||
|
||||
otg@0x16040000 {
|
||||
otg: otg@0x16040000 {
|
||||
compatible = "loongson,loongson2-dwc2";
|
||||
reg = <0 0x16040000 0 0x40000>;
|
||||
interrupt-parent = <&icu>;
|
||||
interrupts = <48>;
|
||||
dma-mask = <0x0 0xffffffff>;
|
||||
/* Use for most devices */
|
||||
//loongson,dwc2-fix = <DWC2_LOONGSON_FIX_DMA>;
|
||||
/* Use for 4G model*/
|
||||
loongson,dwc2-fix = <DWC2_LOONGSON_FIX_DELAY>;
|
||||
//dr_mode = "peripheral";
|
||||
/* Optional for that dr_mode = "host" or dr_mode = "peripheral" */
|
||||
};
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/clock/loongson2k500-clock.h>
|
||||
#include <dt-bindings/usb/dwc2-loongson-fix.h>
|
||||
/dts-v1/;
|
||||
/ {
|
||||
model = "loongson,generic";
|
||||
@@ -1014,12 +1015,14 @@
|
||||
};
|
||||
|
||||
otg: otg@1f080000 {
|
||||
compatible = "loongson,dwc2-otg";
|
||||
compatible = "loongson,loongson2-dwc2";
|
||||
reg = <0 0x1f080000 0 0x40000>;
|
||||
interrupt-parent = <&extioiic>;
|
||||
interrupts = <73>;
|
||||
dma-mask = <0x0 0xffffffff>;
|
||||
status = "disabled";
|
||||
/* 2k500 暂时不用修正 */
|
||||
loongson,dwc2-fix = <DWC2_LOONGSON_FIX_NONE>;
|
||||
};
|
||||
|
||||
pwm0: pwm@1ff5c000 {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
spi-flash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
spi-max-frequency = <25000000>;
|
||||
spi-max-frequency = <1000000>;
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user