From patchwork Wed Jan 6 08:46:25 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: 12001125 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=-14.2 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, UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 100C7C433E0 for ; Wed, 6 Jan 2021 08:48:42 +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 A92CA23100 for ; Wed, 6 Jan 2021 08:48:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A92CA23100 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=GSm+VcnFFU79bAtxKfzBwZH77NjZBjeaK8u8XC0lMx4=; b=ExQce4ZET0vrdD5Mzl9bqeSeHY f/UxOGcy6PfpJ/t/T8dpUVNg88rZ7g+wBfwlKH48gwWQCqBAAoNNPH9xl+kWSd5GK1VQ87uFqL3PS E+ZjKnDR6Vdm6s5qgKFjOn/eBt85uTImA9gMdRWJ4gaRsJQcbbY4pSnas7wUihqEKKt+T8DuDzJTa gRGRFw07YfU4MVzOl1ZeRzy15GvJ8nmPoWpuuJ9pHRDp1t/ZHTj0+u34WHxhPIcSN8LqLBabasM0f xetj7pTQxqgh5jDHTpIGLSARNl5/jfxCUSSPMzNSyDrLTPEZcQUPu4yO+Aj2YrYOlknNLfo3hDal2 algoSenQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kx4Sk-0004q4-8V; Wed, 06 Jan 2021 08:46:38 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kx4Sh-0004oz-UL for linux-arm-kernel@lists.infradead.org; Wed, 06 Jan 2021 08:46:36 +0000 Received: by mail-pj1-x102c.google.com with SMTP id hk16so1238266pjb.4 for ; Wed, 06 Jan 2021 00:46:34 -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=53HmeNCId56TyprTPiCTxLLId7kfWvnwGYjjv2jFeKo=; b=AdVNFfI6g/+Peyo3N6YUcwALG9C/6Lg12CpHr1ce54Xw8HxwCQXNqc3DVReRHnmnV4 Z9HmRiOLTAOiAHowNoy6ri4ooZZwaHOOfig7ryMSQNUOt+5CMMUCfOUyVWfWfGIlUf62 3Ave4W3jFHywlocQErtqPoiDtzCzi1JS1NYB4= 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=53HmeNCId56TyprTPiCTxLLId7kfWvnwGYjjv2jFeKo=; b=WMWRNKe+0yBffiL4LIcSer0YmubTr0lW7VAz6nweBDXt8lN+SNd1Q0C7mqAigw7+KL pvyOLuNa55D1GtfiawvF/YUbY46j7RXkY9MFwxTWmm34KwY9X/jjmZEmTR3u8drEFhq/ 1oUDDd7K9g2P7uQpATCU8KvNgYypHr6J7FqoXvUbN/SBe66QkC1usoojyeigCi8zWYtF TIxumKQRl2P1GUFrrKhDDwoLVvGXAoYQ+X5gp0+FTl62SsWc5gBMKPiQdgImcjE2+1GL Q845TIrLsMb/LvIERnr6H3nk8OAyOcVJm3G4ocEk4svq61+Wf9Yu7zInSj0ma17Botx9 Qqxg== X-Gm-Message-State: AOAM5308eKuNlHN1l1T+dqgoHJFXzgK8o3CF1hhb2hEi0NMYXPdicbfl 6/gxYZ5ytLV/t5Bs/Lr9oOK3Gpqs7w7O5Q== X-Google-Smtp-Source: ABdhPJziHVDPeUCi5Utppw8W+tY+4u1RlOrf2iChI9GgDLMJYKK8sUvnaovvgCjgcxX6igQIICAzlg== X-Received: by 2002:a17:90a:6d62:: with SMTP id z89mr3337414pjj.71.1609922792324; Wed, 06 Jan 2021 00:46:32 -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 a31sm1913401pgb.93.2021.01.06.00.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 00:46:31 -0800 (PST) From: Hsin-Yi Wang To: linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH 1/2] arm64: dts: mt8183: config dsi node Date: Wed, 6 Jan 2021 16:46:25 +0800 Message-Id: <20210106084626.2181286-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.29.2.729.g45daf8777d-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210106_034636_000922_F5C3C586 X-CRM114-Status: GOOD ( 11.82 ) 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. Signed-off-by: Hsin-Yi Wang --- .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi index bf2ad1294dd30..4cfb3560e5d11 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 = "boe,tv101wum-nl6"; + 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>; + status = "okay"; + 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>; @@ -547,6 +577,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 = ; From patchwork Wed Jan 6 08:46:26 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: 12001123 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 6FA80C433DB for ; Wed, 6 Jan 2021 08:48:42 +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 2B07823100 for ; Wed, 6 Jan 2021 08:48:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B07823100 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:References:In-Reply-To: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:List-Owner; bh=8EUz+pLWnXL4hG/a0cJia7PhUNvdNd+KI7dzJ4Imr+w=; b=bD3Fi6bCg8i7l9d+TB94W3ahf BDc6r3Yxi1Y70gxw3aHRO2Ez+CuzVCeZkX7fW5UY3qwTLN6pIhe+OOC9zM7gjjFflTmAmKohwXKZD Fs2VZHu2ZLlLO+bqJmlsyzMnuX/VLy0fkkj4c2wWe5sHFqVnPlufCme7PLIr/P8iSlzSlxQOOfXtc X5GTzulY14aN8nX5GMtmMKMZp1qFRU5CYr9sGdkbQHlwM5F3q+OAgOAktdBdmH12zJ2AQUPlDkJsE hyU1w1dCxfE3x5+MJYEihU+cUIexh8hLJxX59i8LbaQIGuex9T0qvjocIQ8McDcFbsnm0yG+lyAt5 1sfkqXGzw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kx4Sp-0004s7-Lo; Wed, 06 Jan 2021 08:46:43 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kx4Sk-0004q1-VM for linux-arm-kernel@lists.infradead.org; Wed, 06 Jan 2021 08:46:40 +0000 Received: by mail-pg1-x534.google.com with SMTP id p18so1753536pgm.11 for ; Wed, 06 Jan 2021 00:46:38 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=XfqO1B4CXfAktEO4OP7WVNtR8GYAt8b6FfkGFkAlye8=; b=JCMGXnw4hpCIMuCmzITNql8JVCFDO4s3SzbgoCqBvoN7yj3DnBQ3D0meZuqxG2QwOZ wZFU1mUN+DVDRxMvYYSscFVup0s3LwEYoukPjusvi4x9mUxcFhh4XyAEvm6ZzZCBEti2 WzVgT2NXayAk80vQaQrdTUwP0qB2NHq9I1qd0= 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=XfqO1B4CXfAktEO4OP7WVNtR8GYAt8b6FfkGFkAlye8=; b=WsENG6ZMd9V5DKSpoPXxpMFST+xQmXJfvSocHvl6391XpKULtyXL4dcWIjNyjX4Nrr VceZjqDzJmymYq0ymDkmfnLqtaCbTXtUjvC+Q7xKFE8K89cz6M/JYP2jGW6y+Pg/4xK7 33Cp8C7sjDudF0K30CE3ry//WHF11oc/FLPGvEyFjSMnbipruihZ0miIvcH5E/Hn6k62 dUWQsbRIYNATzhPIRUBRX+B09+UJ7sQR3UBOj4NPKcoyH+VbPv3O4gv4zCDx4QAJkcvl UXA2wCopRLUZKEF4GL37MKo9vGSDZcnlg4Ww/9GZGQQDs+N8t2a7a5JhF2oByF2PpFXY eTfQ== X-Gm-Message-State: AOAM531EGLfhupqt/wGELsrV+aVkYkj2IVt4sbw4956DHA1Cmy4GzHih W6rDrd4i3qPMMcETfHnYPp97Rvebwx7GIg== X-Google-Smtp-Source: ABdhPJw1OmoRcuh/NoSGaMxrAs1NAtbcRxJlotuwUZxrxa1f3/MMKUQpUnglVc6EVoPR9IDfvNeYYQ== X-Received: by 2002:a63:105e:: with SMTP id 30mr3407174pgq.24.1609922796547; Wed, 06 Jan 2021 00:46:36 -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 a31sm1913401pgb.93.2021.01.06.00.46.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 00:46:36 -0800 (PST) From: Hsin-Yi Wang To: linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH 2/2] arm64: dts: mt8183: Add krane-sku0 board. Date: Wed, 6 Jan 2021 16:46:26 +0800 Message-Id: <20210106084626.2181286-2-hsinyi@chromium.org> X-Mailer: git-send-email 2.29.2.729.g45daf8777d-goog In-Reply-To: <20210106084626.2181286-1-hsinyi@chromium.org> References: <20210106084626.2181286-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210106_034639_194800_D4781006 X-CRM114-Status: GOOD ( 16.35 ) 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 Similar to krane-sku176 but using a different panel source. Signed-off-by: Hsin-Yi Wang --- .../devicetree/bindings/arm/mediatek.yaml | 1 + arch/arm64/boot/dts/mediatek/Makefile | 1 + .../dts/mediatek/mt8183-kukui-krane-sku0.dts | 30 +++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku0.dts diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm/mediatek.yaml index 53f0d4e3ea982..3276f7a2ce672 100644 --- a/Documentation/devicetree/bindings/arm/mediatek.yaml +++ b/Documentation/devicetree/bindings/arm/mediatek.yaml @@ -120,6 +120,7 @@ properties: - const: mediatek,mt8183 - description: Google Krane (Lenovo IdeaPad Duet, 10e,...) items: + - const: google,krane-sku0 - const: google,krane-sku176 - const: google,krane - const: mediatek,mt8183 diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile index 18f7b46c4095b..deba27ab76574 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -13,6 +13,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm-hana.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm-hana-rev7.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-evb.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku0.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku176.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8516-pumpkin.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku0.dts b/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku0.dts new file mode 100644 index 0000000000000..4497291889506 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku0.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2019 Google LLC + * + * Device-tree for Krane sku0. + * + * SKU is a 8-bit value (0x00 == 0): + * - Bits 7..4: Panel ID: 0x0 (AUO) + * - Bits 3..0: SKU ID: 0x0 (default) + */ + +/dts-v1/; +#include "mt8183-kukui-krane.dtsi" + +/ { + model = "MediaTek krane sku0 board"; + compatible = "google,krane-sku0", "google,krane", "mediatek,mt8183"; +}; + +&panel { + status = "okay"; + compatible = "auo,kd101n80-45na"; + 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>; +};