ipq806x: m520: enable pic support from chilau

This commit is contained in:
AmadeusGhost 2021-07-15 23:10:25 +08:00
parent c1aa3ca3a7
commit a53dd5c553
4 changed files with 42 additions and 12 deletions

View File

@ -175,6 +175,8 @@ CONFIG_GPIOLIB_IRQCHIP=y
CONFIG_GPIO_PCA953X=y
CONFIG_GPIO_PCA953X_IRQ=y
CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_WATCHDOG=y
CONFIG_GPIO_WATCHDOG_ARCH_INITCALL=y
CONFIG_HANDLE_DOMAIN_IRQ=y
CONFIG_HARDEN_BRANCH_PREDICTOR=y
CONFIG_HARDIRQS_SW_RESEND=y

View File

@ -183,6 +183,8 @@ CONFIG_GPIOLIB_IRQCHIP=y
CONFIG_GPIO_PCA953X=y
CONFIG_GPIO_PCA953X_IRQ=y
CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_WATCHDOG=y
CONFIG_GPIO_WATCHDOG_ARCH_INITCALL=y
CONFIG_HANDLE_DOMAIN_IRQ=y
CONFIG_HARDEN_BRANCH_PREDICTOR=y
CONFIG_HARDIRQS_SW_RESEND=y

View File

@ -137,6 +137,15 @@
drive-strength = <12>;
};
};
wdt0_pins: wdt0_pins {
mux {
pins = "gpio17";
function = "gpio";
drive-strength = <2>;
bias-pull-down;
};
};
};
gsbi2: gsbi@12480000 {
@ -356,8 +365,6 @@
pinctrl-0 = <&rgmii2_pins>;
pinctrl-names = "default";
mtd-mac-address-ascii = <&PRODUCTINFO 0x86a>;
fixed-link {
speed = <1000>;
full-duplex;
@ -369,10 +376,6 @@
phy-mode = "sgmii";
qcom,id = <2>;
mtd-mac-address-ascii = <&PRODUCTINFO 0x86a>;
mtd-mac-address-increment = <1>;
mtd-mac-address-increment-byte = <0>;
fixed-link {
speed = <1000>;
full-duplex;
@ -386,6 +389,16 @@
pinctrl-names = "default";
};
};
watchdog {
compatible = "linux,wdt-gpio";
pinctrl-0 = <&wdt0_pins>;
pinctrl-names = "default";
gpios = <&qcom_pinmux 17 GPIO_ACTIVE_LOW>;
hw_algo = "toggle";
hw_margin_ms = <500>;
always-running;
};
};
keys {

View File

@ -137,6 +137,15 @@
drive-strength = <12>;
};
};
wdt0_pins: wdt0_pins {
mux {
pins = "gpio17";
function = "gpio";
drive-strength = <2>;
bias-pull-down;
};
};
};
gsbi2: gsbi@12480000 {
@ -341,8 +350,6 @@
pinctrl-0 = <&rgmii2_pins>;
pinctrl-names = "default";
mtd-mac-address-ascii = <&PRODUCTINFO 0x86a>;
fixed-link {
speed = <1000>;
full-duplex;
@ -354,10 +361,6 @@
phy-mode = "sgmii";
qcom,id = <2>;
mtd-mac-address-ascii = <&PRODUCTINFO 0x86a>;
mtd-mac-address-increment = <1>;
mtd-mac-address-increment-byte = <0>;
fixed-link {
speed = <1000>;
full-duplex;
@ -371,6 +374,16 @@
pinctrl-names = "default";
};
};
watchdog {
compatible = "linux,wdt-gpio";
pinctrl-0 = <&wdt0_pins>;
pinctrl-names = "default";
gpios = <&qcom_pinmux 17 GPIO_ACTIVE_LOW>;
hw_algo = "toggle";
hw_margin_ms = <500>;
always-running;
};
};
keys {