ophub / amlogic-s9xxx-openwrt

Support for OpenWrt in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
1.82k stars 1.62k forks source link

How to detect CPU / SoC ? #217

Closed ds2k5 closed 2 years ago

ds2k5 commented 2 years ago

Hi, have a Device with got only Serial Access to u-boot.

with: fdt print got this INFO about CPU


    model = "Amlogic";
    amlogic-dt-id = "axg_s420_v03gva";
    compatible = "amlogic, axg";
    interrupt-parent = <0x00000001>;
    #address-cells = <0x00000002>;
    #size-cells = <0x00000002>;
    cpus {
        #address-cells = <0x00000002>;
        #size-cells = <0x00000000>;
        phandle = <0x00000067>;
        cpu-map {
            cluster0 {
                phandle = <0x00000068>;
                core0 {
                    cpu = <0x00000002>;
                };
                core1 {
                    cpu = <0x00000003>;
                };
                core2 {
                    cpu = <0x00000004>;
                };
                core3 {
                    cpu = <0x00000005>;
                };
            };
        };
        cpu@0 {
            device_type = "cpu";
            compatible = "arm,cortex-a53", "arm,armv8";
            reg = <0x00000000 0x00000000>;
            enable-method = "psci";
            clocks = <0x00000006 0x00000000>;
            clock-names = "cpu-cluster.0";
            cpu-idle-states = <0x00000007>;
            phandle = <0x00000002>;
        };
        cpu@1 {
            device_type = "cpu";
            compatible = "arm,cortex-a53", "arm,armv8";
            reg = <0x00000000 0x00000001>;
            enable-method = "psci";
            clocks = <0x00000006 0x00000000>;
            clock-names = "cpu-cluster.0";
            cpu-idle-states = <0x00000007>;
            phandle = <0x00000003>;
        };
        cpu@2 {
            device_type = "cpu";
            compatible = "arm,cortex-a53", "arm,armv8";
            reg = <0x00000000 0x00000002>;
            enable-method = "psci";
            clocks = <0x00000006 0x00000000>;
            clock-names = "cpu-cluster.0";
            cpu-idle-states = <0x00000007>;
            phandle = <0x00000004>;
        };
        cpu@3 {
            device_type = "cpu";
            compatible = "arm,cortex-a53", "arm,armv8";
            reg = <0x00000000 0x00000003>;
            enable-method = "psci";
            clocks = <0x00000006 0x00000000>;
            clock-names = "cpu-cluster.0";
            cpu-idle-states = <0x00000007>;
            phandle = <0x00000005>;
        };
        idle-states {
            entry-method = "arm,psci-0.2";
            cpu-sleep-0 {
                compatible = "arm,idle-state";
                arm,psci-suspend-param = <0x00010000>;
                local-timer-stop;
                entry-latency-us = <0x00001388>;
                exit-latency-us = <0x00001388>;
                min-residency-us = <0x00003a98>;
                phandle = <0x00000007>;
            };
        };
    };

At the Boot I can see this:

set vcck to 1050 mv
set vddee to 950 mv
Board ID = 3
CPU clk: 1200MHz

So CPU run with 1.2 GHZ

What SoC is this: 905 or 805 ?

Thank you !
ophub commented 2 years ago
model = "Amlogic";
amlogic-dt-id = "axg_s420_v03gva";
compatible = "amlogic, axg";
- GXBB (S905) : "amlogic,meson-gxbb-"
- GXL (S905X, S905D) : "amlogic,meson-gxl-"
- GXM (S912) : "amlogic,meson-gxm-"
- AXG (A113D, A113X) : "amlogic,meson-axg-"
- G12A (S905X2, S905D2, S905Y2) : "amlogic,meson-g12a-"
ds2k5 commented 2 years ago

Thanks

Did I understand right

It is a: A113D, A113X ?

ophub commented 2 years ago

Do not know

https://android.googlesource.com/kernel/arm64/+/f5269100977385d1fd4a5ef68e49631892cf4fe4/arch/arm/boot/dts/amlogic/axg_s420_v03gva.dts