The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/src/arm64/mediatek/mt6795.dtsi

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 // SPDX-License-Identifier: GPL-2.0-only
    2 /*
    3  * Copyright (c) 2015 MediaTek Inc.
    4  * Author: Mars.C <mars.cheng@mediatek.com>
    5  */
    6 
    7 #include <dt-bindings/interrupt-controller/irq.h>
    8 #include <dt-bindings/interrupt-controller/arm-gic.h>
    9 #include <dt-bindings/pinctrl/mt6795-pinfunc.h>
   10 
   11 / {
   12         compatible = "mediatek,mt6795";
   13         interrupt-parent = <&sysirq>;
   14         #address-cells = <2>;
   15         #size-cells = <2>;
   16 
   17         psci {
   18                 compatible = "arm,psci-0.2";
   19                 method = "smc";
   20         };
   21 
   22         cpus {
   23                 #address-cells = <1>;
   24                 #size-cells = <0>;
   25 
   26                 cpu0: cpu@0 {
   27                         device_type = "cpu";
   28                         compatible = "arm,cortex-a53";
   29                         enable-method = "psci";
   30                         reg = <0x000>;
   31                         cci-control-port = <&cci_control2>;
   32                         next-level-cache = <&l2_0>;
   33                 };
   34 
   35                 cpu1: cpu@1 {
   36                         device_type = "cpu";
   37                         compatible = "arm,cortex-a53";
   38                         enable-method = "psci";
   39                         reg = <0x001>;
   40                         cci-control-port = <&cci_control2>;
   41                         next-level-cache = <&l2_0>;
   42                 };
   43 
   44                 cpu2: cpu@2 {
   45                         device_type = "cpu";
   46                         compatible = "arm,cortex-a53";
   47                         enable-method = "psci";
   48                         reg = <0x002>;
   49                         cci-control-port = <&cci_control2>;
   50                         next-level-cache = <&l2_0>;
   51                 };
   52 
   53                 cpu3: cpu@3 {
   54                         device_type = "cpu";
   55                         compatible = "arm,cortex-a53";
   56                         enable-method = "psci";
   57                         reg = <0x003>;
   58                         cci-control-port = <&cci_control2>;
   59                         next-level-cache = <&l2_0>;
   60                 };
   61 
   62                 cpu4: cpu@100 {
   63                         device_type = "cpu";
   64                         compatible = "arm,cortex-a53";
   65                         enable-method = "psci";
   66                         reg = <0x100>;
   67                         cci-control-port = <&cci_control1>;
   68                         next-level-cache = <&l2_1>;
   69                 };
   70 
   71                 cpu5: cpu@101 {
   72                         device_type = "cpu";
   73                         compatible = "arm,cortex-a53";
   74                         enable-method = "psci";
   75                         reg = <0x101>;
   76                         cci-control-port = <&cci_control1>;
   77                         next-level-cache = <&l2_1>;
   78                 };
   79 
   80                 cpu6: cpu@102 {
   81                         device_type = "cpu";
   82                         compatible = "arm,cortex-a53";
   83                         enable-method = "psci";
   84                         reg = <0x102>;
   85                         cci-control-port = <&cci_control1>;
   86                         next-level-cache = <&l2_1>;
   87                 };
   88 
   89                 cpu7: cpu@103 {
   90                         device_type = "cpu";
   91                         compatible = "arm,cortex-a53";
   92                         enable-method = "psci";
   93                         reg = <0x103>;
   94                         cci-control-port = <&cci_control1>;
   95                         next-level-cache = <&l2_1>;
   96                 };
   97 
   98                 cpu-map {
   99                         cluster0 {
  100                                 core0 {
  101                                         cpu = <&cpu0>;
  102                                 };
  103 
  104                                 core1 {
  105                                         cpu = <&cpu1>;
  106                                 };
  107 
  108                                 core2 {
  109                                         cpu = <&cpu2>;
  110                                 };
  111 
  112                                 core3 {
  113                                         cpu = <&cpu3>;
  114                                 };
  115                         };
  116 
  117                         cluster1 {
  118                                 core0 {
  119                                         cpu = <&cpu4>;
  120                                 };
  121 
  122                                 core1 {
  123                                         cpu = <&cpu5>;
  124                                 };
  125 
  126                                 core2 {
  127                                         cpu = <&cpu6>;
  128                                 };
  129 
  130                                 core3 {
  131                                         cpu = <&cpu7>;
  132                                 };
  133                         };
  134                 };
  135 
  136                 l2_0: l2-cache0 {
  137                         compatible = "cache";
  138                         cache-level = <2>;
  139                 };
  140 
  141                 l2_1: l2-cache1 {
  142                         compatible = "cache";
  143                         cache-level = <2>;
  144                 };
  145         };
  146 
  147         clk26m: oscillator-26m {
  148                 compatible = "fixed-clock";
  149                 #clock-cells = <0>;
  150                 clock-frequency = <26000000>;
  151                 clock-output-names = "clk26m";
  152         };
  153 
  154         clk32k: oscillator-32k {
  155                 compatible = "fixed-clock";
  156                 #clock-cells = <0>;
  157                 clock-frequency = <32000>;
  158                 clock-output-names = "clk32k";
  159         };
  160 
  161         system_clk: dummy13m {
  162                 compatible = "fixed-clock";
  163                 clock-frequency = <13000000>;
  164                 #clock-cells = <0>;
  165         };
  166 
  167         pmu {
  168                 compatible = "arm,cortex-a53-pmu";
  169                 interrupts = <GIC_SPI  8 IRQ_TYPE_LEVEL_LOW>,
  170                              <GIC_SPI  9 IRQ_TYPE_LEVEL_LOW>,
  171                              <GIC_SPI 10 IRQ_TYPE_LEVEL_LOW>,
  172                              <GIC_SPI 11 IRQ_TYPE_LEVEL_LOW>;
  173                 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
  174         };
  175 
  176         timer {
  177                 compatible = "arm,armv8-timer";
  178                 interrupt-parent = <&gic>;
  179                 interrupts = <GIC_PPI 13
  180                              (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  181                              <GIC_PPI 14
  182                              (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  183                              <GIC_PPI 11
  184                              (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  185                              <GIC_PPI 10
  186                              (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
  187         };
  188 
  189         soc {
  190                 #address-cells = <2>;
  191                 #size-cells = <2>;
  192                 compatible = "simple-bus";
  193                 ranges;
  194 
  195                 pio: pinctrl@10005000 {
  196                         compatible = "mediatek,mt6795-pinctrl";
  197                         reg = <0 0x10005000 0 0x1000>, <0 0x1000b000 0 0x1000>;
  198                         reg-names = "base", "eint";
  199                         interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
  200                                      <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
  201                         gpio-controller;
  202                         #gpio-cells = <2>;
  203                         gpio-ranges = <&pio 0 0 196>;
  204                         interrupt-controller;
  205                         #interrupt-cells = <2>;
  206                 };
  207 
  208                 watchdog: watchdog@10007000 {
  209                         compatible = "mediatek,mt6795-wdt";
  210                         reg = <0 0x10007000 0 0x100>;
  211                         interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_LOW>;
  212                         #reset-cells = <1>;
  213                         timeout-sec = <20>;
  214                 };
  215 
  216                 timer: timer@10008000 {
  217                         compatible = "mediatek,mt6795-timer",
  218                                      "mediatek,mt6577-timer";
  219                         reg = <0 0x10008000 0 0x1000>;
  220                         interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_LOW>;
  221                         clocks = <&system_clk>, <&clk32k>;
  222                 };
  223 
  224                 sysirq: intpol-controller@10200620 {
  225                         compatible = "mediatek,mt6795-sysirq",
  226                                      "mediatek,mt6577-sysirq";
  227                         interrupt-controller;
  228                         #interrupt-cells = <3>;
  229                         interrupt-parent = <&gic>;
  230                         reg = <0 0x10200620 0 0x20>;
  231                 };
  232 
  233                 gic: interrupt-controller@10221000 {
  234                         compatible = "arm,gic-400";
  235                         #interrupt-cells = <3>;
  236                         interrupt-parent = <&gic>;
  237                         interrupt-controller;
  238                         reg = <0 0x10221000 0 0x1000>,
  239                               <0 0x10222000 0 0x2000>,
  240                               <0 0x10224000 0 0x2000>,
  241                               <0 0x10226000 0 0x2000>;
  242                         interrupts = <GIC_PPI 9
  243                                 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  244                 };
  245 
  246                 cci: cci@10390000 {
  247                         compatible = "arm,cci-400";
  248                         #address-cells = <1>;
  249                         #size-cells = <1>;
  250                         reg = <0 0x10390000 0 0x1000>;
  251                         ranges = <0 0 0x10390000 0x10000>;
  252 
  253                         cci_control0: slave-if@1000 {
  254                                 compatible = "arm,cci-400-ctrl-if";
  255                                 interface-type = "ace-lite";
  256                                 reg = <0x1000 0x1000>;
  257                         };
  258 
  259                         cci_control1: slave-if@4000 {
  260                                 compatible = "arm,cci-400-ctrl-if";
  261                                 interface-type = "ace";
  262                                 reg = <0x4000 0x1000>;
  263                         };
  264 
  265                         cci_control2: slave-if@5000 {
  266                                 compatible = "arm,cci-400-ctrl-if";
  267                                 interface-type = "ace";
  268                                 reg = <0x5000 0x1000>;
  269                         };
  270 
  271                         pmu@9000 {
  272                                 compatible = "arm,cci-400-pmu,r1";
  273                                 reg = <0x9000 0x5000>;
  274                                 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
  275                                              <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
  276                                              <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
  277                                              <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
  278                                              <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
  279                         };
  280                 };
  281 
  282                 uart0: serial@11002000 {
  283                         compatible = "mediatek,mt6795-uart",
  284                                      "mediatek,mt6577-uart";
  285                         reg = <0 0x11002000 0 0x400>;
  286                         interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>;
  287                         clocks = <&clk26m>;
  288                         status = "disabled";
  289                 };
  290 
  291                 uart1: serial@11003000 {
  292                         compatible = "mediatek,mt6795-uart",
  293                                      "mediatek,mt6577-uart";
  294                         reg = <0 0x11003000 0 0x400>;
  295                         interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>;
  296                         clocks = <&clk26m>;
  297                         status = "disabled";
  298                 };
  299 
  300                 uart2: serial@11004000 {
  301                         compatible = "mediatek,mt6795-uart",
  302                                      "mediatek,mt6577-uart";
  303                         reg = <0 0x11004000 0 0x400>;
  304                         interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>;
  305                         clocks = <&clk26m>;
  306                         status = "disabled";
  307                 };
  308 
  309                 uart3: serial@11005000 {
  310                         compatible = "mediatek,mt6795-uart",
  311                                      "mediatek,mt6577-uart";
  312                         reg = <0 0x11005000 0 0x400>;
  313                         interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_LOW>;
  314                         clocks = <&clk26m>;
  315                         status = "disabled";
  316                 };
  317         };
  318 };

Cache object: cb14b40786084eb1b9b925010933a09e


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.