Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp502478pxb; Thu, 9 Sep 2021 06:01:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjPwq72GXXiulMfsk90nJURLkldsmhSTbBMpvF9XFExqT7oOua2WPZuULR1nyNW3mnA9VP X-Received: by 2002:a5e:db49:: with SMTP id r9mr2604553iop.104.1631192484713; Thu, 09 Sep 2021 06:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631192484; cv=none; d=google.com; s=arc-20160816; b=JWvXqF0GaczJylu8m6tngHjzdhp3Ql3mhwXKYYWBhl21Yka6q+lZKjJujTnytcrivX fqLbAFHHDjsmZ8iXzJQCvvjdJJrO59mU4nhVhSPXxPDnMO8diZo0adt4OVE7LfoeCr+k ysV6mWJo4EdE30lpIswAdZMgfCUPr8PQ9u8ghhcuO/F7+AMH2UOh7eCd+K9XyWv/wZzS GzWCgdNcbcNbnjIHyCI6ABTARHMCjD2rfzT15+WUzei8oXZ3sI16bCRFif7aYPX3kVBD PSYclQG5RqjyZqy8us7eoHTOxwk7iP3kpxaAw6T4MzxgFtcx5/c3A/JTXJqLnt3L2t5d 1j8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=F8D7nwh2STCOAvAcDKSs6bgAax0F4FAMUdR0w+yQ1Zk=; b=fst0IME4hMgCI29BuoFZjX1Po6KwFVwpXwD+zp2JPTUi0yF9nkN82GHCwo9HvB9pqV M1PSFyGQxffmQirvzuMkaqPQ/rs1XA7tcxbZp7hGbBbAmkk8O1xToqICOlUSXtAHwgmH MIvVxiKLy2449txbF7f3TCIqsYl7qD02vW4e0idF/bAP/lWUjOnXLi5LSkClch7Rmp32 xK9mTwoN947NMDRLd9n+Mu5AudQSloEsHZpv0y+hkY5p1gFagJU9VvCZt0r9OhpQMgJ/ iUf5gveZ24T5AgTpqSiYkXM9sIJSYlqnTDipH/3dOtiXzxs8Y0DlkKg+lbww9mJYklFb Ti7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="k2RMlq/x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si1783369iom.43.2021.09.09.06.01.03; Thu, 09 Sep 2021 06:01:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="k2RMlq/x"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357154AbhIIM7n (ORCPT + 99 others); Thu, 9 Sep 2021 08:59:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:40918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345613AbhIIMrG (ORCPT ); Thu, 9 Sep 2021 08:47:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0C52763215; Thu, 9 Sep 2021 11:56:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631188575; bh=IH2bqORCcfiRGXYybGqC3vEwO/2EBO1dREiMH6gGzv8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k2RMlq/xnPui9SChVq+ElSi5r9/rRoeIP0yhlh/fEdz9ofPCCZORduNurumGj+UOR YHMpfVgtOJpoHDsuTJsmOnrDmtE2TL8KnO06WTlXQRSG4QAtWeSCxUUqx9z9krSC17 uz5PYxV3VEWrQJJ681VK6N6l/GsvIpL1U2cRuqAMMbWKnanP9H7wC+qkNigK7E+xOt /zpPSIMUR4aHwkz9BIzINn2FJG4MwtuPKjkuJIjG0clI/W9i1kgc4iMM3l/Ok3PI1N U9PV1UI9b1W1RT7AFYaxxa0dUu3EbpwWzedzioV8hH1/M9IwAXA03b3aUsypbXYFgR dfviIrsW0f6HA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sebastian Reichel , Greg Kroah-Hartman , Sasha Levin , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.4 054/109] ARM: dts: imx53-ppd: Fix ACHC entry Date: Thu, 9 Sep 2021 07:54:11 -0400 Message-Id: <20210909115507.147917-54-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909115507.147917-1-sashal@kernel.org> References: <20210909115507.147917-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sebastian Reichel [ Upstream commit cd7cd5b716d594e27a933c12f026d4f2426d7bf4 ] PPD has only one ACHC device, which effectively is a Kinetis microcontroller. It has one SPI interface used for normal communication. Additionally it's possible to flash the device firmware using NXP's EzPort protocol by correctly driving a second chip select pin and the device reset pin. Signed-off-by: Sebastian Reichel Link: https://lore.kernel.org/r/20210802172309.164365-3-sebastian.reichel@collabora.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- arch/arm/boot/dts/imx53-ppd.dts | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/imx53-ppd.dts b/arch/arm/boot/dts/imx53-ppd.dts index 5ff9a179c83c..c80d1700e094 100644 --- a/arch/arm/boot/dts/imx53-ppd.dts +++ b/arch/arm/boot/dts/imx53-ppd.dts @@ -70,6 +70,12 @@ cko2_11M: sgtl-clock-cko2 { clock-frequency = <11289600>; }; + achc_24M: achc-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + }; + sgtlsound: sound { compatible = "fsl,imx53-cpuvo-sgtl5000", "fsl,imx-audio-sgtl5000"; @@ -287,16 +293,13 @@ &gpio4 11 GPIO_ACTIVE_LOW &gpio4 12 GPIO_ACTIVE_LOW>; status = "okay"; - spidev0: spi@0 { - compatible = "ge,achc"; - reg = <0>; - spi-max-frequency = <1000000>; - }; - - spidev1: spi@1 { - compatible = "ge,achc"; - reg = <1>; - spi-max-frequency = <1000000>; + spidev0: spi@1 { + compatible = "ge,achc", "nxp,kinetis-k20"; + reg = <1>, <0>; + vdd-supply = <®_3v3>; + vdda-supply = <®_3v3>; + clocks = <&achc_24M>; + reset-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>; }; gpioxra0: gpio@2 { -- 2.30.2