From patchwork Thu Aug 5 12:01:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12421047 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,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 1ED35C4320A for ; Thu, 5 Aug 2021 12:01:50 +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 D89EE6113E for ; Thu, 5 Aug 2021 12:01:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D89EE6113E 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=UIjLVa7qTnF55ss5shY1O+ltB/5nCSAmfBafUZSn8zc=; b=R8M9S4Dknu/bud gAPnWR1cFx3egyNCbi4YdtYsglshfeE0KWP3aJa7+Tu2BTwmSqziOnPRa2zhYawLdKvN0UvZv/ZYj Sgi708pE1vohWjLhTUlPVNoyP+V3TunRiNWVww2zKqs4PgJo9U3Mi4xC3VUU1UO1kkhhepNU0DJgN mu34Exd+VTplE4C6UM7/0bS0DX0Xs0VLaUBRFXWsSqP+zAMB6G/QHWDjeV1zTqXHRLBvrLTkK9Zyl OKbysNLsuctTdNyNWiwMJNyvDkQ+qg3KI9jEeZ1TWMz16KleMgv9jU1+TKdNnva35lVdt54ADq+9+ MaHtocAHRQXTyS0fmYhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc4I-009KeM-2y; Thu, 05 Aug 2021 12:01:46 +0000 Received: from mail-db8eur05on2078.outbound.protection.outlook.com ([40.107.20.78] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc42-009KVj-0a; Thu, 05 Aug 2021 12:01:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fWTeH/9hLFzd/Dx7z+xFkrK3s+seIB1z/RCfy3rmUJducCwuwnbu6PuCuvbm8GfKpHYBIZOa2CFLau02Uu/O3q4UtkWaAkwfIzRA7Sj5/MuPgF6MJ7kAE75QEBqYW436le8r/xLBnmF/j/7EHKpVyUJKioNKWejp9uQGjWc+zNWX90rPCdyFiTPM1a3Zzv1PlJWkHFLeUk6qRGqDXaJleFivvbYoVqLsrG9IwKfu/K8KNDC5S5Dn6lp67v1l8taPni+CouBlakYdRiCmPEsVlq6qZ3UxB57RlUzYVL/t0uu7Peb8/eJDCi2Q/qrNPJ81CdjaKx9r3cl3NCRS6J/1vA== 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=xgPrtAKvIr0Sj36Daks0th7gyBNOeuaqo1nv9a8DuJY=; b=lgxQ6bC2TnxGN0mRUoJXw8QHROawVUzOso1cTmRxODqWReQCw9uu/zYkr/2mf5i/xwPUGwrE9jYuolekwrXQjP2T0V8Dsa35zDkRF5O6RQxZFRtk6BXFuEeDzyb23CrKggIWX9lyhawFnWq7ZdK0x5ZIdi9RrbsY1PHNM0pES05wH55MARrkaLCbe522FB2RdYcDuuyAWOgexPrK05lTuNUnBn2KgwWrBkAWwlVnkxQ5TwenhK+UemQ2/fy1ubGEQ7T9QUi/jkzl6uY8jX0gI1B9XYVqDe+C/7wR+2Ofw4El6iMK2Q0mLQ8ReOUBZpF+FIBxrY/V+oG8F6Dm3HrhKA== 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=xgPrtAKvIr0Sj36Daks0th7gyBNOeuaqo1nv9a8DuJY=; b=zZBPDSpkbwbgtV7Da7ikWC6wXduUl6AQlbiap2y19pnmugj/SP3uG3uFSUFLutgQARMo6Q09bSvW8mhTAMCLJa1kmMvxjmO9TEt4n27At4PKq1xy2LTWnx2jH7RmK6/JKj3rDK0/Jxmq/y1Pd7+viB5xcDaQtXhO2rkooFtGRaI= 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 DB8PR08MB5419.eurprd08.prod.outlook.com (2603:10a6:10:118::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15; Thu, 5 Aug 2021 12:01:24 +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; Thu, 5 Aug 2021 12:01:24 +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 , Tobias Schramm , Johan Jonker Subject: [PATCH v3 1/7] dt-bindings: power: add rk3568-pmu-io-domain support Date: Thu, 5 Aug 2021 14:01:01 +0200 Message-Id: <20210805120107.27007-2-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210805120107.27007-1-michael.riesch@wolfvision.net> References: <20210805120107.27007-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) 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 VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17 via Frontend Transport; Thu, 5 Aug 2021 12:01:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d10bf73f-9ce0-452a-fb45-08d95808bf3f X-MS-TrafficTypeDiagnostic: DB8PR08MB5419: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pDzhTEl6+dHKrSsoZlqHrBuD1Ut1/TTQjQ+VwWQ0d3HdDZElqCpuPcmoN98dqIzOBs/8V7apYsGf2/5Bi/XefhKFqeDKCIfAnGZ7YvcnDuqqnf6cyF1QJvXBjLe9vLeLBRdxuEX6UvsP7ZoFEEbSGahUU+FEv8tkMcdEYkFmQfnPJrI7aWxlznjQ/2ixvEzrDaHPpiHoTLUOPqxRuOd4jHetBWjDAs1zjM5IHzKkxC9aAPeBhpL7N3s4x0azSRW4Ymi5jYrbfhpWwDFkALvxiTf/FRlAMZ1qBik5KNJIDJ7yhQNLZoSuL8ZGT3modtuZTX6kbg+kvr+wTrrk//85C87U/5ZNUMPrMCF3xDouis0dDNMrUQ2+t18PCXypX+lcSy2jnENIaT7eBS70RiHtecqRoSuyenFq+eW70JNizky0Z6CAC8WqYCUH2HgByJkWBJ5lkpxE1xwY6+bPuq7FytZsz41ivwgasrEtqXyAEYVGDCcKyPNXOf+Ml+CxXMRtQY/I91dQTYMU88N2BoQKiodF7rHW3exlxqsEg2ahPA9SuxX4cyHQcvVa1wUEfdmS7vyjCuMcx8zV3fzSw1lvQAqvWZ5wtyTRUGuvxDUeJbz4xHO6ajZxk3OhohajtAyR3XCaulWp9N0DP7hekzOKnC/MqftfRHw3CSRF5y/Y8S4w9axGq8rkWEdTpG1nsiJBUrieGuaurdlsEE4Z8RLLQg== 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)(136003)(366004)(39840400004)(396003)(376002)(346002)(6512007)(8936002)(66946007)(38100700002)(7416002)(66476007)(6486002)(66556008)(52116002)(1076003)(2906002)(8676002)(4326008)(54906003)(478600001)(44832011)(316002)(36756003)(38350700002)(2616005)(6666004)(186003)(6506007)(956004)(86362001)(26005)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Y18M0bLRdu/JynVHn+8gtGpGndONQ4sxbBSvyZMHbKTomxMmEBWYhCVsuj1iw8iFOnt8s0DC/YcsTVloSWSd38Fwef9iHWLODSW7QfapjFqCkiwiVMeycvfgPNfbndwuaHb7SuEvhNLCY9rK+xPvLGy4YlVC7vvO5Ceb3e/pXzn5BdDwyozMs3jb167ZRN0+2mVz9raQRXuosqGtcM9Otjk68F3THZPYcPALOze+nUQO8kGW1qnn+UWx2MUtX80/HFrxinxfqJONvgUm0YKAI5Ye4AROk9kITwKQnhVv96Tpfy8jW9lkZb21YH1XS/U7RD6iZsswJXMGinlFUmCCWwAH8IGquQFgh48vmjwkq0v51d02QbpLRj5CkY3IREgJZq2wsmNDo7yHZccNLcyWaJNpyV/+3K1wcW3qmh40o+S0WPmq124GUlJKCLtYRdhG+EK6qbWpRNJYnJqkVlMFaf7FZdOfxIkQtRWo1mRyfH13L8W483CWl0MyNWm79DHwc9JFtJBwUChjblYpBoRsFdCp9Y6qidpiFFYPNZFNdCFloQjiVM7yj2HzcS3qoBaX4+WOjGubxWd/iKqUqKmblY/yrJ9DRakVjtP2b/eO5kfLe37IPKDvgOEnxe2cPo9qupuXIVy8zAv6RN1UIN2CZ99IvV35RgPOAd4RWmKe0+fArvPjewfAuJqFBd03uAoW2nB0CyzklKfHDZTDuVzdkr+kBr7QKCXlfJZEtd5bsHnTLJ7CgGeQ2wRtCvNtqQ+rnF09rkP5LNBWCh/iJZq7Sd0GwXJ1HyoG/2VP/5wA1yIZI6D/Fsl+gWa7oqKD5Ad8PkIY6qMl/y8Sguc3elLhJgZ+X+L0XWGjoJGmDwVlQl+rEWqEnaxthxZO/ZczAWKdJf3u19tG75VNkimg5Hyh3fsfvBwH3xQ8jkNT7nOxg+vNa4T7SVQR8LCl0lydWqfXh5AedQCIV72Prar4vC8YBXBqjB3ndFgPkceMLMugQ7jIYGnjruV/ToQt1TWNVNjAa1MHcoA/5YYAyqhSxMKJFtOiC2MRJ8M3Pg1Mf0lOXNKnNM2Z7IVOE3AqE2ow4QQmwP0vJ9QSG0VZGTPR+mGDBoOOWy6zhajAtokz4eTQis6SRR3614pqRnQVfncsUSJAzBi25CckXUNLI6kmXYGkMZwp1zW5bexRd1JgNVqLhyYkiP0kjyKt6RWy/J4fae28TEIxVwiVNapU/9MCHj3VA597JqMexWQheX8pYjR29EsDY9mpjrrbLPssswytV6Q9bGzG3/g4EK4PNWOxQ7Il02GLwjp2MvJNebtNplwjcQmluCW3F9ibp5HRRtEmHjIh X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: d10bf73f-9ce0-452a-fb45-08d95808bf3f X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 12:01:24.2619 (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: nqsuTMkvJktS852smNCtXkpbhXtUatLrIj4LpbTJ+5fYYtSbM6yNqObm+RAgvwOQ0+1tPEA0HRTEAMQRWJv7V7vxlqhthBlYWMcXEEZcirk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5419 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210805_050130_085193_02B8AA6B X-CRM114-Status: UNSURE ( 9.48 ) 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 Add binding for the RK3568 along a SoC-specific description of voltage supplies. Signed-off-by: Jianqun Xu [add soc-specific section] Signed-off-by: Michael Riesch Reviewed-by: Rob Herring --- v3: - add missing compatible for the rk3568 to grf.yaml .../bindings/power/rockchip-io-domain.yaml | 30 +++++++++++++++++++ .../devicetree/bindings/soc/rockchip/grf.yaml | 1 + 2 files changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/power/rockchip-io-domain.yaml b/Documentation/devicetree/bindings/power/rockchip-io-domain.yaml index 121bec56b2b0..1727bf108979 100644 --- a/Documentation/devicetree/bindings/power/rockchip-io-domain.yaml +++ b/Documentation/devicetree/bindings/power/rockchip-io-domain.yaml @@ -55,6 +55,7 @@ properties: - rockchip,rk3368-pmu-io-voltage-domain - rockchip,rk3399-io-voltage-domain - rockchip,rk3399-pmu-io-voltage-domain + - rockchip,rk3568-pmu-io-voltage-domain - rockchip,rv1108-io-voltage-domain - rockchip,rv1108-pmu-io-voltage-domain @@ -74,6 +75,7 @@ allOf: - $ref: "#/$defs/rk3368-pmu" - $ref: "#/$defs/rk3399" - $ref: "#/$defs/rk3399-pmu" + - $ref: "#/$defs/rk3568-pmu" - $ref: "#/$defs/rv1108" - $ref: "#/$defs/rv1108-pmu" @@ -282,6 +284,34 @@ $defs: pmu1830-supply: description: The supply connected to PMUIO2_VDD. + rk3568-pmu: + if: + properties: + compatible: + contains: + const: rockchip,rk3568-pmu-io-voltage-domain + + then: + properties: + pmuio1-supply: + description: The supply connected to PMUIO1. + pmuio2-supply: + description: The supply connected to PMUIO2. + vccio1-supply: + description: The supply connected to VCCIO1. + vccio2-supply: + description: The supply connected to VCCIO2. + vccio3-supply: + description: The supply connected to VCCIO3. + vccio4-supply: + description: The supply connected to VCCIO4. + vccio5-supply: + description: The supply connected to VCCIO5. + vccio6-supply: + description: The supply connected to VCCIO6. + vccio7-supply: + description: The supply connected to VCCIO7. + rv1108: if: properties: diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml index fa010df51a5c..dfebf425ca49 100644 --- a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml +++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml @@ -208,6 +208,7 @@ allOf: - rockchip,rk3368-pmugrf - rockchip,rk3399-grf - rockchip,rk3399-pmugrf + - rockchip,rk3568-pmugrf - rockchip,rv1108-grf - rockchip,rv1108-pmugrf From patchwork Thu Aug 5 12:01:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12421049 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=-14.6 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,UNWANTED_LANGUAGE_BODY,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 5D085C4338F for ; Thu, 5 Aug 2021 12:02:03 +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 2815A61152 for ; Thu, 5 Aug 2021 12:02:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2815A61152 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=qjRhKfUoIJ1qg2ql8Po5F9EbbH3IQM4AkLjiw1P0POQ=; b=qA3wuuxNAs6u9B P3ObSVDS/XW/3nsQlpIJEVY4In3aeP/QADbVF28cQT3XuKif+81us+7FuIaFzwIYROWMAJLoCumzG 29+JEPJ2Xz0kTHQE8cff41DpNwPFhgrG9RjrGKkINDQEGsxHzwszmbr5pP+37WGISf2VqX1E67djP 3ZGoDWXHkyOy2oS+e4q7jaBNhjWaEdr5IJH6fNDqggjLvEYjgZTW9fFALFw4x5DW/+jXHZmTaN5Rr 6ov/RtUuQZT1fgWEBDJ+9N4HcHnObBvpZAgtz6h31zcT5C/JRJFo1+sSqV6R4MBJEGulZB9wRMGV5 95RjB5HVIJ81Ww+yAmKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc4V-009Kj1-IU; Thu, 05 Aug 2021 12:01:59 +0000 Received: from mail-db8eur05on2078.outbound.protection.outlook.com ([40.107.20.78] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc43-009KVj-Ng; Thu, 05 Aug 2021 12:01:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CDY+nUGfMhkVIGXsu4Vaw7c9ztewz4ZDOpQK/v3+4azY1E7csznX1NV7scJrPSXlH04lc/E2ZLtWxUX1xvXRg7gjR9jmpenr/uAFR76EldNHsTiB7xV7pMa4ASDbZ+t7RqqGY0trEYa1PiCFk9qPZj7/H9ExfJFuWTbPWCk24t5+uF1V4X6bWOrQA2JiE24gm1Fu8Vzsv/uuMSK+SH075LKlehpmIJZ7fKQs1ruOMjvuA0CyalnKCpbe3gIr6X+5VM4Fk8nvmC2VOJ+Z8gQODcTDcyTnYrSfzbxS61qxU19oMJ/RQ9TbnJjI8UWNBTTXjOpAEYfqKDhOosLY+7hgcA== 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=1VhqnL0+9ZAb95pJ1bIoH40UmTJ/ugiOMIB+fbj/Oso=; b=MUFYixeV88XDoWmalmASZdwW7ee/+mJH3V0fG5dRqX/0KGm7CzB6mUGD2N9+zjSJcr6BmzxuPv/WKO+68eBAXcIqCwS8nLJ9GkqaEL6By2TmCHsnTlWPVfn2SIG334Dz6CGu0zJYrR78fA/C/zG4ELE64qkwKs4v0m2b9M3MwX9R7PxviiiEBNEnQuOZ+fPb4cCK5ABVQc19iG2Rmntq5rd23czxwgZkr/RJus2dof2PVFWArltYpPn4BVUQ6bfRyZO8tGRVUmYgAKuU1fISs1xRb1zkdb+Y9VXVZG5ppjZ2H2+Rba0IY7qFIGm6IdkYKMev+w2+zYazZK/6v3dp5w== 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=1VhqnL0+9ZAb95pJ1bIoH40UmTJ/ugiOMIB+fbj/Oso=; b=vMuW+HT93lxvMmEkX+KWnxlcmtItriGLO1J4V7ZBwIjeo80RY2l6OM05QKSaiHDsLm6INd6j02thwOKphC2YCyhycb7oDlEU6p6ZmyANC2geso6xm9Nmtlcamja2O64lraI26OgEQbT/jHPb7ETBJzHMzc+oCMVg+ErFe6Drglo= 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 DB8PR08MB5419.eurprd08.prod.outlook.com (2603:10a6:10:118::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15; Thu, 5 Aug 2021 12:01:25 +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; Thu, 5 Aug 2021 12:01:25 +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 , Tobias Schramm , Johan Jonker Subject: [PATCH v3 2/7] soc: rockchip: io-domain: add rk3568 support Date: Thu, 5 Aug 2021 14:01:02 +0200 Message-Id: <20210805120107.27007-3-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210805120107.27007-1-michael.riesch@wolfvision.net> References: <20210805120107.27007-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) 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 VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17 via Frontend Transport; Thu, 5 Aug 2021 12:01:24 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 495dda20-17e0-4d34-62b2-08d95808c006 X-MS-TrafficTypeDiagnostic: DB8PR08MB5419: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i+wHIKnJVS8gE+RFPTpFGGI4PfLuBYoU+uhS7s2yM8QwZstIuKcIKDeDAyl2hILl69+oTt6bqlugaiG15DbrczQLNNIcCPCkryZ4n9cBPDpsV/mFmZlIGXtg6F4v9pH8pSm5Y08QF7/AqgmaZxsbCMt5HGUaeDtfe56KmjYcNsQED6USRchgvs8JyKUx6KWYwglgUB5sT02dybQEBWaoBddXTsHJHtjzY1pcaDhPJ6smsfRod+x9y1HoUXVlYSqfjzcc5To74pW6KlsO4rxFoQgyeWxh5yuG5jjfxop6g1IEJiNUgcmT5VGsg5bbw+pVahUZQdEQvmIJTLTskxh9uJlLSgs6i5/So2IoRKOHEaeKIpqunuZtPHg1tq8rAqcZnTKvGsj04vhQzXc7yxyXscLi9YO44TlAIPaUs4sJlApyJW5AmqAysosM44q8hJ0z1AEz6nbmnDjlGiNgC6+mQkIcQUQLF9vz/gmzjGwwSecznfVBTstSlzHMEv+IXoWxkn/DOgMSLjPL9Xa/bPVZZ1ZBXePzYHnPvOW6qqyZowcFhe89mBB8PFGDTgwYpskxwfExgPfhu3XFNR0oARP/EXX2Gho/orLFymGbiin7W3utD4ybx/v9Zb8W0BNDI2qkRZHOycOw0sY1xpu0oE4HiA3KpZ4+Tj7CunYK8M6H+3M6p2kLKkEzOGr1yoQgcBpEJVLfekN/dm74pnM/vwl2dA== 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)(136003)(366004)(39840400004)(396003)(376002)(346002)(6512007)(8936002)(66946007)(38100700002)(7416002)(66476007)(6486002)(66556008)(52116002)(1076003)(2906002)(8676002)(4326008)(54906003)(478600001)(44832011)(316002)(36756003)(38350700002)(83380400001)(2616005)(6666004)(186003)(6506007)(956004)(86362001)(26005)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: I25f8wcwoB9/GbX7TDRx/B6taWAlpN6pJ+MPxlTWoNCkZP31z4TTGirOiIZzQ90ymZHpRAZzbAJZRQwEqBYWVfsJhTPSkUCapFhNeGwIiV8KtFZI+Zdg2wiHeAAM1JnmRLvR2wbteFNsJjyqQgF+LCS+sXaIhWnomgspJ1iOBCqNGIkfy4z1aMPgZRR/Mb4a0XOxB97Qmc8sLqTsHbhy+4n1Bgxl+fLl5vrbnaf5fl7Y3Qm9FQUK1uzS8Om0bKpI1DseX/r5DP3zkHwLdzlppj+Du8V9MAe8CDIOdIXYxDqbU0y2pd1mlgG5bOywepUTjLJykL5L2xgkRzbGGzdlFUOSE0XLI1W/MWlkGHV8qaNOhOK1yXanj/gtx4ktbJri+gzy/im6yeFwn/s8SgCG8tMaAWTKIEe7Gahk0rB0ubMypclC7LNiAHXfNuXqFD6WR82r30FrrNM93Js9XCAPlYh8+OryHiqFw8G2Mk22WeJ5waOJV3jZ31TN7ntawLHhJTCStpJyqeEkMlleFYFD3rYexs5RLbYaiUFmTGcpmpBMrRrrUVKu91hxuGjEZbyBU3vnM1PbYjleHABZnaZp9U9jbO39b0YspcDcVD/bvAVZhw6Vo+6kx2j5y1j0+yiOVERJ4enF+TxzRG2za/9vR67durg3aEOsoqH/3BTlM4pHyc5H3I/S6s9uEwxUKWZFVbGUwiaFeMlbNlY5w655nyI5eUuqVUN0Y8W28PJD9st+7K0l0pKVwvSHJcG25IoEG/QPKx0a+4Ynqo6GYvyNQXv43IvqyoYmDsw7aAZgFJm3JE1ttBUTGuRmUTzce9dmlcztCMlqcLPFlS+V1ab6Zq1y++6gMg+aWuvsOlnb7Liz1I0nG7ADFrl+kFZSC3E/7y00nAJbpKLQLQrtXKDTQ2HsTwRm387jJTiij7onTzrDZThM5g2Twz0O2rz2FJ8/sv+ugzc3WaNRSLOQHtUqCNdLIsVu7p5CTx/dG42hS7/2zUlICqBXZanns+jU3OcGdYskanToNhzBRo42UFI0ppELhl7kLzIf3nva2X3/Z1FSUYtOcMPBHQn5YBl6SL/SA9dq+Hf7Vr7NtwG8psan9WDTTZvXMgh0FEl6RTXZYFbjZPI84K4uCZaCP6y5JA41FqYZqFeyzvCRvo7ZYv9ovKq/vSp2mEjWWBDolZFAnAnbUwAkY/p2/9TzOi0KeDS4XjwSZCKCyMFQEZ/uFOi/WPs56HsOwig/LasR+Iuf0r/6M5cQa6xdUzxiIddsupYKWystEiB3rECLq/MZKistZvfzC9Ye0Be0oh9RjejETaYsTfYSTRd8QbvdDC51ZrSi X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 495dda20-17e0-4d34-62b2-08d95808c006 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 12:01:25.5461 (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: 6cE14FpC7Bo0W4mknNn5mMUO3rRsoXbLdQ9g56Ro7wcdlQtVrjYISGIBITAi125VS7vkGYnkOmrbVT2PSMs/SB+A845MKd1rB6xWjjGUXr8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5419 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210805_050131_814353_40E1D9FB X-CRM114-Status: GOOD ( 19.13 ) 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 From: Jianqun Xu The io-domain registers on RK3568 SoCs have three separated bits to enable/disable the 1.8v/2.5v/3.3v power. This patch make the write to be a operation, allow rk3568 uses a private register set function. Since the 2.5v is not used on RK3568, so the driver only set 1.8v [enable] + 3.3v [disable] for 1.8v mode 1.8v [disable] + 3.3v [enable] for 3.3v mode There is not register order requirement which has been cleared by our IC team. Signed-off-by: Jianqun Xu Tested-by: Peter Geis --- drivers/soc/rockchip/io-domain.c | 88 +++++++++++++++++++++++++++++--- 1 file changed, 80 insertions(+), 8 deletions(-) diff --git a/drivers/soc/rockchip/io-domain.c b/drivers/soc/rockchip/io-domain.c index cf8182fc3642..13c446fd33a9 100644 --- a/drivers/soc/rockchip/io-domain.c +++ b/drivers/soc/rockchip/io-domain.c @@ -51,13 +51,11 @@ #define RK3399_PMUGRF_CON0_VSEL BIT(8) #define RK3399_PMUGRF_VSEL_SUPPLY_NUM 9 -struct rockchip_iodomain; +#define RK3568_PMU_GRF_IO_VSEL0 (0x0140) +#define RK3568_PMU_GRF_IO_VSEL1 (0x0144) +#define RK3568_PMU_GRF_IO_VSEL2 (0x0148) -struct rockchip_iodomain_soc_data { - int grf_offset; - const char *supply_names[MAX_SUPPLIES]; - void (*init)(struct rockchip_iodomain *iod); -}; +struct rockchip_iodomain; struct rockchip_iodomain_supply { struct rockchip_iodomain *iod; @@ -66,13 +64,62 @@ struct rockchip_iodomain_supply { int idx; }; +struct rockchip_iodomain_soc_data { + int grf_offset; + const char *supply_names[MAX_SUPPLIES]; + void (*init)(struct rockchip_iodomain *iod); + int (*write)(struct rockchip_iodomain_supply *supply, int uV); +}; + struct rockchip_iodomain { struct device *dev; struct regmap *grf; const struct rockchip_iodomain_soc_data *soc_data; struct rockchip_iodomain_supply supplies[MAX_SUPPLIES]; + int (*write)(struct rockchip_iodomain_supply *supply, int uV); }; +static int rk3568_iodomain_write(struct rockchip_iodomain_supply *supply, int uV) +{ + struct rockchip_iodomain *iod = supply->iod; + u32 is_3v3 = uV > MAX_VOLTAGE_1_8; + u32 val0, val1; + int b; + + switch (supply->idx) { + case 0: /* pmuio1 */ + break; + case 1: /* pmuio2 */ + b = supply->idx; + val0 = BIT(16 + b) | (is_3v3 ? 0 : BIT(b)); + b = supply->idx + 4; + val1 = BIT(16 + b) | (is_3v3 ? BIT(b) : 0); + + regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL2, val0); + regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL2, val1); + break; + case 3: /* vccio2 */ + break; + case 2: /* vccio1 */ + case 4: /* vccio3 */ + case 5: /* vccio4 */ + case 6: /* vccio5 */ + case 7: /* vccio6 */ + case 8: /* vccio7 */ + b = supply->idx - 1; + val0 = BIT(16 + b) | (is_3v3 ? 0 : BIT(b)); + val1 = BIT(16 + b) | (is_3v3 ? BIT(b) : 0); + + regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL0, val0); + regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL1, val1); + break; + default: + return -EINVAL; + }; + + return 0; +} + static int rockchip_iodomain_write(struct rockchip_iodomain_supply *supply, int uV) { @@ -136,7 +183,7 @@ static int rockchip_iodomain_notify(struct notifier_block *nb, return NOTIFY_BAD; } - ret = rockchip_iodomain_write(supply, uV); + ret = supply->iod->write(supply, uV); if (ret && event == REGULATOR_EVENT_PRE_VOLTAGE_CHANGE) return NOTIFY_BAD; @@ -398,6 +445,22 @@ static const struct rockchip_iodomain_soc_data soc_data_rk3399_pmu = { .init = rk3399_pmu_iodomain_init, }; +static const struct rockchip_iodomain_soc_data soc_data_rk3568_pmu = { + .grf_offset = 0x140, + .supply_names = { + "pmuio1", + "pmuio2", + "vccio1", + "vccio2", + "vccio3", + "vccio4", + "vccio5", + "vccio6", + "vccio7", + }, + .write = rk3568_iodomain_write, +}; + static const struct rockchip_iodomain_soc_data soc_data_rv1108 = { .grf_offset = 0x404, .supply_names = { @@ -469,6 +532,10 @@ static const struct of_device_id rockchip_iodomain_match[] = { .compatible = "rockchip,rk3399-pmu-io-voltage-domain", .data = &soc_data_rk3399_pmu }, + { + .compatible = "rockchip,rk3568-pmu-io-voltage-domain", + .data = &soc_data_rk3568_pmu + }, { .compatible = "rockchip,rv1108-io-voltage-domain", .data = &soc_data_rv1108 @@ -502,6 +569,11 @@ static int rockchip_iodomain_probe(struct platform_device *pdev) match = of_match_node(rockchip_iodomain_match, np); iod->soc_data = match->data; + if (iod->soc_data->write) + iod->write = iod->soc_data->write; + else + iod->write = rockchip_iodomain_write; + parent = pdev->dev.parent; if (parent && parent->of_node) { iod->grf = syscon_node_to_regmap(parent->of_node); @@ -562,7 +634,7 @@ static int rockchip_iodomain_probe(struct platform_device *pdev) supply->reg = reg; supply->nb.notifier_call = rockchip_iodomain_notify; - ret = rockchip_iodomain_write(supply, uV); + ret = iod->write(supply, uV); if (ret) { supply->reg = NULL; goto unreg_notify; From patchwork Thu Aug 5 12:01:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12421053 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,USER_AGENT_GIT autolearn=ham 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 9F611C4338F for ; Thu, 5 Aug 2021 12:02:48 +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 61DA36113C for ; Thu, 5 Aug 2021 12:02:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 61DA36113C 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=s+UtwTNrFhgio8u+R3RGy2LKmVqHg2QslbVd5h1qwo4=; b=iZft8YIIY4MViw 89wCNPrQ5+bCFKsWO368TgfcoyR/00r8w2P/bnjpQGePZyYyeEKBvbpuEfrlj9P0744bDEHhhYlNN e/o9SI1v8VD+sf6LUinoofr8wMfa8DxkQOz6HwkHv/QE+1i1h610Cc5bWX+szuTzykoXZDqZ4jPYA Fmt1FT2xOPoevA6LRctrnAPppC5DOk9eAaDDPKxpgwK8UxUap7YlHcLMl0saT7EOWQ4ZXmOQp3Ij/ ptvEu+1jQRlX/3/f/e4OApYiD3KoSsqaHOX7Dec3gmDa4xiTUrYfp+eY1rxxN6joNPih8hfc4vkvx gg59UMRuzqQg9hXu7aUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc5E-009L2r-HA; Thu, 05 Aug 2021 12:02:44 +0000 Received: from mail-db8eur05on2078.outbound.protection.outlook.com ([40.107.20.78] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc45-009KVj-Lk; Thu, 05 Aug 2021 12:01:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OyDG7UxCqsMNHiiUxZdYIBbuFOCWlkwN/BCUAwOL3bllKHMcZbTIWYEcc8oZ5fW0fA2Phijaido1KH4QwOCj6pMBbLdHrY3+PHMu/GlsctEiiqYaGcb1shu1RGujnPgMZQcKr/w1SGSUvarOeYiUn6bMIrCoM2Xj9fp6+Z0cjOSF5htqZU8mq31ly3MbBm1CTgo95FHx/1244b6pnJLQ3pQXxem5y2q7YOJ2h0fKwCftl1dE3Xlv21tYavPztZgVgtW3lP7bqdpjQ+d6l7Bb7Po6R9mtvuyH2WhkNZ5Uy/NGn89DXnAqb8zKF6QLvd/xWj+Ab3FV9SZ0gGMWmgfpiA== 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=r/U0NRjJN5MTO1F6TknfwHPMb+ruFjQnqI5JN2HbLAs=; b=Z02RwVvYlacuW+sx4+Umf/Qi5s3pzUvxIcMZyifIJ/b5s1VYhISO2Wzn89uTb0j/KEPh5BzjK0XgopdJ42IxRHOv6CtGOeEIL8P7mrpFohb8K8FmNtRzkcxv+9FL5jqTsQkAELO4IVfoiHWgKJ13MwWFyiyy3AtauSJIuRf+EbllZcFK5eWfddMYD0ps55gcTjd+07/GLPB4yBPl0tB8rRoiVXzowAiZyRqxpJkhfanCpn8mn2zEQiOyxFbP9iu6ab8gC6lo35LwMkttTYm3b1TelYQnXdghXaptNPGIAjJv/zA6ehTQ2BnPwWR2Wbq+97YygUHYM1S+Q5R4+6kBmQ== 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=r/U0NRjJN5MTO1F6TknfwHPMb+ruFjQnqI5JN2HbLAs=; b=K+IKhGqRA9S9RLb7JEdSQfe8lNBSEBzBNSkPXFyz3U1AaFo9X73nPrrb6LmjdXe/G1Jc0EE79Y4z+m+2eyDxc64LWSaEZ3vYrmE1CTS6TnB5N9ZcWgkbop+ll8aj9cxsLuvWF2qJy1b7+Sr0q89oPo07RZfLGQfaTVnXXs7BbBg= 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 DB8PR08MB5419.eurprd08.prod.outlook.com (2603:10a6:10:118::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15; Thu, 5 Aug 2021 12:01:27 +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; Thu, 5 Aug 2021 12:01:27 +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 , Tobias Schramm , Johan Jonker Subject: [PATCH v3 3/7] arm64: dts: rockchip: enable io domains for rk356x Date: Thu, 5 Aug 2021 14:01:03 +0200 Message-Id: <20210805120107.27007-4-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210805120107.27007-1-michael.riesch@wolfvision.net> References: <20210805120107.27007-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) 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 VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17 via Frontend Transport; Thu, 5 Aug 2021 12:01:25 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bfc2cab9-312e-4550-73bb-08d95808c0c7 X-MS-TrafficTypeDiagnostic: DB8PR08MB5419: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3044; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eMXWbTKxsghmEDbkKZaFvo/U0qq+uuDuHZMam1Gm27NfvjcgA8SidmzeZEbPclddlu3tXntRVCx2yOOc2LXRpxTHfuw7ubotxJd0l9I0pqtpMN2EkigHrDBGO+Uq3dEcFATxEiUYK0fpJ1Qp0Jfz74IR3wBn/ZSmVsyhk6htucLTy0L1kqlB0MMp62fXGe3Bpm+2domhe3sEWwHLgL457ZaFIekELmcw4U8uLb3qPCi0MHw3tb34/FbDBeRCjHYn1RF7j6TmStDgVek2lwJWVjUftpnEyHdx/9gSmU6pS6C+PCYpVIURr2a9hcBkIS7WORkZUBNqeWD6Ji2/6JLVMqAjhZVn1b/6CS+bBhDsRcj5eV/Ybrn6bmhULzTRKV6DghJdAYshiLTOkxhowvrWQ3WlC32sHkUhAuy3CCNrz+effjdAEUvDoNKaFcfWHPp4IMUoMJCkklJLwcJH4nXRgVzrqhG1ji6JFXmhdcmhvm5qPcvsmicQvzecZQc4+pBdeioj2pJ0E25Nnwi1qb8l3dGD2BunA8hswwGKhEKXWev6F2hPCHaxs4hwnjHHMnOxjV6XI8EjUFYLJ4u/qnyLLIgWVvLSjxU3unhSlhcbxy8j7xg2DKk26cFX4V2EK+p4zHS/UyNff548X0LdDHDM1+4Ygnw/oh2ZeLdDn7oGNObR45IlMq7izFTYYkOE8wcEKnCcNlO4OnnwLxrNk0pnoA== 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)(136003)(366004)(39840400004)(396003)(376002)(346002)(6512007)(8936002)(66946007)(38100700002)(7416002)(66476007)(6486002)(66556008)(52116002)(1076003)(2906002)(8676002)(4326008)(54906003)(478600001)(44832011)(316002)(36756003)(38350700002)(83380400001)(2616005)(6666004)(186003)(6506007)(4744005)(956004)(86362001)(26005)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jUgagapuONxI3/0w6UaxK2STOfVp1zS6rkEFVBeh7UZNHwA0EVLlUmlBER+w32K7ktFwbH+0I/cQizNYJWlwHDPA31d8RF0neOvdiroBSkcyZB0Be7g+qk1PYCoMlk6Q+Cm/3KebxXaJtBWHpS/UPAG2fRN17F5fJ6y9i1r/Qafg3//GsyZj3KePE7xn5IWIlFksFzmVww4Jrx3G0fLre8hVzEj/tZr3NWbiQq2RqZZicamInEy9vJL0jsfsYoP97DwUB5puwlNfHEQVHWrKbHu/CPPSToavuLQbGIlXBPaQ+JZgHfcNtsgmDW5krzy/wW7HwmYODuTQnxSn989Y4kftDyYJiMf6LSMgyiw1e2/VUyHGuKRNhnisd7yK7CufdBgbpgeHxauaD5aYJc5DgPeFlRWwIRdNjPi0DM2LBonLUCxyWSKtw3Oqv1Byk+vQ99nSabuNwe9zs2+VfFh30v52ItesPXs5nwNdqUWPpZEng/SxNEFofSJ2xhSkm1v/aPEn+4HoQO3c2bbsCfT1FvMfdoOYVK/nuTfbqr0m2BdxLY5vuPsp4dy5Vcmu/wZ8iSm2GiWXOLRf5ZJlwEu40SGlnOUG63RRB9zXBM5nQIeaPluB4YVbUc0eof1O6QzhjcjJM4caUP2HM/ybSSDkmcAqp7mn30V6SmKub8W7ukNWlkskCM2pmCYwZOIoaRNtL9G2hIMiy5O4BblvGSDCZYfvnBk8TtL7lUZwgoHE4dTq73XUXGNSUEQhSHIZoMkAsZwhrxAGjg3mGpRBMAHImbp7ExYZxGneVvg2Y90WyQaFivM8V6wgO0Hpi6RKk1fWJFM4HQpv5Sd0q84y5tjndzk4vl8SPrcOgNlO4Rapgxvn2NAXeBKI4dyjtddAjn3ztY1nFpeyDNku3FHGV0UUQlQYzJTMykqzIBDfiebKr/rApD7sLz9PAiZDht9ZUra6Xu6S2na9AIcNy2UDc82c65ocAYuhD/qqtNEUWTGWDltG5EkkqmVoD8sHVI7RbhwyYP9oTaVKYpQPpJEvF4GqNJqNHh4hN1gYcOuL4nSkKjWZjNCkns1sZpP6SMyXMQE+dH1gzYBvEpIbDitfmhHOThHW8FozbrDBAtgiZLMAbWE+8dI8kxeRH8f9y4OZHfmnZMqBF10UQwCf3K3E70Mi3+0Yz78wEdfCiR/0LcLSGfVB7x43rHA1ZuXxygvI9gv61SbYLeWN4CBMJ3KEEV8dBQateoGvvblYZ6JrZrDsu8hgi2glqGm/fyaiY2qBF3S0zruYcEOsTs/rl8JLiAH7DQRHBjmiN3wLmoxZW39a98YjuE1ZDk71VnVvCAS0aPO/ X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: bfc2cab9-312e-4550-73bb-08d95808c0c7 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 12:01:26.8834 (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: aY1meD727vSaJ/SNOKQJ5MjfYsBDD9YyQL5uuHog5nw+KaqK7B+PFXUGVmnO6JAp6RSod3XLMJAI0bXz3OQsMklV1J/8nV3x3MgXIB1dkw0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5419 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210805_050133_763923_C4D711A2 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 Enable the PMU IO domains for the RK3566 and the RK3568. Signed-off-by: Michael Riesch --- arch/arm64/boot/dts/rockchip/rk356x.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi index 3e90a8832bb9..834863940eba 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -203,6 +203,11 @@ pmugrf: syscon@fdc20000 { compatible = "rockchip,rk3568-pmugrf", "syscon", "simple-mfd"; reg = <0x0 0xfdc20000 0x0 0x10000>; + + pmu_io_domains: io-domains { + compatible = "rockchip,rk3568-pmu-io-voltage-domain"; + status = "disabled"; + }; }; grf: syscon@fdc60000 { From patchwork Thu Aug 5 12:01:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12421051 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=ham 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 D69B1C4338F for ; Thu, 5 Aug 2021 12:02:18 +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 9BEB46113C for ; Thu, 5 Aug 2021 12:02:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9BEB46113C 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=XSBMI38eSLVQsqXclnMD70E0DCqGznpO3iguBG3SvGU=; b=Qh8RMRcTdhYzsv qNt/TxBFx8t95dLeoAFbNv0xPiZp8l4qnQTIOhtF7pvbVJ9MEjhUQubgtSHaT/dcsZjON37esbrUA rK8cjUNl4CXTDRYW+i2pLfqD5sih9fGAW947IBVpBtHE1LT8KuzewqEEEbAyb79nQTyxQEGtZKngo 6zYlvYzKXc2D1TB353t/nJ0jH1hu2pZHlWebLSVn1HNggEEmXPgym/Tfx1739OH0CJ8XXoSwKtLUp 3N+jbulWrudDkqZJD2izceEP48oNDZi8GZWfm8j02Doz9YaBEJnRY24qlR+b6Nm1iRQiBYbjsGP/B 5K0zlFTrz7LcV7bbBZkA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc4j-009KqB-Va; Thu, 05 Aug 2021 12:02:13 +0000 Received: from mail-eopbgr60088.outbound.protection.outlook.com ([40.107.6.88] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc44-009KXK-Ln; Thu, 05 Aug 2021 12:01:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GYCdKIgZGomULl8QaRkMJ8s1EHQWvaLqtRrr87hNjLVYnhZASTPVfFnoMnQLaitO0QFWBu2diXvh8kXj2J1AwUtvClKLOWRtU7na1q5IWCLZ55/c8WmbtkFj1jE4sg5CEy/uOtwdrvPdRe4moOvRE0OocLFpxTfV+hRS96VHsNqGILxKVl02NGE1EGLT6pe1X4Uuf1gF4pd+DZIOG9GY8rgoWeLGX1DhGWZkNmt60aItBTMJ9D4nD/sQfAS8IfjqN4c0ceH/Jq1pDvKvPJF3O6HMRaagtQWPu8Pq+zQ97pTAjeWqA1L7AOaBWjUlKuqKZ9IXnYsQcRrCku6kQKQJ7A== 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=BeeZSM+62ID7s71q9ZX8TCZxKXSF2l5P9CB2DtqoUjE=; b=MgMVMyulk4iuQSkY5k+Kv/5LHztg2Fqj6kJswYP/n45ooMUIpQYO40bK5zWeO294gaHzJgMfb3JspKRaurGTVC/+X4sgXh/wV85cTQnb2ltDhl8kUOZGDJ236MR73DEFhzrZus6ZK4EBEXllcOnt9qUdzEjnhFrGeqZZs5e3AXsrNxbB8WkYFeZ1bI0HLfyPgMJ/wdZW+OcispowZv12rhKUQoYzNjBJsltGG3fu0Txy8IYkoZluYTqKWQ6JW54/vrqKDMnh8m6QODQp5IGYb3kQbzFkH+Z/8Pcd3PuOJSefSn/CABkk1MDj+nchDonEr4B7yLeAnsu/1NWdGtqD8g== 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=BeeZSM+62ID7s71q9ZX8TCZxKXSF2l5P9CB2DtqoUjE=; b=FILqjB1Eywkm8w1KL9qTQsbw7ux08oDrjMYqbDP4XXMi7KZOIpD7rwaxcprgQbsd+hRvu76NYSWdV6wWhRAL8bLya8vRvfXEzyVta+S7ErFO+H/5MC56mqha+aIEeSbi3/9Fkvv2vvD7JYNrA6hu7cLBDTqSXUqX+G4z4a+sxTI= 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 DB6PR0801MB1847.eurprd08.prod.outlook.com (2603:10a6:4:3c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17; Thu, 5 Aug 2021 12:01:28 +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; Thu, 5 Aug 2021 12:01:28 +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 , Tobias Schramm , Johan Jonker Subject: [PATCH v3 4/7] arm64: dts: rockchip: rk3568-evb1-v10: enable io domains Date: Thu, 5 Aug 2021 14:01:04 +0200 Message-Id: <20210805120107.27007-5-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210805120107.27007-1-michael.riesch@wolfvision.net> References: <20210805120107.27007-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) 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 VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17 via Frontend Transport; Thu, 5 Aug 2021 12:01:27 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 88132d20-9f1c-4fc8-0f08-08d95808c191 X-MS-TrafficTypeDiagnostic: DB6PR0801MB1847: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3044; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s0SvNRVhzd2J+FcE0Gr0dj8kye1vxYRMQOoS6FIvy+/2Pz6ofN3RIxxaeqRbSOlNv/vx5gvu2OPLQ136dXzQBoNGhSeSCVZaS5qXLYMlWTE6/8dpfw00npM1YvpR+N83X7rD/KXq5gVlS/fDX/OxESQZYMS87NVjlGaI97KtK2734Dl66pYAjQXvRCLyvZGcJjxQP2Wvy92XyauD/FL6vID049JmK1ZOKWkXK8FrRKMjyuqF9HIbxaeivwZQtD9xt5gTYE3Xjo184lzrAaXdyW1BOkYYqGQ8r+nmaAJPf/1NwjNeOhnOXOcAz5iqDjSOmFA/E7e9H/UimO/Ez1w/0WZvhNN3jcqehF4/IzTHdL6DjdQZHbj7/G95JQKWhbEG3qT5nsVJIj6gcjFL5DxZqMVAK8dyV8++AtsmtQYTpur0uqRR45d+YvyyuR8CbfXe1i5wVfW8/CLecTRN4MbgnJHPXejcqCsPvmWdnjf9Bk5YS0iYvQk4rn2VpLS74NKZrxG//sgkGBcqR1Bi4hnZ6VTWdelMXGWtjowpB4aI+MDhvqhSlkpKxT6+n5VvlSD04XDBLiMC1+seFJd6a9Ts+F0OB81qiudZA99qF2xb06SOuC3JCkj506B4L7AMc3A7fQm9T+t3ZUKJ3ErywT5snjSQl2Q5TqCv9lYFPboHTMGcJVSuwGTmesJ82oCy121YpbZIMQWOpSgywEj8vNECgw== 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)(366004)(136003)(346002)(396003)(6486002)(956004)(2616005)(66946007)(8936002)(2906002)(66556008)(8676002)(4326008)(44832011)(26005)(54906003)(6506007)(38100700002)(38350700002)(66476007)(1076003)(4744005)(5660300002)(6512007)(86362001)(7416002)(186003)(6666004)(52116002)(478600001)(36756003)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vSYRh0s3uAd3vTnAbs2Hnw7gt+e4sA+tMGQkhJ+nMVxD9s1xAAIVakOWxv3W7o+ikEb9+7QsgcBIRtKMQlW1H/3PaYtyLrLyZCoTGLcqqPoYLaPV/jCg2j0VsRk1bmCabyScII/57CXfXVhTHggZU56XjS1gpVrbixbFk3548Llcql2oCgh4a4dJ1NRV4sESx4E1t7ctWNZ98uslhKpq2Luxp9hyiwxQ3ov/vME7lY9UvMQofuQ2qKZBSEH7umtHHnktyDh5sXlfnugJI7pLDIYZR+ZKQrZ7+wBYAvHGoxNXu2G5lsM+7Ai/xHiBqO4dSaZ7x+U0ZQiRcsWl1vcfdMaBTQSGvwTu4pu+WJ0JCqGn2Jr+cebwtX1sC/R/PWFLGw74jPQRPRTaIvx1LsVKYiN0XCTe6uC5sKYyvckz+1nShdOa1mnozILpyQ6JhHj3WzLroZIBTgtwYX9xvlYKUHVPa4mDOyaUMb1Me2MstSUWHB0ncb5N2xNOkPEXldswUoDSOuYYTZAC5c8MU3otBlT2aaphS4sVRrL6QC87n5LFqrwNpv08IFi6MC5cxkihJHmJRVaE8D4e08mGwKyCU7o7MLqymyBJOEt9ifVuT7CzygO3CrybNB60Ffp/YzqqOmVsHvO9whgyuDXeLR8fM5NKt1RQANvNBGun91s2ztRYxeaKgkxgt07dgo8AWomahbvcCff63aXVVhdXLw0WbMS9xsVSlvN0OfHnqEzujXPtO7kc0QJnxLCj7ScfYnOL8JuQO9R6Tqw16R2a+FksYv0EGAz8qeGbf67xnf9AhUQ+xIpaLAbnFcMBranx8df+kXMzeA+8g5N2ULsDPX+rxg6nWUJMm/bNM/njV7YVZZwFaYk6PM9tpn0NoRWZvl2fIfSbY1PQf4uHU7NAm0Plxy0K2+DU1isFvEDLL07k6mrW+Zlb3sG+i1NB0UKyB6LLT+QLWHuxbLZcN9v9QgY9CfNs5SZlfXrDbHBiSViAfqPc4jEvWXInKCeZhVe+vsYswpjE0Bi5039g6TnHdweCNIw+qiG0in+yvP45PWiJCVZTmnE/ci02OHieg9I3v4GeiczHLLaZEDjnjUBJObyHevPvhGUkaYhxYrwrKMjMy2IOXZNnXEPt6PIwzEqSxeTFNO9HpFj3dkotdA3kRMkzJMlYG8suRH65kD4XqmFkh/5s/LpviidMmK9nO7p01FNuZPdfw8qK/Yzja4O/RGYvAXU24H+o7tmLulNp2jIi0YH2vr8O13tytx2swZ9YJ9Ti9zzRq+GHob42U8Fsy5N4ESGoxHVUQTzub9kxMxaFL4NsLKCs8wIV4t3ktAiOyEBP X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 88132d20-9f1c-4fc8-0f08-08d95808c191 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 12:01:28.1956 (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: jcbEs56kaj+YsxLHbAwNkLAVEcfXwDvA1zUZfG90CNsUK4qTRWTFbjiBW7fVsYgRidJLNm3CJJGwlyScZoKFDWZPwkjBBYyC69SpLN2yXmo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1847 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210805_050132_758775_DF2D6DEE X-CRM114-Status: UNSURE ( 9.67 ) 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 Enable the PMU IO domains in the device tree for the RK3568 EVB1. Signed-off-by: Michael Riesch --- arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts | 13 +++++++++++++ 1 file changed, 13 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..287b58aa6a77 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts @@ -124,6 +124,19 @@ }; }; +&pmu_io_domains { + pmuio1-supply = <&vcc3v3_pmu>; + pmuio2-supply = <&vcc3v3_pmu>; + vccio1-supply = <&vccio_acodec>; + vccio2-supply = <&vcc_1v8>; + vccio3-supply = <&vccio_sd>; + vccio4-supply = <&vcc_1v8>; + vccio5-supply = <&vcc_3v3>; + vccio6-supply = <&vcc_1v8>; + vccio7-supply = <&vcc_3v3>; + status = "okay"; +}; + &sdhci { bus-width = <8>; max-frequency = <200000000>; From patchwork Thu Aug 5 12:01:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12421055 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 093E3C4338F for ; Thu, 5 Aug 2021 12:03:21 +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 BF5366113C for ; Thu, 5 Aug 2021 12:03:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BF5366113C 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=2FmYuo8vBwzyopfmaNivm9W5X7yDkFJXawo4SP6wiMw=; b=Vy/E8HWGfN6JF6 LwaLMSzVTJHCpw33ijoQNHsvoo0xYqcMneGxxYfPq3r48JpdxGDj4uUvkMnfVLDDzmZnYAQHcKfkD /cezGhjFSYykoVbHUm64X0I+e3vP8riK0AHfDRwQ/RoqEdZjd9oMRwL7Xus8CX5gbmyPBnlnGJ+Dy wmiUWcIXmxCpZTSSR8NsGMq1BXj7lmTAUnl2AF7KTOUCWY/AXSPu+tL+dow1PU0SdTjdeZeX5cdjF PxL9WWGcF5eKLSvB2QnwhrXUM3zAkuThgMICkcebj+gV+wjHPi+K5I2X7SjsbpSJKdBXYBLgu1MXj Lo4iFDvlDt4TnWsudynw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc5k-009LHk-Pe; Thu, 05 Aug 2021 12:03:16 +0000 Received: from mail-eopbgr00085.outbound.protection.outlook.com ([40.107.0.85] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc46-009KXY-FW; Thu, 05 Aug 2021 12:01:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mZKaMkx8fRv9EPolLirTyY51DeMTotdIAiV5cZ/Rz5eohj4tRr1cGuB7G3BcK1ElEO9mYkz0QJ/gHPWn/74qCRWbHtGwd/8hiVxU5yfqmzGQ4zGNy2dTeCNZGKq5gbwvk/ATuj72rfCbGQTSvfNoAchseaYMo8Y30L7HAY0Zf8jdfLVXmG2H4qCcC1GQkZDIBawZQFMlGI8yCVR2kaBIAPrKK/HorTXtvYDOrzhpPZfYGgmZuEcdndBE6EQ7aQaVx89IPoiATMlBT0jg9oNSLSUwxQ3odNy/c8vK71YJGLGObA9F2mhz4Rj6nQOa+MbVy6U/9qmh+WctijMEmYLi6A== 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=zakYE1Ce6YbIpqANrDgpgwKBLQMbF5jqqIZHPDQoqj0=; b=fOmE237inPcCmRvhfi3ijEhqRjckO070WG1sMUJD69TKw6MuMiR/497X0JI9TlavvJgnGyYBT4myXfrCkJEMV2kWIFytcXxTMNR8z57ao8q1qF7w8vj8CH7UBgpFa1VxnyyKtvitMM1Cn6fhMvlsV3z/GF690CCvEi1x7RTYNjtVW1vPTSugA8ztcZWpvsfSm6yQtIM1mQRTMEnRIjlbHZoOuXvoBpOg1b3uDzyeMT6ZK5VK6uEkpaT8d/HVI9fWr6UQxgUSpRUMmbYS1BzPJQKCO0Wg2bibGzvpzDCwbVIdsYScOZgW7KkCMjkRUny401SImrnG6niDBlnE9TAJLg== 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=zakYE1Ce6YbIpqANrDgpgwKBLQMbF5jqqIZHPDQoqj0=; b=V+SbBY5mT3BO8uqmKqqRwilAP7dT1OWBin+ob4wSLJBA8lmwALav4R604sHju3G5dzUdGaMdPVIkcqqeawbCAEwsPFbdnqcqU0SrlqSRn67W6j3cKHCEsFW7ifPwWfyk1ns+xtCUtv4T5NFXP97n9hPC+1xirGwlqnIwpk87R7A= 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 DB7PR08MB3865.eurprd08.prod.outlook.com (2603:10a6:10:74::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.25; Thu, 5 Aug 2021 12:01:30 +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; Thu, 5 Aug 2021 12:01:30 +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 , Tobias Schramm , Johan Jonker Subject: [PATCH v3 5/7] arm64: dts: rockchip: rk3568-evb1-v10: add regulators of rk809 pmic Date: Thu, 5 Aug 2021 14:01:05 +0200 Message-Id: <20210805120107.27007-6-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210805120107.27007-1-michael.riesch@wolfvision.net> References: <20210805120107.27007-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) 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 VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17 via Frontend Transport; Thu, 5 Aug 2021 12:01:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 29dc803a-d0c5-4a40-2862-08d95808c257 X-MS-TrafficTypeDiagnostic: DB7PR08MB3865: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xNeTOE9vO4oWNvpajzqB6Yh8dSvK1RmKfOa8ep5Nx+El9Tyw+XlIbSH3i5LAoe7mdW8iTOwqOTVvYwYWWWWoI2c5pZAgUW7fo7Sh0itAR0qgNGZc0qxdJ5/XfhHa0vE90gZ/hANn+FjVwxkH9WwkvIZmI9nhivaYmFzmxOPEAWzAE3TnV3iU4bj+VLMBsYsQp8JDxnP10wY+SosN2aDGq5lGK+wB1rDDwfCODt+yPsCG5e1YOXJTD7uina/TsaO4lnnruOHLTxYC1e3jQhJIcA4X7mH+6g0YxTRBJEt0q7Of6/2iz4sa+7dSjMDDLiGAsgQ4u2iTCatQRQVlO4I47ftHztbUfkWvndMLZopx+v4S7I3vCnZlYzxR4G0tCvbeh23AY05iKlcBNVY0/D4Y4j5hzSmDE9sMFEI2GPVKdZMcAZryjaMF5e3aMqzTzww1yYUWKINm+aNnWlJjGQHWOUVq0ZKqyO67hjlCFmpV+83tCi79H5QKIfrK6kR/ud3zegOiVwYe8oneBT4baojwOR4oa8DDG/u/6hRDhQnF7Mr2UGI7hFapn9p55TqmDiAypLw59zqGk/cTGJWDg9FYN0mv3zWiWgwQRTcHNHrWuvAN6yjQ7qllr3kuNfZFU4qsV/O2PWc2uakOYriQeKGHxYD9DwFTjyTC79JeUEVuD6syx7FzDJLVijGiovUAFNSvijU8iZcjPMm9YoGOuZtxpQ== 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)(366004)(6512007)(8936002)(5660300002)(8676002)(6666004)(6486002)(26005)(38100700002)(36756003)(2906002)(6506007)(4326008)(66946007)(508600001)(66556008)(7416002)(66476007)(1076003)(38350700002)(956004)(44832011)(2616005)(54906003)(83380400001)(52116002)(186003)(316002)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: M0HCJ+r7tecU32da+jeHzEayYENmcoA5HkqGZX54fpRSwqjMeaXCv2Q3jsdjoxXrHvHKHF/Ld/z2Z9PS2kemsg+UsX3b4UiCyjDCXLc/aSMnLuxxLw2zN3ssQ5SZAgzkWWUhu5iJS72q3FHdMuziFl9+P4Cl1MMyh491zvGaqQZl0JEMW45BxvL1AqFJ6NVPpPkG+Zev7MqpEyIIfozAC9M3aTu96NFd1IJyASh/sM+R+wPqCetuNCru0Y6SJ0YANaMwLt0vgX09HJ+FdOWiqQDGdBQXvjBzKAtlJO8P9n5pxcX7mB4lKt5HOBvjgbJ66/cc+lRRxIaTDbTIWO+U8Xch6Umtotu/GxmKa6aPAYo2eVZQqSqN84cXSwxLMrhezjZgCosyRxyea6T8gS6velZkYYdIUTt5p/7je+goCUX7ozkO/5abksOZeGnIUUyekRsNO/pdpNwFNGpZTZo8nmfdQdYzmapkv3TgIrceZ3N/l8Qy9kdG2WsB0B02+27ObgBq4rlxPDR58NwErhwnuASK2da3iZiFHng3uYZpJTNHEndjMlhB31uL1zUH5Jt7QCZdkfp1UYIyBHYGkGKUA+iVS1sPE5nJ8z75gi6rpXpED+N6F+smQoXzIGxnbxzvWX1sWkFT6C5PZe54o1qYGMFbrpEF0eEX/acp1+38ARJ7MdqMIWHVPiirPzAbfpFns72AfM7ePz9mRgDRoo0hVySesRCR8TJF/rXBZI/pSAZpypss086/JmhfB4V2GQ8TKAbfB9xsRFqVugIYJa1PHp1yKS9rU/klbhtO3okEIrxveIhvZ/UKr/VTPy192QjYasOfoF6u4nlE9SBJLLdPLCfunbmsO7eUyIJFzk9vJsj/QIRKmPdlwrabkURrCeXl/Q7+07QrL9Gq6NvZC3X8bM3Ekhj6TSyWJixuVvF3ZOJqfv7oFERXc23Q02hr/zOvKYVPo3cAeA7V58u9JLr3g4b/yG2+uuqzxikWgtlWga9FWENrAgGhO/4f9z7voOr2Amlr3r7eY1GN91fMDRE2YZ8gX2f6VHecn/9N05JBazx3bSGyc0HrDXlFPY+YjQ+8Be9gJUSwglJaX5+Qv6mSf+KKzAJWe3k8otphz7aKB3OiAGNLDD2GVjTiOEw4OLs6VIzcDSPt9cH24uJ2rhWizBTRSbUxbo59+EVJm4ribWD2rPh7sODDGTzP/vMyWoQ5Vk3To2FaMMomV5OBRlkzS5jwBqNERBSnp4BaEosGFEm16SUUMyirzvNYHuk6gA2ILsuKIXD0q4CtBQoMkaqHFW9ZVihFfU02x7NeXlXhHg/ulIkt/XZie2siRZC4iQPs X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 29dc803a-d0c5-4a40-2862-08d95808c257 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 12:01:29.4789 (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: bRvS8qNI0DJGfGamrPwfbr8u6Me2X1njNiJPMKjxfVrSYggAYRzFqnzbhIJVxwm5qhAu/m/rUYylB4TNcyqhSp/tztIKB/69l7UGOUieZXY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3865 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210805_050134_562220_67433F3C X-CRM114-Status: GOOD ( 11.08 ) 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 Add the regulators of the RK809 PMIC to the device tree of the RK3568 EVB1. Signed-off-by: Michael Riesch --- v3: - sort device tree properties alphabetically .../boot/dts/rockchip/rk3568-evb1-v10.dts | 221 ++++++++++++++++++ 1 file changed, 221 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts index 287b58aa6a77..92af4ce89b70 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts @@ -104,6 +104,218 @@ 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; + 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>; + wakeup-source; + + regulators { + vdd_logic: DCDC_REG1 { + regulator-name = "vdd_logic"; + regulator-always-on; + regulator-boot-on; + regulator-init-microvolt = <900000>; + regulator-initial-mode = <0x2>; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1350000>; + regulator-ramp-delay = <6001>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_gpu: DCDC_REG2 { + regulator-name = "vdd_gpu"; + regulator-init-microvolt = <900000>; + regulator-initial-mode = <0x2>; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1350000>; + regulator-ramp-delay = <6001>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_ddr: DCDC_REG3 { + regulator-name = "vcc_ddr"; + regulator-always-on; + regulator-boot-on; + regulator-initial-mode = <0x2>; + + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vdd_npu: DCDC_REG4 { + regulator-name = "vdd_npu"; + regulator-init-microvolt = <900000>; + regulator-initial-mode = <0x2>; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1350000>; + regulator-ramp-delay = <6001>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_1v8: DCDC_REG5 { + regulator-name = "vcc_1v8"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdda0v9_image: LDO_REG1 { + regulator-name = "vdda0v9_image"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <900000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdda_0v9: LDO_REG2 { + regulator-name = "vdda_0v9"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <900000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdda0v9_pmu: LDO_REG3 { + regulator-name = "vdda0v9_pmu"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <900000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <900000>; + }; + }; + + vccio_acodec: LDO_REG4 { + regulator-name = "vccio_acodec"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vccio_sd: LDO_REG5 { + regulator-name = "vccio_sd"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc3v3_pmu: LDO_REG6 { + regulator-name = "vcc3v3_pmu"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vcca_1v8: LDO_REG7 { + regulator-name = "vcca_1v8"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcca1v8_pmu: LDO_REG8 { + regulator-name = "vcca1v8_pmu"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vcca1v8_image: LDO_REG9 { + regulator-name = "vcca1v8_image"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_3v3: SWITCH_REG1 { + regulator-name = "vcc_3v3"; + regulator-always-on; + regulator-boot-on; + + 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 +336,15 @@ }; }; +&pinctrl { + pmic { + pmic_int: pmic_int { + rockchip,pins = + <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; +}; + &pmu_io_domains { pmuio1-supply = <&vcc3v3_pmu>; pmuio2-supply = <&vcc3v3_pmu>; From patchwork Thu Aug 5 12:01:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12421057 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=ham 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 98460C4338F for ; Thu, 5 Aug 2021 12:04: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 6538D6113E for ; Thu, 5 Aug 2021 12:04:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6538D6113E 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=AZeVlVuyFZUv47MSl+Q9vnrEv8RsswUI3C6bS1UCr+0=; b=39yVsYx4KaGBNh NljfbzjvR9jA5iZXF/c7e5l1e7mtbl4EAcTjOOT/sFt+Ejtzey5d6BYgQrmQWCQgUPaOd5HAbRnQF vqZsW0RJRCVfW5M/fnLl5uxJ0bO0/IYUoP0HyfjUfikOMpoESElgkBk/uepPvApWDDPzOwMFJ9+Dv xi1I25PsWUO3dl0ZeQWMjyfx928YLMINA2JKuFnBbSU4+UWcULIia9WhP1mMWoVOiA03OSc7XPPsB VgJZ3Em/Fa5d+zpQBTHHC1LNf/Lt+EJHEsrQwNGmx7scc8i/IpUCdVaFbxJq9UetbjxIuCgc+TApl 426scbu8FVL2PxfsbBhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc6W-009LcJ-Kc; Thu, 05 Aug 2021 12:04:04 +0000 Received: from mail-eopbgr00085.outbound.protection.outlook.com ([40.107.0.85] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc48-009KXY-O8; Thu, 05 Aug 2021 12:01:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=daWyftDZpC6Jaj/D3wrEQReiI/WtU8vYIP6hLOd8p1yGwRyC7kNTsHzqxfyMfTsc3tOPh6z4SQBy+DrlO3wuByCvYDahWQ+zQxUVneT+m7zKKX6C0TQxX8SKmgcS1AoUuZFD0Cimh2OvxE2ooC30o852ISlPgr84vvqOYsy4A36qF7QIZujaYABVOnvIyotkzBMhhs09vbjYo8rXlyvNFPkJYARwpcFayb1sxRjpac2bDF/6duGNs1ScPEd7/w2sZ7xrTx6GDvuFkRyGGiDJ47pNa1aOb8IW9HHQaxI6jvopMzvpj7Q/vEE34LFnANov7doTrRjPLmd5FHF5kTTqkg== 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=lMeKaFya5E5BhDlzKXqnjSDJVjSdRmPo2gngnsjMstQ=; b=XJRyNoPHKbT9M80abXF9esIaIECN+DX93dNC2WELtmWCF6Hcb7FiikrM7mXNna3kMPQRWzZ7UupJ/i4IWGOJTC/tzfIulox4qCFtUYw+5tbS5qGrgKk9OYGnMHiBDPji1WfVnZvJQlYL29eeKX4dEHhqVgYkDjXXZXYj9GqmgkFzUYJWKyw/uuKVct4Mf9I3oip671ua9AYq701FKv5a1Tfry3C/TXGb9aSK8L9nQVrjHjTUv93Oq2GBaKHOo5MEjc6egEFa/fhNQ3oHc3fvLRtZufdR4eCnjkjiRLQE2SggyGAAHHHyBHAhIDX4pLG3cnIBQNw4mc7G4LcNfKnRgA== 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=lMeKaFya5E5BhDlzKXqnjSDJVjSdRmPo2gngnsjMstQ=; b=JxhlfZ5W/6iEAPxx6UWsJrkWpPST5fZSyX0CfDlxCtIJf67dZ1yputXPzi4NWlV+QsXJASyfiKtnro9FRwBW+VuYfxBrG6sb1x5FKeldnSCcNx9nE9ebSHOXyyuH3B0XrBnbOD/OMTHKw/tbie4Zlc5KF1LdGP6DTOG8ATKbkPE= 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 DB7PR08MB3865.eurprd08.prod.outlook.com (2603:10a6:10:74::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.25; Thu, 5 Aug 2021 12:01:31 +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; Thu, 5 Aug 2021 12:01:31 +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 , Tobias Schramm , Johan Jonker Subject: [PATCH v3 6/7] arm64: dts: rockchip: rk3568-evb1-v10: add node for sd card Date: Thu, 5 Aug 2021 14:01:06 +0200 Message-Id: <20210805120107.27007-7-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210805120107.27007-1-michael.riesch@wolfvision.net> References: <20210805120107.27007-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) 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 VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17 via Frontend Transport; Thu, 5 Aug 2021 12:01:29 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4a98e94a-424e-4e74-accd-08d95808c370 X-MS-TrafficTypeDiagnostic: DB7PR08MB3865: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1227; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 72VdU+G/fFn/xzOcEJtTiPvaHjN9HlS1H3nFwWv3GeFFZ+c4qy4Qji2pEeE2tkx3wCE+WTYFpPwbQFS/6dC0TnNyNC7cp9ULWA5tEVn7kveyDKDoI16IxOjnQRsQvQYPbSOE+DbrF4SBpwmYe59FRC/18NgBvW7703cyh0Qc9SkDv4m0leMTkxG5nDecwy78oUuh/YGsovJKzUMCW98Wt/1qjCWdwkmELo45qK5rdUM4Xcl9ChxUe7Oo2wL4oB1We1Io1I5SmQ7Q+qvzun467DaRjTfiBDCBocJyErHsfhpKz/wDdZOsDyRTqhoB1m2NTZ4ZBpwydO5kpRqBXbpN1rk6FoLtgVM73R3fdbyfbusFutllQNu4d6vtoZfYhcLGYj/C6XjT6rHAQlQsBK0veN9BII5p+iKoSuEP38P/cpt2V1GDRjzM6G5EzhClnkPnVvoUXAS5mCqArSK302KPW3eDWdgSuFlyzXL5dOmjtA2o3z/qLM52SPZO8nTi8/gwn0ab3fItSm1e28r7aVk8YcUnVLN56tZ6scRAC2jsG+R8K+xsadUK1mDBmbMML14n8Aiof2H/rVToP1J81tVsilAgyp6tdvzCET0AQWodDkbdYDylFpyf57nRkywMFMeXE6jq3/wpFKeyLGY13ruos8SAEm8PlwXjbu84vK7GA5NuKA7mW9cKyNUV+Jou2hs57deuJFp5B1tekISCamMEwA== 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)(366004)(6512007)(8936002)(5660300002)(8676002)(6666004)(6486002)(26005)(38100700002)(36756003)(2906002)(6506007)(4326008)(66946007)(508600001)(66556008)(7416002)(66476007)(1076003)(38350700002)(956004)(44832011)(2616005)(54906003)(52116002)(186003)(316002)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VcJBGdBBrbdYrb06heSxVrdADzG/aWwgZNlAtqdTbGDKsVvM9Y1nKxjvV3vqF5QiSbHul67mYHRgA0cFBFJjvyjqDmvGbEdZfFXdphvOSLEgWRcNC+lWqQCzbRW45sYP60C/NjtzpAHjLJ+TkfJBtTATGDxsSuKufjpQkLCzpJOBpPxYRzOb3lUYIW2z2sd5mnegGwQrvC7Mg+frvB5b9qZ/cnCtwKLnmr6W/e8t1mG9S7Ndl2OSbVPJeABqUsPwir3e1XWMJBqHUgQMM8oCiI4m28ZiSP4WCyeCX7eeSbGMzg5oCq6FeCGhDZQHiFZa5j3Z+svolm3trVmHmWMISToKSAqZU8stek7pryaUZlS0c9ktcmjbgvZGzBbD+H9p+jrOiHkSe9I3qbh2KGCfNvGJQUJYgBsJL7HJBKy5M/SEnMhhoLd4Kd7tvlmSmfEDQlF0mMZsjGkjhM8jkfk87LNBYFuXgIvHm7SvlqndH8MvVivJNjF3e1i7+6sV0mg7gN95ydQKeib5fjY+wev8DIuixewoI0MquS7tt8/8WfiyU2NPJoraKZe1vh6A/hFbxQ7BEj3KOtZmt63pj3xcZgvdoNrh9D+PkR4vC/1VKiXQaPs8Crn7cqVHLuobY7t425nKb7M75NKHxXFxpOvkYvKDIoeycnVsI1AOjfLpFCLASlWC/+OHlURSjXyzt4hcnVl563hNHXk1Uu2pFQbzl0m3fnXatwn2UMgem46JBxqORLzM+ZqI6w+GwQl55KM1n2V4PpJaluxoov8gsItsJb4la8NRNjk+yoMC4OVxrIOg3HXeWZKVapHgFeFZjnrWzgyWBINNlGoiNCcoqcNbF6n6oBcW6/zbNSvfVNJCk6BD7kjGr9MHFCusZvMXiJm5TrwpDsyHtLxiVJ4kpsQDSKnRQ/ry9wx5bIfYxOJbNdWPXKiqLU9G9h9aT++u8cZ+nTV0xIEZGHu8wJhlbW3/bWwcckcBguiGtm2VfWirs6no3O6COeXwVtCUBhyTDpPpxfDqYNKuASWrr2c77yPC4ChERWUVgCvr0N/n75REkrXBF6+J6aSVCk8s/eobUoXDVgip3mCH8tO7TwOC1hfH88V8x0OQGQQOk8WObDufzSULWFnIzHsssiZoSDClH46LjAW+nw9w95bLs5hnRSCE9llo6httnPrFe6HGtjKUOF2s9XAEscIdN3Zx3/RHOiNuunOHGubhEk8vu5iXJaNUULk6soCh+YRZBfA0q7leCaXNbcwACZ6ENXoCmtcQWTh+a2rAu/G5z7MHo8txpacZS0lOSqR1DHXLtdTtZYIWUJZ/MIjJeQnuK9CRFhPgv0hS X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 4a98e94a-424e-4e74-accd-08d95808c370 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 12:01:31.2759 (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: 4RSexPUzkBRaFS6xgYnBZbhH0KHP6/vBIxsbHYDtV5YnniakoTWVlLpLOR7JM41DXbD378SP0fKBDNlzyn/SW5Vzc5VQGdnsszDIgZNmObk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3865 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210805_050136_830527_9E5EA988 X-CRM114-Status: GOOD ( 11.76 ) 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 Add the SD card reader to the device tree of the RK3568 EVB1. Signed-off-by: Michael Riesch --- v3: - clean up device tree properties and sort alphabetically - revise alias arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts index 92af4ce89b70..1c34d529b771 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts @@ -16,6 +16,7 @@ aliases { ethernet0 = &gmac0; ethernet1 = &gmac1; + mmc0 = &sdmmc0; }; chosen: chosen { @@ -365,6 +366,19 @@ status = "okay"; }; +&sdmmc0 { + bus-width = <4>; + cap-sd-highspeed; + cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; + disable-wp; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; + sd-uhs-sdr104; + vmmc-supply = <&vcc3v3_sd>; + vqmmc-supply = <&vccio_sd>; + status = "okay"; +}; + &uart2 { status = "okay"; }; From patchwork Thu Aug 5 12:01:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12421059 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=ham 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 1F8B2C4338F for ; Thu, 5 Aug 2021 12:05:16 +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 CFE346113E for ; Thu, 5 Aug 2021 12:05:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CFE346113E 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=E1PnT8a7ZuyNfPJos9IOAw1BUqlYXI94iXdTIRnzViA=; b=sDy32txHsN1MsV KAeZvqgJYldK4jnHMSYmjfeNiu8ITepEj3dh1JLWzXNWOe8qs1VSTJ1gSAUG+SXeec7MY+Ln7Te13 uwM/7r2uu1wD1U16SWm8PtPMEKGArBIZocoI8MXgCgVcGLTM37NBfZ1+b5U95nvvxkmrj+P9w/g+J QriS3ErlV4SNrm0JMY48PS6dTcgtRIrZIE/cVDfi1wcu6whb4Trl2eSr/2zcKRb31SV788jV3aSfJ JlFDDzH2w7TzpTGU5UQbnIvc1jlQFw84XJs6S2jXYGCsub2qnESEEVFE3iul5yDl01qgswvaeajN5 I9FYNNt4Yra/tT2bwwTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc7b-009M4t-QC; Thu, 05 Aug 2021 12:05:11 +0000 Received: from mail-eopbgr00085.outbound.protection.outlook.com ([40.107.0.85] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBc4A-009KXY-J3; Thu, 05 Aug 2021 12:01:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lo2p6ItmrYvtbgXu+PjwllHGsrSWlGBptHFdZUbLQD51hOSMhq3TzWSkrXCmULCx0Aft+QK7Hz5JcXRLgibrBXINMzHWIEmVN5ThgVRH8tPEHZQ1Hq+mkpRYPxBn6tjacu0wz/YBVtXPr3UZv2RFLGBBOGxxnD9Bwx53SvM8ntXIcPZvXvi9LNNahb2fjp8tpAxLdF/hEs2LpGLxJ0Rtu0KBNdS9ZfmWdM1+bUdQb43IKfJfDhwMjgHK1RHuMYr7KSnuc1LicigCCk+E6J2AkXxiad86pKSij4EGJSN0e3K2ka18poyWb0sRzsxXHx+jc25J4mFcmec9By9XYF7JiA== 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=qGM7xdNl8qTh+F2OjSu0oxVzXyI1trZBaIy6nQkBlTA=; b=AvJpniLwSFqad3S8+4eVifOLqlEZA6U8ur/HLHTZ4qrsxVvKOu0unNDLYgzu46ANYVeLn2DTWtKiJ+QsyCqK3e/rToCy6rCf6+af2bGufzz7cANcs6cgkS/U1nXSQJlf2DLYWqw+ZhedgVP9jBIbFrGgugMFUooJicNUk/MdR6h7yVtkqCLqufQY3dLT5Y8WkzvaWD9ftvTsGbSZn1Idy5btzjnjVgiQzMI7kp7pQEwHLqByk6K6jxRxV70Ie1YyOjipElG0qAspSRqUo0JhxyX9HVQZQNXozld9oDcGUzo0Mq50owxeTc6Kt1kjeFz0EnFIN0zhftOTvlZOFX84hw== 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=qGM7xdNl8qTh+F2OjSu0oxVzXyI1trZBaIy6nQkBlTA=; b=z2FZH9fYRay4LqFhJjZJ8tDkM9BpwePltAkNkGTXgc1KwNerejWIzbgvERHyuDdqj3gEv0cPGBAKkOk61iJtqhgJIh6hkw4nNjeCsSbm0zwssdyxspiNh1mSyRaZqLoAM75xLI3JmIZssT+WvulfpU/Mc1H6jtApMLmaALXkFNg= 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 DB7PR08MB3865.eurprd08.prod.outlook.com (2603:10a6:10:74::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.25; Thu, 5 Aug 2021 12:01:33 +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; Thu, 5 Aug 2021 12:01:33 +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 , Tobias Schramm , Johan Jonker Subject: [PATCH v3 7/7] arm64: dts: rockchip: rk3568-evb1-v10: add pinctrl and alias to emmc node Date: Thu, 5 Aug 2021 14:01:07 +0200 Message-Id: <20210805120107.27007-8-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210805120107.27007-1-michael.riesch@wolfvision.net> References: <20210805120107.27007-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) 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 VI1PR04CA0099.eurprd04.prod.outlook.com (2603:10a6:803:64::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17 via Frontend Transport; Thu, 5 Aug 2021 12:01:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0362f7a2-7a29-47e1-181b-08d95808c43e X-MS-TrafficTypeDiagnostic: DB7PR08MB3865: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: x65xH0eq04fYIXy3Z8Xy8DajLtWj4dcEfgV3GnU/FOMFoxSCcckMWOXymW7CwZ/U2UsluBiYVtLvwgs7KGuiU3RCwm4BGw7aRgCAqN5IppgPMmqIKMOPGi8BHhzJQ0/9/hoGV6qfqDWpH/2y7EBeMCqff+vySXbSVp+itNWBSreSOdfS6KfpoN0sb/anWgFwYDqBeVHuptYU6JKHespEkBTny+aj3vXTFqg9pgE32EASFSMg5znAoBEtq/NEJuA/figZ53z1wiGWP24/DWGYVo+6a0CQc1/lqDqbXHhCp1/e0ctGty3ulqZMU709cXdXiTiNhBWBCG3F49cVWlGFB6TeE5ezjjpyxwXNRzXfOFQ43fqQgB4698D9iSEG47J3AMdkw3EROSXTlPaqsvr3oZ0J+41QotJ7XTwVyoPn/6FuyZQXJI463nuHFB8oFPH2fDCJNFnm0euV4SPHTAGiA20ADKxrRxhJiTdTGJ0+J2HszDgbv65WChXea+RMUDO9kxfwsIqz2umiG6aS2AfUCt7i6FoErQL5AnSR9V0KEdZ3JyTqnl4TUB8KfwL7ORaWQ90HhKTOJRAZjjKRwSsCLR+fHBtvCoTnNPN33Y4Xb/Ep212I5MT+OHZioDrHYNQD6lILJ3SRL+lSPvMoSqGDBOfP1B9TavnW0btGMcW1RpJtL0HZP72BZmyT89FF4l/iDJWbRVUHLSJ7/uwgUEJ7UA== 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)(366004)(6512007)(8936002)(5660300002)(8676002)(6666004)(6486002)(26005)(38100700002)(36756003)(2906002)(6506007)(4326008)(66946007)(508600001)(66556008)(7416002)(66476007)(4744005)(1076003)(38350700002)(956004)(44832011)(2616005)(54906003)(52116002)(186003)(316002)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ho7hqzXwtUVO6PcMr4HtDvJL8lJo8dSvv7X2jUM9Lli3QvV28pPssTGJGi9ZdbMqCym6I7GG/ys/HhI+Dgt5Cyxc4rcOO9Dm8R7i7kV6J+HrqS6rk8bG6OLUi3tdiWw/hLOZUYMwo+FxgBi/OgOXMt/EzLo5dfi6ZtlyBRr55wmod++C4xF5x85FznSoygT8s8h4p6uOX+/SYRYi02xHCBPguh/lEabp8JyHdrI7dk928qjJPd4UGKzBgKtqAsrVWasqe8DSnmCM3ifI9Y8x8zE5/SVVolAsLKowpM6eLPBPVMf6tX7xhxF+mGH0KQH3RL7707wq7UwMgqcSXQqS0uQJRlqbq3VL+Kvs/S/kFl5x8jbZJm8vY7mTX6s4rk0q5BWPZTE7kXE2zbV4hsBtfMzR8ThPlJ18kau9pf6ObEdNNqehNNP0N3oR4hQdwFdfS7jSiS2laqAuwoC7T+687mElwg18JcJTEJMbJfVNGwzTh9s2wmGzvxeVBlDKIZGtaFBX+gZ4GeAsE/tQFBr08vdDecBhYyhEuip/F/Wmac1ZJ3BTZPJdWm1ORAqX6vnpcCg4eg+sEEWDEL2mNy9mUxm6tjqH2yhGAJ7dqZv9F1B0jUfqG6wScsZlsXL3CSwQNxxCu96StLVLW0ySrPFzCHcfaMKEMQH24+XHqx3w3L/qr72VKXooE/BQ1x0RyibjbqR+PAJcObKsvYJ1Wgan0RbxgHUyHrnyijROS3aDkm7oqq3jaUK5AUbKe93EcF6p8DGDy6k3rSdma5mr1t2paCXRnE8vkJf4X6FpWEJWGGNGL9TucavtUTrK9gujVCPH7VFjfMVuIevton+eYGeYK2voTGE/aoeIssB31q+rTIb5FdDVhMg6KC2/C3KgtEAE6/Dudqk1naU3FcyZyWKGByYBMvmB0XRzLTEjgn3R6N1El0hvShJnawlCbcnTbQ+jKELYIUegl09WTKIByDHJHuqJL09DoF7cjgocmKVLYXjzU8rlSqgKswNaTBRj7xgBgyrHxJB+dcYhWExjQbYuzCO+gBRoz+YFPYgRhkHk98UuRw5I6rB7lJ3HTaHbAkwYINvV8pKXHtEma3U2ubxy88LL3WNa5pvrvlW08npIuY9HO+/nH3o8I2u09aJO2qrCZ4aj0LbQjJDrD8R7kf0V60+8b67GDi7RdHFhDJp1ryHeyExVRDkP3bdReV5TGeJGS3BDYlSoasW5jfSDhdIVt3k0rekZsmPSg2cyC4RIK7YiYYs1G4NKKlBx51uY4+HC6MBglbyZisxhj5PAHzKN/2XPhIPhsUjr6d1Ab9ASCCiBhP8abtDT3qSTwKJEZVLv X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 0362f7a2-7a29-47e1-181b-08d95808c43e X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 12:01:32.7031 (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: 0N5yDLb6C2DVyWmsOIjRqcxwZTCvNDRyWTxr1wVC+YHvTVoS1Thnl8gET5HA44jLqJHEPWR3gVovGToP18Qia5yRF28v/X5jUUAsZ7kJ07U= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3865 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210805_050138_686151_FCC44B90 X-CRM114-Status: GOOD ( 10.69 ) 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 Since the EMMC pins can be used for other functions as well, we need to configure the pinctrl. Signed-off-by: Michael Riesch --- v3: - revise alias arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts index 1c34d529b771..1bc79e95b2fb 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts @@ -17,6 +17,7 @@ ethernet0 = &gmac0; ethernet1 = &gmac1; mmc0 = &sdmmc0; + mmc1 = &sdhci; }; chosen: chosen { @@ -363,6 +364,8 @@ bus-width = <8>; max-frequency = <200000000>; non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>; status = "okay"; };