From patchwork Thu Apr 18 20:37:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13635427 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 5B860C04FF8 for ; Thu, 18 Apr 2024 20:38:36 +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=2YvX/l4ADMS9f/iGfhTU9dQGMEjYzMHND+tm1jEjXUw=; b=hH0ZbDhdi6XD0u fAUtBbs0nOLJBFUnzAqaCKGDrQFrXFwK4/I9RSi6FwYCvY+sL+6kkbWwVJWrKKGiL+KEsALSYsb2Y qn2VMvArDHS0ZVmSe8LAE+N+pmGZmF9rvQ/icME1UzGce4sdVOWSljTrA9B7gsE0cYcrbX0fKQZSt Ts0hOS8vJb9NFmpDRQUgT9Rv72U1CzxzC23kRUDkrojJAe8Eeal3/stADs5blLwvhkGMZUaH4Emns s69pQM3JdLML/LLEMSgiL8hII2CHtESq4IN7+wlvEFQAen8qQF/ipjKyuW42iQGpS78lP8g921Wcr sXFe4o847uftpsvPJhvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxYWW-00000003eL6-0tDG; Thu, 18 Apr 2024 20:38:24 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxYWT-00000003eIU-1K4X for linux-arm-kernel@lists.infradead.org; Thu, 18 Apr 2024 20:38:23 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-516d1ecaf25so1634044e87.2 for ; Thu, 18 Apr 2024 13:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713472699; x=1714077499; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ef1j03PzQot24D7wGKXztI5BpkUJmrRiVGjdQcRoP/A=; b=aNceR92TsHizcd+DmA6/ZacYIxvx6/1W6rEyjOkw3/ypQHHMWu2Y/jfDBSMjGXKPUP hDJfvwKqxqEhkNQeyfbFdN3zGd6yzEclwt+FFUdDyj1n/i0Qmmswk3EpQXFq928OGR49 asUF2/WLe+18B4sEjMl71nkLeEheSSXBb4EEV+gBcV9RBWlVZbVSzwIVgAraL7Gco3Ba fe6dEMx6pVshcAL0FKUSg68D2VVOKhCA4U6yFl6gD7nYNGWSvBMf6lziboyqDEkcpVDL W8SfzcK1fnnEKotHX+tI+PYbGjXUEgFtKbHOTYkXiiJ1nmpK219NolwH79CzZpm7RStb emTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713472699; x=1714077499; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ef1j03PzQot24D7wGKXztI5BpkUJmrRiVGjdQcRoP/A=; b=tqkIiqyabObvkDBR9nImDcllp+arR0J1QW4vJdzOPoCQPQx2zXy9Go9wNjvBBXVU43 N8DMOhikkZklfuhtM3OTTxQ6+FkL8MRyhpZFIIb3YEOh/HPCgQiLy/OOQJ3rEalyQg9o bAwICBz1+YXyzheWjm7mx4NjFZ2P0okrakGB5PpsOVSQtBVaIGXF/OERULjykwFWv89M oe+ci2Nb5YYk7B8H4qukcbixW7ZMtsPdUVlLqe8OvnkWtJmqmsj8HbkraLAOcK5gaVuM 2/VdMwaBtnoiQIGWyNstK4GkSlGoWlxvQ+47ULSwnNEQMyQxhU0JotGMVXRLW7GUfQO8 hzKA== X-Forwarded-Encrypted: i=1; AJvYcCVtu3r1wL9K+61QtHS6lJurtLDAo2c+HjNKF3+gV3sozehR5AQxk5EnJ6bhfVSYHfyBLLcuG6Lfa1mwrXmFGjJVNhnUYEDGHp6hX5Z6YY9vhZAc1/U= X-Gm-Message-State: AOJu0YyVy3XzC9uiealrSJgKvUmXhnYczvPTUfEdNTtfFP2aFxhXfb6i Jgm12w1TRjK351+T9Sdji6J/1hY4pPkGxpMySS4o6FigbknPlFdr X-Google-Smtp-Source: AGHT+IFuUfTaQYJNQUWQD53YUOXbHss6h+ljXIMevbVCxM7rU+ASD0Lp3fuRW4KDMzSE3XGe604KaQ== X-Received: by 2002:ac2:430b:0:b0:51a:a400:785e with SMTP id l11-20020ac2430b000000b0051aa400785emr68649lfh.43.1713472698372; Thu, 18 Apr 2024 13:38:18 -0700 (PDT) Received: from lmc-playground.localdomain ([188.25.209.252]) by smtp.gmail.com with ESMTPSA id l21-20020a170906079500b00a473774b027sm1305649ejc.207.2024.04.18.13.38.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 13:38:17 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Daniel Baluta , Shengjiu Wang , Liu Ying Cc: Laurentiu Mihalcea , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] dt-bindings: dsp: support imx8ulp dsp clocks Date: Thu, 18 Apr 2024 23:37:18 +0300 Message-Id: <20240418203720.8492-2-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240418203720.8492-1-laurentiumihalcea111@gmail.com> References: <20240418203720.8492-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240418_133821_483977_2B0B4E4D X-CRM114-Status: GOOD ( 10.66 ) 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 From: Laurentiu Mihalcea i.MX8ULP DSP node needs a MU clock, but doesn't need a debug clock. Change "clocks" and "clock-names" properties to allow for this case. Signed-off-by: Laurentiu Mihalcea Reviewed-by: Rob Herring (Arm) --- .../devicetree/bindings/dsp/fsl,dsp.yaml | 51 ++++++++++++++----- 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml index 9af40da5688e..4a39d57b1cc6 100644 --- a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml +++ b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml @@ -30,22 +30,12 @@ properties: maxItems: 1 clocks: - items: - - description: ipg clock - - description: ocram clock - - description: core clock - - description: debug interface clock - - description: message unit clock minItems: 3 + maxItems: 5 clock-names: - items: - - const: ipg - - const: ocram - - const: core - - const: debug - - const: mu minItems: 3 + maxItems: 5 power-domains: description: @@ -93,6 +83,43 @@ required: - memory-region allOf: + - if: + properties: + compatible: + contains: + const: fsl,imx8ulp-hifi4 + then: + properties: + clocks: + items: + - description: ipg clock + - description: ocram clock + - description: core clock + - description: message unit clock + clock-names: + items: + - const: ipg + - const: ocram + - const: core + - const: mu + else: + properties: + clocks: + items: + - description: ipg clock + - description: ocram clock + - description: core clock + - description: debug interface clock + - description: message unit clock + minItems: 3 + clock-names: + items: + - const: ipg + - const: ocram + - const: core + - const: debug + - const: mu + minItems: 3 - if: properties: compatible: