Skip to content

Commit

Permalink
Add partitions, get wifi working
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingMarco committed May 9, 2024
1 parent 8318941 commit a453c7d
Showing 1 changed file with 257 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,38 @@
bootargs = "console=ttyMSM0,9600n8";
};

soc {
rng@22000 {
status = "okay";
};

tcsr@1949000 {
compatible = "qcom,tcsr";
reg = <0x1949000 0x100>;
qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
};

ess_tcsr@1953000 {
compatible = "qcom,tcsr";
reg = <0x1953000 0x1000>;
qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
};

tcsr@1957000 {
compatible = "qcom,tcsr";
reg = <0x1957000 0x100>;
qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
};

crypto@8e3a000 {
status = "okay";
};

watchdog@b017000 {
status = "okay";
};
};

watchdog {
compatible = "linux,wdt-gpio";
gpios = <&tlmm 15 GPIO_ACTIVE_LOW>;
Expand Down Expand Up @@ -49,6 +81,10 @@
};
};

&blsp_dma {
status = "okay";
};

&blsp1_spi1 {
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
Expand All @@ -59,8 +95,227 @@
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
linux,modalias = "s25fl256s1";
reg = <0>;
spi-max-frequency = <24000000>;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

partition-flash-all@0 {
label = "flash-all";
reg = <0x00000000 0x4000000>;
read-only;
};

partition@0 {
label = "0:SBL1";
reg = <0x00 0x40000>;
};

partition@40000 {
label = "0:MIBIB";
reg = <0x40000 0x40000>;
};

partition@80000 {
label = "0:QSEE";
reg = <0x80000 0x80000>;
};

partition@100000 {
label = "0:CDT";
reg = <0x100000 0x40000>;
};

partition@140000 {
label = "0:DDRPARAMS";
reg = <0x140000 0x40000>;
};

partition@180000 {
label = "0:APPSBL";
reg = <0x180000 0x100000>;
};

partition@280000 {
label = "0:ART";
reg = <0x280000 0x40000>;
read-only;

nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;

macaddr_gmac0: macaddr@0 {
reg = <0x0 0x6>;
};

macaddr_gmac1: macaddr@6 {
reg = <0x6 0x6>;
};

precal_art_1000: precal@1000 {
reg = <0x1000 0x2f20>;
};

precal_art_5000: precal@5000 {
reg = <0x5000 0x2f20>;
};

precal_art_9000: precal@9000 {
reg = <0x9000 0x2f20>;
};
};
};

partition@2c0000 {
label = "0:APPSBLENV";
reg = <0x2c0000 0x40000>;
};

partition@300000 {
label = "ResultA";
reg = <0x300000 0x80000>;
};

partition@380000 {
label = "configA";
reg = <0x380000 0x280000>;
};

partition@600000 {
label = "bootimageA";
reg = <0x600000 0x100000>;
};

partition@700000 {
label = "SysImageA";
reg = <0x700000 0x1900000>;
};

partition@2000000 {
label = "1:SBL1";
reg = <0x2000000 0x40000>;
};

partition@2040000 {
label = "1:MIBIB";
reg = <0x2040000 0x40000>;
};

partition@2080000 {
label = "1:QSEE";
reg = <0x2080000 0x80000>;
};

partition@2100000 {
label = "1:CDT";
reg = <0x2100000 0x40000>;
};

partition@2140000 {
label = "1:DDRPARAMS";
reg = <0x2140000 0x40000>;
};

partition@2180000 {
label = "1:APPSBL";
reg = <0x2180000 0x100000>;
};

partition@2280000 {
label = "Reservel";
reg = <0x2280000 0x80000>;
};

partition@2300000 {
label = "ResultB";
reg = <0x2300000 0x80000>;
};

partition@2380000 {
label = "configB";
reg = <0x2380000 0x280000>;
};

partition@2600000 {
label = "bootimageB";
reg = <0x2600000 0x100000>;
};

partition@2700000 {
label = "SysImageB";
reg = <0x2700000 0x1900000>;
};
};
};
};
};

&blsp1_uart1 {
pinctrl-0 = <&serial_pins>;
pinctrl-names = "default";
status = "okay";
};

&wifi0 {
status = "okay";
qcom,ath10k-calibration-variant = "Huawei-AP4050DN";

nvmem-cell-names = "pre-calibration";
nvmem-cells = <&precal_art_1000>;
};

&wifi1 {
status = "okay";
qcom,ath10k-calibration-variant = "Huawei-AP4050DN";

nvmem-cell-names = "pre-calibration";
nvmem-cells = <&precal_art_5000>;
};

&cryptobam {
status = "okay";
};

&mdio {
status = "okay";
};

&gmac {
status = "okay";
};

&swport1 {
status = "okay";
label = "ethernet1";
};

&swport2 {
status = "okay";
label = "ethernet2";
};

&swport3 {
status = "okay";
label = "ethernet3";
};

&swport4 {
status = "okay";
label = "ethernet4";
};

&swport5 {
status = "okay";
label = "ethernet5";
};




// &switch {
// status = "okay";
// };

0 comments on commit a453c7d

Please sign in to comment.