Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10647233pxu; Wed, 30 Dec 2020 07:55:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyv4ee+4RwNbtGwO4rrsTAH5qxWhQAXzDuBTgzXObqrLTT7DNWrMEM3czZ2FjHtksDAzRFp X-Received: by 2002:a50:875b:: with SMTP id 27mr52025020edv.24.1609343704035; Wed, 30 Dec 2020 07:55:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609343704; cv=none; d=google.com; s=arc-20160816; b=h1WvM9oJXWTcWoSqEoXbOQLIeEHq6OrLTOvkKnVFsQM6sPglL5aXpvftTKg2fd2CEZ S1zDAxX/sNDL4F//65EipfUpUsXlrZQtnnVIDZu5LtTVQOh9uOMHxnyw2fOho+mTm/fc 5gpUx9ufyAjUpz6TBcLxfrXYt01dUsq85I7cJSndLzu4r3esqnbdOXG27rlhG+u4kYym xaZsh0YIlwn1i2W6gDzNuZkUGhNMuWfVqMV9V0SeiFVSrqMKGPEbFl/f1ZpovN54CrhW KwVeDy2PbWqewqpiTHKvy4eHhfaib7mVrhTu2roTdoZ18LhMDRnkQGt6Ixu2HOXWwQUm apGQ== 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=PJJInI7wBuVv4xqlSgE+mNdVh9iMJlH0WswEWg8D/PU=; b=P9HUbW/f7Qcg91jDwvpJTNwsrsFlZi7F+0FBiO6eiAvqDRKUfk7OkOOg8kFo+r9yRF ilCo4NrOcWKRgxzJCvEa8ZkRdrOjKDLdr81LAXEJlBZ7BePFt7FOS2YhFpYzA1I3V3qe zjGesPsUw4zAfDwXMjXB5jEYE7CuHLU1NDLjQ0RW1UWXiGel0tvhMkXkWo/yFFmHgOJK iTsAgfq7DjfHAvvlLD8BOU18skGofXGsxy55lbPLTf7sI4/GDcHkqKy052BMmJVrpW+o ezxdap/ea5KuEqpbeJuAO/fr0y0X3mTyC5bzShRZ2lS8RN1QPZ88AY/5R4vrKhnA0UtB GLkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KwN6G15Z; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p12si21333480eji.735.2020.12.30.07.54.41; Wed, 30 Dec 2020 07:55:04 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=KwN6G15Z; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726693AbgL3Pw3 (ORCPT + 99 others); Wed, 30 Dec 2020 10:52:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbgL3Pw1 (ORCPT ); Wed, 30 Dec 2020 10:52:27 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A265C06179E; Wed, 30 Dec 2020 07:51:47 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id dk8so15816616edb.1; Wed, 30 Dec 2020 07:51:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PJJInI7wBuVv4xqlSgE+mNdVh9iMJlH0WswEWg8D/PU=; b=KwN6G15ZWlKH5J3UT9XbuxBz7S3oQy2J1xu/zTcbRz4FQEduQ0Ks4SGu0bXog9p1c6 M7FlgwHMopVM9YfqzHfqfHZ2E2ios/h+B0Ll5v3AIokdqPBJaWgLEecxCI/9FQ26lWb7 d3q/ePQSzxYkPwoew8QAer0kcWL9fYgHmdwbuZF3BxymkccewHEQBAnv//YSOzchMNLv ozaYqY5vYYKFAfukukkO7oOEgsa3T2GSGq39qWSwYE5eFOGCvbFSom4qsg9CbNpBZcxH cx/5vyVuKDpwCUxPy69kDF549iakuoD6+5AJQVkXK2wuDfoTkcH6HhKtzbxdFzFvoCMg shCw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=PJJInI7wBuVv4xqlSgE+mNdVh9iMJlH0WswEWg8D/PU=; b=ABfomj8PgrtDgraDX72lyo9VpD5JSoT5YPrKTNzZrRnIUM4sR5uqCzK7iNMx/Q0gEc cNZ4mEB+b9AYFcZVau4CHysVIR9cHk/6ocLKDNQaLHd7zVqw/Q2jyFNklN7E3ybtccIg emxHp4bjgMDy8UAOjtSdN2283JcUt+yt628tyItj1aVVRqN3BAozZfFYiQQFbubx5aJ9 qssBUl1dEMxj94ohmJpKFsbn7X6LGPIlytDWde3Q2VUQFyDWxWSzwkZYIWcV+XznHNZJ bs/c/dgxii8W+9wIlYf8YT1ewCxKhb9oNj3G7QGB07APs05nmyN5SDuJ6Cn2IBu6ycQn 6hMQ== X-Gm-Message-State: AOAM530ZvzxpCsr55qgkVyjWQi4ksCubnv62cwvy381zSBC5EIWsADhr W0+vzIAJl738dT+EvIlcSuA= X-Received: by 2002:a05:6402:c95:: with SMTP id cm21mr51336368edb.294.1609343505770; Wed, 30 Dec 2020 07:51:45 -0800 (PST) Received: from localhost (178-169-161-196.razgrad.ddns.bulsat.com. [178.169.161.196]) by smtp.gmail.com with ESMTPSA id j23sm25028276edv.45.2020.12.30.07.51.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Dec 2020 07:51:45 -0800 (PST) From: Iskren Chernev To: Bjorn Andersson Cc: Andy Gross , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Iskren Chernev , ~postmarketos/upstreaming@lists.sr.ht, Samuel Pascua Subject: [PATCH 3/4] ARM: dts: qcom: msm8974-klte: add support for display Date: Wed, 30 Dec 2020 17:51:31 +0200 Message-Id: <20201230155132.3661292-3-iskren.chernev@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201230155132.3661292-1-iskren.chernev@gmail.com> References: <20201230155132.3661292-1-iskren.chernev@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Samuel Pascua Add initial support for the display found on the Samsung Galaxy 5 (klte) phone. This is based on work from Jonathan Marek & Brian Masney. Please note that this patch depends on dt-binding patch in [1] [1] https://lkml.org/lkml/2020/12/30/293 Signed-off-by: Samuel Pascua --- .../boot/dts/qcom-msm8974-samsung-klte.dts | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts index 1d5e8abdbda79..8b7e95b748e39 100644 --- a/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts +++ b/arch/arm/boot/dts/qcom-msm8974-samsung-klte.dts @@ -453,6 +453,16 @@ int { bias-pull-down; }; }; + + panel_pin: panel { + te { + pins = "gpio12"; + function = "mdp_vsync"; + + drive-strength = <2>; + bias-disable; + }; + }; }; sdhc_1: sdhci@f9824900 { @@ -705,6 +715,54 @@ opp_table { adreno@fdb00000 { status = "ok"; }; + + mdss@fd900000 { + status = "ok"; + + mdp@fd900000 { + status = "ok"; + }; + + dsi@fd922800 { + status = "ok"; + + vdda-supply = <&pma8084_l2>; + vdd-supply = <&pma8084_l22>; + vddio-supply = <&pma8084_l12>; + + #address-cells = <1>; + #size-cells = <0>; + + ports { + port@1 { + endpoint { + remote-endpoint = <&panel_in>; + data-lanes = <0 1 2 3>; + }; + }; + }; + + panel: panel@0 { + reg = <0>; + compatible = "samsung,s6e3fa2"; + + pinctrl-names = "default"; + pinctrl-0 = <&panel_pin>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + }; + }; + + dsi-phy@fd922a00 { + status = "ok"; + + vddio-supply = <&pma8084_l12>; + }; + }; }; &spmi_bus { -- 2.29.2