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/arm/qcom-msm8974-sony-xperia-honami.dts

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
    2 #include "qcom-msm8974.dtsi"
    3 #include "qcom-pm8841.dtsi"
    4 #include "qcom-pm8941.dtsi"
    5 #include <dt-bindings/gpio/gpio.h>
    6 #include <dt-bindings/input/input.h>
    7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
    8 
    9 / {
   10         model = "Sony Xperia Z1";
   11         compatible = "sony,xperia-honami", "qcom,msm8974";
   12 
   13         aliases {
   14                 serial0 = &blsp1_uart2;
   15         };
   16 
   17         chosen {
   18                 stdout-path = "serial0:115200n8";
   19         };
   20 
   21         gpio-keys {
   22                 compatible = "gpio-keys";
   23 
   24                 pinctrl-names = "default";
   25                 pinctrl-0 = <&gpio_keys_pin_a>;
   26 
   27                 volume-down {
   28                         label = "volume_down";
   29                         gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
   30                         linux,input-type = <1>;
   31                         linux,code = <KEY_VOLUMEDOWN>;
   32                 };
   33 
   34                 camera-snapshot {
   35                         label = "camera_snapshot";
   36                         gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
   37                         linux,input-type = <1>;
   38                         linux,code = <KEY_CAMERA>;
   39                 };
   40 
   41                 camera-focus {
   42                         label = "camera_focus";
   43                         gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
   44                         linux,input-type = <1>;
   45                         linux,code = <KEY_CAMERA_FOCUS>;
   46                 };
   47 
   48                 volume-up {
   49                         label = "volume_up";
   50                         gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
   51                         linux,input-type = <1>;
   52                         linux,code = <KEY_VOLUMEUP>;
   53                 };
   54         };
   55 
   56         memory@0 {
   57                 reg = <0 0x40000000>, <0x40000000 0x40000000>;
   58                 device_type = "memory";
   59         };
   60 
   61         smd {
   62                 rpm {
   63                         rpm_requests {
   64                                 pm8841-regulators {
   65                                         s1 {
   66                                                 regulator-min-microvolt = <675000>;
   67                                                 regulator-max-microvolt = <1050000>;
   68                                         };
   69 
   70                                         s2 {
   71                                                 regulator-min-microvolt = <500000>;
   72                                                 regulator-max-microvolt = <1050000>;
   73                                         };
   74 
   75                                         s3 {
   76                                                 regulator-min-microvolt = <500000>;
   77                                                 regulator-max-microvolt = <1050000>;
   78                                         };
   79 
   80                                         s4 {
   81                                                 regulator-min-microvolt = <500000>;
   82                                                 regulator-max-microvolt = <1050000>;
   83                                         };
   84                                 };
   85 
   86                                 pm8941-regulators {
   87                                         vdd_l1_l3-supply = <&pm8941_s1>;
   88                                         vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
   89                                         vdd_l4_l11-supply = <&pm8941_s1>;
   90                                         vdd_l5_l7-supply = <&pm8941_s2>;
   91                                         vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
   92                                         vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
   93                                         vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
   94                                         vdd_l21-supply = <&vreg_boost>;
   95 
   96                                         s1 {
   97                                                 regulator-min-microvolt = <1300000>;
   98                                                 regulator-max-microvolt = <1300000>;
   99                                                 regulator-always-on;
  100                                                 regulator-boot-on;
  101                                         };
  102 
  103                                         s2 {
  104                                                 regulator-min-microvolt = <2150000>;
  105                                                 regulator-max-microvolt = <2150000>;
  106                                                 regulator-boot-on;
  107                                         };
  108 
  109                                         s3 {
  110                                                 regulator-min-microvolt = <1800000>;
  111                                                 regulator-max-microvolt = <1800000>;
  112                                                 regulator-always-on;
  113                                                 regulator-boot-on;
  114                                         };
  115 
  116                                         s4 {
  117                                                 regulator-min-microvolt = <5000000>;
  118                                                 regulator-max-microvolt = <5000000>;
  119                                         };
  120 
  121                                         l1 {
  122                                                 regulator-min-microvolt = <1225000>;
  123                                                 regulator-max-microvolt = <1225000>;
  124 
  125                                                 regulator-always-on;
  126                                                 regulator-boot-on;
  127                                         };
  128 
  129                                         l2 {
  130                                                 regulator-min-microvolt = <1200000>;
  131                                                 regulator-max-microvolt = <1200000>;
  132                                         };
  133 
  134                                         l3 {
  135                                                 regulator-min-microvolt = <1200000>;
  136                                                 regulator-max-microvolt = <1200000>;
  137                                         };
  138 
  139                                         l4 {
  140                                                 regulator-min-microvolt = <1225000>;
  141                                                 regulator-max-microvolt = <1225000>;
  142                                         };
  143 
  144                                         l5 {
  145                                                 regulator-min-microvolt = <1800000>;
  146                                                 regulator-max-microvolt = <1800000>;
  147                                         };
  148 
  149                                         l6 {
  150                                                 regulator-min-microvolt = <1800000>;
  151                                                 regulator-max-microvolt = <1800000>;
  152 
  153                                                 regulator-boot-on;
  154                                         };
  155 
  156                                         l7 {
  157                                                 regulator-min-microvolt = <1800000>;
  158                                                 regulator-max-microvolt = <1800000>;
  159 
  160                                                 regulator-boot-on;
  161                                         };
  162 
  163                                         l8 {
  164                                                 regulator-min-microvolt = <1800000>;
  165                                                 regulator-max-microvolt = <1800000>;
  166                                         };
  167 
  168                                         l9 {
  169                                                 regulator-min-microvolt = <1800000>;
  170                                                 regulator-max-microvolt = <2950000>;
  171                                         };
  172 
  173                                         l11 {
  174                                                 regulator-min-microvolt = <1300000>;
  175                                                 regulator-max-microvolt = <1350000>;
  176                                         };
  177 
  178                                         l12 {
  179                                                 regulator-min-microvolt = <1800000>;
  180                                                 regulator-max-microvolt = <1800000>;
  181 
  182                                                 regulator-always-on;
  183                                                 regulator-boot-on;
  184                                         };
  185 
  186                                         l13 {
  187                                                 regulator-min-microvolt = <1800000>;
  188                                                 regulator-max-microvolt = <2950000>;
  189 
  190                                                 regulator-boot-on;
  191                                         };
  192 
  193                                         l14 {
  194                                                 regulator-min-microvolt = <1800000>;
  195                                                 regulator-max-microvolt = <1800000>;
  196                                         };
  197 
  198                                         l15 {
  199                                                 regulator-min-microvolt = <2050000>;
  200                                                 regulator-max-microvolt = <2050000>;
  201                                         };
  202 
  203                                         l16 {
  204                                                 regulator-min-microvolt = <2700000>;
  205                                                 regulator-max-microvolt = <2700000>;
  206                                         };
  207 
  208                                         l17 {
  209                                                 regulator-min-microvolt = <2700000>;
  210                                                 regulator-max-microvolt = <2700000>;
  211                                         };
  212 
  213                                         l18 {
  214                                                 regulator-min-microvolt = <2850000>;
  215                                                 regulator-max-microvolt = <2850000>;
  216                                         };
  217 
  218                                         l19 {
  219                                                 regulator-min-microvolt = <3300000>;
  220                                                 regulator-max-microvolt = <3300000>;
  221                                         };
  222 
  223                                         l20 {
  224                                                 regulator-min-microvolt = <2950000>;
  225                                                 regulator-max-microvolt = <2950000>;
  226 
  227                                                 regulator-allow-set-load;
  228                                                 regulator-boot-on;
  229                                                 regulator-system-load = <200000>;
  230                                         };
  231 
  232                                         l21 {
  233                                                 regulator-min-microvolt = <2950000>;
  234                                                 regulator-max-microvolt = <2950000>;
  235 
  236                                                 regulator-boot-on;
  237                                         };
  238 
  239                                         l22 {
  240                                                 regulator-min-microvolt = <3000000>;
  241                                                 regulator-max-microvolt = <3000000>;
  242                                         };
  243 
  244                                         l23 {
  245                                                 regulator-min-microvolt = <2800000>;
  246                                                 regulator-max-microvolt = <2800000>;
  247                                         };
  248 
  249                                         l24 {
  250                                                 regulator-min-microvolt = <3075000>;
  251                                                 regulator-max-microvolt = <3075000>;
  252 
  253                                                 regulator-boot-on;
  254                                         };
  255                                 };
  256                         };
  257                 };
  258         };
  259 };
  260 
  261 &soc {
  262         usb@f9a55000 {
  263                 status = "okay";
  264 
  265                 phys = <&usb_hs1_phy>;
  266                 phy-select = <&tcsr 0xb000 0>;
  267                 extcon = <&smbb>, <&usb_id>;
  268                 vbus-supply = <&chg_otg>;
  269 
  270                 hnp-disable;
  271                 srp-disable;
  272                 adp-disable;
  273 
  274                 ulpi {
  275                         phy@a {
  276                                 status = "okay";
  277 
  278                                 v1p8-supply = <&pm8941_l6>;
  279                                 v3p3-supply = <&pm8941_l24>;
  280 
  281                                 extcon = <&smbb>;
  282                                 qcom,init-seq = /bits/ 8 <0x1 0x64>;
  283                         };
  284                 };
  285         };
  286 
  287         sdhci@f9824900 {
  288                 status = "okay";
  289 
  290                 vmmc-supply = <&pm8941_l20>;
  291                 vqmmc-supply = <&pm8941_s3>;
  292 
  293                 bus-width = <8>;
  294                 non-removable;
  295 
  296                 pinctrl-names = "default";
  297                 pinctrl-0 = <&sdhc1_pin_a>;
  298         };
  299 
  300         sdhci@f98a4900 {
  301                 status = "okay";
  302 
  303                 bus-width = <4>;
  304 
  305                 vmmc-supply = <&pm8941_l21>;
  306                 vqmmc-supply = <&pm8941_l13>;
  307 
  308                 cd-gpios = <&msmgpio 62 GPIO_ACTIVE_LOW>;
  309 
  310                 pinctrl-names = "default";
  311                 pinctrl-0 = <&sdhc2_pin_a>, <&sdhc2_cd_pin_a>;
  312         };
  313 
  314         serial@f991e000 {
  315                 status = "okay";
  316 
  317                 pinctrl-names = "default";
  318                 pinctrl-0 = <&blsp1_uart2_pin_a>;
  319         };
  320 
  321         i2c@f9924000 {
  322                 status = "okay";
  323 
  324                 clock-frequency = <355000>;
  325                 qcom,src-freq = <50000000>;
  326 
  327                 pinctrl-names = "default";
  328                 pinctrl-0 = <&i2c2_pins>;
  329 
  330                 synaptics@2c {
  331                         compatible = "syna,rmi4-i2c";
  332                         reg = <0x2c>;
  333 
  334                         interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;
  335 
  336                         #address-cells = <1>;
  337                         #size-cells = <0>;
  338 
  339                         vdd-supply = <&pm8941_l22>;
  340                         vio-supply = <&pm8941_lvs3>;
  341 
  342                         pinctrl-names = "default";
  343                         pinctrl-0 = <&ts_int_pin>;
  344 
  345                         syna,startup-delay-ms = <10>;
  346 
  347                         rmi4-f01@1 {
  348                                 reg = <0x1>;
  349                                 syna,nosleep-mode = <1>;
  350                         };
  351 
  352                         rmi4-f11@11 {
  353                                 reg = <0x11>;
  354                                 touchscreen-inverted-x;
  355                                 syna,sensor-type = <1>;
  356                         };
  357                 };
  358         };
  359 
  360         pinctrl@fd510000 {
  361                 blsp1_uart2_pin_a: blsp1-uart2-pin-active {
  362                         rx {
  363                                 pins = "gpio5";
  364                                 function = "blsp_uart2";
  365 
  366                                 drive-strength = <2>;
  367                                 bias-pull-up;
  368                         };
  369 
  370                         tx {
  371                                 pins = "gpio4";
  372                                 function = "blsp_uart2";
  373 
  374                                 drive-strength = <4>;
  375                                 bias-disable;
  376                         };
  377                 };
  378 
  379                 i2c2_pins: i2c2 {
  380                         mux {
  381                                 pins = "gpio6", "gpio7";
  382                                 function = "blsp_i2c2";
  383 
  384                                 drive-strength = <2>;
  385                                 bias-disable;
  386                         };
  387                 };
  388 
  389                 sdhc1_pin_a: sdhc1-pin-active {
  390                         clk {
  391                                 pins = "sdc1_clk";
  392                                 drive-strength = <16>;
  393                                 bias-disable;
  394                         };
  395 
  396                         cmd-data {
  397                                 pins = "sdc1_cmd", "sdc1_data";
  398                                 drive-strength = <10>;
  399                                 bias-pull-up;
  400                         };
  401                 };
  402 
  403                 sdhc2_cd_pin_a: sdhc2-cd-pin-active {
  404                         pins = "gpio62";
  405                         function = "gpio";
  406 
  407                         drive-strength = <2>;
  408                         bias-disable;
  409                  };
  410 
  411                 sdhc2_pin_a: sdhc2-pin-active {
  412                         clk {
  413                                 pins = "sdc2_clk";
  414                                 drive-strength = <10>;
  415                                 bias-disable;
  416                         };
  417 
  418                         cmd-data {
  419                                 pins = "sdc2_cmd", "sdc2_data";
  420                                 drive-strength = <6>;
  421                                 bias-pull-up;
  422                         };
  423                 };
  424 
  425                 ts_int_pin: touch-int {
  426                         pin {
  427                                 pins = "gpio61";
  428                                 function = "gpio";
  429 
  430                                 drive-strength = <2>;
  431                                 bias-disable;
  432                                 input-enable;
  433                         };
  434                 };
  435         };
  436 
  437         dma-controller@f9944000 {
  438                 qcom,controlled-remotely;
  439         };
  440 };
  441 
  442 &spmi_bus {
  443         pm8941@0 {
  444                 charger@1000 {
  445                         qcom,fast-charge-safe-current = <1500000>;
  446                         qcom,fast-charge-current-limit = <1500000>;
  447                         qcom,dc-current-limit = <1800000>;
  448                         qcom,fast-charge-safe-voltage = <4400000>;
  449                         qcom,fast-charge-high-threshold-voltage = <4350000>;
  450                         qcom,fast-charge-low-threshold-voltage = <3400000>;
  451                         qcom,auto-recharge-threshold-voltage = <4200000>;
  452                         qcom,minimum-input-voltage = <4300000>;
  453                 };
  454 
  455                 gpios@c000 {
  456                         gpio_keys_pin_a: gpio-keys-active {
  457                                 pins = "gpio2", "gpio3", "gpio4", "gpio5";
  458                                 function = "normal";
  459 
  460                                 bias-pull-up;
  461                                 power-source = <PM8941_GPIO_S3>;
  462                         };
  463                 };
  464 
  465                 coincell@2800 {
  466                         status = "okay";
  467                         qcom,rset-ohms = <2100>;
  468                         qcom,vset-millivolts = <3000>;
  469                 };
  470         };
  471 
  472         pm8941@1 {
  473                 wled@d800 {
  474                         status = "okay";
  475 
  476                         qcom,cs-out;
  477                         qcom,current-limit = <20>;
  478                         qcom,current-boost-limit = <805>;
  479                         qcom,switching-freq = <1600>;
  480                         qcom,ovp = <29>;
  481                         qcom,num-strings = <2>;
  482                 };
  483         };
  484 };

Cache object: effe4e39ad5486a5bbf782d215d7d732


[ 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.