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: 12729548 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 1AA53C433F5 for ; Sat, 29 Jan 2022 16:26:19 +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=5G0A67RTDbWI/e4sYDMsqEDJE8+KlRD6wTs9VYsXAwc=; b=aVGYSDWEbtz3Jr JckXGSk+bZbVQk7L5yOQ7eOfO/fezZKuBzh4lsRVJMKhVp6TYUs1F/EdVaLsHMPlulsbpM+8zYdaD Rmw0hyi1d4yhaieQT31FoWyJmuW6XM9EYUFCGGr8d7zsNOZG7KTCvK47hRsezpNnTUwm9YaY1ZMtH 2r5ou3RqjTMZlDPe4KKMb8zogqPJCjbvVSKaQOL8BRhi/rSoqRdUIwJlCB7WZu2mnlb6dzVKbK2df ED0gmdN6rbJWxb2jHID0eeFAJhWYYG9Z3lL+Dd5Qafzl40VuVJRRZbMU85KIGNUKYERVRYMCFxpoV EnhjAdWi4Q9jMbPgkR1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDqX6-0054eb-Nh; Sat, 29 Jan 2022 16:25:01 +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+a5kyzSlcjhRP2MhNExmpiZjW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01d 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: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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 =