From patchwork Tue Jul 12 13:32:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12914996 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 B5F3DC433EF for ; Tue, 12 Jul 2022 13:33:53 +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=UnhSCGqrXMFW1BHbHx/FCagatJxOv7LZm2jxs2oGnA4=; b=lj9iombPNOHYB4 ARRm3P8X1ADq+RlsAUHDxLz91hzyAIioqn/zkvGl0TRFeMQ2i7XGeGcKsadY8bxW0aTnjRyE6ve/0 7PlRF/v23crmjB+dozv5kPAMTfwAci4LLApxkxd88oDCJX2SzAVo+2MAyHrYgd2Ls9NxC3UgwYGEl Fnx6L5zb7J7gKWgHr4+xpGzYEeD+ppBgCyGvxRo/YmkiQTntmlZwc+vRv+KMR4aRVwMDYlDXpeaPP lZTJrgmMFgBHGlSX5E/f/mJGlCpy5+8WpN3rExxSx3iBu+Q2U6T9klWkizLumo1RprSp9+6WkVUu4 C1vj6qSHB4iWxVwFyOPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBG06-00BMzO-Fl; Tue, 12 Jul 2022 13:32:32 +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 1oBG03-00BMvg-Ie; Tue, 12 Jul 2022 13:32:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=biTzxlkgqLFq5N3UaZdI/vInnML3Cwafs5dcLRKc0v04MuYgV83ehIGB2IrYA5P1zPKGA7FHOhALMCKKuU39MopuJEvcT5Ew5DtENgHhtECGNYFdhZF+7aXUMvCTlN0slar3jSujJLIGf6Axr61xBmbZr/h7mV3FCuU9R1lT4sJQz7CjAmsNsoOx27d8cJrvKaWOVMoB7MMwT3cjeVIjNR1BGaIEK1CKNy+VYz9o2n2ycjwn09XrhcwgqgTxV6AtWATnJlcBR8p2zKOHK2VcHSs5n5jyG+JK9EuQCrIyHHAJCPprptgEYvtKSrZdnYVUWkdwel3/cZP04oEedim3kQ== 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=6n2CfwSZBHMO8/Au/I+BG4gcMtjZgGGhQc8yo6CWpY0=; b=crprU+ZTs8uasMrfkGWS1gQohL7DQHI2SvD5/iRC41FZ9xGefijdn0Qr2fWItw+TEKaGfS6He3M2n+GHV912C7epBnqHAFlj6Kac42PYqhmVDKPZZvsvcFWEzhpcoinDfpV11m2DhuAPZZkvWuOhy7UcM5DSdZMqPCW9ZxfCrqVf5TvfRFbKDYxMkTlHopvF03D3hFMQM0c1/z4fX6C3yuNxYZk7WtWN2OwFR55zLrCAiLKdyraoXqX6S2ULjHDZFVyRRwqWFyylEqd9GemmBtaOVPTthGkMpEe1msYh7biL+f3zuw96j1sBCcSu0BJw1dToQRE4mfFhqDgrfd2Luw== 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=6n2CfwSZBHMO8/Au/I+BG4gcMtjZgGGhQc8yo6CWpY0=; b=Zsr1gLaDcJRVBOutD1Wy8kpZvf+7WYjv5FUNTe2DWEVIWCld59ahhqzcJ6mIvjulYSAyg3RsgrzglxXK5fZS95KrcXUAbVES6GvfZERYu5ZMO1+ixOnUq5FiI4o3RgUhwP7C84Ioz4OYjjmrRoJR5vP8Zual0NluNxNfjnJR7dk= 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:17 +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:17 +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 1/3] arm64: dts: rockchip: add vcc_cam regulator to rock-3a Date: Tue, 12 Jul 2022 15:32:02 +0200 Message-Id: <20220712133204.2524942-1-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 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: 0d62d637-7268-4107-affe-08da640af048 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: 35sE7Qyfbp3/Vn60hk01tsQ4BOi4HykQqyZcip/scFT+xpiXIfp9KiwW2DXRz5A4Pjbl2vIS40CVYtrnsfqoYSH0Pob5bG0I7J72MtRBmIqgJ2exxNG0M9gmbUy+rvpZEE3STNggu9q5/dlyDRY+We7FbOC20QzkvcdVHWNISCTYAJk1/pa4qrFOX+BSiA0ISrvigw34NkEMCkdjkcRrfxXEAfCbJZJqdoxyHKgQNu4X0gQ6gvIWuy/vZ2DaQXgNJHjnSxisoA2V0ygKN0WYqmh5lvRCjlqCAFi8WuxDChjew19hgNQJhvElBV7xOaXmIn7BKtidqCxhsUvbS4QrEu2IVI3FGwQcUdn7wSrmrHQnGpbFB8bBjb8jrZquFcqe/F6MRB2BdGPcVGkWOqVob7AQtVewrqd/e0nmyiQm4W/uNU8THsUwTlpY8gv1jPZxHFSOmQuE1kowc2qoCPWcS0iUbZXpGCyYqQEIS93REO70+sG78/qjaUL5SRYyy5jil8nryOnEVDFgb0CH3vEuzb1FuTSv0BIWK5M7aOQPqNlOWCn23+DJqkKiATNaocJgAMBs4v1QvcVeJK64tpkYpAuVP3n28FF8lZcdbdbbbjw53XuQYaJwQGwIwaL7dEmxBPZHW5aXD/wyQuFjDa5lYlWmarrfnaq8syoW4FpAbGnjg+KlPEfPUe8WHdcYGL1zKFSA5XoPcsrD3wDr3Zo8rY/yIWybcmYHWwP5Oy5PRPFofecOV5XZMu8I4XSu529dWvVZYR92WZWQxBLTuoUxMvfUkPzdl4C3vcUK+iCi/nq3n9+mc0fx38tf14EQ+4fX 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: lGtZDtcCpNRH/vjrwNune9zPn1ynm4YERvPzmh1wui6IZMaIXsc3qriUpjmDJ3T2gquYn4Pi9BlkdvRV/nDcxcYbck/1eXTZV+xylx3HRS9bipFkC4LqkCQjDbvwiklWHVCdFsKyU8y853Yh7xaYxAQz+HphaHIoAcRaXIfHivr6tuPgwPl5oCZ1x2bpLd5hjWb7woDW7qVY8/MjKuj9b5spGH24eW8NJy8gwPy7+C4gtFJI6jzST0zPplQA2AR0Q6lxX5XlclIVgAMOhGJjioq4sDtvIhpH8TFrVcmnpyLSHuJ8Rqtnas8XDh+UngEYuKN8LW/Elem/CmKDKslgDOvLyE8WzOQ+Tddn/Pe8whHm+h/plxZMA5kmgjQoDOwXpoSK7rX6KAUB2KZplmR4vInSljoOgRwlp5Pu4S9fBsXBxlE90Zf5TYHi+MkFlnWBQ70nsp9VFB6wiCi9u4Ve9r2Em03eGZvR0n2QhNTteRVAyJRi9n0/xp5gvJiBs+cqNLtv3aQzkEyKTcMYKRX/GIZjTGIZWLMixekui2IGuDpru2wuhAONUvvpp/phr5n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= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 0d62d637-7268-4107-affe-08da640af048 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:17.0873 (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: EvfBZ6uLw4ixF0nEAYp/MpU0nzldzk2uW2NkN0lQiw7RF9oDowYlrRv2C1vpRUk6BeVfRwBxmVbmritQF1YztywXru9LNlpvMCIP0E2ibCQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR08MB5608 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220712_063227_640090_150BD78B X-CRM114-Status: GOOD ( 10.40 ) 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 CSI 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 da2ef705ce29..821f9b96914b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -131,6 +131,22 @@ vcc5v0_usb_otg: vcc5v0-usb-otg-regulator { regulator-max-microvolt = <5000000>; vin-supply = <&vcc5v0_usb>; }; + + vcc_cam: vcc-cam { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc_cam_en>; + regulator-name = "vcc_cam"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc3v3_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; }; &combphy0 { @@ -454,6 +470,12 @@ rgmii_phy1: ethernet-phy@0 { }; &pinctrl { + cam { + vcc_cam_en: vcc_cam_en { + rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + ethernet { eth_phy_rst: eth_phy_rst { rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;