Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp450007pxb; Thu, 9 Sep 2021 04:52:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1e8OKo/djw16vRIiutfKJsbl9KDs/pj1moDxRS7WrZdyjRQkzmdI1XG8vGU2zXW8eiIVd X-Received: by 2002:a05:6e02:1b81:: with SMTP id h1mr1937877ili.240.1631188367679; Thu, 09 Sep 2021 04:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631188367; cv=none; d=google.com; s=arc-20160816; b=g2QCdxlmCcXnM9awDKo17AdPVDyyatm7963tqsjAW+Jo7P+WL17v2kbqQwbY30krOW YIcMn3mGdyq/SXbArJRoflqgnxyHXSIkgus3L6hpxH3AGC+5DUGprJmVw9RlVai4JSto b2Csp4iS5V5G7NXSrrfN3M07/chOGMmlpBHjH8BVATShBjehjPcbEw1WNQUTAlEsBZ1n AVz0/vBAGOa6Mfgpqp4/dWBprYlT48JVjnvZ6cf6Elaomgdoxgp6rhusm0u727qxTAAs RBWdQS4nEGfffxMAr9ca8Bw2ofP8p3laDZtWPj6hgU8f4oSZZoqgV+SU4gr8iuKHP2EY qRSA== 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=aXHF+xYcl3UqFMA1elY53keZPGPhiAt979HHdGvpu2I=; b=ZO+eUU1g9v/FsbbEPa6P97l5c7GCd/MeIu9z3XCc8rNdqZDFcwWepkJkr8xK+LaUzG ma8+B3TvbTGLeZKm6lZQv2yjfKoXJAK7lIi2C+dxGm2XrTuBtbBr8dzO2y5RvNx/jLXZ /J+SR7TvyQZ2J7gKTn8At7oE492Pl8Cy81WxPq1buh/5txnNCpuMPE+4EaOdI8uO/bGB i19zE1k8bSTBO7QbO+NTg1zcEIn86zdXj8lPQ/qi3jFSdbAt2P+yap0l29Cq0YvfK1ei XLfbcIMkAYTMywNHCC7ImV+tTheQah5T+VOrQWhA2wA3c0FiWu6UlzH+FXI/pttISKLf xDEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="g0d/nMAT"; 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 p6si1419742ilj.154.2021.09.09.04.52.35; Thu, 09 Sep 2021 04:52:47 -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="g0d/nMAT"; 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 S239649AbhIILvu (ORCPT + 99 others); Thu, 9 Sep 2021 07:51:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:55360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241238AbhIILtK (ORCPT ); Thu, 9 Sep 2021 07:49:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2991761279; Thu, 9 Sep 2021 11:43:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631187818; bh=YiX/XQyKsb+MdSBd2K4PxpLFgdhc+jiv1vDu51pUOUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g0d/nMATkxPS4WoWQi+WOCiRz7LkVxn3hjVVc39VU0QkThrye44EGzNoJOLysuEct z2LPrI07E+9oXm2p0WiQylKLN3aM1n+auOyyC2eHnQdKi62jvNhJhVY2hf7aYlt0EW /aEjYrXRUpQI0gkFNxzMqOB/aE1MgJIj8eoINBnl7LaJkF7xSZK1xlh5CoJrNk61zx /3FwJaZOreeT7oADEhgXpzO/vtyOAifa6R2Vrw0WWXFaH6orqwKr0A38cw2MBYSrXc F5XP2YKCR6o9FPbMEWiCIqkH7xTnt6MrWC8S9Es2T59sngrCpx4InM/IfoIcZWdLoz YpLaXJ4XRGqTQ== 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.14 117/252] ARM: dts: imx53-ppd: Fix ACHC entry Date: Thu, 9 Sep 2021 07:38:51 -0400 Message-Id: <20210909114106.141462-117-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909114106.141462-1-sashal@kernel.org> References: <20210909114106.141462-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 5a5fa6190a52..37d0cffea99c 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"; @@ -314,16 +320,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