From patchwork Tue Jul 12 13:32:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12914997 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 B4A09C43334 for ; Tue, 12 Jul 2022 13:34:03 +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=s2CzoFZVShgZpVrxoekiwJGnYoJtQYUFj8CDlGi+QbA=; b=ihMN8NbHj36MoT oHsnH6fY6JhIYLzOSA61pz37AbdUcY8jXIcaoDCKFWiKqyangt4Jsmeo7vieVEiDHvPUKo3vZBYnn xZ8ZDfcpaTERK8zh/jWzMxWvXvq0voAmaVKCgIr2FIobU/o5Kj+3vM3SEcD2tS75O47LQabvNRnYX i+z+5jLZFcs5htM0Djlsax/lajQE1xBVAb3LPx/29Srbb4z91Og+cplSj33ac4LiM8X/TgpIbLmZY EPCEcUL3Dgh+u1IfpIE0MbqLOu2xPwGbHLccdpOp/lULuKiyfTK97QZYLVLjpZLcDQFrruOJDZmxt 62UGuLShainonL81BCHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBG0M-00BNAV-N8; Tue, 12 Jul 2022 13:32:46 +0000 Received: from mail-am6eur05on2051.outbound.protection.outlook.com ([40.107.22.51] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBG05-00BMvg-5q; Tue, 12 Jul 2022 13:32:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QN3+qdHfNY1EwcI9hEoOeMzvv2Lkb5Ly0T6Pctg9oPEcu+xbByYyhYHptt/M7YdH17mss5cVz8WWGPcDMK6+cL031OJGLQ6XTv16jGs8EMmreFH5X06h8zkC/AE3Dln3VfP6uH22XsLl2jAyeDS6hn6U9+q4rPqK/n9Hb3c3k8KyBwHdhzVqqdeTNHCZ/LTMJmrToCY93C1oQY+nt7R9lKqW/oh8Rz0DysqkZw2rH8fpsQC3QbiwRs8PdMV7Xjld7lrLwlrAeshJogM7rHD9wi0lg58X6mgeFhv3prsX8vLqmkSEstgpFw8yss6ITGkut6aJR/n1PF0kRZrCOvRgqQ== 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=iEFyyf8Bngkw48Q0dhDnxLweiKRmVCSUu2UYuv2NziE=; b=IJi3ChltdbiNr0N6YM4eWOaozbsQXAX8lAp6KTZKEHl/QjlZqn/h3v6bW45amDgwkjdekPeO/KLWBjwVPoEwPejOlTm8xFVk/cltRA+gPWEhqIKeu8AFNzhtS5rIs35LgR/TdhvErr4skQCn49h+i/65HG5kBpiWkpkUc7JcK5748Jnx8LF6dxeDpFv32A9UahziA4aX1dJl6J9EqKC6pKL5wqRZFvmMYE++OqZhFBSl5LEebEjsdrD53/Xq/4obY87uSRakpGZn2WX7UxMFWqqOpG3z13LhxbaJYhhmTEUuxkOMypJWczvWaiGjOIRWPRXLFtRlNseVFZW3zMIIfQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; 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=iEFyyf8Bngkw48Q0dhDnxLweiKRmVCSUu2UYuv2NziE=; b=eQkR8GdyAjHm+wfQ8C6nxua7s7KmLT4H1DB8/r8VOqoho7NqIIyQcBk6np/6nS8e+Sm2bSSKrGGPCBT5sABAZu2rZK5xA3DsvlisqghRhwms7A0IUQVSt6ChfNzBqXdYOoPXs1Mm3mWMGYtA2noll0uuoSOvarDBFWsYuLrpyO8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from AM4PR0802MB2131.eurprd08.prod.outlook.com (2603:10a6:200:5c::22) by DBAPR08MB5608.eurprd08.prod.outlook.com (2603:10a6:10:1a5::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.16; Tue, 12 Jul 2022 13:32:19 +0000 Received: from AM4PR0802MB2131.eurprd08.prod.outlook.com ([fe80::dcaa:905c:ff8:1f5b]) by AM4PR0802MB2131.eurprd08.prod.outlook.com ([fe80::dcaa:905c:ff8:1f5b%9]) with mapi id 15.20.5417.026; Tue, 12 Jul 2022 13:32:19 +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 , Krzysztof Kozlowski , Heiko Stuebner , Michael Riesch Subject: [PATCH 2/3] arm64: dts: rockchip: add vcc_mipi regulator to rock-3a Date: Tue, 12 Jul 2022 15:32:03 +0200 Message-Id: <20220712133204.2524942-2-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220712133204.2524942-1-michael.riesch@wolfvision.net> References: <20220712133204.2524942-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: VI1PR09CA0076.eurprd09.prod.outlook.com (2603:10a6:802:29::20) To AM4PR0802MB2131.eurprd08.prod.outlook.com (2603:10a6:200:5c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cc763ec1-2832-4604-4ef7-08da640af170 X-MS-TrafficTypeDiagnostic: DBAPR08MB5608:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OwB0BjWVDyLxYH+lMp/ha8cU1bs0jfR1NTQVIMJgDZe5IF35DSbphbbmH+OXLblMsq/7F3vK539BV3/DMw9oG4zOBgjNHv/OSu3kTPArl6TYn0nhHxgPe/BQJwADTZIzkWxxleL+m9BKfnweGWPAaZjOH++efg6NlyD/XAmFmCR99vOpn2lSYB5K9qHP4LQ+hVkdG6uD7HLT7Vqm7MECPMPNMGiVQ05VaT3pMCVRq34ilDHDHJorXhCxquVWK1BsQ9P6y7VOMUs6ugExX0ySFpVWeuzrCWSQPf/HZlxZ6HqhcuyKyRJ23Vi9I0MamvwPDcb6KdvC0KxmkzU5QC4OeBxqaREjfVfOjjk5h1kliW/JRbc0zlC83yESYl3PCdfrxa+FgZ1XKedS4CbG2dw75VMaYsTrfRoufOyS8F6pW/KaJLkLHnJ4V2u67i3g2GKMFt3DXf4Z2YbRHReptNR3i2QHXD/GPYSzeYQx0IhypovxDQTg4k634IFurQYXUc4nqcT3zRqUSLhkoCc1tSTzwIfSeHyv6UoOO5v0XgDfrJbVv9o0bok4IyLtEuwAZnJ081+qgupnjudzuXcUkCSkrX7sG2rBelufb/D6wiBrxabDEPF03u9Lv+UmqN0IHxrbzocVOtmdUBQ1YULxgDSFaCUDfep1d1I+QqRDjU/c9imEIFBNAs35Onljjr36iEml2wJXmjzKlWiGSrONkX95oeXDPthUo7C9FPfFJEgPfOxe0cUwo31SvodUExh/cee5Z0xrTvdE6kA1U4Rs+tOFj6op5+MDQXvMubQcibERkBIy5G2Hd5eO+kdTdqaYfdK+ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM4PR0802MB2131.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(39840400004)(376002)(136003)(346002)(366004)(396003)(478600001)(41300700001)(6486002)(66946007)(38100700002)(2906002)(38350700002)(6506007)(52116002)(26005)(66476007)(86362001)(8676002)(4326008)(186003)(66556008)(316002)(107886003)(1076003)(54906003)(2616005)(36756003)(8936002)(5660300002)(6666004)(44832011)(83380400001)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aIgW5BsiojkNlmYIFsC720zRAmJjf8msbDrCODMekaaYp9pPHxycDrpw3GBjmiQa4mNx7Uf4XVEMwXnmoGrnelqgmu+1ur+cNdyEA2Gbt9W+gtIsf0nym8AC8z83mVLE8ZrjPRPSSZEiFkdFO8Z+XGVEDMBQCIkwbRvt74if6Uj8/SrkvM1nu9J0LyWFQ2lT7NQ5PwZUjQPQxY8bOdOisn/1AoVMWavy0SsBAKMQHgMJDKJviy5+cRCl+Wn1+J86rfpyCdxdqPjizu5GA9LL5MbvCS3bTjtJ0VkN3+jcgd2naQEIsY9pxpZiaw4aN7C7lVhTsGwoi9qDBugu0dtHjrF7v7w9/iVPs7Yew7R4TEi7BdreZqpblPIziRY3ZlMB/ieMI1h/IKU4u3Hd+1yE4s8vJAuGmMNqQIP9CDczKN6OCG7cNj8jSm22SqSeQh0FiSidy3E69baRHEYcrXsCyHD1XWXYFoc5cMkCSwGA8rA2HEOUdQjRABVTdhVDlO4kECtqEAiv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5ZicMgx3bf36fbC5O0YQtz2bIEw== X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: cc763ec1-2832-4604-4ef7-08da640af170 X-MS-Exchange-CrossTenant-AuthSource: AM4PR0802MB2131.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2022 13:32:19.0403 (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: PbimkNot5zYDff+uiRI38L8fd1tTox8cGoOJ3krKMR6S6s1UoyqbgZuD+WzAIQKddyftq8WZLPTCuzZejWW8QESQr8pkcWVC4fwIf+ooUk4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5608 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220712_063229_238793_D0D0007F X-CRM114-Status: GOOD ( 10.77 ) 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 Radxa ROCK3 Model A features a voltage regulator that provides a 3V3 supply to the MIPI DSI connector. Add this regulator to the device tree of the board. Signed-off-by: Michael Riesch --- .../boot/dts/rockchip/rk3568-rock-3a.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index 821f9b96914b..33581a36c9c3 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -147,6 +147,22 @@ regulator-state-mem { regulator-off-in-suspend; }; }; + + vcc_mipi: vcc-mipi { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc_mipi_en>; + regulator-name = "vcc_mipi"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc3v3_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; }; &combphy0 { @@ -476,6 +492,12 @@ vcc_cam_en: vcc_cam_en { }; }; + display { + vcc_mipi_en: vcc_mipi_en { + rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + ethernet { eth_phy_rst: eth_phy_rst { rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;