From patchwork Tue Oct 9 03:46:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10631793 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2BB6816B1 for ; Tue, 9 Oct 2018 03:46:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F7AF299E0 for ; Tue, 9 Oct 2018 03:46:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 03361299E5; Tue, 9 Oct 2018 03:46:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CAD6A299E0 for ; Tue, 9 Oct 2018 03:46:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nElqF9hixd145mwa3b9qNs1gY2q91W00mgsJJR3sGms=; b=h8qem+nkbot4yB pxCGdJF3QUFPGNMCDuiySnz1DXa96LiEnRR0N4hng0t//divo8TJXlaaMW2ohcS1JX4GfCheNDjXc Bcs0QIGnTDlATMdQfxdyT8vhAwxNFoyuOdxed+yx6+J4pS+l7Q8+oBvWH9/7QYM2t4+0Vl5LfZVxY LAse/VhTMLGuAxLBUevY5w5P7W4B7U/S1Dkw/MIc020NgpwJ2Kcv36nJLhh0j348sG27jvXXhRPCc exmoAZXMfTF9AD86GNuRaShJAG3lcKfCCvO3LVGT3abBJd3CxCSkdnZ+iQU06zbvlFuoqOjlXxn19 7IMInWxjtfIbQqmqsdrg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9iyh-0000bM-Sh; Tue, 09 Oct 2018 03:46:35 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9iyd-0000aV-Pd for linux-arm-kernel@lists.infradead.org; Tue, 09 Oct 2018 03:46:33 +0000 Received: by mail-pf1-x442.google.com with SMTP id c25-v6so120647pfe.6 for ; Mon, 08 Oct 2018 20:46:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3ewUpWJc56ndP8vyViRHtvbtmCJBtmQDVtUA5rntgQA=; b=ryNDTFtnavH3josMT5w3mC5sgZ3ZQeZ2Hz84pZYWm72yLsXS5CV2C8LPyGNT3V7l6d 4re5AvOXndp+F07YzlXTUBuMSJL7zVZO5O2YcsI1xvpiYo6fGsZUSw2rApNIaI5KhuEe /XrQHSrv1Zq+Ja7Yi/W2Vco0OToUGjbFjVjq5AybNsiazGfGK8ktLLsavh8u4QFZkD5q vbB0eEXl7+xPm/b/WBjfGqMGVWh4jnZSfkTGETRBjqlXLny5QyhO5Btk8napetBMsD7Z 9oSd4ekELPlbTMh8Tpro8hWVCcv31GuD5ZENC1oNsLWKsGleyi/f53RDgkFY8muIsv8o UHRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3ewUpWJc56ndP8vyViRHtvbtmCJBtmQDVtUA5rntgQA=; b=Nwqp30EAIeFDhJmx+J4bQwOXCn5xqgh5L8uOYTia16h6WIdhRAMdCjx4war8pjJpmP 0YiZOWo3nmrMhG25LK+QHD/hLQjqxzmNjpxFWvCNKdH835kQd3FXXcBDqTRwMJN2kWKE +9Z4hsNxE4618dR5Qu5+zuuS8oCofzCZkowZSZ7cW81LHjaLiHUSyI7lguGINPURepeM s6pDPNeWBX6Pb2SrYslSlC0Tcd4L2LU246Vp+Z2K9F8A4aJvAAWeAdHlUV6FnwT4Nnwk MU7i5ie2LdQDtySt2lQR3yhteFQBEuzutswGNQIOaDIHecKrTjisHoRKeLrOpmQ2KS1F DWFw== X-Gm-Message-State: ABuFfogJUHfgaP0bMGOltb/uTbJWkNrJTcEwzAlri0SG3lMVzEVCLwy2 AQw8J+QzLqjbakFHgAkGFoQ= X-Google-Smtp-Source: ACcGV60NnGW1Cykby8YNckciRlY2MIc7BiIo0cY8QwD7n2o57QS3S8mhllBpMcC29YlaKAQ8xgvoEA== X-Received: by 2002:a62:5887:: with SMTP id m129-v6mr23277739pfb.254.1539056780438; Mon, 08 Oct 2018 20:46:20 -0700 (PDT) Received: from anarsoul-thinkpad.lan (216-71-193-140.dyn.novuscom.net. [216.71.193.140]) by smtp.gmail.com with ESMTPSA id t15-v6sm47193348pfj.7.2018.10.08.20.46.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Oct 2018 20:46:19 -0700 (PDT) From: Vasily Khoruzhick To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH] arm64: dts: allwinner: add backlight regulator for Pinebook Date: Mon, 8 Oct 2018 20:46:09 -0700 Message-Id: <20181009034609.24892-1-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181008_204631_831839_4898DE1A X-CRM114-Status: GOOD ( 13.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vasily Khoruzhick Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Backlight power is controlled by PH6 GPIO, so add corresponding regulator-fixed node for it. Otherwise backlight won't light up if bootloader doesn't enable it. Signed-off-by: Vasily Khoruzhick --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts index 897e60cbe38d..e2e426334cfe 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts @@ -22,12 +22,22 @@ ethernet0 = &rtl8723cs; }; + vdd_bl: regulator@0 { + compatible = "regulator-fixed"; + regulator-name = "bl-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */ + enable-active-high; + }; + backlight: backlight { compatible = "pwm-backlight"; pwms = <&pwm 0 50000 0>; brightness-levels = <0 5 10 15 20 30 40 55 70 85 100>; default-brightness-level = <2>; enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */ + power-supply = <&vdd_bl>; }; chosen {