| // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| /* |
| * Copyright (c) 2019 Amlogic, Inc. All rights reserved. |
| */ |
| |
| #include <dt-bindings/clock/axg-audio-clkc.h> |
| #include <dt-bindings/clock/amlogic,s4-clkc.h> |
| #include <dt-bindings/clock/g12a-aoclkc.h> |
| #include <dt-bindings/interrupt-controller/irq.h> |
| #include <dt-bindings/interrupt-controller/arm-gic.h> |
| #include <dt-bindings/power/s4-pd.h> |
| #include <dt-bindings/clock/amlogic,sc2-audio-clk.h> |
| #include <dt-bindings/gpio/gpio.h> |
| #include <dt-bindings/gpio/meson-s4-gpio.h> |
| #include <dt-bindings/reset/amlogic,meson-s4-reset.h> |
| #include <dt-bindings/pwm/pwm.h> |
| #include <dt-bindings/pwm/meson.h> |
| #include <dt-bindings/input/input.h> |
| #include <dt-bindings/input/meson_ir.h> |
| #include <dt-bindings/mailbox/amlogic,mbox.h> |
| #include "meson-ir-map.dtsi" |
| #include "mesong12a-bifrost.dtsi" |
| / { |
| cpus:cpus { |
| #address-cells = <1>; |
| #size-cells = <0>; |
| |
| CPU0:cpu@0 { |
| device_type = "cpu"; |
| compatible = "arm,cortex-a55","arm,armv8"; |
| reg = <0x0 0x0>; |
| enable-method = "psci"; |
| cpu-idle-states = <&CPU_SLEEP_0 &SYSTEM_SLEEP_0>; |
| dynamic-power-coefficient = <230>; |
| #cooling-cells = <2>; |
| clocks = <&clkc CLKID_CPU_CLK>, |
| <&clkc CLKID_CPU_CLK_DYN>, |
| <&clkc CLKID_SYS_PLL>; |
| clock-names = "core_clk", |
| "low_freq_clk_parent", |
| "high_freq_clk_parent"; |
| multi_tables_available; |
| operating-points-v2 = <&cpu_opp_table0>, |
| <&cpu_opp_table1>, |
| <&cpu_opp_table2>, |
| <&cpu_opp_table3>; |
| cpu-supply = <&vddcpu0>; |
| voltage-tolerance = <0>; |
| clock-latency = <50000>; |
| }; |
| |
| CPU1:cpu@1 { |
| device_type = "cpu"; |
| compatible = "arm,cortex-a55","arm,armv8"; |
| reg = <0x0 0x1>; |
| enable-method = "psci"; |
| cpu-idle-states = <&CPU_SLEEP_0 &SYSTEM_SLEEP_0>; |
| dynamic-power-coefficient = <230>; |
| #cooling-cells = <2>; |
| clocks = <&clkc CLKID_CPU_CLK>, |
| <&clkc CLKID_CPU_CLK_DYN>, |
| <&clkc CLKID_SYS_PLL>; |
| clock-names = "core_clk", |
| "low_freq_clk_parent", |
| "high_freq_clk_parent"; |
| multi_tables_available; |
| operating-points-v2 = <&cpu_opp_table0>, |
| <&cpu_opp_table1>, |
| <&cpu_opp_table2>, |
| <&cpu_opp_table3>; |
| cpu-supply = <&vddcpu0>; |
| voltage-tolerance = <0>; |
| clock-latency = <50000>; |
| }; |
| |
| CPU2:cpu@2 { |
| device_type = "cpu"; |
| compatible = "arm,cortex-a55","arm,armv8"; |
| reg = <0x0 0x2>; |
| enable-method = "psci"; |
| cpu-idle-states = <&CPU_SLEEP_0 &SYSTEM_SLEEP_0>; |
| dynamic-power-coefficient = <230>; |
| #cooling-cells = <2>; |
| clocks = <&clkc CLKID_CPU_CLK>, |
| <&clkc CLKID_CPU_CLK_DYN>, |
| <&clkc CLKID_SYS_PLL>; |
| clock-names = "core_clk", |
| "low_freq_clk_parent", |
| "high_freq_clk_parent"; |
| multi_tables_available; |
| operating-points-v2 = <&cpu_opp_table0>, |
| <&cpu_opp_table1>, |
| <&cpu_opp_table2>, |
| <&cpu_opp_table3>; |
| cpu-supply = <&vddcpu0>; |
| voltage-tolerance = <0>; |
| clock-latency = <50000>; |
| }; |
| |
| CPU3:cpu@3 { |
| device_type = "cpu"; |
| compatible = "arm,cortex-a55","arm,armv8"; |
| reg = <0x0 0x3>; |
| enable-method = "psci"; |
| cpu-idle-states = <&CPU_SLEEP_0 &SYSTEM_SLEEP_0>; |
| dynamic-power-coefficient = <230>; |
| #cooling-cells = <2>; |
| clocks = <&clkc CLKID_CPU_CLK>, |
| <&clkc CLKID_CPU_CLK_DYN>, |
| <&clkc CLKID_SYS_PLL>; |
| clock-names = "core_clk", |
| "low_freq_clk_parent", |
| "high_freq_clk_parent"; |
| multi_tables_available; |
| operating-points-v2 = <&cpu_opp_table0>, |
| <&cpu_opp_table1>, |
| <&cpu_opp_table2>, |
| <&cpu_opp_table3>; |
| cpu-supply = <&vddcpu0>; |
| voltage-tolerance = <0>; |
| clock-latency = <50000>; |
| }; |
| |
| idle-states { |
| entry-method = "arm,psci-0.2"; |
| CPU_SLEEP_0: cpu-sleep-0 { |
| compatible = "arm,idle-state"; |
| arm,psci-suspend-param = <0x0010000>; |
| local-timer-stop; |
| entry-latency-us = <4000>; |
| exit-latency-us = <5000>; |
| min-residency-us = <10000>; |
| }; |
| SYSTEM_SLEEP_0: system-sleep-0 { |
| compatible = "arm,idle-state"; |
| arm,psci-suspend-param = <0x0000000>; |
| entry-latency-us = <0x3fffffff>; |
| exit-latency-us = <0x40000000>; |
| min-residency-us = <0xffffffff>; |
| }; |
| }; |
| }; |
| |
| timer { |
| compatible = "arm,armv8-timer"; |
| interrupts = <GIC_PPI 13 0xff08>, |
| <GIC_PPI 14 0xff08>, |
| <GIC_PPI 11 0xff08>, |
| <GIC_PPI 10 0xff08>; |
| }; |
| |
| timer_bc { |
| compatible = "amlogic,bc-timer"; |
| status = "disabled"; |
| reg= <0xfe0100D8 0x4 0x0 0xfe0100DC 0x0 0x4>; |
| timer_name = "Meson TimerD"; |
| clockevent-rating=<300>; |
| clockevent-shift=<20>; |
| clockevent-features=<0x23>; |
| interrupts = <0 3 1>; |
| bit_enable=<7>; |
| bit_mode=<6>; |
| bit_resolution=<0>; |
| resolution_1us=<1>; |
| min_delta_ns=<10>; |
| }; |
| |
| arm_pmu { |
| compatible = "arm,armv8-pmuv3"; |
| private-interrupts; |
| /* clusterb-enabled; */ |
| interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>, |
| <GIC_SPI 234 IRQ_TYPE_LEVEL_HIGH>, |
| <GIC_SPI 235 IRQ_TYPE_LEVEL_HIGH>, |
| <GIC_SPI 236 IRQ_TYPE_LEVEL_HIGH>; |
| |
| reg = <0xff634680 0x4>; |
| cpumasks = <0xf>; |
| /* default 10ms */ |
| relax-timer-ns = <10000000>; |
| /* default 10000us */ |
| max-wait-cnt = <10000>; |
| }; |
| |
| gic: interrupt-controller@fff01000 { |
| compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic"; |
| #interrupt-cells = <3>; |
| #address-cells = <0>; |
| interrupt-controller; |
| reg = <0xfff01000 0x1000>, |
| <0xfff02000 0x0100>; |
| interrupts = <GIC_PPI 9 0xf04>; |
| }; |
| |
| psci { |
| compatible = "arm,psci-0.2"; |
| method = "smc"; |
| }; |
| |
| meson_suspend:pm { |
| compatible = "amlogic, pm"; |
| status = "okay"; |
| device_name = "aml_pm"; |
| reg = <0xfe010288 0x4>, /*SYSCTRL_STATUS_REG2*/ |
| <0xfe0102dc 0x4>; /*SYSCTRL_STICKY_REG7*/ |
| }; |
| |
| cpu_info { |
| compatible = "amlogic, cpuinfo"; |
| status = "okay"; |
| cpuinfo_cmd = <0x82000044>; |
| }; |
| |
| soc_info { |
| compatible = "amlogic, socdata"; |
| reg = <0x0 0xfe010000 0x0 0xc>, |
| <0x0 0xfe010180 0x0 0x4>; |
| read_nocsdata_cmd =<0x82000039>; |
| write_nocsdata_cmd=<0x82000038>; |
| auth_reg_ops_cmd=<0x820000f0>; |
| }; |
| |
| aml_reboot { |
| compatible = "aml, reboot"; |
| sys_reset = <0x84000009>; |
| sys_poweroff = <0x84000008>; |
| dis_nb_cpus_in_shutdown; |
| }; |
| |
| secmon { |
| compatible = "amlogic, secmon"; |
| memory-region = <&secmon_reserved>; |
| in_base_func = <0x82000020>; |
| out_base_func = <0x82000021>; |
| inout_size_func = <0x8200002a>; |
| reserve_mem_size = <0x03300000>; |
| }; |
| |
| cma_shrinker: cma_shrinker { |
| compatible = "amlogic, cma-shrinker"; |
| status = "okay"; |
| adj = <0 100 200 250 900 950>; |
| free = <8192 12288 16384 24576 28672 32768>; |
| }; |
| |
| securitykey { |
| compatible = "aml, securitykey"; |
| storage_query = <0x82000060>; |
| storage_read = <0x82000061>; |
| storage_write = <0x82000062>; |
| storage_tell = <0x82000063>; |
| storage_verify = <0x82000064>; |
| storage_status = <0x82000065>; |
| storage_list = <0x82000067>; |
| storage_remove = <0x82000068>; |
| storage_in_func = <0x82000023>; |
| storage_out_func = <0x82000024>; |
| storage_block_func = <0x82000025>; |
| storage_size_func = <0x82000027>; |
| storage_set_enctype = <0x8200006A>; |
| storage_get_enctype = <0x8200006B>; |
| storage_version = <0x8200006C>; |
| }; |
| |
| xtal: xtal-clk { |
| compatible = "fixed-clock"; |
| clock-frequency = <24000000>; |
| clock-output-names = "xtal"; |
| #clock-cells = <0>; |
| }; |
| |
| vrtc: rtc@0xfe010288 { |
| compatible = "amlogic,meson-vrtc"; |
| reg = <0xfe010288 0x4>; |
| status = "okay"; |
| mboxes = <&mailbox_mhu_fifo 1>; |
| }; |
| |
| audio_data: audio_data { |
| compatible = "amlogic, audio_data"; |
| mem_in_base_cmd = <0x82000020>; |
| query_licence_cmd = <0x82000050>; |
| status = "disabled"; |
| }; |
| |
| amaudio: amaudio { |
| compatible = "amlogic, amaudio"; |
| reg = <0xfe440000 0x10000>; |
| reg-names = "otp_tee_base"; |
| status = "okay"; |
| }; |
| |
| pwrdm: power-domains { |
| compatible = "amlogic,s4-power-domain"; |
| #power-domain-cells = <1>; |
| status = "okay"; |
| }; |
| |
| jtag { |
| compatible = "amlogic, jtag"; |
| status = "okay"; |
| select = "disable"; /* disable/jtag_a/jtag_b */ |
| pinctrl-names="jtag_a_pins", "jtag_b_pins"; |
| pinctrl-0=<&jtag_a_pins>; |
| pinctrl-1=<&jtag_b_pins>; |
| }; |
| |
| mailbox_mhu_fifo: mhu@0 { |
| status = "okay"; |
| compatible = "amlogic, meson_mhu_fifo"; |
| reg = <0xfe006000 0x800>, /* mhu wr fifo */ |
| <0xfe006800 0x800>, /* mhu rd fifo */ |
| <0xfe0070c0 0x40>, /* mhu set reg */ |
| <0xfe007100 0x40>, /* mhu clr reg */ |
| <0xfe007140 0x40>, /* mhu sts reg */ |
| <0xfe007020 0x40>; /* mhu irqctrl reg */ |
| interrupts = <0 248 1>; /* irq top */ |
| mbox-irqctlr = <0>; |
| mbox-nums = <2>; |
| mbox-names = "ao_dev", |
| "ap_to_ao"; |
| mboxes = <&mailbox_mhu_fifo 0>, |
| <&mailbox_mhu_fifo 1>; |
| mbox-id = <0x2 0x3>; |
| #mbox-cells = <1>; |
| }; |
| |
| mbox_mhu_sec: mhu_sec@0xfe441800 { |
| status = "okay"; |
| compatible = "amlogic, meson_mhu_sec"; |
| reg = <0xfe441800 0x10>, /* nee2scpu csr */ |
| <0xfe441c00 0x10>, /* scpu2nee csr */ |
| <0xfe441a00 0x80>, /* nee2scpu st */ |
| <0xfe441e00 0x80>; /* scpu2nee st*/ |
| interrupts = <0 49 1>; /* irq ree */ |
| mbox-nums = <2>; |
| mbox-names = "nee2scpu", |
| "scpu2nee"; |
| #mbox-cells = <1>; |
| }; |
| |
| mbox_user: mbox-user@0 { |
| status = "okay"; |
| compatible = "amlogic, meson-mbox-user"; |
| mbox-nums = <1>; |
| mbox-names = "nee2scpu"; |
| mboxes = <&mbox_mhu_sec 0>; |
| mbox-dests = <MAILBOX_SECPU>; |
| }; |
| |
| vddcpu0: pwm_j-regulator { |
| compatible = "pwm-regulator"; |
| pwms = <&pwm_ij MESON_PWM_1 1500 0>; |
| regulator-name = "vddcpu0"; |
| regulator-min-microvolt = <689000>; |
| regulator-max-microvolt = <1049000>; |
| regulator-always-on; |
| max-duty-cycle = <1500>; |
| /* Voltage Duty-Cycle */ |
| voltage-table = <1049000 0>, |
| <1039000 3>, |
| <1029000 6>, |
| <1019000 9>, |
| <1009000 12>, |
| <999000 14>, |
| <989000 17>, |
| <979000 20>, |
| <969000 23>, |
| <959000 26>, |
| <949000 29>, |
| <939000 31>, |
| <929000 34>, |
| <919000 37>, |
| <909000 40>, |
| <899000 43>, |
| <889000 45>, |
| <879000 48>, |
| <869000 51>, |
| <859000 54>, |
| <849000 56>, |
| <839000 59>, |
| <829000 62>, |
| <819000 65>, |
| <809000 68>, |
| <799000 70>, |
| <789000 73>, |
| <779000 76>, |
| <769000 79>, |
| <759000 81>, |
| <749000 84>, |
| <739000 87>, |
| <729000 89>, |
| <719000 92>, |
| <709000 95>, |
| <699000 98>, |
| <689000 100>; |
| status = "disabled"; |
| }; |
| |
| cpu_opp_table0: cpu_opp_table0 { |
| compatible = "operating-points-v2"; |
| status = "okay"; |
| opp-shared; |
| |
| opp00 { |
| opp-hz = /bits/ 64 <100000000>; |
| opp-microvolt = <769000>; |
| }; |
| opp01 { |
| opp-hz = /bits/ 64 <250000000>; |
| opp-microvolt = <769000>; |
| }; |
| opp02 { |
| opp-hz = /bits/ 64 <500000000>; |
| opp-microvolt = <769000>; |
| }; |
| opp03 { |
| opp-hz = /bits/ 64 <666000000>; |
| opp-microvolt = <769000>; |
| }; |
| opp04 { |
| opp-hz = /bits/ 64 <1000000000>; |
| opp-microvolt = <769000>; |
| }; |
| opp05 { |
| opp-hz = /bits/ 64 <1200000000>; |
| opp-microvolt = <769000>; |
| }; |
| opp06 { |
| opp-hz = /bits/ 64 <1404000000>; |
| opp-microvolt = <799000>; |
| }; |
| opp07 { |
| opp-hz = /bits/ 64 <1500000000>; |
| opp-microvolt = <829000>; |
| }; |
| opp08 { |
| opp-hz = /bits/ 64 <1608000000>; |
| opp-microvolt = <859000>; |
| }; |
| opp09 { |
| opp-hz = /bits/ 64 <1704000000>; |
| opp-microvolt = <889000>; |
| }; |
| opp10 { |
| opp-hz = /bits/ 64 <1800000000>; |
| opp-microvolt = <929000>; |
| }; |
| opp11 { |
| opp-hz = /bits/ 64 <1908000000>; |
| opp-microvolt = <979000>; |
| }; |
| opp12 { |
| opp-hz = /bits/ 64 <2004000000>; |
| opp-microvolt = <1009000>; |
| }; |
| }; |
| |
| cpu_opp_table1: cpu_opp_table1 { |
| compatible = "operating-points-v2"; |
| status = "okay"; |
| opp-shared; |
| |
| opp00 { |
| opp-hz = /bits/ 64 <100000000>; |
| opp-microvolt = <779000>; |
| }; |
| opp01 { |
| opp-hz = /bits/ 64 <250000000>; |
| opp-microvolt = <779000>; |
| }; |
| opp02 { |
| opp-hz = /bits/ 64 <500000000>; |
| opp-microvolt = <779000>; |
| }; |
| opp03 { |
| opp-hz = /bits/ 64 <666000000>; |
| opp-microvolt = <779000>; |
| }; |
| opp04 { |
| opp-hz = /bits/ 64 <1000000000>; |
| opp-microvolt = <779000>; |
| }; |
| opp05 { |
| opp-hz = /bits/ 64 <1200000000>; |
| opp-microvolt = <779000>; |
| }; |
| opp06 { |
| opp-hz = /bits/ 64 <1404000000>; |
| opp-microvolt = <799000>; |
| }; |
| opp07 { |
| opp-hz = /bits/ 64 <1500000000>; |
| opp-microvolt = <829000>; |
| }; |
| opp08 { |
| opp-hz = /bits/ 64 <1608000000>; |
| opp-microvolt = <859000>; |
| }; |
| opp09 { |
| opp-hz = /bits/ 64 <1704000000>; |
| opp-microvolt = <889000>; |
| }; |
| opp10 { |
| opp-hz = /bits/ 64 <1800000000>; |
| opp-microvolt = <929000>; |
| }; |
| opp11 { |
| opp-hz = /bits/ 64 <1908000000>; |
| opp-microvolt = <979000>; |
| }; |
| opp12 { |
| opp-hz = /bits/ 64 <2004000000>; |
| opp-microvolt = <1009000>; |
| }; |
| }; |
| |
| cpu_opp_table2: cpu_opp_table2 { |
| compatible = "operating-points-v2"; |
| status = "okay"; |
| opp-shared; |
| |
| opp00 { |
| opp-hz = /bits/ 64 <100000000>; |
| opp-microvolt = <769000>; |
| }; |
| opp01 { |
| opp-hz = /bits/ 64 <250000000>; |
| opp-microvolt = <769000>; |
| }; |
| opp02 { |
| opp-hz = /bits/ 64 <500000000>; |
| opp-microvolt = <769000>; |
| }; |
| opp03 { |
| opp-hz = /bits/ 64 <666000000>; |
| opp-microvolt = <769000>; |
| }; |
| opp04 { |
| opp-hz = /bits/ 64 <1000000000>; |
| opp-microvolt = <769000>; |
| }; |
| opp05 { |
| opp-hz = /bits/ 64 <1200000000>; |
| opp-microvolt = <769000>; |
| }; |
| opp06 { |
| opp-hz = /bits/ 64 <1404000000>; |
| opp-microvolt = <779000>; |
| }; |
| opp07 { |
| opp-hz = /bits/ 64 <1500000000>; |
| opp-microvolt = <789000>; |
| }; |
| opp08 { |
| opp-hz = /bits/ 64 <1608000000>; |
| opp-microvolt = <819000>; |
| }; |
| opp09 { |
| opp-hz = /bits/ 64 <1704000000>; |
| opp-microvolt = <859000>; |
| }; |
| opp10 { |
| opp-hz = /bits/ 64 <1800000000>; |
| opp-microvolt = <879000>; |
| }; |
| opp11 { |
| opp-hz = /bits/ 64 <1908000000>; |
| opp-microvolt = <939000>; |
| }; |
| opp12 { |
| opp-hz = /bits/ 64 <2004000000>; |
| opp-microvolt = <989000>; |
| }; |
| }; |
| |
| cpu_opp_table3: cpu_opp_table3 { |
| compatible = "operating-points-v2"; |
| status = "okay"; |
| opp-shared; |
| |
| opp00 { |
| opp-hz = /bits/ 64 <100000000>; |
| opp-microvolt = <759000>; |
| }; |
| opp01 { |
| opp-hz = /bits/ 64 <250000000>; |
| opp-microvolt = <759000>; |
| }; |
| opp02 { |
| opp-hz = /bits/ 64 <500000000>; |
| opp-microvolt = <759000>; |
| }; |
| opp03 { |
| opp-hz = /bits/ 64 <666000000>; |
| opp-microvolt = <759000>; |
| }; |
| opp04 { |
| opp-hz = /bits/ 64 <1000000000>; |
| opp-microvolt = <759000>; |
| }; |
| opp05 { |
| opp-hz = /bits/ 64 <1200000000>; |
| opp-microvolt = <759000>; |
| }; |
| opp06 { |
| opp-hz = /bits/ 64 <1404000000>; |
| opp-microvolt = <759000>; |
| }; |
| opp07 { |
| opp-hz = /bits/ 64 <1500000000>; |
| opp-microvolt = <779000>; |
| }; |
| opp08 { |
| opp-hz = /bits/ 64 <1608000000>; |
| opp-microvolt = <799000>; |
| }; |
| opp09 { |
| opp-hz = /bits/ 64 <1704000000>; |
| opp-microvolt = <819000>; |
| }; |
| opp10 { |
| opp-hz = /bits/ 64 <1800000000>; |
| opp-microvolt = <869000>; |
| }; |
| opp11 { |
| opp-hz = /bits/ 64 <1908000000>; |
| opp-microvolt = <919000>; |
| }; |
| opp12 { |
| opp-hz = /bits/ 64 <2004000000>; |
| opp-microvolt = <959000>; |
| }; |
| }; |
| |
| cpufreq-meson { |
| compatible = "amlogic, cpufreq-meson"; |
| status = "okay"; |
| }; |
| |
| saradc: saradc@fe026000 { |
| compatible = "amlogic,meson-g12a-saradc", |
| "amlogic,meson-saradc"; |
| status = "disabled"; |
| #io-channel-cells = <1>; |
| clocks = <&xtal>, |
| <&clkc CLKID_SAR_ADC>, |
| <&clkc CLKID_SARADC_GATE>, |
| <&clkc CLKID_SARADC_MUX>; |
| clock-names = "clkin", "core", |
| "adc_clk", "adc_sel"; |
| interrupts = <GIC_SPI 181 IRQ_TYPE_EDGE_RISING>; |
| reg = <0xfe026000 0x48>; |
| }; |
| |
| soc { |
| compatible = "simple-bus"; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| ranges; |
| |
| apb4: apb4@fe000000 { |
| compatible = "simple-bus"; |
| reg = <0xfe000000 0x480000>; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| ranges = <0x0 0xfe000000 0x480000>; |
| |
| clkc: clock-controller { |
| compatible = "amlogic,s4d-clkc"; |
| #clock-cells = <1>; |
| reg = <0x0 0x49c>, |
| <0x8000 0x348>, |
| <0xe140 0x24>; |
| reg-names = "basic", "pll", |
| "cpu_clk"; |
| clocks = <&xtal>; |
| clock-names = "xtal"; |
| status = "okay"; |
| }; |
| |
| meson_clk_msr@48000 { |
| compatible = "amlogic,meson-s4-clk-measure"; |
| reg = <0x48000 0x1c>; |
| }; |
| |
| watchdog@2100 { |
| compatible = "amlogic,meson-sc2-wdt"; |
| status = "okay"; |
| /* 0:userspace, 1:kernel */ |
| amlogic,feed_watchdog_mode = <1>; |
| reg = <0x2100 0x10>; |
| clocks = <&xtal>; |
| }; |
| |
| periphs_pinctrl: pinctrl@4000 { |
| compatible = "amlogic,meson-s4-periphs-pinctrl"; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| ranges; |
| |
| gpio: bank@4000 { |
| reg = <0x4000 0x004c>, |
| <0x40c0 0x0220>; |
| reg-names = "mux", "gpio"; |
| gpio-controller; |
| #gpio-cells = <2>; |
| gpio-ranges = <&periphs_pinctrl 0 0 82>; |
| }; |
| }; |
| |
| gpio_intc: interrupt-controller@4080 { |
| compatible = "amlogic,meson-s4-gpio-intc", |
| "amlogic,meson-gpio-intc"; |
| reg = <0x4080 0x20>; |
| interrupt-controller; |
| #interrupt-cells = <2>; |
| amlogic,channel-interrupts = |
| <10 11 12 13 14 15 16 17 18 19 20 21>; |
| }; |
| |
| spicc0: spi@50000 { |
| compatible = "amlogic,meson-g12-spicc"; |
| reg = <0x50000 0x44>; |
| interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>; |
| clocks = <&clkc CLKID_SPICC0>, |
| <&clkc CLKID_SPICC0_GATE>; |
| clock-names = "core", "async"; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| status = "disabled"; |
| }; |
| |
| spifc: spi@56000 { |
| compatible = "amlogic,meson-spifc"; |
| status = "disabled"; |
| reg = <0x56000 0x80>; |
| clock-names = "default"; |
| clocks = <&clkc CLKID_SPIFC>; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&spifc_pins>; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| spi-nor@0 { |
| compatible = "jedec,spi-nor"; |
| status = "disabled"; |
| reg = <0>; |
| spi-max-frequency = <16000000>; |
| }; |
| }; |
| |
| pwm_ab: pwm@58000 { |
| compatible = "amlogic,meson-v2-pwm"; |
| reg = <0x58000 0x24>; |
| #pwm-cells = <3>; |
| clocks = <&clkc CLKID_PWM_A_GATE>, |
| <&clkc CLKID_PWM_B_GATE>; |
| clock-names = "clkin0", "clkin1"; |
| status = "disabled"; |
| }; |
| |
| pwm_cd: pwm@5a000 { |
| compatible = "amlogic,meson-v2-pwm"; |
| reg = <0x5a000 0x24>; |
| #pwm-cells = <3>; |
| clocks = <&clkc CLKID_PWM_C_GATE>, |
| <&clkc CLKID_PWM_D_GATE>; |
| clock-names = "clkin0", "clkin1"; |
| status = "disabled"; |
| }; |
| |
| pwm_ef: pwm@5c000 { |
| compatible = "amlogic,meson-v2-pwm"; |
| reg = <0x5c000 0x24>; |
| #pwm-cells = <3>; |
| clocks = <&clkc CLKID_PWM_E_GATE>, |
| <&clkc CLKID_PWM_F_GATE>; |
| clock-names = "clkin0", "clkin1"; |
| status = "disabled"; |
| }; |
| |
| pwm_gh: pwm@5e000 { |
| compatible = "amlogic,meson-v2-pwm"; |
| reg = <0x5e000 0x24>; |
| #pwm-cells = <3>; |
| clocks = <&clkc CLKID_PWM_G_GATE>, |
| <&clkc CLKID_PWM_H_GATE>; |
| clock-names = "clkin0", "clkin1"; |
| status = "disabled"; |
| }; |
| |
| pwm_ij: pwm@60000 { |
| compatible = "amlogic,meson-v2-pwm"; |
| reg = <0x60000 0x24>; |
| #pwm-cells = <3>; |
| clocks = <&clkc CLKID_PWM_I_GATE>, |
| <&clkc CLKID_PWM_J_GATE>; |
| clock-names = "clkin0", "clkin1"; |
| status = "disabled"; |
| }; |
| |
| i2c0: i2c@66000 { |
| compatible = "amlogic,meson-i2c"; |
| reg = <0x66000 0x48>; |
| interrupts = <GIC_SPI 160 IRQ_TYPE_EDGE_RISING>; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| clocks = <&clkc CLKID_I2C_M_A>; |
| status = "disabled"; |
| }; |
| |
| i2c1: i2c@68000 { |
| compatible = "amlogic,meson-i2c"; |
| reg = <0x68000 0x48>; |
| interrupts = <GIC_SPI 161 IRQ_TYPE_EDGE_RISING>; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| clocks = <&clkc CLKID_I2C_M_B>; |
| status = "disabled"; |
| }; |
| |
| i2c2: i2c@6a000 { |
| compatible = "amlogic,meson-i2c"; |
| reg = <0x6a000 0x48>; |
| interrupts = <GIC_SPI 162 IRQ_TYPE_EDGE_RISING>; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| clocks = <&clkc CLKID_I2C_M_C>; |
| status = "disabled"; |
| }; |
| |
| i2c3: i2c@6c000 { |
| compatible = "amlogic,meson-i2c"; |
| reg = <0x6c000 0x48>; |
| interrupts = <GIC_SPI 163 IRQ_TYPE_EDGE_RISING>; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| clocks = <&clkc CLKID_I2C_M_D>; |
| status = "disabled"; |
| }; |
| |
| i2c4: i2c@6e000 { |
| compatible = "amlogic,meson-i2c"; |
| reg = <0x6e000 0x48>; |
| interrupts = <GIC_SPI 164 IRQ_TYPE_EDGE_RISING>; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| clocks = <&clkc CLKID_I2C_M_E>; |
| status = "disabled"; |
| }; |
| |
| uart_B: serial@7a000 { |
| compatible = "amlogic,meson-uart"; |
| reg = <0x7a000 0x18>; |
| interrupts = <0 169 1>; |
| status = "okay"; |
| clocks = <&xtal>; |
| clock-names = "clk_uart"; |
| xtal_tick_en = <2>; |
| fifosize = < 64 >; |
| //pinctrl-names = "default"; |
| /*pinctrl-0 = <&ao_uart_pins>;*/ |
| support-sysrq = <0>; /* 0 not support*/ |
| }; |
| |
| eth_phy: mdio-multiplexer@28000 { |
| compatible = "amlogic,g12a-mdio-mux"; |
| reg = <0x28000 0xa4>; |
| |
| clocks = <&clkc CLKID_ETHPHY>, |
| <&xtal>, |
| <&clkc CLKID_MPLL_50M>; |
| clock-names = "pclk", "clkin0", "clkin1"; |
| mdio-parent-bus = <&mdio0>; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| enet_type = <5>; |
| tx_amp_src = <0xFE010330>; |
| |
| ext_mdio: mdio@0 { |
| reg = <0>; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| }; |
| |
| int_mdio: mdio@1 { |
| reg = <1>; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| |
| internal_ephy: ethernet_phy@8 { |
| compatible = "ethernet-phy-id0180.3301", |
| "ethernet-phy-ieee802.3-c22"; |
| interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; |
| reg = <8>; |
| max-speed = <100>; |
| }; |
| }; |
| }; |
| |
| reset: reset-controller@2000 { |
| compatible = "amlogic,meson-sc2-reset"; |
| reg = <0x2000 0x98>; |
| #reset-cells = <1>; |
| }; |
| |
| cpu_version { |
| compatible = "amlogic,meson-gx-ao-secure", "syscon"; |
| reg=<0x10220 0x4>; |
| }; |
| }; |
| |
| usb2_phy_v2: usb2phy@fe03a000 { |
| compatible = "amlogic,amlogic-new-usb2-v2"; |
| status = "disable"; |
| #phy-cells = <0>; |
| reg = <0xfe03a000 0x80 |
| 0xFE002000 0x100 |
| 0xfe03c000 0x2000 |
| 0xfe03e000 0x2000>; |
| pll-setting-1 = <0x09400414>; |
| pll-setting-2 = <0x927E0000>; |
| pll-setting-3 = <0xac5f69e5>; |
| pll-setting-4 = <0xbe18>; |
| pll-setting-5 = <0x7>; |
| pll-setting-6 = <0x78000>; |
| pll-setting-7 = <0xe0004>; |
| pll-setting-8 = <0xe000c>; |
| dis-thred-enhance = <0x2>;/**s4-0x38:bit[26-27]**/ |
| version = <3>; |
| // power-domains = <&pwrdm PDID_SC2_USB_COMB>; |
| phy20-reset-level-bit = <8>; |
| phy21-reset-level-bit = <9>; |
| usb-reset-bit = <4>; |
| reset-level = <0x40>; |
| usb-phy-trim-reg = <0xfe010330>; |
| }; |
| |
| usb3_phy_v2: usb3phy@fe03a080 { |
| compatible = "amlogic,amlogic-new-usb3-v2"; |
| status = "disable"; |
| #phy-cells = <0>; |
| reg = <0xfe03a080 0x20 |
| 0xfe002000 0x100>; |
| phy-reg = <0xfe02a000>; |
| phy-reg-size = <0x2000>; |
| usb2-phy-reg = <0xfe03a000>; |
| usb2-phy-reg-size = <0x80>; |
| clocks = <&clkc CLKID_PCIE_PLL>; |
| clock-names = "pcie_refpll"; |
| interrupts = <0 129 4>; |
| }; |
| |
| crg: crg@fde00000 { |
| compatible = "amlogic, crg"; |
| status = "disabled"; |
| reg = <0xfde00000 0x100000>; |
| interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>; |
| usb-phy = <&usb2_phy_v2>, <&usb3_phy_v2>; |
| cpu-type = "gxl"; |
| clock-src = "usb3.0"; |
| clocks = <&clkc CLKID_USB>; |
| clock-names = "crg_general"; |
| }; |
| |
| dummy_codec:dummy{ |
| #sound-dai-cells = <0>; |
| compatible = "amlogic, aml_dummy_codec"; |
| status = "okay"; |
| }; |
| amlogic_codec:t9015{ |
| #sound-dai-cells = <0>; |
| compatible = "amlogic, s4_codec_T9015"; |
| reg = <0xFE01A000 0x2000>; |
| tocodec_inout = <2>; |
| tdmout_index = <2>; |
| ch0_sel = <0>; |
| ch1_sel = <1>; |
| |
| reset-names = "acodec"; |
| resets = <&reset RESET_ACODEC>; |
| |
| status = "okay"; |
| }; |
| |
| audiobus: audiobus@0xFE330000 { |
| compatible = "amlogic, audio-controller", "simple-bus"; |
| reg = <0xFE330000 0x3000>; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| ranges = <0x0 0xFE330000 0x3000>; |
| |
| power-domains = <&pwrdm PDID_S4_AUDIO>; |
| |
| clkaudio: audio_clocks { |
| compatible = "amlogic, sm1-audio-clocks"; |
| #clock-cells = <1>; |
| reg = <0x0 0xb0>; |
| }; |
| ddr_manager { |
| compatible = |
| "amlogic, t5-audio-ddr-manager"; |
| interrupts = < |
| GIC_SPI 32 IRQ_TYPE_EDGE_RISING |
| GIC_SPI 33 IRQ_TYPE_EDGE_RISING |
| GIC_SPI 34 IRQ_TYPE_EDGE_RISING |
| GIC_SPI 45 IRQ_TYPE_EDGE_RISING |
| GIC_SPI 36 IRQ_TYPE_EDGE_RISING |
| GIC_SPI 37 IRQ_TYPE_EDGE_RISING |
| GIC_SPI 38 IRQ_TYPE_EDGE_RISING |
| GIC_SPI 46 IRQ_TYPE_EDGE_RISING |
| >; |
| interrupt-names = |
| "toddr_a", "toddr_b", "toddr_c", |
| "toddr_d", |
| "frddr_a", "frddr_b", "frddr_c", |
| "frddr_d"; |
| }; |
| |
| pinctrl_audio: pinctrl { |
| compatible = "amlogic, audio-pinctrl"; |
| }; |
| };/* end of audiobus*/ |
| |
| /* Sound iomap */ |
| aml_snd_iomap { |
| compatible = "amlogic, snd-iomap"; |
| status = "okay"; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| ranges; |
| pdm_bus { |
| reg = <0xFE331000 0x400>; |
| }; |
| audiobus_base { |
| reg = <0xFE330000 0x1000>; |
| }; |
| audiolocker_base { |
| reg = <0xFE331400 0x400>; |
| }; |
| eqdrc_base { |
| reg = <0xFE332000 0x1000>; |
| }; |
| vad_base { |
| reg = <0xFE331800 0x400>; |
| }; |
| resampleA_base { |
| reg = <0xFE331c00 0x104>; |
| }; |
| resampleB_base { |
| reg = <0xFE334000 0x104>; |
| }; |
| }; |
| |
| dwc2_a: dwc2_a@fdd00000 { |
| compatible = "amlogic,dwc2"; |
| status = "disable"; |
| device_name = "dwc2_a"; |
| reg = <0xfdd00000 0x100000>; |
| interrupts = <0 131 4>; |
| pl-periph-id = <0>; /** lm name */ |
| clock-src = "usb0"; /** clock src */ |
| port-id = <0>; /** ref to mach/usb.h */ |
| port-type = <2>; /** 0: otg, 1: host, 2: slave */ |
| port-speed = <0>; /** 0: default, high, 1: full */ |
| port-config = <0>; /** 0: default */ |
| /*0:default,1:single,2:incr,3:incr4,4:incr8,5:incr16,6:disable*/ |
| port-dma = <0>; |
| port-id-mode = <0>; /** 0: hardware, 1: sw_host, 2: sw_slave*/ |
| usb-fifo = <728>; |
| cpu-type = "v2"; |
| phy-reg = <0xfe03a000>; |
| phy-reg-size = <0xa0>; |
| /** phy-interface: 0x0: amlogic phy, 0x1: synopsys phy **/ |
| phy-interface = <0x2>; |
| clocks = <&clkc CLKID_USB |
| &clkc CLKID_USB1_TO_DDR>; |
| clock-names = "usb_general", |
| "usb1"; |
| }; |
| |
| dolby_fw: dolby_fw { |
| compatible = "amlogic, dolby_fw"; |
| mem_size = <0x100000>; |
| status = "okay"; |
| }; |
| |
| pcie: pcie@f5000000 { |
| compatible = "amlogic, amlogic-pcie-v2", "snps,dw-pcie"; |
| reg = <0xf5000000 0x400000 |
| 0xfe02c000 0x2000 |
| 0xf5400000 0x200000 |
| 0xfe02a000 0x2000 |
| 0xfe002044 0x10>; |
| reg-names = "elbi", "cfg", "config", "phy", "reset"; |
| interrupts = <GIC_SPI 141 IRQ_TYPE_EDGE_RISING>; |
| #interrupt-cells = <1>; |
| bus-range = <0x0 0xff>; |
| #address-cells = <3>; |
| #size-cells = <2>; |
| interrupt-map-mask = <0 0 0 0>; |
| interrupt-map = <0 0 0 0 &gic GIC_SPI 143 IRQ_TYPE_EDGE_RISING>; |
| device_type = "pci"; |
| ranges = <0 0 0xf5600000 0x0 0x0 0x100000 |
| /* downstream I/O */ |
| 0 0x0 0xf5700000 0 0x0 0x1900000>; |
| /* non-prefetchable memory */ |
| num-lanes = <1>; |
| pcie-num = <1>; |
| |
| clocks = <&clkc CLKID_PCIE_PLL |
| &clkc CLKID_PCIE |
| &clkc CLKID_PCIE_PHY>; |
| clock-names = "pcie_refpll", |
| "pcie", |
| "pcie_phy"; |
| /*reset-gpio-type 0:Shared pad(no reset)1:OD pad2:Normal pad*/ |
| gpio-type = <2>; |
| pcie-apb-rst-bit = <14>; |
| pcie-phy-rst-bit = <13>; |
| pcie-ctrl-a-rst-bit = <12>; |
| pwr-ctl = <0>; |
| // power-domains = <&pwrdm PDID_SC2_PCIE>; |
| pcie-ctrl-sleep-shift = <15>; |
| pcie-hhi-mem-pd-shift = <26>; |
| pcie-hhi-mem-pd-mask = <0xf>; |
| pcie-ctrl-iso-shift = <15>; |
| status = "disabled"; |
| }; |
| |
| sd_emmc_c: mmc@fe08c000 { |
| compatible = "amlogic,meson-axg-mmc"; |
| reg = <0xfe08c000 0x800>, |
| <0xfe000168 0x4>, |
| <0xfe004000 0x4>; |
| interrupts = <GIC_SPI 178 IRQ_TYPE_EDGE_RISING>; |
| status = "disabled"; |
| clocks = <&clkc CLKID_NAND>, |
| <&clkc CLKID_SD_EMMC_C_CLK_MUX>, |
| <&clkc CLKID_SD_EMMC_C_CLK>, |
| <&xtal>, |
| <&clkc CLKID_GP1_PLL>, |
| <&clkc CLKID_GP1_PLL>; |
| clock-names = "core", "mux0", "mux1", |
| "clkin0", "clkin1", "clkin2"; |
| card_type = <1>; |
| ignore_desc_busy; |
| mmc_debug_flag; |
| src_clk_rate = <1152000000>; |
| tx_delay = <8>; |
| nwr_cnt = <0>; |
| // resets = <&reset RESET_SD_EMMC_C>; |
| }; |
| |
| sd_emmc_b: sd@fe08a000 { |
| compatible = "amlogic,meson-axg-mmc"; |
| reg = <0xfe08a000 0x800>, |
| <0xfe00016c 0x4>, |
| <0xfe004024 0x4>; |
| interrupts = <GIC_SPI 177 IRQ_TYPE_EDGE_RISING>; |
| status = "disabled"; |
| clocks = <&clkc CLKID_SD_EMMC_B>, |
| <&clkc CLKID_SD_EMMC_B_CLK_MUX>, |
| <&clkc CLKID_SD_EMMC_B_CLK>, |
| <&xtal>, |
| <&clkc CLKID_FCLK_DIV2>; |
| clock-names = "core", "mux0", "mux1", |
| "clkin0", "clkin1"; |
| card_type = <5>; |
| mmc_debug_flag; |
| //resets = <&reset RESET_SD_EMMC_B>; |
| }; |
| |
| sd_emmc_a: sdio@fe088000 { |
| compatible = "amlogic,meson-axg-mmc"; |
| reg = <0xfe088000 0x800>, |
| <0xfe00016c 0x4>, |
| <0xfe00400c 0x4>; |
| interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>; |
| status = "disabled"; |
| clocks = <&clkc CLKID_SD_EMMC_A>, |
| <&clkc CLKID_SD_EMMC_A_CLK_MUX>, |
| <&clkc CLKID_SD_EMMC_A_CLK>, |
| <&xtal>, |
| <&clkc CLKID_FCLK_DIV2>; |
| clock-names = "core", "mux0", "mux1", |
| "clkin0", "clkin1"; |
| card_type = <3>; |
| mmc_debug_flag; |
| cap-sdio-irq; |
| keep-power-in-suspend; |
| use_intf3_tuning; |
| //resets = <&reset RESET_SD_EMMC_A>; |
| }; |
| |
| mtd_nand: nfc@fe08c800 { |
| compatible = "amlogic,meson-nfc-single-ecc-bl2ex"; |
| status = "disabled"; |
| reg = <0xfe08c800 0x200>; |
| interrupts = <GIC_SPI 175 IRQ_TYPE_EDGE_RISING>; |
| |
| clocks = <&clkc CLKID_NAND>, |
| <&clkc CLKID_FCLK_DIV2>; |
| clock-names = "gate", "fdiv2pll"; |
| nand_clk_ctrl = <0xfe08c000>; |
| }; |
| |
| ethmac: ethernet@fdc00000 { |
| compatible = "amlogic,meson-axg-dwmac", |
| "snps,dwmac-3.70a", |
| "snps,dwmac"; |
| reg = <0xfdc00000 0x10000>, |
| <0xfe024000 0x8>; |
| interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; |
| interrupt-names = "macirq"; |
| power-domains = <&pwrdm PDID_S4_ETH>; |
| clocks = <&clkc CLKID_ETH>, |
| <&clkc CLKID_FCLK_DIV2>, |
| <&clkc CLKID_MPLL2>; |
| clock-names = "stmmaceth", "clkin0", "clkin1"; |
| rx-fifo-depth = <4096>; |
| tx-fifo-depth = <2048>; |
| status = "disabled"; |
| |
| mdio0: mdio { |
| #address-cells = <1>; |
| #size-cells = <0>; |
| compatible = "snps,dwmac-mdio"; |
| }; |
| }; |
| |
| uart_A: serial@fe078000 { |
| compatible = "amlogic,meson-uart"; |
| reg = <0xfe078000 0x18>; |
| interrupts = <0 168 1>; |
| status = "disabled"; |
| clocks = <&xtal |
| &clkc CLKID_UART_A>; |
| clock-names = "clk_uart", |
| "clk_gate"; |
| xtal_tick_en = <3>; |
| fifosize = < 64 >; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&a_uart_pins>; |
| }; |
| |
| uart_C: serial@fe07c000 { |
| compatible = "amlogic,meson-uart"; |
| reg = <0xfe07c000 0x18>; |
| interrupts = <0 170 1>; |
| status = "disabled"; |
| clocks = <&xtal |
| &clkc CLKID_UART_C>; |
| clock-names = "clk_uart", |
| "clk_gate"; |
| fifosize = < 64 >; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&c_uart_pins>; |
| }; |
| |
| uart_D: serial@fe07e000 { |
| compatible = "amlogic,meson-uart"; |
| status = "disabled"; |
| reg = <0xfe07e000 0x18>; |
| interrupts = <0 171 1>; |
| clocks = <&xtal |
| &clkc CLKID_UART_D>; |
| clock-names = "clk_uart", |
| "clk_gate"; |
| fifosize = < 64 >; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&d_uart_pins1>; |
| }; |
| |
| uart_E: serial@fe080000 { |
| compatible = "amlogic,meson-uart"; |
| status = "disabled"; |
| reg = <0xfe080000 0x18>; |
| interrupts = <0 172 1>; |
| clocks = <&xtal |
| &clkc CLKID_UART_E>; |
| clock-names = "clk_uart", |
| "clk_gate"; |
| fifosize = < 64 >; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&e_uart_pins1>; |
| }; |
| }; |
| |
| mesonstream { |
| compatible = "amlogic, codec, streambuf"; |
| dev_name = "mesonstream"; |
| status = "okay"; |
| clocks = <&clkc CLKID_DOS |
| &clkc CLKID_VDEC_MUX |
| &clkc CLKID_HCODEC_MUX |
| &clkc CLKID_HEVCF_MUX |
| &clkc CLKID_HEVCB_MUX>; |
| clock-names = "vdec", |
| "clk_vdec_mux", |
| "clk_hcodec_mux", |
| "clk_hevcf_mux", |
| "clk_hevcb_mux"; |
| }; |
| |
| vdec { |
| compatible = "amlogic, vdec-pm-pd"; |
| dev_name = "vdec.0"; |
| status = "okay"; |
| interrupts = <0 3 1 |
| 0 23 1 |
| 0 32 1 |
| 0 91 1 |
| 0 92 1 |
| 0 93 1 |
| 0 72 1>; |
| interrupt-names = "vsync", |
| "demux", |
| "parser", |
| "mailbox_0", |
| "mailbox_1", |
| "mailbox_2", |
| "parser_b"; |
| power-domains = <&pwrdm PDID_S4_DOS_VDEC>, |
| <&pwrdm PDID_S4_DOS_HEVC>; |
| power-domain-names = "pwrc-vdec", |
| "pwrc-hevc"; |
| }; |
| vdec_cpu_ver: cpu_ver_name { |
| compatible = "amlogic, cpu-major-id-s4d"; |
| }; |
| vcodec_dec { |
| compatible = "amlogic, vcodec-dec"; |
| dev_name = "aml-vcodec-dec"; |
| status = "okay"; |
| }; |
| |
| ddr_bandwidth { |
| compatible = "amlogic,ddr-bandwidth-s4"; |
| status = "okay"; |
| reg = <0xfe036000 0x400 |
| 0xfe036c00 0x100>; |
| interrupts = <0 78 IRQ_TYPE_EDGE_RISING>; |
| interrupt-names = "ddr_bandwidth"; |
| }; |
| |
| dmc_monitor { |
| compatible = "amlogic,dmc_monitor-s4"; |
| status = "okay"; |
| reg = <0xfe036000 0x400>; |
| reg_base = <0xfe037000>; |
| interrupts = <0 62 IRQ_TYPE_EDGE_RISING>; |
| }; |
| |
| amhdmitx: amhdmitx{ |
| compatible = "amlogic, amhdmitx-sc2"; |
| dev_name = "amhdmitx"; |
| status = "disabled"; |
| vend-data = <&vend_data>; |
| pinctrl-names="default"; |
| pinctrl-0=<&hdmitx_hpd &hdmitx_ddc>; |
| clock-names = "venci_top_gate", |
| "venci_0_gate", |
| "venci_1_gate", |
| "hdmi_vapb_clk", |
| "hdmi_vpu_clk"; |
| /* refer to sc2-system-registers.docx */ |
| interrupts = <0 204 1 |
| 0 197 1>; |
| interrupt-names = "hdmitx_hpd", "viu1_vsync"; |
| /* refer to hdmi_tx_module.h */ |
| ic_type = <15>; |
| hdmi_rext = <1300>; /* HDMI Rext resistor uses 1.3k ohm, not 1.5k */ |
| reg = <0x00000000 0x000>, /* reserved */ |
| <0xff000000 0x40000>, |
| <0x00000000 0x000>, /* reserved */ |
| <0xfe308000 0x8000>, |
| <0xfe300000 0x8000>, |
| <0xfe032000 0x100>, |
| <0xfe008000 0x400>, |
| <0xfe00c000 0x800>, |
| <0xfe002000 0x400>, |
| <0xfe010000 0x100>, |
| <0xfe000000 0x2000>; |
| reg-names = "cbus", |
| "vpu", |
| "hiu", |
| "hdmitxdwc", |
| "hdmitxtop", |
| "esm", |
| "anactrl", |
| "pwrctrl", |
| "resetctrl", |
| "sysctrl", |
| "clkctrl"; |
| |
| vend_data: vend_data{ /* Should modified by Customer */ |
| vendor_name = "Amlogic"; /* Max Chars: 8 */ |
| product_desc = "MBox Meson Ref"; /* Max Chars: 16 */ |
| /* standards.ieee.org/develop/regauth/oui/oui.txt */ |
| vendor_id = <0x000000>; |
| }; |
| }; |
| |
| aocec: aocec { |
| compatible = "amlogic, aocec-s4"; |
| dev_name = "aocec"; |
| status = "okay"; |
| vendor_name = "Amlogic"; /* Max Chars: 8 */ |
| /* Refer to the following URL at: |
| * http://standards.ieee.org/develop/regauth/oui/oui.txt |
| */ |
| vendor_id = <0xffffff>; |
| product_desc = "S4D"; /* Max Chars: 16 */ |
| cec_osd_string = "AML_MBOX"; /* Max Chars: 14 */ |
| cec_version = <5>;/*5:1.4;6:2.0*/ |
| port_num = <1>; |
| output = <1>; |
| cec_sel = <1>;/*1:use one ip, 2:use 2 ip*/ |
| ee_cec; |
| arc_port_mask = <0x1>; |
| interrupts = <GIC_SPI 180 IRQ_TYPE_EDGE_RISING/*0:snps*/ |
| GIC_SPI 179 IRQ_TYPE_EDGE_RISING>;/*1:ts*/ |
| interrupt-names = "hdmi_aocecb","hdmi_aocec"; |
| pinctrl-names = "default","hdmitx_aocecb","cec_pin_sleep"; |
| pinctrl-0=<&eecec_a>; |
| pinctrl-1=<&eecec_b>; |
| pinctrl-2=<&eecec_b>; |
| clocks = <&clkc CLKID_CECA_32K_CLKOUT>, |
| <&clkc CLKID_CECB_32K_CLKOUT>; |
| clock-names = "ceca_clk","cecb_clk"; |
| reg = <0xfe044000 0x2ff |
| 0xfe010000 0xfff |
| 0xfe000000 0xfff>; |
| reg-names = "ao","periphs","clock"/*ao_exit hdmirx hhi*/; |
| }; |
| |
| aml_dma { |
| compatible = "amlogic,aml_txlx_dma"; |
| reg = <0xfe440400 0x48>; |
| interrupts = <0 24 1>; |
| |
| aml_aes { |
| compatible = "amlogic,aes_g12a_dma"; |
| dev_name = "aml_aes_dma"; |
| status = "okay"; |
| iv_swap = /bits/ 8 <0x0>; |
| }; |
| |
| aml_sha { |
| compatible = "amlogic,sha_dma"; |
| dev_name = "aml_sha_dma"; |
| status = "okay"; |
| }; |
| |
| aml_tdes { |
| compatible = "amlogic,des_dma,tdes_dma"; |
| dev_name = "aml_tdes_dma"; |
| status = "okay"; |
| }; |
| |
| crypto { |
| compatible = "amlogic,crypto_s4d"; |
| dev_name = "aml_crypto_dev"; |
| status = "okay"; |
| thread = /bits/ 8 <0x5>; |
| interrupts = <0 29 1>; |
| }; |
| }; |
| |
| rng { |
| compatible = "amlogic,meson-rng"; |
| status = "okay"; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| reg = <0xfe440788 0x0c>; |
| quality = /bits/ 16 <1000>; |
| version = <2>; |
| }; |
| |
| canvas: canvas{ |
| compatible = "amlogic, meson, canvas"; |
| status = "okay"; |
| reg = <0xfe036048 0x2000>; |
| }; |
| |
| codec_io: codec_io { |
| compatible = "amlogic, meson-s4d, codec-io"; |
| status = "okay"; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| ranges; |
| reg = <0xfe002000 0x2000>, |
| <0xfe320000 0x10000>, |
| <0x0 0x0>, |
| <0x0 0x00>, |
| <0xff000000 0x40000>, |
| <0xfe036000 0x2000>, |
| <0x0 0x0>; |
| reg-names = "cbus", |
| "dosbus", |
| "hiubus", |
| "aobus", |
| "vcbus", |
| "dmcbus", |
| "efusebus"; |
| }; |
| |
| amvenc_avc{ |
| compatible = "amlogic, amvenc_avc"; |
| dev_name = "amvenc_avc"; |
| status = "disabled"; |
| clocks = <&clkc CLKID_HCODEC_P0>; |
| clock-names = "cts_hcodec_aclk"; |
| interrupts = <0 93 1>; |
| interrupt-names = "mailbox_2"; |
| reset-names = "hcodec_rst"; |
| resets = <&reset RESET_BRG_HCODEC_PIPL0>; |
| }; |
| jpegenc{ |
| compatible = "amlogic, jpegenc"; |
| dev_name = "jpegenc"; |
| status = "disabled"; |
| clocks = <&clkc CLKID_HCODEC_P0>; |
| clock-names = "cts_jpegenc_aclk"; |
| interrupts = <0 93 1>; |
| interrupt-names = "mailbox_2"; |
| reset-names = "jpegenc_rst"; |
| resets = <&reset RESET_BRG_HCODEC_PIPL0>; |
| }; |
| hevc_enc{ |
| compatible = "cnm, HevcEnc"; |
| //memory-region = <&hevc_enc_reserved>; |
| dev_name = "HevcEnc"; |
| status = "disabled"; |
| interrupts = <0 94 1>; |
| interrupt-names = "wave420l_irq"; |
| #address-cells = <1>; |
| #size-cells = <1>; |
| clocks = <&clkc CLKID_WAVE_A_GATE |
| &clkc CLKID_WAVE_B_GATE |
| &clkc CLKID_WAVE_C_GATE>; |
| clock-names = "cts_wave420_aclk", |
| "cts_wave420_bclk", |
| "cts_wave420_cclk"; |
| ranges; |
| io_reg_base{ |
| reg = <0xfe310000 0x4000>; |
| }; |
| }; |
| vpu: vpu { |
| compatible = "amlogic, vpu-s4d"; |
| status = "okay"; |
| reg = <0xfe000000 0x100 /* clk */ |
| 0xfe00c000 0x70 /* pwrctrl */ |
| 0xff000000 0xa000>; /* vcbus */ |
| clocks = <&clkc CLKID_VAPB>, |
| <&clkc CLKID_VPU_INTR>, |
| <&clkc CLKID_VPU_0>, |
| <&clkc CLKID_VPU_1>, |
| <&clkc CLKID_VPU>; |
| clock-names = "vapb_clk", |
| "vpu_intr_gate", |
| "vpu_clk0", |
| "vpu_clk1", |
| "vpu_clk"; |
| clk_level = <7>; |
| /* 0: 100.0M 1: 166.7M 2: 200.0M 3: 250.0M */ |
| /* 4: 333.3M 5: 400.0M 6: 500.0M 7: 666.7M */ |
| }; |
| |
| rdma { |
| compatible = "amlogic, meson-sc2, rdma"; |
| status = "okay"; |
| interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>; |
| interrupt-names = "rdma"; |
| /* after sc2 */ |
| reset-names = "rdma"; |
| resets = <&reset RESET_RDMA>; |
| }; |
| |
| vclk_serve: vclk_serve { |
| compatible = "amlogic, vclk_serve"; |
| status = "okay"; |
| reg = <0xfe008000 0x300 /* ana reg */ |
| 0xfe000000 0x4a0>; /* clk reg */ |
| }; |
| |
| vdac { |
| compatible = "amlogic, vdac-s4d"; |
| status = "okay"; |
| }; |
| |
| vout: vout { |
| compatible = "amlogic, vout"; |
| status = "okay"; |
| |
| /* fr_policy: |
| * 0: disable |
| * 1: nearby (only for 60->59.94 and 30->29.97) |
| * 2: force (60/50/30/24/59.94/23.97) |
| */ |
| fr_policy = <2>; |
| }; |
| |
| dummy_venc: dummy_venc { |
| compatible = "amlogic, dummy_venc_s4"; |
| status = "okay"; |
| }; |
| |
| adc: adc { |
| compatible = "amlogic, adc-s4d"; |
| status = "okay"; |
| reg = <0xff654000 0x2000/* afe reg base */ |
| 0xfe008000 0x2000/* hiu base */ |
| >; |
| }; |
| |
| ir: ir@8000 { |
| compatible = "amlogic, meson-ir"; |
| reg = <0xfe084040 0xA4>, |
| <0xfe084000 0x20>; |
| status = "disable"; |
| protocol = <REMOTE_TYPE_NEC>; |
| interrupts = <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>; |
| map = <&custom_maps>; |
| max_frame_time = <200>; |
| }; |
| |
| p_tsensor: p_tsensor@fe020000 { |
| compatible = "amlogic, r1p1-tsensor"; |
| status = "okay"; |
| reg = <0xfe020000 0x50>; |
| tsensor_id = <1>; |
| cal_type = <0x11>; |
| cal_coeff = <324 424 3159 9411>; |
| rtemp = <110000>; |
| interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; |
| clocks = <&clkc CLKID_TS_CLK_GATE>; |
| clock-names = "ts_comp"; |
| #thermal-sensor-cells = <1>; |
| }; |
| |
| meson_cooldev: meson-cooldev@0 { |
| status = "okay"; |
| compatible = "amlogic, meson-cooldev"; |
| cooling_devices { |
| cpucore_cool_cluster0 { |
| cluster_id = <0>; |
| node_name = "cpucore_cool0"; |
| device_type = "cpucore"; |
| }; |
| gpufreq_cool { |
| dyn_coeff = <140>; |
| node_name = "bifrost"; |
| device_type = "gpufreq"; |
| }; |
| }; |
| cpucore_cool0:cpucore_cool0 { |
| #cooling-cells = <2>; /* min followed by max */ |
| }; |
| };/*meson cooling devices end*/ |
| |
| thermal-zones { |
| soc_thermal: soc_thermal { |
| polling-delay = <1000>; |
| polling-delay-passive = <100>; |
| sustainable-power = <1160>; |
| thermal-sensors = <&p_tsensor 0>; |
| trips { |
| pswitch_on: trip-point@0 { |
| temperature = <85000>; |
| hysteresis = <5000>; |
| type = "passive"; |
| }; |
| pcontrol: trip-point@1 { |
| temperature = <95000>; |
| hysteresis = <5000>; |
| type = "passive"; |
| }; |
| pcritical: trip-point@2 { |
| temperature = <105000>; |
| hysteresis = <1000>; |
| type = "critical"; |
| }; |
| }; |
| |
| cooling-maps { |
| cpufreq_cooling_map { |
| trip = <&pcontrol>; |
| cooling-device = <&CPU0 0 8>; |
| contribution = <1024>; |
| }; |
| gpufreq_cooling_map { |
| trip = <&pcontrol>; |
| cooling-device = <&gpu 0 3>; |
| contribution = <1024>; |
| }; |
| }; |
| }; |
| };/*thermal zone end*/ |
| |
| ion_dev { |
| compatible = "amlogic, ion_dev"; |
| memory-region = <&ion_cma_reserved |
| &ion_fb_reserved>; |
| }; |
| |
| meson_uvm { |
| compatible = "amlogic, meson_uvm"; |
| status = "okay"; |
| }; |
| |
| meson_videotunnel{ |
| compatible = "amlogic, meson_videotunnel"; |
| status = "okay"; |
| }; |
| |
| fb: fb { |
| compatible = "amlogic, fb-s4"; |
| memory-region = <&logo_reserved>; |
| status = "disabled"; |
| interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING |
| GIC_SPI 215 IRQ_TYPE_EDGE_RISING>; |
| interrupt-names = "viu-vsync", "rdma"; |
| /* uboot logo,fb0/fb1 memory size,if afbcd fb0=0x01851000*/ |
| display_mode_default = "1080p60hz"; |
| scale_mode = <1>; |
| /** 0:VPU free scale 1:OSD free scale 2:OSD super scale */ |
| display_size_default = <1920 1080 1920 2160 32>; |
| /*1920*1080*4*3 = 0x17BB000*/ |
| }; |
| |
| irblaster: meson-irblaster@fe08410c { |
| compatible = "amlogic, meson_irblaster"; |
| status = "okay"; |
| reg = <0xfe08410c 0x10>; |
| #irblaster-cells = <2>; |
| interrupts = <GIC_SPI 23 IRQ_TYPE_EDGE_RISING>; |
| }; |
| |
| /*if you want to use vdin just modify status to "ok"*/ |
| vdin0: vdin0 { |
| compatible = "amlogic, vdin-s4d"; |
| dev_name = "vdin0"; |
| status = "okay"; |
| reserve-iomap = "true"; |
| flag_cma = <0>;/*1:share with codec_mm;2:cma alone*/ |
| /*MByte, if 10bit disable: 64M(YUV422), |
| *if 10bit enable: 64*1.5 = 96M(YUV422) |
| *if support 4K2K-YUV444-10bit-WR:3840*2160*4*4 ~= 128M |
| *if support 4K2K-YUV422-10bit-wr:3840*2160*3*4 ~= 96M |
| *if support 4K2K-YUV422-8BIT-WR:3840*2160*2*4 ~= 64M |
| *if support 1080p-YUV422-8BIT-WR:1920*1080*2*4 ~= 16M |
| */ |
| /*cma_size = <16>;*/ |
| interrupts = <0 210 1>; |
| rdma-irq = <2>; |
| clocks = <&clkc CLKID_FCLK_DIV5>, <&clkc CLKID_VDIN_MEAS_GATE>; |
| clock-names = "fclk_div5", "cts_vdin_meas_clk"; |
| vdin_id = <0>; |
| }; |
| vdin1: vdin1 { |
| compatible = "amlogic, vdin-s4d"; |
| dev_name = "vdin1"; |
| status = "okay"; |
| reserve-iomap = "true"; |
| flag_cma = <0>;/*1:share with codec_mm;0:cma alone*/ |
| interrupts = <0 212 1>; |
| rdma-irq = <4>; |
| vdin_id = <1>; |
| }; |
| |
| meson-amvideom { |
| compatible = "amlogic, amvideom-s4"; |
| dev_name = "amvideom"; |
| status = "okay"; |
| interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>; |
| interrupt-names = "vsync"; |
| }; |
| |
| video_composer { |
| compatible = "amlogic, video_composer"; |
| dev_name = "video_composer"; |
| status = "okay"; |
| }; |
| |
| vpu_security { |
| compatible = "amlogic, meson-s4, vpu_security"; |
| dev_name = "amlogic-vpu-security"; |
| status = "okay"; |
| interrupts = <GIC_SPI 220 IRQ_TYPE_EDGE_RISING>; |
| interrupt-names = "vpu_security"; |
| }; |
| |
| ge2d { |
| compatible = "amlogic, ge2d-s4"; |
| status = "okay"; |
| interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>; |
| interrupt-names = "ge2d"; |
| clocks = <&clkc CLKID_VAPB>, |
| <&clkc CLKID_G2D>, |
| <&clkc CLKID_GE2D>; |
| clock-names = "clk_vapb_0", |
| "clk_ge2d", |
| "clk_ge2d_gate"; |
| reg = <0xff040000 0x100>; |
| power-domains = <&pwrdm PDID_S4_GE2D>; |
| }; |
| |
| aml_bt: aml_bt { |
| compatible = "amlogic, aml-bt"; |
| status = "disabled"; |
| }; |
| |
| aml_wifi: aml_wifi { |
| compatible = "amlogic, aml-wifi"; |
| status = "disabled"; |
| irq_trigger_type = "GPIO_IRQ_LOW"; |
| dhd_static_buf; /* if use bcm wifi, config dhd_static_buf */ |
| //pinctrl-0 = <&pwm_e_pins>; |
| //pinctrl-names = "default"; |
| pwm_config = <&wifi_pwm_conf>; |
| }; |
| |
| wifi_pwm_conf:wifi_pwm_conf{ |
| pwm_channel1_conf { |
| pwms = <&pwm_ef 0 30541 0>; |
| duty-cycle = <15270>; |
| times = <7>; |
| }; |
| pwm_channel2_conf { |
| pwms = <&pwm_ef 2 30500 0>; |
| duty-cycle = <15250>; |
| times = <10>; |
| }; |
| }; |
| |
| state_led: state_led { |
| compatible = "amlogic,state-led-aocpu"; |
| status = "disabled"; |
| }; |
| }; |
| |
| &periphs_pinctrl { |
| i2c0_pins1:i2c0_pins1 { |
| mux { |
| groups = "i2c0_sda", |
| "i2c0_scl"; |
| function = "i2c0"; |
| drive-strength-microamp = <3000>; |
| bias-disable; |
| }; |
| }; |
| |
| i2c1_pins1:i2c1_pins1 { |
| mux { |
| groups = "i2c1_sda_c", |
| "i2c1_scl_c"; |
| function = "i2c1"; |
| drive-strength-microamp = <3000>; |
| bias-disable; |
| }; |
| }; |
| |
| i2c1_pins2:i2c1_pins2 { |
| mux { |
| groups = "i2c1_sda_d", |
| "i2c1_scl_d"; |
| function = "i2c1"; |
| drive-strength-microamp = <3000>; |
| bias-disable; |
| }; |
| }; |
| |
| i2c1_pins3:i2c1_pins3 { |
| mux { |
| groups = "i2c1_sda_h", |
| "i2c1_scl_h"; |
| function = "i2c1"; |
| drive-strength-microamp = <3000>; |
| bias-disable; |
| }; |
| }; |
| |
| i2c1_pins4:i2c1_pins4 { |
| mux { |
| groups = "i2c1_sda_x", |
| "i2c1_scl_x"; |
| function = "i2c1"; |
| drive-strength-microamp = <3000>; |
| bias-disable; |
| }; |
| }; |
| |
| i2c2_pins1:i2c2_pins1 { |
| mux { |
| groups = "i2c2_sda_d", |
| "i2c2_scl_d"; |
| function = "i2c2"; |
| drive-strength-microamp = <3000>; |
| bias-disable; |
| }; |
| }; |
| |
| i2c2_pins2:i2c2_pins2 { |
| mux { |
| groups = "i2c2_sda_h8", |
| "i2c2_scl_h9"; |
| function = "i2c2"; |
| drive-strength-microamp = <3000>; |
| bias-disable; |
| }; |
| }; |
| |
| i2c2_pins3:i2c2_pins3 { |
| mux { |
| groups = "i2c2_sda_h0", |
| "i2c2_scl_h1"; |
| function = "i2c2"; |
| drive-strength-microamp = <3000>; |
| bias-disable; |
| }; |
| }; |
| |
| i2c3_pins1:i2c3_pins1 { |
| mux { |
| groups = "i2c3_sda_x", |
| "i2c3_scl_x"; |
| function = "i2c3"; |
| drive-strength-microamp = <3000>; |
| bias-disable; |
| }; |
| }; |
| |
| i2c3_pins2:i2c3_pins2 { |
| mux { |
| groups = "i2c3_sda_z", |
| "i2c3_scl_z"; |
| function = "i2c3"; |
| drive-strength-microamp = <3000>; |
| bias-disable; |
| }; |
| }; |
| |
| i2c4_pins1:i2c4_pins1 { |
| mux { |
| groups = "i2c4_sda_c", |
| "i2c4_scl_c"; |
| function = "i2c4"; |
| drive-strength-microamp = <3000>; |
| bias-disable; |
| }; |
| }; |
| |
| i2c4_pins2:i2c4_pins2 { |
| mux { |
| groups = "i2c4_sda_d", |
| "i2c4_scl_d"; |
| function = "i2c4"; |
| drive-strength-microamp = <3000>; |
| bias-disable; |
| }; |
| }; |
| |
| i2c4_pins3:i2c4_pins3 { |
| mux { |
| groups = "i2c4_sda_z", |
| "i2c4_scl_z"; |
| function = "i2c4"; |
| drive-strength-microamp = <3000>; |
| bias-disable; |
| }; |
| }; |
| |
| a_uart_pins:a_uart { |
| mux { |
| groups = "uart_a_tx", |
| "uart_a_rx", |
| "uart_a_cts", |
| "uart_a_rts"; |
| function = "uart_a"; |
| }; |
| }; |
| |
| c_uart_pins:c_uart { |
| mux { |
| groups = "uart_c_tx", |
| "uart_c_rx"; |
| function = "uart_c"; |
| }; |
| }; |
| |
| d_uart_pins1:d_uart1 { |
| mux { |
| groups = "uart_d_tx_h", |
| "uart_d_rx_h"; |
| function = "uart_d"; |
| }; |
| }; |
| |
| d_uart_pins2:d_uart2 { |
| mux { |
| groups = "uart_d_tx_z", |
| "uart_d_rx_z"; |
| function = "uart_d"; |
| }; |
| }; |
| |
| e_uart_pins1:e_uart1 { |
| mux { |
| groups = "uart_e_tx_h", |
| "uart_e_rx_h"; |
| function = "uart_e"; |
| }; |
| }; |
| |
| e_uart_pins2:e_uart2 { |
| mux { |
| groups = "uart_e_tx_z11", |
| "uart_e_rx_z12"; |
| function = "uart_e"; |
| }; |
| }; |
| |
| e_uart_pins3:e_uart3 { |
| mux { |
| groups = "uart_e_tx_z8", |
| "uart_e_rx_z9"; |
| function = "uart_e"; |
| }; |
| }; |
| |
| emmc_pins: emmc_pins { |
| mux-0 { |
| groups = "emmc_nand_d0", |
| "emmc_nand_d1", |
| "emmc_nand_d2", |
| "emmc_nand_d3", |
| "emmc_nand_d4", |
| "emmc_nand_d5", |
| "emmc_nand_d6", |
| "emmc_nand_d7", |
| "emmc_cmd"; |
| function = "emmc"; |
| bias-pull-up; |
| drive-strength-microamp = <4000>; |
| }; |
| |
| mux-1 { |
| groups = "emmc_clk"; |
| function = "emmc"; |
| bias-pull-up; |
| drive-strength-microamp = <4000>; |
| }; |
| }; |
| |
| emmc_ds_pins: emmc_ds_pins { |
| mux { |
| groups = "emmc_nand_ds"; |
| function = "emmc"; |
| bias-pull-down; |
| drive-strength-microamp = <4000>; |
| }; |
| }; |
| |
| emmc_clk_gate_pins: emmc_clk_gate_pins { |
| mux { |
| groups = "GPIOB_8"; |
| function = "gpio_periphs"; |
| bias-pull-down; |
| drive-strength-microamp = <4000>; |
| }; |
| }; |
| |
| all_nand_pins: all_nand_pins { |
| mux { |
| groups = "emmc_nand_d0", |
| "emmc_nand_d1", |
| "emmc_nand_d2", |
| "emmc_nand_d3", |
| "emmc_nand_d4", |
| "emmc_nand_d5", |
| "emmc_nand_d6", |
| "emmc_nand_d7", |
| "nand_ce0", |
| "nand_ale", |
| "nand_cle", |
| "nand_wen_clk", |
| "nand_ren_wr"; |
| function = "nand"; |
| input-enable; |
| }; |
| }; |
| |
| nand_cs_pins: nand_cs { |
| mux { |
| groups = "nand_ce0"; |
| function = "nand"; |
| }; |
| }; |
| |
| sd_to_ao_uart_clr_pins: sd_to_ao_uart_clr_pins { |
| mux { |
| groups = "GPIOD_0", |
| "GPIOD_1"; |
| function = "gpio_periphs"; |
| }; |
| }; |
| |
| sdcard_pins: sdcard_pins { |
| mux { |
| groups = "sdcard_d0_c", |
| "sdcard_d1_c", |
| "sdcard_d2_c", |
| "sdcard_d3_c", |
| "sdcard_clk_c", |
| "sdcard_cmd_c"; |
| function = "sdcard"; |
| bias-pull-up; |
| drive-strength-microamp = <4000>; |
| }; |
| }; |
| |
| ao_to_sd_uart_pins: ao_to_sd_uart_pins { |
| mux { |
| groups = "uart_b_tx_c", |
| "uart_b_rx_c"; |
| function = "uart_b"; |
| bias-pull-up; |
| input-enable; |
| }; |
| }; |
| |
| ao_uart_pins: ao_uart_pins { |
| mux { |
| groups = "uart_b_tx_d", |
| "uart_b_rx_d"; |
| function = "uart_b"; |
| bias-pull-up; |
| input-enable; |
| }; |
| }; |
| |
| sd_clr_all_pins: sd_clr_all_pins { |
| mux { |
| groups = "GPIOC_0", |
| "GPIOC_1", |
| "GPIOC_2", |
| "GPIOC_3", |
| "GPIOC_5"; |
| function = "gpio_periphs"; |
| output-high; |
| }; |
| mux1 { |
| groups = "GPIOC_4"; |
| function = "gpio_periphs"; |
| output-low; |
| }; |
| }; |
| |
| sd_clr_noall_pins: sd_clr_noall_pins { |
| mux { |
| groups = "GPIOC_0", |
| "GPIOC_1", |
| "GPIOC_4", |
| "GPIOC_5"; |
| function = "gpio_periphs"; |
| output-high; |
| }; |
| }; |
| |
| sd_1bit_pins: sd_1bit_pins { |
| mux { |
| groups = "sdcard_d0_c", |
| "sdcard_clk_c", |
| "sdcard_cmd_c"; |
| function = "sdcard"; |
| bias-pull-up; |
| drive-strength-microamp = <4000>; |
| }; |
| }; |
| |
| sdcard_clk_gate_pins: sdcard_clk_gate_pins { |
| mux { |
| groups = "GPIOC_4"; |
| function = "gpio_periphs"; |
| bias-pull-down; |
| drive-strength-microamp = <4000>; |
| }; |
| }; |
| |
| sd_iso7816_pins:sd_iso7816_pins { |
| mux { |
| groups = "iso7816_clk_h", |
| "iso7816_data_h"; |
| function = "iso7816"; |
| input-enable; |
| bias-pull-down; |
| }; |
| }; |
| |
| sdio_pins: sdio_pins { |
| mux { |
| groups = "sdio_d0", |
| "sdio_d1", |
| "sdio_d2", |
| "sdio_d3", |
| "sdio_clk", |
| "sdio_cmd"; |
| function = "sdio"; |
| bias-pull-up; |
| drive-strength-microamp = <4000>; |
| }; |
| }; |
| |
| sdio_clk_gate_pins: sdio_clk_gate_pins { |
| mux { |
| groups = "GPIOX_4"; |
| function = "gpio_periphs"; |
| bias-pull-down; |
| drive-strength-microamp = <4000>; |
| }; |
| }; |
| |
| hdmitx_hpd: hdmitx_hpd { |
| mux { |
| groups = "hdmitx_hpd_in"; |
| function = "hdmitx"; |
| bias-disable; |
| }; |
| }; |
| |
| hdmitx_hpd_gpio: hdmitx_hpd_gpio { |
| mux { |
| groups = "GPIOH_1"; |
| function = "gpio_periphs"; |
| bias-disable; |
| }; |
| }; |
| |
| hdmitx_ddc: hdmitx_ddc { |
| mux { |
| groups = "hdmitx_sda", |
| "hdmitx_sck"; |
| function = "hdmitx"; |
| bias-disable; |
| drive-strength = <3>; |
| }; |
| }; |
| |
| dtvdemod_if_agc_pins: dtvdemod_if_agc_pins { |
| mux { |
| groups = "dtv_a_if_agc_z10", |
| "dtv_b_if_agc"; |
| function = "dtv"; |
| }; |
| }; |
| |
| dtvdemod_rf_agc_pins: dtvdemod_rf_agc_pins { |
| mux { |
| groups = "dtv_a_rf_agc"; |
| function = "dtv"; |
| }; |
| }; |
| |
| diseqc_out: diseqc_out { |
| mux { |
| groups = "diseqc_out"; |
| function = "diseqc_out"; |
| bias-pull-down; |
| }; |
| }; |
| |
| eecec_a: ee_ceca { |
| mux { |
| groups = "ao_cec_a"; |
| function = "ao_cec_a"; |
| }; |
| }; |
| |
| eecec_b: ee_cecb { |
| mux { |
| groups = "ao_cec_b"; |
| function = "ao_cec_b"; |
| }; |
| }; |
| |
| jtag_a_pins: jtag_a_pin { |
| mux { |
| groups = "jtag_1_tdi", |
| "jtag_1_tdo", |
| "jtag_1_clk", |
| "jtag_1_tms"; |
| function = "jtag_1"; |
| }; |
| }; |
| |
| jtag_b_pins: jtag_b_pin { |
| mux { |
| groups = "jtag_2_tdi", |
| "jtag_2_tdo", |
| "jtag_2_clk", |
| "jtag_2_tms"; |
| function = "jtag_2"; |
| }; |
| }; |
| |
| pwm_a_pins: pwm_a_pins { |
| mux { |
| groups = "pwm_a_d"; |
| function = "pwm_a"; |
| }; |
| }; |
| |
| pwm_b_pins1: pwm_b_pins1 { |
| mux { |
| groups = "pwm_b_d"; |
| function = "pwm_b"; |
| }; |
| }; |
| |
| pwm_b_pins2: pwm_b_pins2 { |
| mux { |
| groups = "pwm_b_x"; |
| function = "pwm_b"; |
| }; |
| }; |
| |
| pwm_c_pins1: pwm_c_pins1 { |
| mux { |
| groups = "pwm_c_d"; |
| function = "pwm_c"; |
| }; |
| }; |
| |
| pwm_c_pins2: pwm_c_pins2 { |
| mux { |
| groups = "pwm_c_x"; |
| function = "pwm_c"; |
| }; |
| }; |
| |
| pwm_d_pins1: pwm_d_pins1 { |
| mux { |
| groups = "pwm_d_d"; |
| function = "pwm_d"; |
| }; |
| }; |
| |
| pwm_d_pins2: pwm_d_pins2 { |
| mux { |
| groups = "pwm_d_h"; |
| function = "pwm_d"; |
| }; |
| }; |
| |
| pwm_e_pins1: pwm_e_pins1 { |
| mux { |
| groups = "pwm_e_x"; |
| function = "pwm_e"; |
| drive-strength-microamp = <500>; |
| }; |
| }; |
| |
| pwm_e_pins2: pwm_e_pins2 { |
| mux { |
| groups = "pwm_e_z"; |
| function = "pwm_e"; |
| }; |
| }; |
| |
| pwm_f_pins1: pwm_f_pins1 { |
| mux { |
| groups = "pwm_f_x"; |
| function = "pwm_f"; |
| }; |
| }; |
| |
| pwm_f_pins2: pwm_f_pins2 { |
| mux { |
| groups = "pwm_f_z"; |
| function = "pwm_f"; |
| }; |
| }; |
| |
| pwm_g_pins1: pwm_g_pins1 { |
| mux { |
| groups = "pwm_g_d"; |
| function = "pwm_g"; |
| }; |
| }; |
| |
| pwm_g_pins2: pwm_g_pins2 { |
| mux { |
| groups = "pwm_g_z"; |
| function = "pwm_g"; |
| }; |
| }; |
| |
| pwm_h_pins: pwm_h_pins { |
| mux { |
| groups = "pwm_h"; |
| function = "pwm_h"; |
| }; |
| }; |
| |
| pwm_i_pins1: pwm_i_pins1 { |
| mux { |
| groups = "pwm_i_d"; |
| function = "pwm_i"; |
| }; |
| }; |
| |
| pwm_i_pins2: pwm_i_pins2 { |
| mux { |
| groups = "pwm_i_h"; |
| function = "pwm_i"; |
| }; |
| }; |
| |
| pwm_j_pins: pwm_j_pins { |
| mux { |
| groups = "pwm_j"; |
| function = "pwm_j"; |
| }; |
| }; |
| |
| pwm_a_hiz_pins: pwm_a_hiz_pins { |
| mux { |
| groups = "pwm_a_hiz"; |
| function = "pwm_a_hiz"; |
| }; |
| }; |
| |
| pwm_b_hiz_pins: pwm_b_hiz_pins { |
| mux { |
| groups = "pwm_b_hiz"; |
| function = "pwm_b_hiz"; |
| }; |
| }; |
| |
| pwm_c_hiz_pins: pwm_c_hiz_pins { |
| mux { |
| groups = "pwm_c_hiz"; |
| function = "pwm_b_hiz"; |
| }; |
| }; |
| |
| pwm_g_hiz_pins: pwm_g_hiz_pins { |
| mux { |
| groups = "pwm_g_hiz"; |
| function = "pwm_g_hiz"; |
| }; |
| }; |
| |
| remote_pins: remote_pin { |
| mux { |
| groups = "remote_in"; |
| function = "remote_in"; |
| bias-disable; |
| }; |
| }; |
| |
| spicc0_pins_x: spicc0_pins_x { |
| mux { |
| groups = "spi_a_mosi_x", |
| "spi_a_miso_x", |
| //"spi_a_ss0_x", |
| "spi_a_clk_x"; |
| function = "spi_a"; |
| drive-strength = <2>; |
| }; |
| }; |
| |
| spicc0_pins_h: spicc0_pins_h { |
| mux { |
| groups = "spi_a_mosi_h", |
| "spi_a_miso_h", |
| //"spi_a_ss0_h", |
| "spi_a_clk_h"; |
| function = "spi_a"; |
| drive-strength = <2>; |
| }; |
| }; |
| |
| spicc0_pins_z: spicc0_pins_z { |
| mux { |
| groups = "spi_a_mosi_z", |
| "spi_a_miso_z", |
| //"spi_a_ss0_z", |
| "spi_a_clk_z"; |
| function = "spi_a"; |
| drive-strength = <2>; |
| }; |
| }; |
| |
| spifc_pins:spifc_pins { |
| mux { |
| groups = "spif_hold", |
| "spif_mo", |
| "spif_mi", |
| "spif_clk", |
| "spif_wp", |
| "spif_cs"; |
| function = "spif"; |
| drive-strength-microamp = <3000>; |
| }; |
| }; |
| |
| irblaster_pins:irblaster_pin { |
| mux { |
| groups = "remote_out"; |
| function = "remote_out"; |
| }; |
| }; |
| |
| spdifin: spdifin { |
| mux {/* GPIOH_5 */ |
| groups = "spdif_in"; |
| function = "spdif_in"; |
| }; |
| }; |
| }; |
| |
| &gpu{ |
| reg = <0xFE400000 0x04000>, /*mali APB bus base address*/ |
| <0xFE002000 0x01000>, /*reset register*/ |
| <0xFF800000 0x01000>, /*aobus TODO update*/ |
| <0xFF63c000 0x01000>, /*hiubus for clk cntl*/ |
| <0xFE002000 0x01000>; /*reset register*/ |
| |
| interrupts = <0 144 4>, <0 145 4>, <0 146 4>; |
| interrupt-names = "GPU", "MMU", "JOB"; |
| clk_cntl_reg = <0x57>; |
| |
| clocks = <&clkc CLKID_MALI>; |
| clock-names = "gpu_mux"; |
| |
| /* |
| * Mali clocking is provided by two identical clock paths |
| * MALI_0 and MALI_1 muxed to a single clock by a glitch |
| * free mux to safely change frequency while running. |
| */ |
| assigned-clocks = <&clkc CLKID_MALI_0_SEL>, |
| <&clkc CLKID_MALI_0>, |
| <&clkc CLKID_MALI>; /* Glitch free mux */ |
| assigned-clock-parents = <&clkc CLKID_FCLK_DIV2P5>, |
| <0>, /* Do Nothing */ |
| <&clkc CLKID_MALI_0>; |
| assigned-clock-rates = <0>, /* Do Nothing */ |
| <500000000>, |
| <0>; /* Do Nothing */ |
| }; |