From patchwork Sat Jan 29 16:24:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12729546 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1C23C433F5 for ; Sat, 29 Jan 2022 16:25:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=JXmtnJFWwOczM8T6CLiFP7Fw2dpz/EFTinq4IwLFeak=; b=NTxVt7I4gRmmxN zJ+BPknKQZYXr2I5qGWZiq9r36zFH6SyCg6TKx+EHVqSAmSl5xabhByRR3cxZD1m1OLvXVbhZjsrM 12wIm4ZnxW/h0hcJBc7IAqHHREyaAJPj2dZSRDhFEz02I9fvh5qzNaKptgWmSq9dOHmqt4GNwVm2w resWAIEKLBVjDOtebhRN19I3Dze60iIDpAG62FJtF7Peqv9OlxAwkpmm2tkD45/5Y7ILG+T9EFLhf dBlNEtPssI92CQjs/kWYrGu1NPP7EyD8pCSpsIK1iIKTLKtmgc9A8W1qjkwpW4FHALmsaGZrmhT2x blEpZaWoUnTZrjDGS+Lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDqXH-0054i3-Br; Sat, 29 Jan 2022 16:25:11 +0000 Received: from mail-eopbgr130050.outbound.protection.outlook.com ([40.107.13.50] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDqX3-0054dK-74; Sat, 29 Jan 2022 16:24:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L3CG6kZAYCuBtbM1/57VxqdGaKH5QF8ZTwCGvmkTAGdft/sGjdLZaRMaZRau8xFTotwYOzm2e9WLxRLIpOWcsp9s9PVOZsdR+hnJZ4R/4sFfZ8ew3Ae4iuyeZtQvLIDB0bukIFykIPCmaYeRAwlbTYr7qN8zR8e8lv5/HAfSvufwYGg9p9+niwSvufrzE1qDBSkj534/PvlTCidttwEBgtMdvJ3EdPzX7SsJpH6H0siOIkTNCEP8v/3CWBqi0zldTNUtNp08WSTB1wlVkbo0GCcL2uXnS+uZFTqh7T/lSHPQZMBIfSSZJWuxq03I0mvFkgu38wZzlKAFa9g0KsuzjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VfGLHtMOCEYxdKdY0Jj9vOSzS3BEjrKtJlr76DHKFRY=; b=cu+rl+hmGg36vmh10amuB/loVCx4M6S7ogiCtXMlN+QNr3QuSZjUPxbeGl6GXxmaK5gpEbrZyTDx1Mro2DcwVsMAhibxPO/DuxUhPsCQNZAiGbnGuIjsc7Q1xnx0BU4A5xiYGErJvbdZcjKfdV194h4xh16d2c0k7DxCn0hx3wcB/i74g3zPlBekxGtcLUY7RVK2aiM3eHdjcMbEaUrn6zliIwDWMZw1KxL3xsmtHHH1LRB0f2XntvMdUgS6Jyz2bhp0BRAs+p0RsHfs3dcCvxIbY7wjpgReau9MquFWZDwAt9Xhzf9wMyzj+jY/6W2hXDDA0HMkae9NzXf55ViW7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VfGLHtMOCEYxdKdY0Jj9vOSzS3BEjrKtJlr76DHKFRY=; b=TBp9023x8boc52EWa57B7hpQu4rc2owEGx4xABsHncAQRrmKX88waiO0GIOqqUZaV6xQ6q0X/cBfJopZ6ujeVGLGJGu4PxnCd1Q/MtQhmu4QX4IqjlOIn93vn+8SWnAJL2FRBx9hAAiXmuGP8gGk0ktztaPXBiyrgD7CiVvpZDE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) by AS8PR08MB6375.eurprd08.prod.outlook.com (2603:10a6:20b:31b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.18; Sat, 29 Jan 2022 16:24:52 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::e14f:197:5001:4c56]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::e14f:197:5001:4c56%3]) with mapi id 15.20.4930.020; Sat, 29 Jan 2022 16:24:51 +0000 From: Michael Riesch To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Heiko Stuebner , Michael Riesch , Liang Chen , sha@pengutronix.de Subject: [PATCH 1/2] arm64: dts: rockchip: fix vcc3v3_lcd{0, 1}_n regulators in rk3568-evb1-10 Date: Sat, 29 Jan 2022 17:24:39 +0100 Message-Id: <20220129162440.5415-1-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: ZR0P278CA0103.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::18) To HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4ece8125-0fc4-49d3-c4d8-08d9e343e01d X-MS-TrafficTypeDiagnostic: AS8PR08MB6375:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lf6BU0/WxnWpRIgQgZubxryUmJsu86aC914m8MzW7YGDB+SVE/46VXT6wrhQLbk2uXy7KX9CWzh2OouSDiMG6VHUxgo4vcma6ix+hDuEgDT2tmO7NHhXb++rjypD6/dXbulydhd+Xao7xtxVbBcTStXe7q/Sf4f+VFhbiTMyk68Po65Kqy6oRyssO4yuvvcLKbDeXrn8fEVo/51BMSQrygtYkiKQohq+LEizaF+k8mxC38+gvlVV5FkJH0jX3JAwXhfNXmoZ4dFTQHgCzJ9AESG3Sok+NNiME6V6ln0DEcIvhwgxFBCs64cCPbZeg7W5ZFdi+fvDW/9J/QTgsZqsTKYUnz61pWR7NY0LrgQrkfyPSc1YlxVZe8K1H2dWSEUfg36OtGD8t73alzHZIHO10jzQ/OdOnmR9lBKZE5pZw7BtTn5FWnf2gJAjLQw+0IL8gEy4r3rcp4yalgyrSJUpcn63FpvGNxo1909nqAxTmU2B9clY1cXHFTuNf8Ee70az4dK2FcvpGBa4wNvQrmMC/KK87e7LYIAVjX5P7QgclgOpoU6FkETcYmIz/eJ55wAZr+ycv+SnuSsTU7KHsLRdvXlHNwRmLqYzO07lPpSaZkj62GQUlKH/2lUjHuQJ2is3aaq8xMVAfBKnYUx4qEzXqg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0802MB2426.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(508600001)(5660300002)(316002)(4326008)(66556008)(66946007)(8676002)(6486002)(54906003)(66476007)(8936002)(86362001)(83380400001)(6666004)(52116002)(38100700002)(36756003)(6506007)(6512007)(1076003)(186003)(2616005)(2906002)(44832011)(20210929001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gAW0h5b23IwbvQe26fXIAni1ggJRhYbOviEJsS2N85z0ErH1Tu1b/+FEXuNN7LhyF/gb2g+UmQMs32+DdrmudC1xM97HDrIcr4q2rU86ZGDCgzxX7J1jAMJcFFuoUeqGHPTzvECAlON8lTqWQQDjg6RIHp+6cE12iqp8tzbSSYE/QiRAOqYlwD63hXHhN6MEjEdfYAszWuH0esQB0tz4JhPmq8p7KEFB9bKrqRyrxGe+SFkvpPAIordZFA/b3224/r8vdS63epQ/MzkernNEW7Z/0X0/OZ7cESK/ZZb3//9HU14x5gjNgjXuDEXAYzc0z/i7lUkz8gC9ivB4kIjcHq6HzReIxtN79yxP8a2zyK/atYY6wGTwWNH4/SdwpPlw+oKd+ylJDoh/aVEEBD/UnXtkuio0TFnUBIIEcpRRfNo7b9N6Pn3zCP3/0uwSF3lznZGQkiC0bY17t6Im3u/fo9X7DQDtXP9XbPdHbGEY42s2e+wysgR7e7x8ses3Y1qS8Eh6AknXzUV6Yw74EUz6nQI7z/sTC3hgI+t8OnTvOxQpzgMRFz/8IKLWMrvuuQjISk1PRYuJpAQjVstNB7bLPrlt7TPSQwIKNSYVFtg0Co7v0x+MN2luYLslWg9ftMHfCPs639jdw6SCsaJuC+iHmx4otPkAjDZCpI0du3zK7wCnUJOgOUku010Og766kbqsDhzxurgonvNjzj+oEASbz+a5kyzSlcjhRP2MhNExmpiZjWVIhn6Wp0z19+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CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2022 16:24:51.5278 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: W6HBbTpqg1MVecKtZhhDf4vJNYm72Hn+qrAJkQRtWDsg5I2g/WVBJd1TOfP7Wy08fnVyzdViDVCK6CvbdZne3WgXzFxv2bfo/qxWpyPrIEA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6375 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220129_082457_286417_F8FF6C76 X-CRM114-Status: GOOD ( 10.46 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The voltages VCC3V3_LCD{0,1} can be enabled with the pins GPIO0_C7 and GPIO0_C5, respectively. This patch modifies the device tree in order to reflect this. Signed-off-by: Michael Riesch --- .../boot/dts/rockchip/rk3568-evb1-v10.dts | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts index 184e2aa2416a..197aaf7ee348 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts @@ -56,7 +56,13 @@ vcc5v0_sys: vcc5v0-sys { vcc3v3_lcd0_n: vcc3v3-lcd0-n { compatible = "regulator-fixed"; regulator-name = "vcc3v3_lcd0_n"; - regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; + vin-supply = <&vcc3v3_sys>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc3v3_lcd0_n_en>; regulator-state-mem { regulator-off-in-suspend; @@ -66,7 +72,13 @@ regulator-state-mem { vcc3v3_lcd1_n: vcc3v3-lcd1-n { compatible = "regulator-fixed"; regulator-name = "vcc3v3_lcd1_n"; - regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; + vin-supply = <&vcc3v3_sys>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc3v3_lcd1_n_en>; regulator-state-mem { regulator-off-in-suspend; @@ -339,6 +351,15 @@ rgmii_phy1: ethernet-phy@0 { }; &pinctrl { + display { + vcc3v3_lcd0_n_en: vcc3v3_lcd0_n_en { + rockchip,pins = <0 RK_PC7 0 &pcfg_pull_none>; + }; + vcc3v3_lcd1_n_en: vcc3v3_lcd1_n_en { + rockchip,pins = <0 RK_PC5 0 &pcfg_pull_none>; + }; + }; + pmic { pmic_int: pmic_int { rockchip,pins = From patchwork Sat Jan 29 16:24:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12729547 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BBBA6C433EF for ; Sat, 29 Jan 2022 16:25:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=F6aw5yVZ6l6iZLsnSbnBkxTb77Z6vTKH7qqfjQR5Psw=; b=Ercz5IOjw7we91 fu12nP+4eqOf3LuTN/njQnDDTfWkT4H9HCleMNSSPmo9xokxmKeEXiLd9EDCmKG6dNNJ2osMH7/JY I9ORmkJDegqd7aSek/+Yp3TG/b1AVH255KyVlGIEcA5bnfSTo5h9M1jmNfWkrCNcpSKRLRlTSWxO1 CiTOmuf1EC2d9CPPZOpHC0mihyYYMsglA+7PknBfPlCgtW0fVhc4HuELi9YtYeHtKKz7cSczCrnAe OFAlDWyZSqhPefVxMX53yLpC6ooekw1wMFwCvYmRc4+/uVNs/QM1p/8/u+1MgJ3VpO6LCcuxmCBpt KqK2ffijXFxmxB6uSIRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDqXT-0054mH-00; Sat, 29 Jan 2022 16:25:23 +0000 Received: from mail-eopbgr130050.outbound.protection.outlook.com ([40.107.13.50] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDqX5-0054dK-1I; Sat, 29 Jan 2022 16:25:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bOQy8L8dmkO9xuwy9wusbTxR741kGnP4VI5aSTsmejgFrjtrbz4kGoa4G1dSft6p6z8EvBVeWnsZewj13HvUhcv74pMMCJGjLQJeZYAPKBdzUHXEKLySkH5fDAiib38FEFfIIZgdMZwirifVvXMKisq/83jV1ee9P1ogG2PD+AjthAD49yA7szpHcDec3JzlZczbhZGOJxo4GBcsb/NOfKlbXdL9+z0Cy6JevMRXf/wEEZMiCu3RXhXd8llJc02dBDxPxE2GUi/bTW0hSUtaKlXr2fsEvISd9N007w/RkRULL67GaqjS/mO1sLSwLAf2nDwBeK62Mtgravpzq4ZJFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=U0FeakyisqMtlRH6+thLZICAxRW0lxiOYd4o3nyTCyM=; b=h+j5irMTwPLm4BrbChZ3GaRgoAnpyLFek+dYVM9o1OG7KT1Mg1o9wZ31GaI4JauaDr8J8vZquf0JFC+F5pXo4Rclg61yS64nxZD23fvj8M3vF9hRmR7PkGudJoVOvzxM6kAV414dH0qmiWlrRF0TLBSeRZyKh9kXDYPwiiBEsQI5Yc08khlwXWcjgnO3yd6wnjtettqKpDAIJNnfN/kB96SmMO67aSQegqekspNT65NP0jD8X9d+TFW7R0HN7aZm0xXci+jMSTGFzU7li0hs4R6YIuNgipPGVG3LhRnsfqUT5+OXXvD6NELfifi5Z2FiEZGQGix55Rcxly8i8hrS9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U0FeakyisqMtlRH6+thLZICAxRW0lxiOYd4o3nyTCyM=; b=S8HLi45SU0msZi+9hsTwSswP9QJQdyhTyyPlSh7IYJAmEJqadyJH0V1h+xjfyoO0gJLx/HEFa9h2LF3diHXiFTZg6OlIu5mFj1zkZFealxATwg2iuy91Q8qDvf0DMxMpvGiqzdxt2WrZRbQ5wNxoqSdmSPaKuWG+ajcpTLGGFG0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) by AS8PR08MB6375.eurprd08.prod.outlook.com (2603:10a6:20b:31b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.18; Sat, 29 Jan 2022 16:24:53 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::e14f:197:5001:4c56]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::e14f:197:5001:4c56%3]) with mapi id 15.20.4930.020; Sat, 29 Jan 2022 16:24:53 +0000 From: Michael Riesch To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Heiko Stuebner , Michael Riesch , Liang Chen , sha@pengutronix.de Subject: [PATCH 2/2] arm64: dts: rockchip: add the touchscreen controller to rk3568-evb1-v10 Date: Sat, 29 Jan 2022 17:24:40 +0100 Message-Id: <20220129162440.5415-2-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220129162440.5415-1-michael.riesch@wolfvision.net> References: <20220129162440.5415-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0103.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::18) To HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6cfeaa16-47ab-46a2-b061-08d9e343e153 X-MS-TrafficTypeDiagnostic: AS8PR08MB6375:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1091; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vMawCHpuxOk/3J8UcfkSYCAdtKxib0zcOzGCbgaVF9IH6hzHpz/dJ0Kri0+FE5FqdO73FEIfMC1/6uP7Lj/bMzBW+wpuvEm9nm5P6YrPr8Lvpu9HGCDolpTgaGCP3WiCIFUQ+5w7M3RbbyYrxOzdhK9a/HN8r+0ZvfdOcHfVF/VYVtjhAGJrRbc5UD2jEDO65+l+GaOWtQYmYWCzhaj4DbZ0Zxi5JiUOvRQ1xQcjhv7vhz/S2bt4iE4NinWOtTkvDhfOH8Tufc0XM7FnRfWhTT5XwFZBg3E8y5gYdbvF0HQP0LdJhW7o6/vQDFObdyJY/xadfupTIWqlE7pv7NUC1C64AIybJu44bp+097wasZI0fEa7vLpJ8BfnsjXGgeIFSTfAv53BasePe/jAuaXYTIwiJbb/3tODUV/OXgRx49+datWjjGah4rpAcYjAEyteP+Hp9FCziH5BcjhI3SaIqbgmlLaTFsFAnE/yaLAL13DOP94/w+YqLvK9RgYfe3MnccU7zaxynB4QUt4s5U2mhaHnBdI5u9nu99Z/5XVYw4hTVp1npyJN18lcq+BOdbpttelW6x5sB1vCGjTSi73lEWTQbYKMa5jBrlM1YL2MS0ZZU1Mlcp6G66Du+lOaKJePR7nO7w4vwsQq0HbRZqjMOg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0802MB2426.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(508600001)(5660300002)(316002)(4326008)(66556008)(66946007)(8676002)(6486002)(54906003)(66476007)(8936002)(86362001)(6666004)(52116002)(38100700002)(36756003)(6506007)(6512007)(1076003)(186003)(2616005)(2906002)(44832011)(20210929001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exch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jgXEDTv3jfWJYL/Z8RKXkLQWeXrFWpCbRaZ2Obp2qACuqAl5mHFYs94mw/FwvGMq7NYVwCkGbKXiDIlt57H7uMKRLT01h6TxpGvhrwxptr51tviFyDLGQGo8Jmb4MXrTDNzQCXNixE0N5cGzgrcfXty3wlCeGqnv9LR2NJlKKx/J2kURidEtfUa66NXE9ZaOKP/LLspVtxGs87IgH+niv5La5X0HSxEltr8islpC7wVd6uWxmyaKV+QmUPgMmbBYKeJ76YztH3HM9eCxWirnir6ucDXYbtmYDql696WQKHPsqLtiHCiCyFbTcGd7t8NmqwPgk1v3CPdVsJkbIeB4tTQaufYpgu4FqL7WzvqnPgSJMriaA1OA5W82Lc4PSR1LK8iIFV6DCarUhEOa/uXzFEeGfkoyxde7y2fftjhbzAEcT+wRLPjonK2vdmPaF3IxL/C9km68T4h70b+/91c4jzJQToblI2KGDaNmc+b/jllDkQREin0G05KrVCoxDW8tfEukBMJ4xNKYaZ3OcXLgcz6e6vMHlXxSEzrv9Y98ULJltyB3kYpHs6yzXhGbkl486AAUtegaODzAUlyhW2gdi7YEMqWEHcYIfw//rXirRVJX9QEmtMnQD9cFVSQvI6t3YDPB8TvaZwMULkI6gs3sStuWaQBV2QjLtlTESeh6zvmwSGNsZAggOmU+vaRzXGmza+3jew= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 6cfeaa16-47ab-46a2-b061-08d9e343e153 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2022 16:24:53.3870 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gHuNvFfPXyA0I3AEO9lC+GrxLCYP+x7UdT+VCOkN2GEKk4U8sxvDabSWjm65dSu1zAknNECHmyyJAeXOaBLo2hAaxEpCrwxjsMIof9cQ5Hs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6375 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220129_082459_269353_928A0BD2 X-CRM114-Status: UNSURE ( 9.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The Rockchip RK3568 EVB1 comes with a mounted touch display featuring a Goodix GT1158 touch controller (according to the product ID register). Signed-off-by: Michael Riesch --- .../boot/dts/rockchip/rk3568-evb1-v10.dts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts index 197aaf7ee348..d8c20a23e856 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts @@ -330,6 +330,23 @@ regulator-state-mem { }; }; +&i2c1 { + status = "okay"; + + touchscreen0: goodix@14 { + compatible = "goodix,gt1151"; + reg = <0x14>; + interrupt-parent = <&gpio0>; + interrupts = ; + AVDD28-supply = <&vcc3v3_lcd0_n>; + irq-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&touch_int &touch_rst>; + reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>; + VDDIO-supply = <&vcc3v3_lcd0_n>; + }; +}; + &mdio0 { rgmii_phy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; @@ -366,6 +383,15 @@ pmic_int: pmic_int { <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; }; }; + + touchscreen { + touch_int: touch_int { + rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>; + }; + touch_rst: touch_rst { + rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &pmu_io_domains {