mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
arm64: dts: allwinner: Add support for PinePhone revision 1.2
Revision 1.2 should be the final production version of the PinePhone. It has most of the known HW quirks fixed. Interrupt to the magnetometer is routed correctly, in this revision. The bulk of the changes are in how modem and the USB-C HDMI bridge chip is powered and where the signals from the modem are connected. Also backlight intensity seemingly behaves differently, than on the 1.1 and 1.0 boards, and the PWM duty cycle where backlight starts to work is 10% (as tested on 2 1.2 PinePhones I have access to). Signed-off-by: Ondrej Jirman <megous@megous.com> Link: https://lore.kernel.org/r/20200703194842.111845-3-megous@megous.com Signed-off-by: Maxime Ripard <maxime@cerno.tech>
This commit is contained in:
committed by
Maxime Ripard
parent
9ae880aad8
commit
e53568caa2
@@ -11,6 +11,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb
|
||||
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinebook.dtb
|
||||
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinephone-1.0.dtb
|
||||
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinephone-1.1.dtb
|
||||
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinephone-1.2.dtb
|
||||
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pinetab.dtb
|
||||
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb
|
||||
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-teres-i.dtb
|
||||
|
||||
40
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts
Normal file
40
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts
Normal file
@@ -0,0 +1,40 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
// Copyright (C) 2020 Ondrej Jirman <megous@megous.com>
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "sun50i-a64-pinephone.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Pine64 PinePhone (1.2)";
|
||||
compatible = "pine64,pinephone-1.2", "allwinner,sun50i-a64";
|
||||
};
|
||||
|
||||
&backlight {
|
||||
power-supply = <®_ldo_io0>;
|
||||
/*
|
||||
* PWM backlight circuit on this PinePhone revision was changed since 1.0,
|
||||
* and the lowest PWM duty cycle that doesn't lead to backlight being off
|
||||
* is around 10%. Duty cycle for the lowest brightness level also varries
|
||||
* quite a bit between individual boards, so the lowest value here was
|
||||
* chosen as a safe default.
|
||||
*/
|
||||
brightness-levels = <
|
||||
5000 5248 5506 5858 6345
|
||||
6987 7805 8823 10062 11543
|
||||
13287 15317 17654 20319 23336
|
||||
26724 30505 34702 39335 44427
|
||||
50000
|
||||
>;
|
||||
num-interpolated-steps = <50>;
|
||||
default-brightness-level = <500>;
|
||||
};
|
||||
|
||||
&lis3mdl {
|
||||
/*
|
||||
* Board revision 1.2 fixed routing of the interrupt to DRDY pin,
|
||||
* enable interrupts.
|
||||
*/
|
||||
interrupt-parent = <&pio>;
|
||||
interrupts = <1 1 IRQ_TYPE_EDGE_RISING>; /* PB1 */
|
||||
};
|
||||
@@ -142,7 +142,7 @@
|
||||
status = "okay";
|
||||
|
||||
/* Magnetometer */
|
||||
lis3mdl@1e {
|
||||
lis3mdl: lis3mdl@1e {
|
||||
compatible = "st,lis3mdl-magn";
|
||||
reg = <0x1e>;
|
||||
vdd-supply = <®_dldo1>;
|
||||
|
||||
Reference in New Issue
Block a user