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/allwinner/sun50i-a64-pinephone-1.2.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+ OR MIT)
    2 // Copyright (C) 2020 Ondrej Jirman <megous@megous.com>
    3 
    4 /dts-v1/;
    5 
    6 #include "sun50i-a64-pinephone.dtsi"
    7 
    8 / {
    9         model = "Pine64 PinePhone (1.2)";
   10         compatible = "pine64,pinephone-1.2", "pine64,pinephone", "allwinner,sun50i-a64";
   11 
   12         wifi_pwrseq: wifi-pwrseq {
   13                 compatible = "mmc-pwrseq-simple";
   14                 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
   15         };
   16 };
   17 
   18 &backlight {
   19         power-supply = <&reg_ldo_io0>;
   20         /*
   21          * PWM backlight circuit on this PinePhone revision was changed since 1.0,
   22          * and the lowest PWM duty cycle that doesn't lead to backlight being off
   23          * is around 10%. Duty cycle for the lowest brightness level also varries
   24          * quite a bit between individual boards, so the lowest value here was
   25          * chosen as a safe default.
   26          */
   27         brightness-levels = <
   28                 5000 5248 5506 5858 6345
   29                 6987 7805 8823 10062 11543
   30                 13287 15317 17654 20319 23336
   31                 26724 30505 34702 39335 44427
   32                 50000
   33         >;
   34         num-interpolated-steps = <50>;
   35         default-brightness-level = <500>;
   36 };
   37 
   38 &lis3mdl {
   39         /*
   40          * Board revision 1.2 fixed routing of the interrupt to DRDY pin,
   41          * enable interrupts.
   42          */
   43         interrupt-parent = <&pio>;
   44         interrupts = <1 1 IRQ_TYPE_EDGE_RISING>; /* PB1 */
   45 };
   46 
   47 &mmc1 {
   48         mmc-pwrseq = <&wifi_pwrseq>;
   49 };
   50 
   51 &sgm3140 {
   52         enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
   53         flash-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */
   54 };

Cache object: 5871a1219b491a505b497f995464ce0f


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