1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2020 Ondrej Jirman <megous@megous.com>
6 #include "sun50i-a64-pinephone.dtsi"
9 model = "Pine64 PinePhone (1.2)";
10 compatible = "pine64,pinephone-1.2", "allwinner,sun50i-a64";
12 wifi_pwrseq: wifi-pwrseq {
13 compatible = "mmc-pwrseq-simple";
14 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
19 power-supply = <®_ldo_io0>;
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.
28 5000 5248 5506 5858 6345
29 6987 7805 8823 10062 11543
30 13287 15317 17654 20319 23336
31 26724 30505 34702 39335 44427
34 num-interpolated-steps = <50>;
35 default-brightness-level = <500>;
40 * Board revision 1.2 fixed routing of the interrupt to DRDY pin,
43 interrupt-parent = <&pio>;
44 interrupts = <1 1 IRQ_TYPE_EDGE_RISING>; /* PB1 */
48 mmc-pwrseq = <&wifi_pwrseq>;
52 enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
53 flash-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */