0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 // Copyright (C) 2020 Ondrej Jirman <megous@megous.com>
0003
0004 /dts-v1/;
0005
0006 #include "sun50i-a64-pinephone.dtsi"
0007
0008 / {
0009 model = "Pine64 PinePhone (1.2)";
0010 compatible = "pine64,pinephone-1.2", "pine64,pinephone", "allwinner,sun50i-a64";
0011
0012 wifi_pwrseq: wifi-pwrseq {
0013 compatible = "mmc-pwrseq-simple";
0014 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
0015 };
0016 };
0017
0018 &backlight {
0019 power-supply = <®_ldo_io0>;
0020 /*
0021 * PWM backlight circuit on this PinePhone revision was changed since 1.0,
0022 * and the lowest PWM duty cycle that doesn't lead to backlight being off
0023 * is around 10%. Duty cycle for the lowest brightness level also varries
0024 * quite a bit between individual boards, so the lowest value here was
0025 * chosen as a safe default.
0026 */
0027 brightness-levels = <
0028 5000 5248 5506 5858 6345
0029 6987 7805 8823 10062 11543
0030 13287 15317 17654 20319 23336
0031 26724 30505 34702 39335 44427
0032 50000
0033 >;
0034 num-interpolated-steps = <50>;
0035 default-brightness-level = <500>;
0036 };
0037
0038 &lis3mdl {
0039 /*
0040 * Board revision 1.2 fixed routing of the interrupt to DRDY pin,
0041 * enable interrupts.
0042 */
0043 interrupt-parent = <&pio>;
0044 interrupts = <1 1 IRQ_TYPE_EDGE_RISING>; /* PB1 */
0045 };
0046
0047 &mmc1 {
0048 mmc-pwrseq = <&wifi_pwrseq>;
0049 };
0050
0051 &sgm3140 {
0052 enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
0053 flash-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */
0054 };