Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2634845pxb; Fri, 8 Oct 2021 11:44:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+SEQ5J2lQ514myyoyUj2mfzygqAGsZebECwdeNfdoYX2UADlCCDoqQhsQ2+S+jRM3avsv X-Received: by 2002:a05:6402:2552:: with SMTP id l18mr17533770edb.132.1633718649954; Fri, 08 Oct 2021 11:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633718649; cv=none; d=google.com; s=arc-20160816; b=OU/sPm6dLmcnXcTcKAAY3JWn3iKbhAhxhu4KokuN6vCr7T1tUqtLAC1hzMcufbnIRf nejNHUK7a3BcLTMvomLRr9AhfPRHHM8UIFQCUqyVslpmi93OYxFLhgxXPt/lMDtodSCi ovoCvtPCs01UZzPUvOhYyvevhK6wOHLDUYiXgDg3HtsbRnJAQlsE3m8MB8mSu9YQfHMl iSU/QZu/1dXre4m5MPbtgX2P/NQcttPVvkb0RAeV1EwAnv1QY/kT2Yb0dsGScIOsGb66 KIcM1J3k6Ad2Uv1nq6RuSUTjjkkMCfcqhIZs2b37d7zIrrrBMU+fITmBxZXcAeAkpCFO RWDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DsdQtCuqj7NeCW/+vaJ8AIZ5ek4xa9z9QEi1HjmFjxA=; b=wstCGHkxUyhgko76v8kkxlX5wkkML9ze05O6WmLHbUhRSc0FO8zh8AEOl+sx3TkMmj YdtlECu2thjH2c1lpQ5DwBVP4bTp3E3zjljedfoxTE66agfF+2+h19kQvl4ha9TQmIip gV2FgDgLcOUCH0lSvstgU+B4JK7/H6JAuX+xr3OR/UOaXlgZ965bqo0JB2cGW131yudq 6gyRaEU2WEUP+GzqzPZHpYoFu+ADgE1BNi4SBZh+Ev/lDTE8Epk24AIPTRHaQ4HxLzwp pfi4Ra1I4h7FJCYd3ioqUTcP3vn6ULpE4PNFpBTLI69drqAFVHSWlUl1+lIlptcyVlb5 EKUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gnJtz5yz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq3si262237ejc.142.2021.10.08.11.43.46; Fri, 08 Oct 2021 11:44:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gnJtz5yz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239577AbhJHSlk (ORCPT + 99 others); Fri, 8 Oct 2021 14:41:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231563AbhJHSlj (ORCPT ); Fri, 8 Oct 2021 14:41:39 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7AD3C061762 for ; Fri, 8 Oct 2021 11:39:43 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id g13-20020a17090a3c8d00b00196286963b9so9976604pjc.3 for ; Fri, 08 Oct 2021 11:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DsdQtCuqj7NeCW/+vaJ8AIZ5ek4xa9z9QEi1HjmFjxA=; b=gnJtz5yzqOiLtUcf8XEDf4DVdaws3u2lKXBE4F7Pd90CQmjnJVAVV/CGnupfSfL6Mc jcTBVs1V2Pc7okqkjFfnmHkYz6LgIvxV3MdpLXlPGP4dSZz/xyOaf40nleHjx4ZLtnHq Wd/e7a8vPrY/tWNqtMSOuaI1hxvSBQZy5K62s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DsdQtCuqj7NeCW/+vaJ8AIZ5ek4xa9z9QEi1HjmFjxA=; b=MLLz5lyLo6OzUVTqzHH9pd9qEfWErTaVHntkJehnqsxLiw0q3Bc3aaQMpnut6gMVP2 o3GopYJi0Q+OFNknRcW/IttvAPidkk9sYv8ObALAQp5XrcVqXf9Z0yl5aC5muXWVW1Xv /+b6pQ2Ss28O0SHkeWOaDT+jaz/seQgqbnVK99v2YiwnYbb4gnm9rzdSo1Tn9h3j9PgB jhql2Ilf9eZJGGmgq1S5xBXHcPXP9ZgfeCY7lt0aPjsuCnEPYNFjpSoo4kIiX/1f5Vmz /u/+f6w+5TcIyrMrqu0Tweex25m02ik1PBRBdj1dKzfKORovIG9lgE29VSJ9iaVgxFDs MziA== X-Gm-Message-State: AOAM532GahEIWi762VpxVD4MvN7jELkca6OhizIaTcPLspgCV6S8ih6E cnUBRmgs2AdpvXZpE1Tn4bBud1ZU05OHjg== X-Received: by 2002:a17:90a:af92:: with SMTP id w18mr13392893pjq.98.1633718383195; Fri, 08 Oct 2021 11:39:43 -0700 (PDT) Received: from philipchen.mtv.corp.google.com ([2620:15c:202:201:d589:5290:5a04:2c2b]) by smtp.gmail.com with ESMTPSA id i123sm71695pfg.157.2021.10.08.11.39.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 11:39:42 -0700 (PDT) From: Philip Chen To: LKML Cc: swboyd@chromium.org, dianders@chromium.org, Philip Chen , Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v3 2/2] arm64: dts: sc7180: Support Parade ps8640 edp bridge Date: Fri, 8 Oct 2021 11:39:35 -0700 Message-Id: <20211008113839.v3.2.I187502fa747bc01a1c624ccf20d985fdffe9c320@changeid> X-Mailer: git-send-email 2.33.0.882.g93a45727a2-goog In-Reply-To: <20211008113839.v3.1.Ibada67e75d2982157e64164f1d11715d46cdc42c@changeid> References: <20211008113839.v3.1.Ibada67e75d2982157e64164f1d11715d46cdc42c@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a dts fragment file to support the sc7180 boards with the second source edp bridge, Parade ps8640. Signed-off-by: Philip Chen --- Changes in v3: - Set gpio32 active high - Rename edp-bridge to bridge to align with ti-sn65 dts - Remove the unused label 'aux_bus' Changes in v2: - Add the definition of edp_brij_i2c and some other properties to ps8640 dts, making it match ti-sn65dsi86 dts better .../qcom/sc7180-trogdor-parade-ps8640.dtsi | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi new file mode 100644 index 000000000000..a3d69540d4e4 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi @@ -0,0 +1,109 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Google Trogdor dts fragment for the boards with Parade ps8640 edp bridge + * + * Copyright 2021 Google LLC. + */ + +/ { + pp3300_brij_ps8640: pp3300-brij-ps8640 { + compatible = "regulator-fixed"; + status = "okay"; + regulator-name = "pp3300_brij_ps8640"; + + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&tlmm 32 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&en_pp3300_edp_brij_ps8640>; + + vin-supply = <&pp3300_a>; + }; +}; + +&dsi0_out { + remote-endpoint = <&ps8640_in>; +}; + +edp_brij_i2c: &i2c2 { + status = "okay"; + clock-frequency = <400000>; + + ps8640_bridge: bridge@8 { + compatible = "parade,ps8640"; + reg = <0x8>; + + powerdown-gpios = <&tlmm 104 GPIO_ACTIVE_LOW>; + reset-gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + + pinctrl-names = "default"; + pinctrl-0 = <&edp_brij_en>, <&edp_brij_ps8640_rst>; + + vdd12-supply = <&pp1200_brij>; + vdd33-supply = <&pp3300_brij_ps8640>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + ps8640_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + + port@1 { + reg = <1>; + ps8640_out: endpoint { + remote-endpoint = <&panel_in_edp>; + }; + }; + }; + + aux-bus { + panel: panel { + /* Compatible will be filled in per-board */ + power-supply = <&pp3300_dx_edp>; + backlight = <&backlight>; + + port { + panel_in_edp: endpoint { + remote-endpoint = <&ps8640_out>; + }; + }; + }; + }; + }; +}; + +&tlmm { + edp_brij_ps8640_rst: edp-brij-ps8640-rst { + pinmux { + pins = "gpio11"; + function = "gpio"; + }; + + pinconf { + pins = "gpio11"; + drive-strength = <2>; + bias-disable; + }; + }; + + en_pp3300_edp_brij_ps8640: en-pp3300-edp-brij-ps8640 { + pinmux { + pins = "gpio32"; + function = "gpio"; + }; + + pinconf { + pins = "gpio32"; + drive-strength = <2>; + bias-disable; + }; + }; +}; -- 2.33.0.882.g93a45727a2-goog