Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2616954ybh; Mon, 16 Mar 2020 06:39:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsAoeWB6Nhdn7gfI0Xko0CW8WtAj+OXJPsDH/PRQxMOM8W+kQzRsb2Cf2F0E/4NA30uHCKX X-Received: by 2002:a9d:4001:: with SMTP id m1mr15303195ote.57.1584365964816; Mon, 16 Mar 2020 06:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584365964; cv=none; d=google.com; s=arc-20160816; b=wZJcwT7O/kdzbFx+ud4TZUr3bbbz+7RoN2WeIAXXyIjiIy/9jH4SbHxMdKPKI/Ijos enZHiJkeRJf0wR4PMJVkDKlLXjiVuBaA7YVkdyWeTNIoEl+aVN2QxZn7LuufsxL0jsZq cBv6A229sylJTC/Y20hYV3RLexDNowb8d0irpURgbVLjAkBkSO480J44DJpFIjWYEojL iQqnW35gG5/sH9tDnhUp5frs5Dnss4ZhcBoWi0b0iwru+O60uYIiRfbgX3as+64xy8B7 1XRL0cjUdeOHdCHama9YxRdFcNu5c93K/U/RtkPsy2gOVnbeuHlzXfWvaTjGzFMwCgTs mtDw== 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:message-id:date:subject:cc:to :from; bh=vdJB1xaYREfjx8A1fc+UP5D7fCK/5ZczA3DRbH+hq08=; b=ryUzlNXdXyqWCmzFfgcCDRCNA+BxbOMw9Ef7a/4peAt+nT5LbqjYFuJ0spvrEr8sov Sy3soKS5n3MICJIKu3q32d5F/sLFJnEKm2Cipm/w9R7r944Qfs/P3pzRGD5ZUd8b07C7 ZUOC1iu+jgXdum/bv87X3fLB1+QGe8R/LY34oIhmGqjBJ6Cknn5fJ4MGQ9LcSGeObR83 BuO9JT+HztNv3VrttrQjv1EWUzKVDRHsobRe0VvJPmcTGo4PLFeMVC7adG49ugq6sN/n zRSDy72NOazp6fr0SQbOK9UGvOD2s25ekP41PfPI7dPzeVzeoE1IxWhbnRMWEXv6L8hL Gqtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aosc.io header.s=dkim header.b="gvv4Mt/p"; 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 l21si13942oic.126.2020.03.16.06.39.08; Mon, 16 Mar 2020 06:39:24 -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="gvv4Mt/p"; 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 S1731414AbgCPNiK (ORCPT + 99 others); Mon, 16 Mar 2020 09:38:10 -0400 Received: from hermes.aosc.io ([199.195.250.187]:59264 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731330AbgCPNiK (ORCPT ); Mon, 16 Mar 2020 09:38:10 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 718DE4CA5E; Mon, 16 Mar 2020 13:38:00 +0000 (UTC) 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, Icenowy Zheng Subject: [PATCH v2 5/5] arm64: allwinner: dts: a64: add LCD-related device nodes for PinePhone Date: Mon, 16 Mar 2020 21:35:03 +0800 Message-Id: <20200316133503.144650-6-icenowy@aosc.io> In-Reply-To: <20200316133503.144650-1-icenowy@aosc.io> References: <20200316133503.144650-1-icenowy@aosc.io> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.io; s=dkim; t=1584365889; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding:in-reply-to:references; bh=vdJB1xaYREfjx8A1fc+UP5D7fCK/5ZczA3DRbH+hq08=; b=gvv4Mt/ppP1U5dpUHA5n8qTEzN2afgaBkT+M0HHnD2QpiRBO0b4PVtnd5WiFOkLgnHm3Cm uS+WljMpibhdzup+UJWKXGt9n3IFyflFgVAqemHSAFN5h+VJ1vskMjGMiiu1teCs1nUAhP zGvHhAcI1EY4J2t587DsvuxH/d6lNFs= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; + 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