18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 28c2ecf20Sopenharmony_ci// Copyright (C) 2020 Ondrej Jirman <megous@megous.com> 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci/dts-v1/; 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#include "sun50i-a64-pinephone.dtsi" 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci/ { 98c2ecf20Sopenharmony_ci model = "Pine64 PinePhone (1.2)"; 108c2ecf20Sopenharmony_ci compatible = "pine64,pinephone-1.2", "allwinner,sun50i-a64"; 118c2ecf20Sopenharmony_ci}; 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci&backlight { 148c2ecf20Sopenharmony_ci power-supply = <®_ldo_io0>; 158c2ecf20Sopenharmony_ci /* 168c2ecf20Sopenharmony_ci * PWM backlight circuit on this PinePhone revision was changed since 1.0, 178c2ecf20Sopenharmony_ci * and the lowest PWM duty cycle that doesn't lead to backlight being off 188c2ecf20Sopenharmony_ci * is around 10%. Duty cycle for the lowest brightness level also varries 198c2ecf20Sopenharmony_ci * quite a bit between individual boards, so the lowest value here was 208c2ecf20Sopenharmony_ci * chosen as a safe default. 218c2ecf20Sopenharmony_ci */ 228c2ecf20Sopenharmony_ci brightness-levels = < 238c2ecf20Sopenharmony_ci 5000 5248 5506 5858 6345 248c2ecf20Sopenharmony_ci 6987 7805 8823 10062 11543 258c2ecf20Sopenharmony_ci 13287 15317 17654 20319 23336 268c2ecf20Sopenharmony_ci 26724 30505 34702 39335 44427 278c2ecf20Sopenharmony_ci 50000 288c2ecf20Sopenharmony_ci >; 298c2ecf20Sopenharmony_ci num-interpolated-steps = <50>; 308c2ecf20Sopenharmony_ci default-brightness-level = <500>; 318c2ecf20Sopenharmony_ci}; 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci&lis3mdl { 348c2ecf20Sopenharmony_ci /* 358c2ecf20Sopenharmony_ci * Board revision 1.2 fixed routing of the interrupt to DRDY pin, 368c2ecf20Sopenharmony_ci * enable interrupts. 378c2ecf20Sopenharmony_ci */ 388c2ecf20Sopenharmony_ci interrupt-parent = <&pio>; 398c2ecf20Sopenharmony_ci interrupts = <1 1 IRQ_TYPE_EDGE_RISING>; /* PB1 */ 408c2ecf20Sopenharmony_ci}; 41