From patchwork Mon Nov 11 11:29:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 842846 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2065.outbound.protection.outlook.com [40.107.20.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7D4B19ADA6; Mon, 11 Nov 2024 11:29:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.65 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731324575; cv=fail; b=lIE+aevQSNznvCLf3IVNTcLFQWP7wMTcBXIWXBH28LlJ3D+cuaNVdT4k/6encxkfK2tfjW6CBsJQim6f3C3ZsIKRWEnTPNkNzhSIkGJ5OZWde6ixzKNfbvMGEUniq2i9dJidiCBJPWpN4tG0LM+Wbvq5T9gTc+TGtBgdxlbPNVw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731324575; c=relaxed/simple; bh=U3aKSTfkIfX8ziAzTwiXevPZFl/XIYiQaKlBFU2Eamw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=dh7qkReqv4SEbiRYTQe2p41t7xaN0hRJNFBnuKs1yqv+7zzC/PbsA7cj1CZL2xTpHnB+CY4fcHvzYumbrATmHEnU/VFpOMhgwNPRpxgLSep5AnGkMt+owOWPaZPFGK5B3WSqtm8YYb5Hs+no1C44Vh9bC4fQEUIZJn8S2UNtv6I= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=pk1PJy+8; arc=fail smtp.client-ip=40.107.20.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="pk1PJy+8" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qtMRg5B50ICl9BfX65vaIlmkRGJpEwlb3JdYnFX3kzYdG/m4owi24x/7Uyfh2ni1l4/KqVXXHdDOg4LIWHtLLgcWll1AneggJzLIy2WIGr7Jo5kRe0umHk+iiJGuP9f38jErCUWgrtajs458TxVuIH2oeMPEWNQM657QVbRZwbwC8OhrQVfDD+kgxjPFiWk4uogV/UhhXdMqAkiuXq/4AuQfUOzWZgxZOqxM3Yk3d8+sMpxw7GirehhJv6KxcNCvyZdmghyxfwEXJvrHkTPOdmd91IUffXswd5rjkMzybS8P5mOUxBbOQ2bv5z2QyYHga7CMDZbVMpxuC4DoH9k7Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Vu0oE1GIGr5qQhuxhEibYhKhPHEqwX6ErErQQhbkEp4=; b=uCUFscuCSuE+Gv9eacKaOU91PHbPe8oyQgbuI2SAaHxLgEcSNiiXE+LDnrKmJTTI0PCjLe+Z4gbWCYsasmw0knAYWV2Q2Cn1D4cWW7vEhdxZSWLOBHc4fszec/zrjyo11NiGuXO5xaCFul0ufF1aS5RWkPIgzYUCisCY14f2ZpLLNfVDQS5xbnlJsHgrzo6xai8AT+mgyx+X4s8RJOEpL/p/tsPIgZIpwAGk1nvy1LvtDSpoNsi9KN50YD4bCKXZKJetpnVVqOP6saicQDgW+Etz1d4uRRohaDSXA5nox8eFaEUdtbwW8dRSbJ4p/N6t9WnySvGIT6nNiLi9CNgcXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Vu0oE1GIGr5qQhuxhEibYhKhPHEqwX6ErErQQhbkEp4=; b=pk1PJy+8ZdafsRdRGdaXOUyjq/W0Llo9hjx+JXmP+XUxaJnVANiAQzjv0qwiKtHD7cUnWA0CAAFmKhbP7Jrz0ubNrZYj2ukXY+YfV80h8Yf2pwHyixGZsq0o0oVQ7BN0mKVLlKqhGzi8f2rQ4kbUMzuPJzcXXndNlG9ZNWRJDiSDTuxPaBl6db8FGwBwvRF9Bgh3RZgcm6/Jw45HSpu1jRb+AF9PKuTQYLKiY6dzn1ywV/XzkUwodwn0zwuBLPZZh/AyyT+lB+xbBR7ePQLtFpblMRgYPWTrYFg7MoNC66S75sVCIgbWrd3GM2oo9zFVxjammptsrlmZAYdkixgZtQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) by DB9PR04MB9428.eurprd04.prod.outlook.com (2603:10a6:10:368::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.27; Mon, 11 Nov 2024 11:29:29 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%6]) with mapi id 15.20.8137.018; Mon, 11 Nov 2024 11:29:29 +0000 From: Ciprian Costea To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chester Lin Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, NXP S32 Linux , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea Subject: [PATCH v4 1/2] dt-bindings: serial: fsl-linflexuart: add clock definitions Date: Mon, 11 Nov 2024 13:29:20 +0200 Message-ID: <20241111112921.2411242-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241111112921.2411242-1-ciprianmarian.costea@oss.nxp.com> References: <20241111112921.2411242-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AS4P190CA0011.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5de::13) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|DB9PR04MB9428:EE_ X-MS-Office365-Filtering-Correlation-Id: f1d3b5a8-4796-4d74-5880-08dd02441ae8 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|7416014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?31dv2o/RWobg4GJBTmKpz+3Np7tfIkz?= =?utf-8?q?2ig2dqmLEXyCxItZzRwzKtSwqSJJeLYalVGzMmphGA6uUHfxcAsPeDPIUgD7E3Ysg?= =?utf-8?q?7mAubfg2O3CNUqewVgSHcyRFyRJobiSNvspNs5J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tG9i1cJCcN0Pj8iXTvS1SmsVLMVx0U?= =?utf-8?q?Q3RKu+DOPX8W283ZrUmKyQcSEUXT348ncgAXLIvUmgheogajmOIh6Ae0bsMr1o01I?= =?utf-8?q?0GFUangw5OtyVarqSHhBpS4pDeWhi5GetsK7cTeeXwyDECMEk0FGaIak76srJ3rvv?= =?utf-8?q?oFMrcV+fnr7v+jNWpEPXcGMBaq9ZeepwwMrVNsRqtCPD3CGOvL4tHQTXuxDgH4UKq?= =?utf-8?q?lnbJuqvX4oHHKuDMd4E3FcxLsiDCv8mBvQINNNlvGVdUfbMnOuX8g8if4iOmeBw1i?= =?utf-8?q?5rF4nuuJ08mS9?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9251.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(7416014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?VoNeeX6f6H6oJIYOejWNFLxh7bOE?= =?utf-8?q?bLyMCjl8WW6VVkNc0xI68ZnKE0HEcootWXShrqaj5hMxJ5BYD45n73Fgwh6OG74yT?= =?utf-8?q?+WoG8/VLtAVWg6KPr/Fk1uz1t5PU/eoHkVKETsb1sfTDKgEXZOiSwq3CCZzq8vfWh?= =?utf-8?q?wgRIW8/+JJBXUW1G/tKEZVNVTu5rgb8vU/0iOmmrTBR5a3qfba7Kwxthxs8KUbXKf?= =?utf-8?q?5iLmgs8HT6AWDB5PIhjg+wlzl2UDkhS2V7N5WFlU801E35gpJAVPIAGsXbWwQ9kh7?= =?utf-8?q?wovv6Picvl4KACT0502VTroPDywsVYxWoLf0oH5eaZ3TJuPmNXBgzGZbtEc3PhyA0?= =?utf-8?q?mXpuArGuRTfHvhWRVyuLsd+ghcRg6ID4xlIl2q6PW/0ORjtgIIdKZpewOB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JTbRNCcj?= =?utf-8?q?uJjqwDv4drjXVW1zR5+kH/j5Cwk54NjieP0Cg3uQ8rAocNECk30B7DnnuZM5PqL/o?= =?utf-8?q?ciF6L7aFGAIwITnKSE56KKsvGzeaPUEPWZgFVocvmRR0DTMkUxap3NzjNvd90tAyJ?= =?utf-8?q?wNOEHGz1LwX80kRJ+ucoWSJYsu3nsW3TbdMdBGtVdU4/ClQkcKc5OgJKP8/7vP0VP?= =?utf-8?q?pp/MPn3bDsZGRavtaVy/glI5My58cguSHuE1vsJag5reHvXz7ZHixT4g3EW8q+ho0?= =?utf-8?q?JmyE4/Cg+/hiLa8qaCvCU4XNibuP+uss7w=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f1d3b5a8-4796-4d74-5880-08dd02441ae8 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 11:29:29.0263 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: runY9l9qD5oj2/dBIfyvWlXRNAvaqZBNlcKsJnC8XHWEn6fcy2Y7zen1vdvz1dGLWZQL+cvsJy5DIJJCP0i+JEPxKofARJ3FiE9c1OfSHNM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9428 From: Ciprian Marian Costea Add clock definitions for NXP LINFlexD UART bindings. The LINFlexD driver was working because the LINFlexD clocks were configured and kept enabled by the downstream bootloader (TF-A [1] and U-Boot [2]). This is not ideal since LINFlexD Linux driver should manage its clocks independently and not rely on a previous bootloader configuration. [1] https://github.com/nxp-auto-linux/arm-trusted-firmware [2] https://github.com/nxp-auto-linux/u-boot Signed-off-by: Ciprian Marian Costea Acked-by: Conor Dooley --- .../bindings/serial/fsl,s32-linflexuart.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml b/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml index 4171f524a928..ca3146d9b872 100644 --- a/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml +++ b/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml @@ -34,10 +34,24 @@ properties: interrupts: maxItems: 1 + clocks: + items: + - description: + ipg clock drives the access to the LINFlexD + iomapped registers + - description: lin is the frequency of the baud clock + + clock-names: + items: + - const: ipg + - const: lin + required: - compatible - reg - interrupts + - clocks + - clock-names unevaluatedProperties: false @@ -47,4 +61,6 @@ examples: compatible = "fsl,s32v234-linflexuart"; reg = <0x40053000 0x1000>; interrupts = <0 59 4>; + clocks = <&clks 132>, <&clks 131>; + clock-names = "ipg", "lin"; };