From patchwork Mon Jun 24 01:30:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13708822 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (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 5CCA51FBA for ; Mon, 24 Jun 2024 01:30:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719192643; cv=none; b=HooSY3GQ2mgxwspjfHkfQAIdd2UHac0xbY4AJwpWOEbwoW1c9JtmQTVVV/+TStAnxI/btnLq9+WAJV0LhqSYbgZBySFP4neXMrNyl2LZfyfoT53oTFFNyQkiNAlYStRCp7362k8fQJsqj7PrexIs1Z8n2igRXCeForwaX/aTQlI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719192643; c=relaxed/simple; bh=3wuuyZRn04C2HmOsJ2tCtoWRp50+LXh8JBT0OpCN7Zg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QPz57QTPlvUofTWt2DvbjamLWKhczS+9VR1ElZmu1OBndVRTwhGSZqxqLLCh8AkCnS9RRVl2z3bU0veG5/Ahk4Q1dVC4vo21hjrLs5uasEVCYmeNXPxFtgFUX030Ox45M5Mey60QlTno/oS+XntQzTk2D0Ei+JEBhcK9vlISkQs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=MzbWX5RW; arc=none smtp.client-ip=95.215.58.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="MzbWX5RW" X-Envelope-To: dmitry.torokhov@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1719192639; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vSIdYkvNGFlVlsQy9M50XkydHh2OwcYsy8NxF0doad4=; b=MzbWX5RW5j6CKndPqvrMh98kjYayvn+fUOLaGW7KwmfZKhCyKxSaQSe9ZddyUG5AtdQ6Qg vTJxt2mH/2mO5cj/PvsLezFCDyPe6gdBwl9k2N1cWBPo/BXl8+amrpH5+5MRUVCbOuHh4k P70aBdfepSZNjLFoSsqO5pTnndnac7BiyGywSSCgUeRgnocLI3a7cWT/cjPDoHHHAHodUn c8MNYG6Dh8AtR2d8IVqlvs8K9WJ9EaGM9NTMXjYI4+BsFpZ3/88UZreOo9EVpq+iJHJak2 UGjP2XJimhIiU43EGz+Y2MFTb3Fh+OruBA7i84Iq+ZHKPdmpItZR7ym4VqH3uA== X-Envelope-To: dri-devel@lists.freedesktop.org X-Envelope-To: quic_jesszhan@quicinc.com X-Envelope-To: linux-input@vger.kernel.org X-Envelope-To: rydberg@bitmath.org X-Envelope-To: konrad.dybcio@linaro.org X-Envelope-To: andersson@kernel.org X-Envelope-To: linux-arm-msm@vger.kernel.org X-Envelope-To: caleb@postmarketos.org X-Envelope-To: ~postmarketos/upstreaming@lists.sr.ht X-Envelope-To: tzimmermann@suse.de X-Envelope-To: maarten.lankhorst@linux.intel.com X-Envelope-To: airlied@gmail.com X-Envelope-To: krzk+dt@kernel.org X-Envelope-To: devicetree@vger.kernel.org X-Envelope-To: conor+dt@kernel.org X-Envelope-To: daniel@ffwll.ch X-Envelope-To: robh@kernel.org X-Envelope-To: mripard@kernel.org X-Envelope-To: neil.armstrong@linaro.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Caleb Connolly Date: Mon, 24 Jun 2024 03:30:25 +0200 Subject: [PATCH 1/7] dt-bindings: panel: document Samsung AMB655X Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240624-oneplus8-v1-1-388eecf2dff7@postmarketos.org> References: <20240624-oneplus8-v1-0-388eecf2dff7@postmarketos.org> In-Reply-To: <20240624-oneplus8-v1-0-388eecf2dff7@postmarketos.org> To: Caleb Connolly , Neil Armstrong , Jessica Zhang , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Bjorn Andersson , Konrad Dybcio , Henrik Rydberg Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht X-Developer-Signature: v=1; a=openpgp-sha256; l=1867; i=caleb@postmarketos.org; h=from:subject:message-id; bh=3wuuyZRn04C2HmOsJ2tCtoWRp50+LXh8JBT0OpCN7Zg=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmeMw7FEWLxM509rVGpvrS5mGgN0xetJGbNC5Jj BKW2FZy5pGJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZnjMOwAKCRAFgzErGV9k tlu2EACg1fWl6ROkJUe1T1OBQQaGU0Sz0jMounze9Gtzs+weigxjs1pNrT0zVn+E5hn4cybm/RV RMp0CBCTMR3XiJvwL8KMPEwr5l80aAL/lXnMTMiFbN6h7QWV6eT9muXJlhUbHMNMwIT1l9m18NB aqBW/1y6Mowyw9+vIGDAUfyAwzuDuVPkZKnJmhRfJLdT8pWt+9sGWv7fFY9LCGZPFKjKVaqTqf3 i3lmGZFa8xmFd2PFlSbEGNGLa6HwKDdiJd52fTieHeyR8eXKyyptbDghZi1J7qYU34+j7wpZ8NU qvMnndnqBubCoCna6e9otVHCJGn4XeNre7/rwIKNDP8Hv9X/SDKQE3f49etJJmm328nLw2mgBfE fktB0LtMwWuq+Ymk+vBxdxTOt8x6jSzeTlfVMbNfLSLEG9tZTL052VtwLwXNS09oF+WPU0hhKMt /AvSpOSpwS+CEE1mYJKAMgpBJ8f825AAGmEPIiOA5a88EY9UiViFtQ1Ymu7dVQO3IQAE/+dCVL5 06YO6+PDJfA5coLfXxKU1xRsdQyOn0YXFCZWR1L4bhGQzqqNULpnJvGMy/uM4sJfb10l202T9NP 0EDyrjigzWJpwhUrlTvUFGiJNCQg0K3KGTW3S0/F40QlA8ptmogVqGTcsPF2N70J0iXS2VlKJkd SMDswny1nRl1YTg== X-Developer-Key: i=caleb@postmarketos.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-Migadu-Flow: FLOW_OUT Describe the Samsung AMB655X panel. It has three supplies. Signed-off-by: Caleb Connolly --- .../bindings/display/panel/samsung,amb655x.yaml | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/samsung,amb655x.yaml b/Documentation/devicetree/bindings/display/panel/samsung,amb655x.yaml new file mode 100644 index 000000000000..eb987d022a0d --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/samsung,amb655x.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,amb655x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung AMB655X 1080x2400 120hz AMOLED panel + +maintainers: + - Caleb Connolly + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: samsung,amb655x + + reg: + maxItems: 1 + + reset-gpios: + description: reset gpio, must be GPIO_ACTIVE_LOW + vddio-supply: true + vdd-supply: true + avdd-supply: true + enable-gpios: true + port: true + +required: + - compatible + - reg + - vdd-supply + - avdd-supply + - vddio-supply + +additionalProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + panel@0 { + compatible = "samsung,ams495qa01"; + reg = <0>; + reset-gpios = <&gpio4 0 GPIO_ACTIVE_LOW>; + vdd-supply = <&vcc_3v3>; + + port { + mipi_in_panel: endpoint { + remote-endpoint = <&mipi_out_panel>; + }; + }; + }; + }; + +... From patchwork Mon Jun 24 01:30:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13708823 Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (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 E65F84A33 for ; Mon, 24 Jun 2024 01:30:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719192645; cv=none; b=XGO9RROXTYk1YOg+xg7uA20zPlrVuS8AWTvlvAgvD2nvQcMQZ6JsZpoAsxSXU2J4t3Rrei1RCGyp+YBJVdnO+Q7FhpzFfL+6GAVMgUGThEwlKuz4pC4a4ZIS26tOXZxwku0irzngsyloMU5wWLJR9VmBJb/sZX1nLIo0eTMchAA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719192645; c=relaxed/simple; bh=FOWrKXtrZ1kpy4dz7GX61K2da254/sYIEufoJ0WQJ9I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NGdmJWRtNpqD7qyKq7Nx7nYXpS/rXhMpDvvmYQqI4Bnab1+bKmFftFhehIbJOgZxjDUt9Xbr73umHScAvJAfAGw4mjvAOuTFWAi+TSSEgL9WNAAZvrx0IArpDjRPA1wIGkKJDbOSIVYAwlN4C+GDFGHtrnkvHkveSr0FiG7Ov2A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=e8YCdGDZ; arc=none smtp.client-ip=95.215.58.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="e8YCdGDZ" X-Envelope-To: dmitry.torokhov@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1719192641; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7PpRdaHq1JaE7u5F5bx43UDOXFu9OjUugTskbkF5xEU=; b=e8YCdGDZvsnhygJXihTsD/iUoUW8ZRgoMskrgsBjOvIe+CAa2FTZvl64tZEMa1QBS0wML1 1QrmdygVyKC97LMKQ8pf8OH17FeOANYXbw6g4n0Ib+Tog1S4hC4SpF4qi3BUQDx2Li/WU4 44vs0dS7wsSigJuejvx559B4K7ZXi+RxT4O+LSxNf4EUiXkpqI61tm/NFfxgL0GEDCsa0o 1q6UT4vk7O/Nx89WEyv7fwrOAi8k7H67/tx0Mfd5fPgZx5K8a3RwFUjeVb3A9XzzYaJdmK hSheSl3cjviujhagG4kOQeTxzOpgzgPZwTzHrsri0SAtfXzJkc2AAec/Xje4fQ== X-Envelope-To: dri-devel@lists.freedesktop.org X-Envelope-To: quic_jesszhan@quicinc.com X-Envelope-To: linux-input@vger.kernel.org X-Envelope-To: rydberg@bitmath.org X-Envelope-To: konrad.dybcio@linaro.org X-Envelope-To: andersson@kernel.org X-Envelope-To: linux-arm-msm@vger.kernel.org X-Envelope-To: caleb@postmarketos.org X-Envelope-To: ~postmarketos/upstreaming@lists.sr.ht X-Envelope-To: tzimmermann@suse.de X-Envelope-To: maarten.lankhorst@linux.intel.com X-Envelope-To: airlied@gmail.com X-Envelope-To: krzk+dt@kernel.org X-Envelope-To: devicetree@vger.kernel.org X-Envelope-To: conor+dt@kernel.org X-Envelope-To: daniel@ffwll.ch X-Envelope-To: robh@kernel.org X-Envelope-To: mripard@kernel.org X-Envelope-To: neil.armstrong@linaro.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Caleb Connolly Date: Mon, 24 Jun 2024 03:30:26 +0200 Subject: [PATCH 2/7] dt-bindings: input: touchscreen: document synaptics TCM oncell Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240624-oneplus8-v1-2-388eecf2dff7@postmarketos.org> References: <20240624-oneplus8-v1-0-388eecf2dff7@postmarketos.org> In-Reply-To: <20240624-oneplus8-v1-0-388eecf2dff7@postmarketos.org> To: Caleb Connolly , Neil Armstrong , Jessica Zhang , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Bjorn Andersson , Konrad Dybcio , Henrik Rydberg Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht X-Developer-Signature: v=1; a=openpgp-sha256; l=2037; i=caleb@postmarketos.org; h=from:subject:message-id; bh=FOWrKXtrZ1kpy4dz7GX61K2da254/sYIEufoJ0WQJ9I=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmeMw7/gCGNKCconD+Ch/eeHk9U7YKZTIuov9P0 IenYfS5YsmJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZnjMOwAKCRAFgzErGV9k toXGD/oD7VBrteDb1LgNTTNj3MaUNDoalxsYU5g92Dzsky2EPzTJMVcC5MH0mACHnX8R9wBa9aS kD3dhj+RSeiPAm0sutRUfUMyTvz+pD5YVG3ivBG8kJjb1T+sDG8TkW9yhITM1H1HblN3bJiaEI6 +NsX1w3amZEz+9vc+6CrEUugsEzPiEhyOjDtku6eIy4RufFj8Q+y5VX8Rxi2YkgVskr1hOHtB0/ HN8TwF87h48xqzDDIToxSQ9t6jCefLi8dttk3pA8NyAxa+U3TQMx7Dq6A4UuDxJOJFEaOr66Y+t FRsTOEzXUCJ48HP9Ask33KP2OZQV2czshsxTufClb/Uxgn3zq1Vq4mGJe7ezOtoviGLQ9IlWh+m oLJQd7pvf8R30pJ7ejWgERnGqQ7EtCgx0lNWUlgqtov1cZVDZVy4wv3SOx6Ln+gX2jUlhLrXsAD Ck+aGAIbv64xo7kKV74F2YnWFWRGdwFTQaxKlH0foj1p7n57Tu8KLB5o/A2+vQoMr/57gpyuiZm Z48LNN7OC+SGJxfcWhrx/BI8ASxw23RhXKeQh/wOkAtE3updx6vHA9URsgXL7vTUp64SY7ncIef IRygDB3Csc1EweC6hOfyhvh98ZQPc9lKqxQB92r4KUGAa/jG/XQxYQ7xH3xA2cT6AmgesLdUMw+ Rm8zra31dFsqeww== X-Developer-Key: i=caleb@postmarketos.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-Migadu-Flow: FLOW_OUT Document the Synaptics TCM oncell series of touchscreens, starting with the s3908. Signed-off-by: Caleb Connolly --- .../input/touchscreen/syna,tcm-oncell.yaml | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/syna,tcm-oncell.yaml b/Documentation/devicetree/bindings/input/touchscreen/syna,tcm-oncell.yaml new file mode 100644 index 000000000000..1795df584987 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/syna,tcm-oncell.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/syna,s3908.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synaptics TCM Oncell i2c touchscreen + +maintainers: + - Caleb Connolly + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - syna,s3908 + + reg: + maxItems: 1 + + interrupts-extended: + maxItems: 1 + + reset-gpios: + maxItems: 1 + description: Reset GPIO the chip is connected to. + + vdd-supply: + description: a phandle for the regulator supplying 3V power. + + vcc-supply: + description: a phandle for the regulator supplying IO power. + +additionalProperties: false + +required: + - compatible + - reg + - interrupts-extended + - reset-gpios + - vdd-supply + - vcc-supply + +examples: + - | + #include + #include + + i2c { + clock-frequency = <400000>; + status = "okay"; + + touchscreen@4b { + compatible = "syna,s3908"; + reg = <0x4B>; + + interrupts-extended = <&tlmm 39 0x2008>; + + reset-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>; + + vdd-supply = <&vreg_l13a_ts_3p0>; + vcc-supply = <&vreg_l1c_1p8>; + }; + }; From patchwork Mon Jun 24 01:30:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13708824 Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (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 063A34414 for ; Mon, 24 Jun 2024 01:30:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719192646; cv=none; b=l1LPbNO34gxdqslEEVqD5DxJsAgnT9Ujgqse9Zb3+OtJST/6Ny5lrJnNt/4TVnpzphMkkplPfYuA1ox4/Ccc5PuuPnnn2gXepj0JzHim394jpI1Z+Tj7Ag3HrHR6csrxglc/PA5ZQSmLxh/Se+6+RA/faJ76tblRKJ0Fpr/CyZ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719192646; c=relaxed/simple; bh=UxKVakKxEAyM082N2df+yNf4iORRnEsaiSraRJGPrgA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cxuXBTFD5qAWeBM65dKix5k+sfihDq92R5MEyjNyxmZIPW8IgLBi/eQ0YwqBCpr/u3rr4AxW/Feja/W1xjQNptGqGwsCAUSXlAPfJ9C6yY9svzWTWV60hmtmB5IEkonxavEIxajvsll4CU6QUo9YVbJEhAqbcBzyqIPAXA1oX0w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=T1Jm7rW+; arc=none smtp.client-ip=95.215.58.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="T1Jm7rW+" X-Envelope-To: dmitry.torokhov@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1719192643; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yZii6mgpmc1LquyxAX4rsoJgM0vOMZuCuesI8mpxgeU=; b=T1Jm7rW+iqAQz2L0hhVVTQCWFIBKaPxVc8wL8rR6KRPlbu4nqfEX6jPE1Y5fadLgV9i6n2 bp2pNwpUw0oY783JUoXL/NBkGsuA/2RO8EZCC2v0OwyNFiwDlPcjkczxHPNC+1vW9n6lbj YQ0Z9nONJ725C95ugo0l6V6MRuvRaDzWWN1n/2PjAHxR9oiXl2yea8F2vEwTs4y2wvqTnK iCROq4sOARNbffO0K2xfzE4zunDwjx7+EG25Qm7VAyCv1lTw85xvfpP0L40DASZtFY0Ulr 1Nvnj1T1HIpShQ4EmpQOxWJMqR0ShtfXTwtTwedfzcVkDp7w+j4F7Xc96Raqfw== X-Envelope-To: dri-devel@lists.freedesktop.org X-Envelope-To: quic_jesszhan@quicinc.com X-Envelope-To: linux-input@vger.kernel.org X-Envelope-To: rydberg@bitmath.org X-Envelope-To: konrad.dybcio@linaro.org X-Envelope-To: andersson@kernel.org X-Envelope-To: linux-arm-msm@vger.kernel.org X-Envelope-To: caleb@postmarketos.org X-Envelope-To: ~postmarketos/upstreaming@lists.sr.ht X-Envelope-To: tzimmermann@suse.de X-Envelope-To: maarten.lankhorst@linux.intel.com X-Envelope-To: airlied@gmail.com X-Envelope-To: krzk+dt@kernel.org X-Envelope-To: devicetree@vger.kernel.org X-Envelope-To: conor+dt@kernel.org X-Envelope-To: daniel@ffwll.ch X-Envelope-To: robh@kernel.org X-Envelope-To: mripard@kernel.org X-Envelope-To: neil.armstrong@linaro.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Caleb Connolly Date: Mon, 24 Jun 2024 03:30:27 +0200 Subject: [PATCH 3/7] dt-bindings: arm: qcom: add OnePlus 8 series Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240624-oneplus8-v1-3-388eecf2dff7@postmarketos.org> References: <20240624-oneplus8-v1-0-388eecf2dff7@postmarketos.org> In-Reply-To: <20240624-oneplus8-v1-0-388eecf2dff7@postmarketos.org> To: Caleb Connolly , Neil Armstrong , Jessica Zhang , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Bjorn Andersson , Konrad Dybcio , Henrik Rydberg Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht X-Developer-Signature: v=1; a=openpgp-sha256; l=898; i=caleb@postmarketos.org; h=from:subject:message-id; bh=UxKVakKxEAyM082N2df+yNf4iORRnEsaiSraRJGPrgA=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmeMw7UDDRStSoEQLqgLWF9fWRm/RqfqXCEZCS/ 65Iv2zY3/OJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZnjMOwAKCRAFgzErGV9k ts8jD/9kEvQiv74tB2glQOGOVLIwRwOVZEEb8/aI1DbiThGGhQEnXnRyLSaE1EVEErLsCxmT7py Rww8n40lwPwWsuooGAXlqIezRQC0beHckT4/rXCgB2YARXikLzCvR5tZ+nwtBhFXuGyBajv967r Jmk+P9xosfJigJt4rId1c+ABYraEESmuSEc7+KkXwe2TIdy0go95sn57iD7kdqgn3/DiK6fN25u rhwukGwyYkNPNSQhRy3cI2xavvoZyWxtpoKu2WbTsQhT1a75c7jDYj6/LRM635uDiW4ovXON/wL aJt5gxT+ds9xyhm2ivG3WnFwRetLUUYwp5nGmrh3OgvNl6VN3eI4i3LjfLrw0DY4+yzI4dZt+tm 0tOfA26MqkcTd5IFhBO+5Mb5tpQAtqlIg/drOCwxLtyen4bTIFU2SDY/WCZh9tNeRvzv9+1A0D/ YjmWdG64oAqY82IiDAMfdQr5s2xWqBCr7/H7exlsB2zdzniEMWob6d5c7BQNnDf3amBzmg4tJYR 22I9nUQE1cHuQ+qhInGzc5DQjsbo4ZPcMqsUyzJhQteVmBKKXTe4XW2dkzB3MjE/gXpkmZzTTm9 +kATBYgpDsjSB6QvtqwmdQhmMM8hBSH7TyCYRknvaDh/nqkPojlpJNd06NyYsnOtaG42pIfRqJu aqCkfww0Rc2IOyQ== X-Developer-Key: i=caleb@postmarketos.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-Migadu-Flow: FLOW_OUT Add bindings for the OnePlus 8, 8 Pro, and 8T devices. Signed-off-by: Caleb Connolly Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/qcom.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index d839691a900c..a41eeb8c3fc5 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -986,8 +986,11 @@ properties: - enum: - qcom,qrb5165-rb5 - qcom,sm8250-hdk - qcom,sm8250-mtp + - oneplus,kebab + - oneplus,instantnoodle + - oneplus,instantnoodlep - sony,pdx203-generic - sony,pdx206-generic - xiaomi,elish - xiaomi,pipa From patchwork Mon Jun 24 01:30:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13708825 Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (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 2DD73525E for ; Mon, 24 Jun 2024 01:30:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.189 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719192647; cv=none; b=OvG9DP5xy/v7nxKJBu36BHCnsMsABwUO7dbclorru9K60VxcHwPS0g3WPeaMQMuo+u7/UZf03oGTgj7t0ow5BabyoyVxf3TB4dK30A5Q9XngyzkjxwBimV+djQVYG7ZtNyBgWZcftUJkb6j4FUIqXpYg2hpM0+8yX+m9GslEFOw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719192647; c=relaxed/simple; bh=uqZgAejzAJmglLf3vuECiySKynx+U4pSQ2IgkvC2T8s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CxEj3JKcuxLNgi/r6M4NVq8JIWWXdQWmfCkfc83CQ5hDDNtYlPxYQOMvifD6plDXMCsBzbTmR8i4RGoVKplbV1eMjY249BBxIaRMAl0WRZ93wXwZxt1GFAz5QyprAeaKf18rFSX1K12E1BIivB+LfeUeZaoiEA+nRQmVQsrcSh0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=nlb4VLcB; arc=none smtp.client-ip=95.215.58.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="nlb4VLcB" X-Envelope-To: dmitry.torokhov@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1719192644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YeqaJ0p7DgcXGkQ6cX0FMk8XTQjg2wcN+GLdmBNHW60=; b=nlb4VLcBKX4e1vMN9pygwn/kWH+gZqybyXr9MFvP44YdHgiyPLg07Hki4eGe5DXNE4yAZJ nzaqYp83r3oyQYDpPaSEjg6iyBNkcYaOIRfW9LJ1Rfx9JtPBtftOXh5PP6vtNpknjSuCU/ Qu8wZrW5IjEWgSoMP/9ORcxiLZZdFHcmVSvjSUrWVw2xyz0tZyAI8G4Js5vBp13zjM4AF6 eYCO9NUHCg28+cy4ytEwd+cHooY3RRsvS6blafViW2zS8raHvNMAFvxqLdMclZX+QW+Ef8 7+h+sGP85M4W2exSqdrI66f5wvJN+6I2pfV9vpew/q701QVJQIjR31B1hTvyeg== X-Envelope-To: dri-devel@lists.freedesktop.org X-Envelope-To: quic_jesszhan@quicinc.com X-Envelope-To: linux-input@vger.kernel.org X-Envelope-To: rydberg@bitmath.org X-Envelope-To: konrad.dybcio@linaro.org X-Envelope-To: andersson@kernel.org X-Envelope-To: linux-arm-msm@vger.kernel.org X-Envelope-To: caleb@postmarketos.org X-Envelope-To: ~postmarketos/upstreaming@lists.sr.ht X-Envelope-To: tzimmermann@suse.de X-Envelope-To: maarten.lankhorst@linux.intel.com X-Envelope-To: airlied@gmail.com X-Envelope-To: krzk+dt@kernel.org X-Envelope-To: devicetree@vger.kernel.org X-Envelope-To: conor+dt@kernel.org X-Envelope-To: daniel@ffwll.ch X-Envelope-To: robh@kernel.org X-Envelope-To: mripard@kernel.org X-Envelope-To: neil.armstrong@linaro.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Caleb Connolly Date: Mon, 24 Jun 2024 03:30:28 +0200 Subject: [PATCH 4/7] drm: mipi: add mipi_dsi_generic_write_multi_type() Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240624-oneplus8-v1-4-388eecf2dff7@postmarketos.org> References: <20240624-oneplus8-v1-0-388eecf2dff7@postmarketos.org> In-Reply-To: <20240624-oneplus8-v1-0-388eecf2dff7@postmarketos.org> To: Caleb Connolly , Neil Armstrong , Jessica Zhang , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Bjorn Andersson , Konrad Dybcio , Henrik Rydberg Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht X-Developer-Signature: v=1; a=openpgp-sha256; l=3896; i=caleb@postmarketos.org; h=from:subject:message-id; bh=uqZgAejzAJmglLf3vuECiySKynx+U4pSQ2IgkvC2T8s=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmeMw7xrcvXMW2qdyAND4jHEBHmIkBqtN2pZrTV cpjdgAJ9UCJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZnjMOwAKCRAFgzErGV9k tqtNEACAxThOc3SgEwYgzta+GeitozzBDY8L2SVa9dvnxccrvPaJ6YXK5YXiAP1gFS3AF4xPtja 4iGtnU2Y438jX9KTaBPD83x1j4TeyE8EIkHfACg2qZSbHhxX6MxlbUv2il1qZGWZIyWcIaLE/jC hUlYhhpFBQuMDxvg1SMU/EWlf50F+x3QK1MRttS2zV/9tXaZPmjvInimWjods7RKm1RzJLmeIzX wv/Ddng2WBRDwTrE2J+pJPeqllN4UTxfgChlYLOCiU4ZD+ji2hrNxrerzXiNc+VflF/3NJd73YZ HbwEqM0HZq2CtEEp31vj0pa5rn6ANue7Xb9HabqtJ3B3ZmTw6449kFFvxZG0XFGan9jHZRCBuu3 NsRIrKnzHQHI2Em2xIppvifZn9LR6sq1mhLdKTDpyNPbdJLE1njXrxZuj0JjUVmr9xcKS9M8T+L Owc425djTGxgdI6+1Ydd0LT0AZN5lu0FWCpsdEiELAId8UmNqYEZ4NebxFokU/7W9NwgRhEXhgK K1ACM3aS+HVTBF1JUcE9Y0YvyY8iQe8Ziv0+lypb3n/J6nlu0qkKW044TtQVPex+vmlMRtyZtMn gERkxWSewSMd+A2ORn9ihosM1hGUUViE+lHg4/BpOlGXFagQZoWODUevH0TlWS9lnE1yoNOrHxH jjM+hzdz0R4F2uQ== X-Developer-Key: i=caleb@postmarketos.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-Migadu-Flow: FLOW_OUT Some panels like the Samsung AMB655X use long write commands for all non-standard messages and do not work when trying to use the appropriate command type. Support these panels by introducing a new helper to send commands of a specific type, overriding the normal rules. Signed-off-by: Caleb Connolly --- drivers/gpu/drm/drm_mipi_dsi.c | 40 ++++++++++++++++++++++++++++++++++++++++ include/drm/drm_mipi_dsi.h | 16 ++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c index a471c46f5ca6..d0fee0498d91 100644 --- a/drivers/gpu/drm/drm_mipi_dsi.c +++ b/drivers/gpu/drm/drm_mipi_dsi.c @@ -819,8 +819,48 @@ void mipi_dsi_generic_write_multi(struct mipi_dsi_multi_context *ctx, } } EXPORT_SYMBOL(mipi_dsi_generic_write_multi); +/** + * mipi_dsi_generic_write_type() - transmit data using a generic write packet of + * a specific type + * @dsi: DSI peripheral device + * @type: data type of the packet + * @payload: buffer containing the payload + * @size: size of payload buffer + * + * This function will automatically choose the right data type depending on + * the payload length. + * + * Return: The number of bytes transmitted on success or a negative error code + * on failure. + */ +ssize_t mipi_dsi_generic_write_multi_type(struct mipi_dsi_multi_context *ctx, + u8 type, const void *payload, size_t size) +{ + struct mipi_dsi_device *dsi = ctx->dsi; + struct mipi_dsi_msg msg = { + .channel = dsi->channel, + .tx_buf = payload, + .tx_len = size, + .type = type, + }; + ssize_t ret; + + if (ctx->accum_err) + return 0; + + ret = mipi_dsi_device_transfer(dsi, &msg); + if (ret < 0) { + ctx->accum_err = ret; + dev_err(&dsi->dev, "sending generic data %*ph failed: %zd\n", + (int)size, payload, ret); + } + + return ret; +} +EXPORT_SYMBOL(mipi_dsi_generic_write_multi_type); + /** * mipi_dsi_generic_read() - receive data using a generic read packet * @dsi: DSI peripheral device * @params: buffer containing the request parameters diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index 71d121aeef24..a5d949e695d4 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -287,8 +287,10 @@ ssize_t mipi_dsi_generic_write(struct mipi_dsi_device *dsi, const void *payload, int mipi_dsi_generic_write_chatty(struct mipi_dsi_device *dsi, const void *payload, size_t size); void mipi_dsi_generic_write_multi(struct mipi_dsi_multi_context *ctx, const void *payload, size_t size); +ssize_t mipi_dsi_generic_write_multi_type(struct mipi_dsi_multi_context *ctx, u8 type, + const void *payload, size_t size); ssize_t mipi_dsi_generic_read(struct mipi_dsi_device *dsi, const void *params, size_t num_params, void *data, size_t size); #define mipi_dsi_msleep(ctx, delay) \ @@ -432,8 +434,22 @@ void mipi_dsi_dcs_set_tear_on_multi(struct mipi_dsi_multi_context *ctx, static const u8 d[] = { cmd, seq }; \ mipi_dsi_dcs_write_buffer_multi(ctx, d, ARRAY_SIZE(d)); \ } while (0) +/** + * mipi_dsi_dcs_write_long - transmit a DCS long command with payload + * @dsi: DSI peripheral device + * @cmd: Commands + * @seq: buffer containing data to be transmitted + */ +#define mipi_dsi_dcs_write_long(ctx, cmd, seq...) \ + do { \ + static const u8 d[] = { cmd, seq }; \ + mipi_dsi_generic_write_multi_type(ctx, \ + MIPI_DSI_DCS_LONG_WRITE, \ + d, ARRAY_SIZE(d)); \ + } while (0) + /** * struct mipi_dsi_driver - DSI driver * @driver: device driver model driver * @probe: callback for device binding From patchwork Mon Jun 24 01:30:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13708826 Received: from out-185.mta1.migadu.com (out-185.mta1.migadu.com [95.215.58.185]) (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 6B238881E for ; Mon, 24 Jun 2024 01:30:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.185 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719192650; cv=none; b=VrJYFrYrdh0cxvPRAoPtVd8kH/rTFPDjXUyU7O3qDIKoLzACFtBQQD0s0h7NNKn05vwqSQVQ8u+v+csLzrbzbKy9BvqMJTKb/b4u12vPpR/9Xd/PmirEJ0BnMEheMmTQXkHi8BF702OwnhXPuggNctApcVJxKA6vHB2oy5ST8j8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719192650; c=relaxed/simple; bh=o4NXFA1nl/MD7sMoQldoD6FkmLpkc9i7HJm6gFkXqiY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XVwP+Ko5iJDCyZlBkr9g1CGBFOIKKn4yeGenaMsO9IKU8Hk7WW5Q9GXRcKWNDWNYoj3t6pB07FhQa2QC8GPRf8AJsqa/N5ok/0C/SZ8/kQg+wBmy7OJTBIS3iFMxXQKOwylyLUKnO1pBejSTCw3tDGHk2RuCGwUyRidMKtmm9Xs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=S5sK1Lmr; arc=none smtp.client-ip=95.215.58.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="S5sK1Lmr" X-Envelope-To: dmitry.torokhov@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1719192645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZafQrF5/mKlL8ki2Ug5SDJIBpVQSzq+g1QzIBRzfyPQ=; b=S5sK1Lmrh4fypFDeNyykJi9GhIe2od8bN57+EIYbGislNoTaxB6SmGmhgGRaU2ll7mpDWH t04RsXzaCVOTcrlJsT29DdT+5RBQQ0cHSJszcy3Hnp3utTBc37I2fqCctejbxwvnofpNli I6ENATR5SS6WJQO5Jo1mZ/a0dR42qwN17P+oHzJyWI0oEaNPq73U0USVzTkS8xIH+Gxm50 FJXWirV75v+lw9sL/e/3X0qQfMOexB5SgkTrKzPhXp0jVCY1Vgo917FRXZS8xcXsAfElq6 PnlfQe4QwyfZAhAlYBFtmVqcftRVyMjzeG5HT0ONn5UIzcuX2pEh88nZ/7x2XA== X-Envelope-To: dri-devel@lists.freedesktop.org X-Envelope-To: quic_jesszhan@quicinc.com X-Envelope-To: linux-input@vger.kernel.org X-Envelope-To: rydberg@bitmath.org X-Envelope-To: konrad.dybcio@linaro.org X-Envelope-To: andersson@kernel.org X-Envelope-To: linux-arm-msm@vger.kernel.org X-Envelope-To: caleb@postmarketos.org X-Envelope-To: ~postmarketos/upstreaming@lists.sr.ht X-Envelope-To: tzimmermann@suse.de X-Envelope-To: maarten.lankhorst@linux.intel.com X-Envelope-To: airlied@gmail.com X-Envelope-To: krzk+dt@kernel.org X-Envelope-To: devicetree@vger.kernel.org X-Envelope-To: conor+dt@kernel.org X-Envelope-To: daniel@ffwll.ch X-Envelope-To: robh@kernel.org X-Envelope-To: mripard@kernel.org X-Envelope-To: neil.armstrong@linaro.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Caleb Connolly Date: Mon, 24 Jun 2024 03:30:29 +0200 Subject: [PATCH 5/7] drm/panel: add driver for samsung amb655x Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240624-oneplus8-v1-5-388eecf2dff7@postmarketos.org> References: <20240624-oneplus8-v1-0-388eecf2dff7@postmarketos.org> In-Reply-To: <20240624-oneplus8-v1-0-388eecf2dff7@postmarketos.org> To: Caleb Connolly , Neil Armstrong , Jessica Zhang , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Bjorn Andersson , Konrad Dybcio , Henrik Rydberg Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht X-Developer-Signature: v=1; a=openpgp-sha256; l=15789; i=caleb@postmarketos.org; h=from:subject:message-id; bh=o4NXFA1nl/MD7sMoQldoD6FkmLpkc9i7HJm6gFkXqiY=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmeMw7FiqAjkGif4BMSj0qrBOI8xpq8r6CJ1bg4 3SOxK+UP/eJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZnjMOwAKCRAFgzErGV9k tmeqEACGZix8yX6eU57CVR24z/z0fAPANYsy8S2iJON1FUNjLW9zoOjqlKVatYedglE5QsGuDta YB4D9FTPPjLRpVy1+HghkZfwmSAzSOHo7sfjnJwBIMiXZIhcUp0iOi1oF/sTDiZFSrYB5/ES4lc VI72klRwf2vpjbQ8HanREpphPDNFHoQxwjVI80Sc9/YCUjkeelliOlAeGFwfuZ60NqOa8xAZQgy uVS/EraKWGsSnpVAzqcTpfBBSuCUGqyuybh0eFrBnS0tKTaDkLK0yDT6bkN2ExEB5jMqgmesJ72 Zb2D4fTxM9t8JJ4Li82vokFvB2mm0sJUF1tG8qIfcn4TFKDrnRsTa6D3rIczqGIXgfaT2MZUYjO YE+Qk5FRWZQOPGiLxyZNMsWN7/HLlgl+iQb2BIskq0wvlD8i4IMTv5Fp0PHxLXIOZNVdv8Rb+ZZ EjiWRpJVbCToSf9oAXPj3if9shMFqUTNJ4sKf2HVCH1TvJLYpPASU1sJI3LyjGA/IQM/ioNiXpj tcH5y95F2HwdwhCDKCK10rdoLn+hpnwnhxmUAQ2kroMh8/Kon7V3TQrOimwHgmnKSAy5kIXNabQ p00PAAWp1QpMYbiG+FjSK6zTR44QPmd4gEp3DeX5DvS02niqkSPk3Z7FY1emu3+MJCF6lq3piR4 xt1k87CVln0AwEA== X-Developer-Key: i=caleb@postmarketos.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-Migadu-Flow: FLOW_OUT This is a 1080x2400 120hz panel used on the OnePlus 8T. It uses DSC but uses non-standard DCS commands. Signed-off-by: Caleb Connolly --- MAINTAINERS | 7 + drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-amb655x.c | 420 ++++++++++++++++++++++++++ 4 files changed, 437 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 807feae089c4..2b9cfbf92d7a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7142,8 +7142,15 @@ M: Robert Chiras S: Maintained F: Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml F: drivers/gpu/drm/panel/panel-raydium-rm67191.c +DRM DRIVER FOR SAMSUNG AMB655X PANEL +M: Caleb Connolly +S: Maintained +T: git https://gitlab.freedesktop.org/drm/misc/kernel.git +F: Documentation/devicetree/bindings/display/panel/samsung,amb655x.yaml +F: drivers/gpu/drm/panel/panel-samsung-amb655x.c + DRM DRIVER FOR SAMSUNG DB7430 PANELS M: Linus Walleij S: Maintained T: git https://gitlab.freedesktop.org/drm/misc/kernel.git diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index bf4eadfe21cb..7203d16ab20a 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -590,8 +590,17 @@ config DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01 depends on OF select DRM_MIPI_DSI select VIDEOMODE_HELPERS +config DRM_PANEL_SAMSUNG_AMB655X + tristate "Samsung AMB655X DSI panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + DRM panel driver for the Samsung AMB655X panel. + This panel has a resolution of 1080x2400 @ 60hz or 120Hz. + config DRM_PANEL_SAMSUNG_ATNA33XC20 tristate "Samsung ATNA33XC20 eDP panel" depends on OF depends on BACKLIGHT_CLASS_DEVICE diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 051b75b3df7b..be6d500a56a4 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -58,8 +58,9 @@ obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67191) += panel-raydium-rm67191.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM692E5) += panel-raydium-rm692e5.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM69380) += panel-raydium-rm69380.o obj-$(CONFIG_DRM_PANEL_RONBO_RB070D30) += panel-ronbo-rb070d30.o +obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMB655X) += panel-samsung-amb655x.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_ATNA33XC20) += panel-samsung-atna33xc20.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_DB7430) += panel-samsung-db7430.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) += panel-samsung-ld9040.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D16D0) += panel-samsung-s6d16d0.o diff --git a/drivers/gpu/drm/panel/panel-samsung-amb655x.c b/drivers/gpu/drm/panel/panel-samsung-amb655x.c new file mode 100644 index 000000000000..2af89bfd798a --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-amb655x.c @@ -0,0 +1,420 @@ +// SPDX-License-Identifier: GPL-2.0-only +// Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree: +// Copyright (c) 2015-2017, The Linux Foundation. All rights reserved. +// Copyright (c) 2024 Caleb Connolly + + +#include +#include +#include +#include +#include + +#include