From nobody Sun Dec 14 05:52:05 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54BE2C4167B for ; Thu, 9 Nov 2023 09:01:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234380AbjKIJBE (ORCPT ); Thu, 9 Nov 2023 04:01:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234183AbjKIJAh (ORCPT ); Thu, 9 Nov 2023 04:00:37 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71D1F30E0 for ; Thu, 9 Nov 2023 01:00:29 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40850b244beso3956245e9.2 for ; Thu, 09 Nov 2023 01:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699520427; x=1700125227; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8oTd5W7j5AQVAM1KswlxlUS9UNv/MwhkvP27dPDkrG0=; b=rsvcC1LtXpBVJXJ0rTR/DR1Obcrq+0ZS1TWmT5A+zpPpJ3myu4ecW0WR7ukYO1vSeV K5DalMHx4eUyVDUfw5gcoIXqjP3Lo8CJVtEiG40WbAtK/5UhQDQe3Eg00hL0P91Y6wMM Y8165LmrOVkmKNDYf3DRme1BHhqa5woz1N1D4gpRkc44iW+E+zVhp+in8XhEH7ThdEiY x8tPPVHX1A+GfG9cva5c4L9G8D5Do8Cedf7TRnT5gb76sdPJPyz2vJB0rZWt725XIUxf x8hD5tltqulbzrKWPKjUsqdRGlvcSr+ncHwkJPLQ+pLrWqZdaAcoR68RwgBtwzY5tljs h3qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699520427; x=1700125227; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8oTd5W7j5AQVAM1KswlxlUS9UNv/MwhkvP27dPDkrG0=; b=vW+hAdzPLWfSIIUjR9VjGVCwOGzgS1yoRZilEoNt7h+bwuaB+XmZjlhzJt7i50VgSO O3JQ35IIy0pgxT2NGF8DRSLUt/b28yIXLfFRn21gK5DHBVUHBgQFV9/eYJurLuEpEnWU o2uNFQgyTQMyBkohAVDLmqsvsVIdD0gwVot5qRgIAYq8WjSRPWKyt/H5X6v1N4S80nMT xsvGEBHkKj1ecmtlXVnQI2u+lmZiH4eqUtgU3PUslivfjkstpVNbiuLKyZ98Km6U10Dc 8eBEP+f51kR7MUvYjxoVPt5cVF2FUaB8GUY/fjO45gRho+yv6Eh0CeLcfSLENtRTOW8U jABw== X-Gm-Message-State: AOJu0Yw0N9Ubr3+LgZo2Zp4HR+ewSW1Wpzcw7QFXKoUxYpLO8iAihg+N yIximq0T/5pBUtz9FuHMV9N5cQ== X-Google-Smtp-Source: AGHT+IF0xP5+yIkmAq8ahEhbWDMWN7ty20hNDaDH1WsPO+9Kqo9njJ70NzUsnTYmAyzud0azPDvLIA== X-Received: by 2002:a05:600c:20d:b0:409:5a92:471d with SMTP id 13-20020a05600c020d00b004095a92471dmr4161479wmi.22.1699520427462; Thu, 09 Nov 2023 01:00:27 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id ay36-20020a05600c1e2400b0040472ad9a3dsm1428484wmb.14.2023.11.09.01.00.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 01:00:27 -0800 (PST) From: Neil Armstrong Date: Thu, 09 Nov 2023 10:00:12 +0100 Subject: [PATCH v8 11/12] DONOTMERGE: arm64: meson: khadas-vim3l: add DSI panel MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20231109-amlogic-v6-4-upstream-dsi-ccf-vim3-v8-11-81e4aeeda193@linaro.org> References: <20231109-amlogic-v6-4-upstream-dsi-ccf-vim3-v8-0-81e4aeeda193@linaro.org> In-Reply-To: <20231109-amlogic-v6-4-upstream-dsi-ccf-vim3-v8-0-81e4aeeda193@linaro.org> To: Jerome Brunet , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Martin Blumenstingl , David Airlie , Daniel Vetter , Jagan Teki , Nicolas Belin Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3778; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=vVnkVglKsbgZynNLE29purYGyqaY5Zp+VaoRvt80IUM=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlTJ+atadrtQqL4L7bB5Ny34nlZBRjSTy5m64HnPV1 2cDnMoyJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZUyfmgAKCRB33NvayMhJ0ZYID/ 0eddIXO0SwB4RK3/Cc9ULGqKnboAc6ffNSD+5548GcNIdakSOsb3os2/ZEKvQh7PxtccTpwHIPGQ/j EXHxheqM0yVmy6KZrdMAZZB8Ft5zZNQsmQg87c90fOFq9fy64awo4odlqLjDD+5IugUEAC4CEK9GiG R0hRAMYyHqHAI594nr5JKhdhHb4eRwWcClo16qPyXbM1F0fXLe6wMisVCnsr3vqo2/lQF8AsTPP8Za ihbIw2DIhcSCwb47rFElxlCVA3vhvqQaocMge7Ydq4WWYSC/OgsFigYS4OQoipLc+EghxZ38T+TM0u jEEijZZiARf0EaFfFEvQsJQDct7hvlfoszKwC9hW7MAafHjulVEa/sfdeKrVoIob1Exb2eoz2ML+XC eZFSZ0OdFk+xAfXYFIx/oMGnDwQw8dHgoJ29JF0JuQjcRwt4ZzPa4a1Dgf5hhbR39rn39nIWkfNp2f lcPDKqdgl1Kpq1d4/2GMHwC50rpTlwypKgkYjE0e08ILe1gDtYQ/yj00mtc0MtymMAUsK1hfAwDjCH PZnujc0b/kUgxVIvSaR3DWrvYD6dlzlCV5kaz7GTHWnm/V5iXfNV7QVPyi4Sao1V1B9B89+4qsOPXM Gs+HVyWQIQLzkmGHZZGzabIZomGa23pp4TnzjYlZwIdA0bVQuusP0KHpVXdg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This add nodes to support the Khadas TS050 panel on the Khadas VIM3 & VIM3L boards. Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi | 2 +- arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 74 ++++++++++++++++++= ++++ .../boot/dts/amlogic/meson-sm1-khadas-vim3l.dts | 2 +- 3 files changed, 76 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi b/arch= /arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi index 16dd409051b4..81c3057143b4 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-khadas-vim3.dtsi @@ -98,7 +98,7 @@ &pwm_ab { }; =20 &pwm_AO_cd { - pinctrl-0 =3D <&pwm_ao_d_e_pins>; + pinctrl-0 =3D <&pwm_ao_c_6_pins>, <&pwm_ao_d_e_pins>; pinctrl-names =3D "default"; clocks =3D <&xtal>; clock-names =3D "clkin1"; diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm6= 4/boot/dts/amlogic/meson-khadas-vim3.dtsi index 514a6dd4b124..aafc37863f2e 100644 --- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi @@ -40,6 +40,14 @@ button-function { }; }; =20 + panel_backlight: backlight { + compatible =3D "pwm-backlight"; + pwms =3D <&pwm_AO_cd 0 25000 0>; + brightness-levels =3D <0 255>; + num-interpolated-steps =3D <255>; + default-brightness-level =3D <200>; + }; + leds { compatible =3D "gpio-leds"; =20 @@ -358,6 +366,23 @@ rtc: rtc@51 { }; }; =20 +&i2c3 { + status =3D "okay"; + pinctrl-0 =3D <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>; + pinctrl-names =3D "default"; + + touch-controller@38 { + compatible =3D "edt,edt-ft5206"; + reg =3D <0x38>; + interrupt-parent =3D <&gpio_intc>; + interrupts =3D <66 IRQ_TYPE_EDGE_FALLING>; /* GPIOA_5 */ + reset-gpios =3D <&gpio_expander 6 GPIO_ACTIVE_LOW>; + touchscreen-size-x =3D <1080>; + touchscreen-size-y =3D <1920>; + status =3D "okay"; + }; +}; + &ir { status =3D "okay"; pinctrl-0 =3D <&remote_input_ao_pins>; @@ -365,6 +390,55 @@ &ir { linux,rc-map-name =3D "rc-khadas"; }; =20 +&mipi_dsi { + status =3D "okay"; + + assigned-clocks =3D <&clkc CLKID_GP0_PLL>, + <&clkc CLKID_MIPI_DSI_PXCLK_SEL>, + <&clkc CLKID_MIPI_DSI_PXCLK>, + <&clkc CLKID_CTS_ENCL_SEL>, + <&clkc CLKID_VCLK2_SEL>; + assigned-clock-parents =3D <0>, + <&clkc CLKID_GP0_PLL>, + <0>, + <&clkc CLKID_VCLK2_DIV1>, + <&clkc CLKID_GP0_PLL>; + assigned-clock-rates =3D <960000000>, + <0>, + <960000000>, + <0>, + <0>; + + panel@0 { + compatible =3D "khadas,ts050"; + reset-gpios =3D <&gpio_expander 0 GPIO_ACTIVE_LOW>; + enable-gpios =3D <&gpio_expander 1 GPIO_ACTIVE_HIGH>; + power-supply =3D <&vcc_3v3>; + backlight =3D <&panel_backlight>; + reg =3D <0>; + + port { + mipi_in_panel: endpoint { + remote-endpoint =3D <&mipi_out_panel>; + }; + }; + }; +}; + +&mipi_analog_dphy { + status =3D "okay"; +}; + +&mipi_dphy { + status =3D "okay"; +}; + +&mipi_dsi_panel_port { + mipi_out_panel: endpoint { + remote-endpoint =3D <&mipi_in_panel>; + }; +}; + &pcie { reset-gpios =3D <&gpio GPIOA_8 GPIO_ACTIVE_LOW>; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts b/arch/= arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts index 9c0b544e2209..cb52a55ab70a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts @@ -76,7 +76,7 @@ &cpu3 { }; =20 &pwm_AO_cd { - pinctrl-0 =3D <&pwm_ao_d_e_pins>; + pinctrl-0 =3D <&pwm_ao_c_6_pins>, <&pwm_ao_d_e_pins>; pinctrl-names =3D "default"; clocks =3D <&xtal>; clock-names =3D "clkin1"; --=20 2.34.1