From patchwork Wed Jan 13 11:03:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12016485 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1EED3C433E0 for ; Wed, 13 Jan 2021 11:05:51 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ACC0922AAF for ; Wed, 13 Jan 2021 11:05:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ACC0922AAF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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=XeR2ZWNz0Lqp9XGA/dl8b5EYafFVeXOJwQS3l1PthEM=; b=nDqHiXdlbk3D8iPULOVcW6cmTA QNE1TW2reWEZumTh/aDOHmWU5x0JNouX+K6ZtszWzi0/+QQCGd9Sm1EMwbKPUoLOk+zElTc2Jh+h2 /hl6qppRd5bRjvjsRhzDADy4ro4mxZ/5FvSVfwx9OuHKjfgf0MqLOAQvCH9sBVdHfaQpJr2hEPpJ6 Lxybu7awnVaDWmA4Rg75h2Z/DNvxcorqLFc/itVjWSWZm5qzsit65Ka/qbJ+ICKfpsYe5SacsQ5k1 tRvqBwGCDoeVJ2vDhN39uBD9WO/dIrY2Afn2P19Jt7IzL0d99OgwAH5D5ouhYNEIYiAivuJ1g2z9+ oqbWohAA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzdwz-0004qp-5H; Wed, 13 Jan 2021 11:04:29 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kzdwv-0004oS-OL for linux-arm-kernel@lists.infradead.org; Wed, 13 Jan 2021 11:04:26 +0000 Received: by mail-pl1-x633.google.com with SMTP id t6so876935plq.1 for ; Wed, 13 Jan 2021 03:04:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qi6TAbH6xq2gb5QhoJgs+Zx34VA+1B8w65ilqHtaQhg=; b=niAlQ6mrmMUTgxTuk/wIFV0dA5FTNL/q7yIeA3KMpPiYrOoeMif/GrsGlBNo4nO5hX jS0IBXikG2Rz7tuBf7Cg5OWlFEnPLysXBKbE8NfGrDC26Fn1rRXbr3IGMutv7qZjs1ix LuL6120cwyB2sznVfa8VmXkijtJmiiqz/Wodw= 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=qi6TAbH6xq2gb5QhoJgs+Zx34VA+1B8w65ilqHtaQhg=; b=lsNego9gJ5PqHqZSiKlRMQcUYrVnVFSLazRzv/UN2UNsjzBZfm7o2J/yR1bFgyOXX2 MLWke/JRdBst/2twRu4MVyLiZTXl2oAojKcrWvkZtaMO7zjRql4voP87HKf3gIr+b3oW RRGMcm0on+50bRWgPVUgq8DmlvpAZRkJE5suEhqGnCLcD90JTUo9P/tFwfqN7TsdYPz6 +8w63wHDKvFrrUVwTFSUoZXSi0aIa7fPPsuutVLqIJJIUlYljuAlYYLFIQi7KWiuk9+X rhZsGGecLBa/Uz0W+xZWTzTc88AhDOes69vHckw9FKfHSnMHLqkYCFWqHRBzQZLbLrtp IjHg== X-Gm-Message-State: AOAM533twxedvd8DyF5pKfAbaf+kl1ArYdI+V3PV7jbHfe9HT/5FRK/r TAlxXMh6aMf/J5w7IeVT2s7ogqObL/nApw== X-Google-Smtp-Source: ABdhPJwqXk7qSn7z63czfXwWGRHHdTzvY1QViHROIw4GMPDd5xlJEcOqPF8W7QFFkzxLCyFUXJv/fg== X-Received: by 2002:a17:902:c005:b029:db:1d7:658f with SMTP id v5-20020a170902c005b02900db01d7658fmr1625118plx.35.1610535863499; Wed, 13 Jan 2021 03:04:23 -0800 (PST) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:1a60:24ff:fe89:3e93]) by smtp.gmail.com with ESMTPSA id o129sm2114749pfg.66.2021.01.13.03.04.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 03:04:22 -0800 (PST) From: Hsin-Yi Wang To: linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH v4 1/3] arm64: dts: mt8183: config dsi node Date: Wed, 13 Jan 2021 19:03:59 +0800 Message-Id: <20210113110400.616319-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.30.0.284.gd98b1dd5eaa7-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210113_060425_840161_EC40B817 X-CRM114-Status: GOOD ( 13.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Nicolas Boichat , linux-kernel@vger.kernel.org, Rob Herring , linux-mediatek@lists.infradead.org, Enric Balletbo i Serra Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Config dsi node for mt8183 kukui. Set panel and ports. Several kukui boards share the same panel property and only compatible is different. So compatible will be set in board dts for comparison convenience. Signed-off-by: Hsin-Yi Wang Reviewed-by: Nicolas Boichat Tested-by: Enric Balletbo i Serra --- change: v4: add backlight and enable mipi_tx0 --- .../mediatek/mt8183-kukui-krane-sku176.dts | 5 +++ .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 42 +++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku176.dts b/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku176.dts index 47113e275cb52..721d16f9c3b4f 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku176.dts +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku176.dts @@ -16,3 +16,8 @@ / { model = "MediaTek krane sku176 board"; compatible = "google,krane-sku176", "google,krane", "mediatek,mt8183"; }; + +&panel { + status = "okay"; + compatible = "boe,tv101wum-nl6"; +}; diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi index bf2ad1294dd30..da1e947587074 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -249,6 +249,36 @@ &cpu7 { proc-supply = <&mt6358_vproc11_reg>; }; +&dsi0 { + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + panel: panel@0 { + /* compatible will be set in board dts */ + reg = <0>; + enable-gpios = <&pio 45 0>; + pinctrl-names = "default"; + pinctrl-0 = <&panel_pins_default>; + avdd-supply = <&ppvarn_lcd>; + avee-supply = <&ppvarp_lcd>; + pp1800-supply = <&pp1800_lcd>; + backlight = <&backlight_lcd0>; + port { + panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; + + ports { + port { + dsi_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; +}; + &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; @@ -290,6 +320,10 @@ &i2c6 { clock-frequency = <100000>; }; +&mipi_tx0 { + status = "okay"; +}; + &mmc0 { status = "okay"; pinctrl-names = "default", "state_uhs"; @@ -547,6 +581,14 @@ pins_clk { }; }; + panel_pins_default: panel_pins_default { + panel_reset { + pinmux = ; + output-low; + bias-pull-up; + }; + }; + pwm0_pin_default: pwm0_pin_default { pins1 { pinmux = ;