Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp583736pja; Thu, 19 Mar 2020 07:52:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuvLDDdr44xYNKWJbnolxqsEXT8yCfC0t645LQJ2fhUCyBSSyaSvPIBzvrjBqMICnSm6owP X-Received: by 2002:a05:6830:19ee:: with SMTP id t14mr2728690ott.287.1584629573043; Thu, 19 Mar 2020 07:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584629573; cv=none; d=google.com; s=arc-20160816; b=Pi9pQTlMMP2GdEAZzX0Oksj3hoIrCSUM1bz5nGFFYzN4zl7ya4OpgFyO6pVjNrGA5i 4tcQn8bkoWfsJeiLu4NPEKIBcG/HeiireSXTKCOKY6J53KHnK96ZNv3jrRHc3F3Ploqq 4+7XH9/Cv3+Ufa/1Fa1Rnq8Kwgk9Du2v4BngQFFat0MMbxmXJpKOKiLe/QTzyy0rhB8v VMl7txCR+qO6IucfB9eaC6LDvzcuX97Gzsri01nUtkJdg5OQx67IvMloNg0+tEYVA3A+ zcPkBREF96aTvtbNF+K+N3JHqnfrnzBGNxLFvqIbwt9Y7O1oQW+MPq2+8AFOeroSc2Yj YxwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject :message-id; bh=p5Ck7dUiaERSo0QVXTsJS7JDgXxthBKb9LsSdQI8mXo=; b=Rjf6ex//CQJvy/oBUoTBAvROXBbyZ0+gxTgYCnt7n6M4Q81AeQLxzJXlZcrkRzkFD/ hbXuyK67upHz/FrI7lQNo+v0MKygbvFTv6apsMXRioeXpPctDcrEbtH4exCj8ukiDaPC BF42/Col6acBA5radtcrMlywEdZfjbtZabju8gzeiA0RBKI7548Al7uUOeQGEePVoxU/ gTuruGs3hpj1reiMd1dvNiXof4+PXsxhzki6Xj5U5Mnq+7Y7tkm237lXYMOeoTlJlcWe qfEnnT4ErfIJGB0GltNw/T++xaPGjYDyhk4QbHJe3XRalPlDD2DEq4FPfBLm3hl24CzR G1zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aosc.io header.s=dkim header.b=o7VpwL9T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si1236251oib.109.2020.03.19.07.52.37; Thu, 19 Mar 2020 07:52:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@aosc.io header.s=dkim header.b=o7VpwL9T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727391AbgCSOwC (ORCPT + 99 others); Thu, 19 Mar 2020 10:52:02 -0400 Received: from hermes.aosc.io ([199.195.250.187]:47676 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726943AbgCSOwC (ORCPT ); Thu, 19 Mar 2020 10:52:02 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 15C8C4C7F0; Thu, 19 Mar 2020 14:51:49 +0000 (UTC) Message-ID: Subject: Re: [linux-sunxi] [PATCH v2 5/5] arm64: allwinner: dts: a64: add LCD-related device nodes for PinePhone From: Icenowy Zheng To: Thierry Reding , Sam Ravnborg , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Ondrej Jirman Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com Date: Thu, 19 Mar 2020 22:51:36 +0800 In-Reply-To: <20200316133503.144650-6-icenowy@aosc.io> References: <20200316133503.144650-1-icenowy@aosc.io> <20200316133503.144650-6-icenowy@aosc.io> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.io; s=dkim; t=1584629521; h=from:subject:date:message-id:to:cc:mime-version:content-type:content-transfer-encoding:in-reply-to:references; bh=p5Ck7dUiaERSo0QVXTsJS7JDgXxthBKb9LsSdQI8mXo=; b=o7VpwL9TrDlUsvQeexpwLURHqEq8rejngmj+gnMy03J0jB/SMkZO1e6NwjBPfVaszHVf1e SlvcX4TTjNKpkULnFXRvaxuIelgtPfyfZAd8bYOGtiRdwbs8acvJJU3uviggbQlY9O9Mv+ QoltOKGJe07JmvTwJPNdAQJ2EcrtG20= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020-03-16星期一的 21:35 +0800,Icenowy Zheng写道: > PinePhone uses PWM backlight and a XBD599 LCD panel over DSI for > display. > > Add its device nodes. > > Signed-off-by: Icenowy Zheng > --- > No changes in v2. > > .../dts/allwinner/sun50i-a64-pinephone.dtsi | 37 > +++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > index cefda145c3c9..96d9150423e0 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > @@ -16,6 +16,15 @@ aliases { > serial0 = &uart0; > }; > > + backlight: backlight { > + compatible = "pwm-backlight"; > + pwms = <&r_pwm 0 50000 PWM_POLARITY_INVERTED>; > + brightness-levels = <0 16 18 20 22 24 26 29 32 35 38 42 > 46 51 56 62 68 75 83 91 100>; Should I drop the 0 here and replace it with 14? I have heard community complaining about setting 0 to brightness make the screen black. (I think in this situation bl_power or blank the DSI panel can still totally shut down the backlight). > + default-brightness-level = <15>; > + enable-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */ > + power-supply = <®_ldo_io0>; > + }; > + > chosen { > stdout-path = "serial0:115200n8"; > }; > @@ -84,6 +93,30 @@ &dai { > status = "okay"; > }; > > +&de { > + status = "okay"; > +}; > + > +&dphy { > + status = "okay"; > +}; > + > +&dsi { > + vcc-dsi-supply = <®_dldo1>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "okay"; > + > + panel@0 { > + compatible = "xingbangda,xbd599"; > + reg = <0>; > + reset-gpios = <&pio 3 23 GPIO_ACTIVE_LOW>; /* PD23 */ > + iovcc-supply = <®_dldo2>; > + vcc-supply = <®_ldo_io0>; > + backlight = <&backlight>; > + }; > +}; > + > &ehci0 { > status = "okay"; > }; > @@ -188,6 +221,10 @@ &r_pio { > */ > }; > > +&r_pwm { > + status = "okay"; > +}; > + > &r_rsb { > status = "okay"; > > -- > 2.24.1 >