Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1115232pxb; Wed, 29 Sep 2021 17:43:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwK/qzIb79liWZsVpVgXJjxsaeN1GT+NvNUWEBjgwU5Qik2nJVfu2Bq1Uz8ky5cr9r+FYYt X-Received: by 2002:a17:906:a082:: with SMTP id q2mr3295710ejy.535.1632962583883; Wed, 29 Sep 2021 17:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632962583; cv=none; d=google.com; s=arc-20160816; b=uyjT0Fhqc4PxSdIGQrP9VD7FRP71tx4YHq7TayD9sMQ+UWUXhaSbHMYOU1uSgSLg9E fSBLE4QnSkYcJDFC5sfUuPIKqJWCw+anqnYCRTAF85EVjhRyB2uYwzOT8JOU+YyeLNtF 3SS6kgRS/N4rrcKfW2skTfvNMDrpZ2L8uWVZIWr1hvIqvvabXz8SqjbpgJ/az1XC7aj5 d7ktQGCgXnKHJwQelGvOiBpurNrKTUuoMn/H6CFhYKGAeHGtjzcbQg0tGzZDObCeZLTi rdn++I+06qXF/Zn6CJV2BZx2vtuGvrQrRDHNz0dNLr2p3VDz2fEsXr4GqzyMFqaCpy9F tRyw== 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=XjJMyo4nepY67DLXBfdTq1qdfOniUTOoSKlZO422mI0=; b=LXDItpayYMStC1tVCdfB3HlJ3Psq2Jf14YE7ZB4ZEPaWL3UG/y0NOFlz3EcL4JtdvG kWpn93FWNBy78vFQYriAWbnmU12TqgPFHTNZsJ+9cmGbkvKeZs2AjM8GdeCUkp3Ch6cg HPCJEKIaWH8lBg3MEcCTloTU/T/kv6yBbxzeMAUDwa7ApAHh9De2X+FZ+dUJEHuQ4tLf X+b7eOUGpGtafMfnDftsyRPyJYCn4gegcNHYpQ1M9xqiuvkXN4VYeb0UoDfOp+Ehgvue GEXxVzNbamOQUcavrENDMB13OcHKOLSr2teRSddK5UWZJO0Og0Ec9LXT+kfdX6GR4sAI VN8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="c/uR3dVM"; 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 e7si2308579edm.178.2021.09.29.17.42.40; Wed, 29 Sep 2021 17:43:03 -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="c/uR3dVM"; 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 S1347429AbhI3Agx (ORCPT + 99 others); Wed, 29 Sep 2021 20:36:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347396AbhI3Agv (ORCPT ); Wed, 29 Sep 2021 20:36:51 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEC1DC06176A for ; Wed, 29 Sep 2021 17:35:09 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id m26so3432851pff.3 for ; Wed, 29 Sep 2021 17:35:09 -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=XjJMyo4nepY67DLXBfdTq1qdfOniUTOoSKlZO422mI0=; b=c/uR3dVM+1NVe4obbihceA7rgd8OA3E91zAv+gUeWoCAc7PfSZl1E1/2TwtoCrvWJq 6TD0hT9OuycedZg4J6eFUAvC/nBuDeH4nOZpqyFtIj+ym/scWUXWB7hZdGo42QpdJl5h NCbO35gOrQB1k0gimHMkZ3z1HMzd2H3Z1XeR8= 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=XjJMyo4nepY67DLXBfdTq1qdfOniUTOoSKlZO422mI0=; b=v34/AsXS/LJAGNs2ideiOc8i7ek1iPi8unKYccq0UAHYZYqvjyvNnDKA5HDXrFCghI o/269FAaatJ0nM1t/hdk+Ys0VqTB0JDuYBsqbLNJ4cbtjSrf9jgOB9golzv0epmm6Pme VcXPktELBiX6kF/DekSXMBlJLj00WcpUnDPfLuwiTiBPqewETo3fcP0oW3tmLPDyd3KQ TzUngh6t9hxTbZ3zBWITFFEcyLCllPqTEo71VwKyZFpibKBn31H0QcZ3KHDIHxYhNDsi 7VS//bysuAbE4s5/h8ohIedAGFQ5gGFAbc0vxnvjjVmKx1vASKqbh+b+TNq65a0y5Rah E9Hw== X-Gm-Message-State: AOAM532+keia9yLcalkmnB0fP4IkshrVz/bxhJwTh1Bw5rU1jtDTtmMv A8lrM3sy7sQwlzUrmTB1Aa9m7DkanuPihw== X-Received: by 2002:a62:3881:0:b0:44b:6639:6c20 with SMTP id f123-20020a623881000000b0044b66396c20mr1336754pfa.78.1632962108997; Wed, 29 Sep 2021 17:35:08 -0700 (PDT) Received: from philipchen.mtv.corp.google.com ([2620:15c:202:201:b6b6:ed63:b801:ded7]) by smtp.gmail.com with ESMTPSA id 23sm711648pgk.89.2021.09.29.17.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 17:35:08 -0700 (PDT) From: Philip Chen To: LKML Cc: dianders@chromium.org, swboyd@chromium.org, Philip Chen , Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2 3/3] arm64: dts: sc7180: Support Parade ps8640 edp bridge Date: Wed, 29 Sep 2021 17:34:58 -0700 Message-Id: <20210929173343.v2.3.I630340a51130f4582dbe14e42f673b74e0531a2b@changeid> X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog In-Reply-To: <20210929173343.v2.1.Ib7e63ae17e827ce0636a09d5dec9796043e4f80a@changeid> References: <20210929173343.v2.1.Ib7e63ae17e827ce0636a09d5dec9796043e4f80a@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 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 | 108 ++++++++++++++++++ 1 file changed, 108 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..c274ab41bd67 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi @@ -0,0 +1,108 @@ +// 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>; + + 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: edp-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: 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.685.g46640cef36-goog