From patchwork Mon Feb 7 13:24:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chester Lin X-Patchwork-Id: 12737215 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B946CC433F5 for ; Mon, 7 Feb 2022 13:26:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3HS9eejHqUTVNJHFvAcaVSd1XEw5Gv+HVUrzjffFRUs=; b=ClLd9tCisXUiwJ sz4FQpBqCc7aE+kwbmJbQtGGQK4ShlyJn5eNiqUikFrGcryY7YgiXy1PKEg0zjv7L7qaQmWYN0TAS gbrY2QT6gyZKHbGIw9IXKLdyffsKw9LxcuU7BnFwa2z0FukCWtC96fRBcsC97i9fcI76I1Z7lfJl0 WJvgQyGkutuxGkVjzP5lYVb/NfoO4kOeF6EzhpTPVqhAz+mjgu1gb50vhby9m9UMZpAGvxuNJEpUf GUcMArcZW4HSfOCFE5GhVrRPLCPVE1gretOoemZVklgI/qMgTrTiYLTaNzhgGBZ/1Jz2WZZdHPHpr o+q/4CnF8OhCU3ISyTkQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nH41A-00AGOK-EF; Mon, 07 Feb 2022 13:25:20 +0000 Received: from de-smtp-delivery-102.mimecast.com ([194.104.111.102]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nH40x-00AGKo-AR for linux-arm-kernel@lists.infradead.org; Mon, 07 Feb 2022 13:25:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1644240303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G46bKhyGsLqBXvzjvUDZOd+JIKI3euswC2lrBnSLXtc=; b=T51LljRt6a6FwINCkFgoSxjaztf6qnGat3BXOTxFPaDOi9xb65OdMKLT75ymYetgbavc1D Uvt3ARx56K1cbTLProfQ+wV/V5cnW957s9+N9OL3zFALITVgeTksBgk2exeJLCL6BufJsf ErqhanLQwcmfdLqKXerhFCddmhMpQOs= Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03lp2059.outbound.protection.outlook.com [104.47.10.59]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-12-pB7FPQf7PaGiFq7XV_FiIw-1; Mon, 07 Feb 2022 14:25:02 +0100 X-MC-Unique: pB7FPQf7PaGiFq7XV_FiIw-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YCLF8CRo10nVvhhMB51N62ytufD4fUlwgl3LghxCU0gQ4lvDiEHrzneR5O29V3PAx6BL1L6ZhAl9+ypEfWyrsDENVCk/XAUr2T4MbwAavWDzovLtJRdtnbE9Z8SphtsPxVwalOTTpAGbWlzI6MrlOz4iKw5JZsKc+WKNAgiMlzcyNQ8b0gNYM647roV2dUYKiKoFAPQt60hlni4fyv0TBEbnAy16fXUVmNpuaCIFgY7qhAZBSoXDvl+MW/IPh1eonMSgSLCKaNHNm/Gx095L/YXqWBtZeC8mGCjsK83+1PM6aKrptvO/v7fQ79ojVQqWNG57zTVs/zqenytIn8NT1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SrKyVDQL9hZHHmYdICoP+NIBJ2pOvqWAZPGLBjw5zcQ=; b=K6NRiYo2WWrl1xKJqFJDsLl0RVrnrT2/ENm+0YCZjvDzJv8NRuAA6OWUbV+S+IAwAYEm6gQVNwIaqMRKooi1KSIN0T4h7kCfQDAA9EtvFNLtt2nTN5cGp3OqwShlxSb9vKo9X/QDOYnHzR6aNcdj0Gi5omfXc7k4TjY56V4cK3dT0WQSjkJrRX2M6Svw6YvEkOUAhSx1ELn1A7oXur1VLKCf3EppaTX1LUEEYS3OuDn0CVsKq1gy/DQtgDQjsYL8c0mYaJaI50ZJm8NykD2NvvKJJdZRNQutWtE2pwvKxo47eoXsGMF+baKkIQ/ZPbjDICdmYe4BiDmur9pkj5DWdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) by PA4PR04MB9248.eurprd04.prod.outlook.com (2603:10a6:102:2a3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.18; Mon, 7 Feb 2022 13:25:01 +0000 Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::e14a:7928:ecd6:f233]) by VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::e14a:7928:ecd6:f233%4]) with mapi id 15.20.4951.018; Mon, 7 Feb 2022 13:25:01 +0000 From: Chester Lin To: Rob Herring , =?utf-8?q?Andreas_F=C3=A4rber?= , Matthias Brugger , s32@nxp.com, Ghennadi Procopciuc CC: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Radu Nicolae Pirea , "Ivan T . Ivanov" , "Lee, Chun-Yi" , Chester Lin Subject: [RFC PATCH 1/3] dt-bindings: clock: Add s32g2 clock binding Date: Mon, 7 Feb 2022 21:24:42 +0800 Message-ID: <20220207132444.3653-2-clin@suse.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220207132444.3653-1-clin@suse.com> References: <20220207132444.3653-1-clin@suse.com> X-ClientProxiedBy: AM6PR01CA0037.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::14) To VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b6241138-bba9-480b-003e-08d9ea3d3e41 X-MS-TrafficTypeDiagnostic: PA4PR04MB9248:EE_ 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: AcDELdibwPI9JEYBqxJgaoRyJZSRGxdlgxolW1AWWnFNLbHSzmWZONvreyzmKRlRZM2yW5IXfE26Apx6TIYk1/C7X9PK95orKiBMeNWs0nt9Q2aV0pfidtZphgU7Od1QuHa6kBFmlSa/jareqD7q7Iglbdi0cewfOW0MTOrDtAaAsvI08W5IYFW27L0PF3xfG0H+LreDcDXSuFj15o0JfVsSMpFFjiTlFvwy1FiaQPG1jcdpJ9mBuOEpWeRd3g/w092fV2G9DrQjsrOZaYpJHJSj69hfksrAuduUdIiWyqkFqQ4UwQJ8iOpWxtD5VQQAfj9Ornx9yS9udZUYvkUDlvAweE1DwAf5UowPhq056HH70MhNZ9L9jrTKcdHw+Ejq9YPxw4AiIRaTLSEsD2C8oftfGXGW3bDs4J6hPxQvdMpJOqNFFb94ebaVKfjqzX/sXdqHUU3CeLm5dyz2Q2xGHxVcso+/DnIxoVueWm4M15svt94wpmkhLtn2uSoQ0/K3NwtuSfNMnnLeUDFrlxUx50YvUtJJYL6JxcSFLzqrRm+6F9WQ6wAUqdHjtrYN4pKS/9cYVV6iRgJ3fUime6izg7ikaNLG8pmnHc9m+r6RRMbLTjLdNPcNZujYFpD8c60LekRqJ0W3FEQHiYyzlqgfHg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0402MB3439.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(6666004)(66556008)(8936002)(66946007)(5660300002)(6512007)(66476007)(4326008)(6506007)(8676002)(83380400001)(6486002)(36756003)(2616005)(1076003)(26005)(86362001)(110136005)(2906002)(54906003)(508600001)(38100700002)(107886003)(316002)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 66tT+6ZIOj47HJ5UDlHwS4EVkZfCEwCXgy8oTcW3zH46sJBnFaVICvAml+8j2qEKwFKuqXuKI2xUNSgsSXNqjs2T133BZyJ2pKIPfGaAjxPK5Q/DLZzAPguMsit5qtqCr4spwBTxOAB/ULK7Zsxx+01zD3Gtm54JM6EGH2dPoI+wa/M2oSoRFcDcUY9m1NEgHd/fU5Ro11V7i94hsPsTa+hXX3j6RjhWAmQF62c17YECaayuQgErwNYkFCyaYyH3umZuDJS4ysiqrMWnB4CiiuY/A2NZXbi6KP4tsrW9Sl6QiST1MKSi8PDzkpMJoy1aKmLcv35jsArpgq4faNNO+Z69iAvF00FmSe9zE55yRdTtZ6DD1ZwmGDHWcHqbNA2Ktr4aWl7UOHgZ45qnKegLwCkbnNce2c2873L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wpwJLcLQqkK38/wWV3wdIwVaTJDb5PenVQbSy7sZBXXmuuiJA08dnAYex/nNJ5OSjxXKsUUAvKfq5W2Q= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6241138-bba9-480b-003e-08d9ea3d3e41 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3439.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2022 13:25:01.1268 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OZyppZ99t1zF5Lva901heVAR2qGLgeubVVABLTN7wuki81i/pCeo0p5b1P8QGcFJ X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9248 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220207_052507_553605_842D9C68 X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add clock binding for S32G based on SCMI Clock Management Protocol (0x14) Signed-off-by: Chester Lin --- include/dt-bindings/clock/s32g2-clock.h | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/dt-bindings/clock/s32g2-clock.h diff --git a/include/dt-bindings/clock/s32g2-clock.h b/include/dt-bindings/clock/s32g2-clock.h new file mode 100644 index 000000000000..6d8606293865 --- /dev/null +++ b/include/dt-bindings/clock/s32g2-clock.h @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright 2020-2022 NXP + */ +#ifndef __DT_BINDINGS_SCMI_CLOCK_S32G2_H +#define __DT_BINDINGS_SCMI_CLOCK_S32G2_H + +#define S32G2_SCMI_CLK_BASE_ID 0U +#define S32G2_SCMI_CLK(N) ((N) + S32G2_SCMI_CLK_BASE_ID) + +/* GMAC0 - SGMII */ +#define S32G2_SCMI_CLK_GMAC0_RX_SGMII S32G2_SCMI_CLK(16) +#define S32G2_SCMI_CLK_GMAC0_TX_SGMII S32G2_SCMI_CLK(17) +/* GMAC0 - RGMII */ +#define S32G2_SCMI_CLK_GMAC0_RX_RGMII S32G2_SCMI_CLK(19) +#define S32G2_SCMI_CLK_GMAC0_TX_RGMII S32G2_SCMI_CLK(20) +/* GMAC0 - RMII */ +#define S32G2_SCMI_CLK_GMAC0_RX_RMII S32G2_SCMI_CLK(22) +#define S32G2_SCMI_CLK_GMAC0_TX_RMII S32G2_SCMI_CLK(23) +/* GMAC0 - MII */ +#define S32G2_SCMI_CLK_GMAC0_RX_MII S32G2_SCMI_CLK(25) +#define S32G2_SCMI_CLK_GMAC0_TX_MII S32G2_SCMI_CLK(26) +#define S32G2_SCMI_CLK_GMAC0_AXI S32G2_SCMI_CLK(28) +/* uSDHC */ +#define S32G2_SCMI_CLK_USDHC_AHB S32G2_SCMI_CLK(35) +#define S32G2_SCMI_CLK_USDHC_MODULE S32G2_SCMI_CLK(36) +#define S32G2_SCMI_CLK_USDHC_CORE S32G2_SCMI_CLK(37) +#endif