Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp569456lqt; Thu, 6 Jun 2024 11:26:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXe/pASQv3jEoFJh2Mm+8/6yF1FxOIBnRZ0Ka2H6JI2ACM1P0+PRE1fteGwQeNikX4aDoeAc/UksVCDdCguECEZ6sfOe5fMElQ3C9xRNw== X-Google-Smtp-Source: AGHT+IHmD8TJiERrisCTPO98PjE88n+Ee4MFyyppLaf3FTDy8gT6RHRlT4LWLA7YT6iImFVjxPhH X-Received: by 2002:a05:6214:588a:b0:6af:5056:da7a with SMTP id 6a1803df08f44-6b059bd145fmr3228336d6.18.1717698371915; Thu, 06 Jun 2024 11:26:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717698371; cv=pass; d=google.com; s=arc-20160816; b=NGQ6A+WqVLXmbVaQWUXPUDDaWhSD90Q2fHmd2fvIJ2aGOc3m89GkHTadDWzLqBedts xTpeMAK0Vjqe5/DnkPY4CUDFBMuN2y6RIiNOnEKBODkCJZE2E2Oq9vxtZxwUadshMM2J 9A/QUjeGVcmnXGPJLKOWYQ971crba62mIwrQ8/tkCJ3mno/F6LOyzPq6AMoTCfzUPTb+ mQhUeodsq76Mvdv/0th0D+1npr+yY1YkV2mq2eKBf2tqiRHempSKIHjTN3fmE1eocafr LragINXIZ4kXXrSpTPptTiL8uW8maX9c7wYB2dN+9/z8TsqLozORE5vIHu+6Ly6iKXAl nqBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=s3sToYxQqJPAyJSvE1TkIc4PXeXm6SUZvOWRnIDaRUA=; fh=tp8xoY4jevY13kfObJZ4eVu2Vsp8aFupcWEdkBlCPCg=; b=YxxDticBuzufo28qNTzwEvE06pHamgEEcD1B/BxP/Mz6Xs/KEB3aQtcuWF1Jz5kTT8 Piithy3qMrdn+ASN8Ia1cZ2BtOj/gMjlZIECZZNRMQUjHq0ML+PhGdlhBonBMu8YElfY +knhpsLMjQF+ng6yHPbGMqLgWGigpS5Z5aTdpoXXUqWQEyVljml1mz9VS64T6NrOPxF2 MYptKg6c6Wi2VSXWgj9hTRMbKppXrL43HFFXNR+nm65Gxi2jLuudyb6ht41CdwlhN40J 8kS/Ik3KO9vXimdC49c7kD191ZAyEQb7WhbCCsVzvLow+BpZCK+rDQP2iHsx5sTkWA8r aasQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ce2+UUsY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204878-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204878-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b04f9b8a20si20371746d6.371.2024.06.06.11.26.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 11:26:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204878-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ce2+UUsY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204878-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204878-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 917AF1C24B83 for ; Thu, 6 Jun 2024 18:26:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 386191993B0; Thu, 6 Jun 2024 18:26:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ce2+UUsY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 252C3FC02; Thu, 6 Jun 2024 18:26:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717698361; cv=none; b=KlFT+ikozAPlenCU0QD7N28Me478rF+OLRVvgOlOJfX/d91IUJVOg8mh6PXuHAGNANcZ3fqFNYeHAc94gxh5Qh8QsOvjerBnXPkmGq6dxt7Gg40TINw3h8YbtUwigGjawlYkX3zPId3SD7tBp+Lg9C3DJZ3AxJK+iOfEiGWyYSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717698361; c=relaxed/simple; bh=QP1BTZpwU6d9DwGDTSQVDuYczKU85rpooFsQhLZMceE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=M5UIaYFrmmaOFwF4UsspkGhXo0/dB3+ReTJlSvMiP+wPj6daIEZyQB/gDcReCHpsjC4UmR18XxyVE3P3QFFxYQ9BUTHg/h44MjqiZqKqu+Lt5CzNU7/JiaVF8UBOB+rcLYD67tPXgbYTMlOH4G1gHnvnGOIcENaB3sQeTvmnZk4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ce2+UUsY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E31D9C2BD10; Thu, 6 Jun 2024 18:25:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717698360; bh=QP1BTZpwU6d9DwGDTSQVDuYczKU85rpooFsQhLZMceE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ce2+UUsYTSCYC8nN3/vt9IYa/Pa8Clo19dL9ggG93nt3N4mB86j30sbk8VYMnzXqo doL5zkOloCG2p/YMrtQ7jE0a/PyqpDdSHS8eFRkI73kmmut9vh/ujm4pjWiMwbdyFp yElOlInrdxq3lWJuKs7C8+mP96NIyVnqZm04ywLsroI07ZxorJC/Wvni5Vsel7IsGx EWM3+IGiPrzPQ3UhhcUkIumCCtenos/v7iNGtXhHc0LO78iAtrXSyIs/zOetPYx7tE YFq53pd0B3PeoM+oaYBB1vhQ5e5eIA8yTAEIpIr9ZD7nM3R8O14Owb8Q9Sd7mAnIxw gL4TvJUTChMMA== Date: Thu, 6 Jun 2024 13:25:58 -0500 From: Bjorn Andersson To: Neil Armstrong Cc: Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir Zapolskiy Subject: Re: [PATCH v6] arch: arm64: dts: sm8650-hdk: add support for the Display Card overlay Message-ID: References: <20240606-topic-sm8650-upstream-hdk-v6-1-fb034fe864cc@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240606-topic-sm8650-upstream-hdk-v6-1-fb034fe864cc@linaro.org> On Thu, Jun 06, 2024 at 02:50:22PM GMT, Neil Armstrong wrote: > With the SM8650-HDK, a Display Card kit can be connected to provide > a VTDR6130 display with Goodix Berlin Touch controller. > > In order to route the DSI lanes to the connector for the Display > Card kit, a switch must be changed on the board. > > The HDMI nodes are disabled since the DSI lanes are shared with > the DSI to HDMI transceiver. > > Add support for this card as an overlay and apply it it at > build-time to the sm8650-hdk dtb. > > Reviewed-by: Vladimir Zapolskiy > Tested-by: Vladimir Zapolskiy > Reviewed-by: Konrad Dybcio > Signed-off-by: Neil Armstrong Please double check your subject prefix to match other similar files in the future. Thanks, Bjorn > --- > The SM8650-HDK is an embedded development platforms for the > Snapdragon 8 Gen 3 SoC aka SM8650, with the following features: > - Qualcomm SM8650 SoC > - 16GiB On-board LPDDR5 > - On-board WiFi 7 + Bluetooth 5.3/BLE > - On-board UFS4.0 > - M.2 Key B+M Gen3x2 PCIe Slot > - HDMI Output > - USB-C Connector with DP Almode & Audio Accessory mode > - Micro-SDCard Slot > - Audio Jack with Playback and Microphone > - 2 On-board Analog microphones > - 2 On-board Speakers > - 96Boards Compatible Low-Speed and High-Speed connectors [1] > - For Camera, Sensors and external Display cards > - Compatible with the Linaro Debug board [2] > - SIM Slot for Modem > - Debug connectors > - 6x On-Board LEDs > > An optional Display Card kit can be connected on top, > an overlay is handled to add support for the DSI Display > and Touch Controller. > > Product Page: [3] > > Dependencies: None > > [1] https://www.96boards.org/specifications/ > [2] https://git.codelinaro.org/linaro/qcomlt/debugboard > [3] https://www.lantronix.com/products/snapdragon-8-gen-3-mobile-hardware-development-kit/ > > To: Bjorn Andersson > To: Konrad Dybcio > To: Rob Herring > To: Krzysztof Kozlowski > To: Conor Dooley > Cc: linux-arm-msm@vger.kernel.org > Cc: devicetree@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Neil Armstrong > > Changes in v6: > - added comment explaining why we disable nodes > - removed useles comment on why we add the port/endpoint/address/size-cells > - added Konrad's review > - Link to v5: https://lore.kernel.org/r/20240606-topic-sm8650-upstream-hdk-v5-1-5d878f3047e3@linaro.org > > Changes in v5: > - Resend the display card overlay now the I2C crash is fixed > - Link to v4: https://lore.kernel.org/r/20240422-topic-sm8650-upstream-hdk-v4-0-b33993eaa2e8@linaro.org > > Changes in v4: > - Rebased on next and fixed the apply failures > - Link to v3: https://lore.kernel.org/r/20240325-topic-sm8650-upstream-hdk-v3-0-4f365d7932af@linaro.org > > Changes in v3: > - fixed regulator node name to fix ordering > - deleted pcie_1_phy_aux clock > - removed undeeded mdss_mdp status okay > - collected revied & tested tags > - Link to v2: https://lore.kernel.org/r/20240318-topic-sm8650-upstream-hdk-v2-0-b63a5d45a784@linaro.org > > Changes in v2: > - Fixed commit messages with links, and recently added product page URL > - Swapped i2c3/i2c6 nodes > - Moved pcie_1_phy_aux_clk under pcie1_phy > - Removed duplicate mdp_vsync pinctrl state > - Collected review & tested tags > - Link to v1: https://lore.kernel.org/r/20240223-topic-sm8650-upstream-hdk-v1-0-ccca645cd901@linaro.org > --- > arch/arm64/boot/dts/qcom/Makefile | 4 + > .../boot/dts/qcom/sm8650-hdk-display-card.dtso | 141 +++++++++++++++++++++ > 2 files changed, 145 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index 56992fc3fc59..0c1cebd16649 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -250,6 +250,10 @@ dtb-$(CONFIG_ARCH_QCOM) += sm8550-mtp.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8550-qrd.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8550-samsung-q5q.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8550-sony-xperia-yodo-pdx234.dtb > + > +sm8650-hdk-display-card-dtbs := sm8650-hdk.dtb sm8650-hdk-display-card.dtbo > + > +dtb-$(CONFIG_ARCH_QCOM) += sm8650-hdk-display-card.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8650-hdk.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8650-mtp.dtb > dtb-$(CONFIG_ARCH_QCOM) += sm8650-qrd.dtb > diff --git a/arch/arm64/boot/dts/qcom/sm8650-hdk-display-card.dtso b/arch/arm64/boot/dts/qcom/sm8650-hdk-display-card.dtso > new file mode 100644 > index 000000000000..cb102535838d > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sm8650-hdk-display-card.dtso > @@ -0,0 +1,141 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2024, Linaro Limited > + */ > + > +/* > + * Display Card kit overlay > + * This requires S5702 Switch 7 to be turned to OFF to route DSI0 to the display panel > + */ > + > +#include > +#include > + > +/dts-v1/; > +/plugin/; > + > +/* Disable HDMI bridge related nodes (mutually exclusive with the display card) */ > + > +&i2c6 { > + status = "disabled"; > +}; > + > +<9611_1v2 { > + status = "disabled"; > +}; > + > +<9611_3v3 { > + status = "disabled"; > +}; > + > +&vreg_bob_3v3 { > + status = "disabled"; > +}; > + > +<9611_codec { > + status = "disabled"; > +}; > + > +&mdss_dsi0 { > + #address-cells = <1>; > + #size-cells = <0>; > + > + panel@0 { > + compatible = "visionox,vtdr6130"; > + reg = <0>; > + > + reset-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>; > + > + vddio-supply = <&vreg_l12b_1p8>; > + vci-supply = <&vreg_l13b_3p0>; > + vdd-supply = <&vreg_l11b_1p2>; > + > + pinctrl-0 = <&disp0_reset_n_active>, <&mdp_vsync>; > + pinctrl-1 = <&disp0_reset_n_suspend>, <&mdp_vsync>; > + pinctrl-names = "default", "sleep"; > + > + port { > + panel0_in: endpoint { > + remote-endpoint = <&mdss_dsi0_out>; > + }; > + }; > + }; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@1 { > + reg = <1>; > + > + mdss_dsi0_out: endpoint { > + remote-endpoint = <&panel0_in>; > + }; > + }; > + }; > +}; > + > +&spi4 { > + #address-cells = <1>; > + #size-cells = <0>; > + > + status = "okay"; > + > + touchscreen@0 { > + compatible = "goodix,gt9916"; > + reg = <0>; > + > + interrupt-parent = <&tlmm>; > + interrupts = <162 IRQ_TYPE_LEVEL_LOW>; > + > + reset-gpios = <&tlmm 161 GPIO_ACTIVE_LOW>; > + > + avdd-supply = <&vreg_l14b_3p2>; > + > + spi-max-frequency = <1000000>; > + > + touchscreen-size-x = <1080>; > + touchscreen-size-y = <2400>; > + > + pinctrl-0 = <&ts_irq>, <&ts_reset>; > + pinctrl-names = "default"; > + }; > +}; > + > +&tlmm { > + disp0_reset_n_active: disp0-reset-n-active-state { > + pins = "gpio133"; > + function = "gpio"; > + drive-strength = <8>; > + bias-disable; > + }; > + > + disp0_reset_n_suspend: disp0-reset-n-suspend-state { > + pins = "gpio133"; > + function = "gpio"; > + drive-strength = <2>; > + bias-pull-down; > + }; > + > + mdp_vsync: mdp-vsync-state { > + pins = "gpio86"; > + function = "mdp_vsync"; > + drive-strength = <2>; > + bias-pull-down; > + }; > + > + ts_irq: ts-irq-state { > + pins = "gpio161"; > + function = "gpio"; > + drive-strength = <8>; > + bias-pull-up; > + output-disable; > + }; > + > + ts_reset: ts-reset-state { > + pins = "gpio162"; > + function = "gpio"; > + drive-strength = <8>; > + bias-pull-up; > + }; > +}; > > --- > base-commit: 234cb065ad82915ff8d06ce01e01c3e640b674d2 > change-id: 20240223-topic-sm8650-upstream-hdk-e21cfd6f1de8 > > Best regards, > -- > Neil Armstrong > >