From patchwork Wed Aug 4 13:06:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12418707 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 996BCC4338F for ; Wed, 4 Aug 2021 13:08:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4F2676052B for ; Wed, 4 Aug 2021 13:08:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4F2676052B Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=wolfvision.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=sghaMwoIV5MvOCp3UAONpY+pHp+W2qss0dhsat5GQig=; b=NptPIPR0UE1Cbo vEnXVgAwQpMp7GJCfn+0g7oxD1wamSMl/LNm6etaZV1AorYytyPPXK9gwLTLCRZyTwQSX5Nvh5UAn Aty67/HX2WWGji/GOtN3Z+Xjjg/BnASsysHt8oH2wU+GmGQIYlp86/F9Ck+mHBOtsXAzZdzV4wwc9 3ZZwZPb5w09YdpyFOQ6ixs1yltPFO3+QqNUpJJXSAHVoH8/v2HVMeYKxgM5R3CC76r59Y4+DezxnQ f7lsXOM3/8IkfSxdhWjIIF4PhtFallYawBO2Z2DDg9LSU2APYUFJrpik9ylRImNa6FDe+vU4j5QYD +1VqP4v32lV1TnReI2+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBGcv-0065Sj-Ad; Wed, 04 Aug 2021 13:08:05 +0000 Received: from mail-am6eur05on2083.outbound.protection.outlook.com ([40.107.22.83] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBGbl-0064ze-0Q; Wed, 04 Aug 2021 13:06:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KBFVfQZfIXKe5H5JtMal6LoA7muWDLFyE7SGfsguH134SsKOc9i909a/cF9/8hsUNL+esdCPeARZ0L52r+q0cFC3arx+qcuQ2q/Yeav8X3ZTqeaFG1SZtk8KJDF+Xr8gXDasggUTIhySE6U5ajlxZ4GYtuGbSavi9dbiNCXHFc1l2JeT+8CaKvxNvEt5azXL9jrP1iOKT2QCDEfCCglHZAmPR2jfB0CWiz/JkO5n7YkpsQXs8YZxxt1BRR9PVcv1oSgrxyalOOVL25FafZ4tKL+AQ+Yi0LYf8asmgIPEoULsfyV6mpmavBIm4hrzjSf6gHwQIcQzztHRs4Efe3wZOw== 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-SenderADCheck; bh=Qgg4iqthx3UQHCwze6kFKISQ5mPVirG4LIbMrbFlmRI=; b=Tv0fzEBduS/8wekbMUonPRrQvcHyo8TtdbvNTKXxxVrAgvsjQThetXYS5gauYl5ElTDuma4yIj08EERP4z5HC28jsomjVTjiPX9RSmTvu+0yQjM85p6AZeoL/ilVoRHnhNWFIYj+AAH6ZftsS7rp6D/9dYS8127cLUBAoqZkEMnsG+SyHjYiwqQVOmHlSxw6HSkGPFbiourXaBerYEcQr1sbm/OUHu0BGcgkzCohtgh2aFcXPQJAIxKugeA0NaW92zZzryGMK9DJMH4knuTz+KXBId/EvYNaSHl7CKY5GaTagKH/CZX4zGnPhz++oyf2MJ7uPyVUyHa2Rne0T7GJ5g== 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=Qgg4iqthx3UQHCwze6kFKISQ5mPVirG4LIbMrbFlmRI=; b=n8/C+6fx5+MIA9PlomDgNZbpNDWvcoZ0A5xAPM0rGw7oSnZUEejSfYVthtUYk8xPfGL6H5ssAk/7E0uXA7PXkS2JxdTzvHS8LhVt9yRSE3lBzlzmTY2J5iMhgqrGzU9g7zS3PK42+UF8vad0xpgF6uhk7D1IcxPxf7DmN0BP2Uk= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=wolfvision.net; Received: from DBBPR08MB4523.eurprd08.prod.outlook.com (2603:10a6:10:c8::19) by DB8PR08MB5401.eurprd08.prod.outlook.com (2603:10a6:10:f9::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Wed, 4 Aug 2021 13:06:50 +0000 Received: from DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::ade3:93e2:735c:c10b]) by DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::ade3:93e2:735c:c10b%7]) with mapi id 15.20.4394.016; Wed, 4 Aug 2021 13:06:50 +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 , Liang Chen , Peter Geis , Sascha Hauer , Michael Riesch , Simon Xue , Jianqun Xu , "Rafael J . Wysocki" , Lee Jones , Ulf Hansson , Zhang Changzhong , Johan Jonker Subject: [PATCH v2 3/7] arm64: dts: rockchip: rk3568-evb1-v10: add regulators of rk809 pmic Date: Wed, 4 Aug 2021 15:06:21 +0200 Message-Id: <20210804130625.15449-4-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210804130625.15449-1-michael.riesch@wolfvision.net> References: <20210804130625.15449-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: AM4PR0202CA0012.eurprd02.prod.outlook.com (2603:10a6:200:89::22) To DBBPR08MB4523.eurprd08.prod.outlook.com (2603:10a6:10:c8::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from carlos.wolfvision-at.intra (91.118.163.37) by AM4PR0202CA0012.eurprd02.prod.outlook.com (2603:10a6:200:89::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Wed, 4 Aug 2021 13:06:48 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 84a5c77f-00f9-41c0-32a3-08d95748b8b5 X-MS-TrafficTypeDiagnostic: DB8PR08MB5401: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1169; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QxtVfeFswklP8PRC08wCVfgOW6A+AF4E95LZMz6Eg/DOXHUDrOPNS+jqM1wd4KdJ5OS6dwExyNgJfCk+iPbt4BDR8fi4bfk3P74XXd7+Y0mBx52cy9YSM/NeDjWxYQvEUym+1sYIZeFAI1As/07BrMW+YK2MLEJ4hfGBe1pCU0dhUpfdQDg0Jxn7s8HF3ZGLxuY2MeONOxEwDuj+RgR8CMZwr7vhluHy1220Csq69P/vzdHbHKGH5xaXVa//ooO2obLygdeVHnUtHW3LrFrw2DIiirfSe8ZXGZNBZqTF5bZYFtoCrSNUPRoRFa4Eoe23Lzb1oEz6NP0tr6tGDoA07hiWzy9O1k7SSw3wTl39KnX5kaeXFEyffG4Ik9IZyzXaj2Ph6NctUSHsFqIEktIBw76r2B0jBNNceFDH1XgHVQ3ubZWhr/Pm6eJmlnm2yFJBzDImRcHNJnKOm/0kFwfCTmuFeaZY8FmhDX6guDmRYVywEdeLe+R2GVdXdlyzNdH55SXJZqQiVwrtK3IobNcece8zZkrymegzZwKaNQ62TVpiMp1wLshc65xHycT6RMOH1YZwERaX8gTNZ5Pm4twioqlREa8SMjr3OgeYb0SI9KNH8ND1A+NLjhJZqQexmWqWLh8TAZq1nnuxBxV0ful81oKZ4kf6Fxd3GjitC6KT6esQ8+NXEtJ/5Hl/M11S4Q6+pwuE1g6UrCmDB1avgJ/4XA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR08MB4523.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(39840400004)(396003)(366004)(346002)(136003)(8676002)(186003)(956004)(1076003)(7416002)(478600001)(2616005)(2906002)(66556008)(8936002)(66476007)(66946007)(52116002)(6666004)(83380400001)(54906003)(36756003)(38350700002)(5660300002)(44832011)(316002)(6512007)(38100700002)(26005)(86362001)(6486002)(4326008)(6506007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: z0WjAyxxtpOziug/geh8GqvF8Yv2s2/4TsSpa8fCK4FHal9BQH61vx3Zup+Kpb8mpq1t21IXAOH9MwuK5ipFEF8fTlJw1Q+3Dij4igI+ZMZQO3XIudivkXY/FhhhMFzC3ftEmLnRK7dUk5T6vaepITXT6IuEQvC7zOLwgRQBYX9QyupC8ammWIJfX9N8V1A0HL2Ycy6MG2Tbzhn/xG+kxZNCMsdOYnNNCKgFB5tEIANS1xDDj4/sHas3uqbo6RHDX49KZHza/TvioOYveLwuiMpuD6UJ9DdxFnxgieWXS4/gm3Eot7HuNBDFUJ4UvItyPtfRrH2CYUcAF8P9rYrzbk3BLhKkwGd9Y5YOxklh++txCLpkogd//71KclMEvTh17tnuhlCiabbtRoDMtgTXCVX4SJA6dlU0jxBs2gjKrbgTZFLF0z1z2/9r5nux/VSV/qiQE+DuJj1KcKGEDORcAoTap5hiO3rF+A1qURm5beFmXh2bXDHSsniKfgTVhdmbyRlxUcOjAQbbYkvK3k8WTjCcLheb5ewFG6S2YkZPAjGn6Sup7vYQgauuFuIpgGI9PI8aUjauj0ffR7ABAdTihrVj/zxkPc1klhV/I8SwHixI+nd6Sd5+5U2eRLVfJII5u7tFxxBaBeDNbsmHlbSDTmyqMmwA9//YFMGnj8I/EfwobzZJyPE4S9SL/T4VH1cKLduIQDAumGhUoFYKIsLkM1nmtRFiNFYIaW3Xh7VwBZSsfa+CYlL63I8mJuDr1toRIQ4u0hFBUC1cqKKI8VEr3cDkWk6u7LZ3cfCUDC3ev3bAAnltzQDlY/nbLRknW9LwvEgLlmRLjbS0PzrOLIBQa0d6k9/OjRDezoeqJ7yjtmWR6y+myJB4yl32PH0cXcNf0P06+QizDGHMAvFNTF7z9yqEemFStt+4YRsITQY+h5KQU4r4Rurf7LoJuJNJdPCS6/GW0CurKde2jDGgXVKXP23w2nQXXq6QHW/xweDUwTfKS8XYQznCd4WP/Bz6uRyUbCn7b62HizAUN7czBln9v01o4QFgkRvNsHO08VTwJ45HRbUWJF44P3R3MOIsRJsppclTqKFNnzrS0yoGxclWC9Ann6/gUlqtNZNvOxKONz5GyN+h1biYGHtmrOzLJVcXC0kSWZy4mRQM3koWaT7pPngIGRumTvz4CbHkIKxc0mLEGievOJTuJs5WLzkYcstr3BaFw6BNaGRrJVQ9zXuw+xpTcZNMyzzowda3IcwtSAJ2c5VEPNGJbVtFDLJ8oPrM+I584NfAUJHJfNcLJpmzq79BAlFomfHVQn4aqdyJAyOIPTQOMNglXlEBjsZCeMlq X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 84a5c77f-00f9-41c0-32a3-08d95748b8b5 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2021 13:06:49.9099 (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: 8fF5Kv+6yFfMXSg4GYE4xOkj0eVxvs6ftcM7NvdG2Lzp59QPF/T4VuAI8RVBI5YEaau69K2UyAiwjWpV8fpeMrf9kI3bw5HfNQsKqPyAOH0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5401 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210804_060653_083722_C56269FD X-CRM114-Status: GOOD ( 10.60 ) 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 Signed-off-by: Michael Riesch --- .../boot/dts/rockchip/rk3568-evb1-v10.dts | 206 ++++++++++++++++++ 1 file changed, 206 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts index 65e536c78d2e..f682144a1892 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts @@ -104,6 +104,203 @@ status = "okay"; }; +&i2c0 { + status = "okay"; + + rk809: pmic@20 { + compatible = "rockchip,rk809"; + reg = <0x20>; + interrupt-parent = <&gpio0>; + interrupts = ; + #clock-cells = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_int>; + rockchip,system-power-controller; + wakeup-source; + + vcc1-supply = <&vcc3v3_sys>; + vcc2-supply = <&vcc3v3_sys>; + vcc3-supply = <&vcc3v3_sys>; + vcc4-supply = <&vcc3v3_sys>; + vcc5-supply = <&vcc3v3_sys>; + vcc6-supply = <&vcc3v3_sys>; + vcc7-supply = <&vcc3v3_sys>; + vcc8-supply = <&vcc3v3_sys>; + vcc9-supply = <&vcc3v3_sys>; + + regulators { + vdd_logic: DCDC_REG1 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1350000>; + regulator-init-microvolt = <900000>; + regulator-ramp-delay = <6001>; + regulator-initial-mode = <0x2>; + regulator-name = "vdd_logic"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_gpu: DCDC_REG2 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1350000>; + regulator-init-microvolt = <900000>; + regulator-ramp-delay = <6001>; + regulator-initial-mode = <0x2>; + regulator-name = "vdd_gpu"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_ddr: DCDC_REG3 { + regulator-always-on; + regulator-boot-on; + regulator-initial-mode = <0x2>; + regulator-name = "vcc_ddr"; + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vdd_npu: DCDC_REG4 { + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1350000>; + regulator-init-microvolt = <900000>; + regulator-ramp-delay = <6001>; + regulator-initial-mode = <0x2>; + regulator-name = "vdd_npu"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_1v8: DCDC_REG5 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc_1v8"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdda0v9_image: LDO_REG1 { + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <900000>; + regulator-name = "vdda0v9_image"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdda_0v9: LDO_REG2 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <900000>; + regulator-name = "vdda_0v9"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdda0v9_pmu: LDO_REG3 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <900000>; + regulator-name = "vdda0v9_pmu"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <900000>; + }; + }; + + vccio_acodec: LDO_REG4 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vccio_acodec"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vccio_sd: LDO_REG5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vccio_sd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc3v3_pmu: LDO_REG6 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc3v3_pmu"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vcca_1v8: LDO_REG7 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcca_1v8"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcca1v8_pmu: LDO_REG8 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcca1v8_pmu"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vcca1v8_image: LDO_REG9 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcca1v8_image"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_3v3: SWITCH_REG1 { + regulator-always-on; + regulator-boot-on; + regulator-name = "vcc_3v3"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc3v3_sd: SWITCH_REG2 { + regulator-name = "vcc3v3_sd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + }; + }; +}; + &mdio0 { rgmii_phy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; @@ -124,6 +321,15 @@ }; }; +&pinctrl { + pmic { + pmic_int: pmic_int { + rockchip,pins = + <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; +}; + &sdhci { bus-width = <8>; max-frequency = <200000000>;