ipq806x: fix NAND support for linux 4.9
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -175,11 +175,17 @@
|
|||||||
pinctrl-0 = <&nand_pins>;
|
pinctrl-0 = <&nand_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
cs0 {
|
||||||
|
reg = <0>;
|
||||||
|
compatible = "qcom,nandcs";
|
||||||
|
|
||||||
nand-ecc-strength = <4>;
|
nand-ecc-strength = <4>;
|
||||||
nand-bus-width = <8>;
|
nand-bus-width = <8>;
|
||||||
|
nand-ecc-step-size = <512>;
|
||||||
|
|
||||||
linux,part-probe = "qcom-smem";
|
linux,part-probe = "qcom-smem";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
mdio0: mdio {
|
mdio0: mdio {
|
||||||
compatible = "virtual,mdio-gpio";
|
compatible = "virtual,mdio-gpio";
|
||||||
|
|||||||
@@ -201,9 +201,19 @@
|
|||||||
pinctrl-0 = <&nand_pins>;
|
pinctrl-0 = <&nand_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
cs0 {
|
||||||
|
reg = <0>;
|
||||||
|
compatible = "qcom,nandcs";
|
||||||
|
|
||||||
nand-ecc-strength = <4>;
|
nand-ecc-strength = <4>;
|
||||||
nand-bus-width = <8>;
|
nand-bus-width = <8>;
|
||||||
|
nand-ecc-step-size = <512>;
|
||||||
|
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
@@ -264,6 +274,8 @@
|
|||||||
reg = <0x1480000 0x2000000>;
|
reg = <0x1480000 0x2000000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
mdio0: mdio {
|
mdio0: mdio {
|
||||||
compatible = "virtual,mdio-gpio";
|
compatible = "virtual,mdio-gpio";
|
||||||
|
|||||||
@@ -176,9 +176,16 @@
|
|||||||
pinctrl-0 = <&nand_pins>;
|
pinctrl-0 = <&nand_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
cs0 {
|
||||||
|
reg = <0>;
|
||||||
|
compatible = "qcom,nandcs";
|
||||||
|
|
||||||
nand-ecc-strength = <4>;
|
nand-ecc-strength = <4>;
|
||||||
nand-bus-width = <8>;
|
nand-bus-width = <8>;
|
||||||
|
nand-ecc-step-size = <512>;
|
||||||
|
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
@@ -282,6 +289,8 @@
|
|||||||
reg = <0x5f80000 0x2080000>;
|
reg = <0x5f80000 0x2080000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
mdio0: mdio {
|
mdio0: mdio {
|
||||||
compatible = "virtual,mdio-gpio";
|
compatible = "virtual,mdio-gpio";
|
||||||
|
|||||||
@@ -169,9 +169,16 @@
|
|||||||
pinctrl-0 = <&nand_pins>;
|
pinctrl-0 = <&nand_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
cs0 {
|
||||||
|
reg = <0>;
|
||||||
|
compatible = "qcom,nandcs";
|
||||||
|
|
||||||
nand-ecc-strength = <4>;
|
nand-ecc-strength = <4>;
|
||||||
nand-bus-width = <8>;
|
nand-bus-width = <8>;
|
||||||
|
nand-ecc-step-size = <512>;
|
||||||
|
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
@@ -225,7 +232,8 @@
|
|||||||
label = "firmware";
|
label = "firmware";
|
||||||
reg = <0x1340000 0x1a00000>;
|
reg = <0x1340000 0x1a00000>;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
mdio0: mdio {
|
mdio0: mdio {
|
||||||
|
|||||||
@@ -206,9 +206,16 @@
|
|||||||
pinctrl-0 = <&nand_pins>;
|
pinctrl-0 = <&nand_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
cs0 {
|
||||||
|
reg = <0>;
|
||||||
|
compatible = "qcom,nandcs";
|
||||||
|
|
||||||
nand-ecc-strength = <4>;
|
nand-ecc-strength = <4>;
|
||||||
nand-bus-width = <8>;
|
nand-bus-width = <8>;
|
||||||
|
nand-ecc-step-size = <512>;
|
||||||
|
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
@@ -268,7 +275,8 @@
|
|||||||
label = "firmware";
|
label = "firmware";
|
||||||
reg = <0x1480000 0x2000000>;
|
reg = <0x1480000 0x2000000>;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
mdio0: mdio {
|
mdio0: mdio {
|
||||||
|
|||||||
@@ -913,7 +913,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
nand@1ac00000 {
|
nand@1ac00000 {
|
||||||
compatible = "qcom,ebi2-nandc";
|
compatible = "qcom,ipq806x-nand";
|
||||||
reg = <0x1ac00000 0x800>;
|
reg = <0x1ac00000 0x800>;
|
||||||
|
|
||||||
clocks = <&gcc EBI2_CLK>,
|
clocks = <&gcc EBI2_CLK>,
|
||||||
@@ -926,6 +926,9 @@
|
|||||||
qcom,data-crci = <3>;
|
qcom,data-crci = <3>;
|
||||||
|
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
|
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
nss_common: syscon@03000000 {
|
nss_common: syscon@03000000 {
|
||||||
|
|||||||
@@ -313,10 +313,16 @@
|
|||||||
pinctrl-0 = <&nand_pins>;
|
pinctrl-0 = <&nand_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
||||||
nand-ecc-strength = <4>;
|
cs0 {
|
||||||
nand-ecc-step-size = <512>;
|
reg = <0>;
|
||||||
nand-bus-width = <8>;
|
compatible = "qcom,nandcs";
|
||||||
|
|
||||||
|
nand-ecc-strength = <4>;
|
||||||
|
nand-bus-width = <8>;
|
||||||
|
nand-ecc-step-size = <512>;
|
||||||
|
|
||||||
|
partitions {
|
||||||
|
compatible = "fixed-partitions";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
@@ -377,6 +383,8 @@
|
|||||||
reg = <0x1480000 0x2000000>;
|
reg = <0x1480000 0x2000000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
mdio0: mdio {
|
mdio0: mdio {
|
||||||
compatible = "virtual,mdio-gpio";
|
compatible = "virtual,mdio-gpio";
|
||||||
|
|||||||
Reference in New Issue
Block a user