Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11362319ybi; Thu, 25 Jul 2019 15:03:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHFLR/Zi0xlI/l3s15goSrZhkRinFbpOTipd9GLLIGZ3AJ/9LADoltMPFLgTtxrkhb9llD X-Received: by 2002:a63:381d:: with SMTP id f29mr90121829pga.101.1564092226836; Thu, 25 Jul 2019 15:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564092226; cv=none; d=google.com; s=arc-20160816; b=ls+YmEY7Ytg3OFdCKIk5pESeIjKg1W9MN6Kw1OqBeZ9p4KVlutPwcUOK5/1MC9cYeo sBdGeoTU0VAmwHYpsuaToKOdz1Hmr2xvcFbrrrOj3xy1uYjU1Sj4/rqiBWZ9gqXIsxtC t7V8juelc0Or3Bm2P9ax0aMFcR5d36gCrwAYpW02y0kFhfOy14ZlAweRsmu921zXUPHT YdS4ntXMAa8mfXh1AbudTR1zkTsPEG5OSwFi99nNCRteLoxW44HkLYcGw2yZMBXi9xnu aec3JCb/cWf1PTED2FzOdPGKjOdk8yXbCWffghJYeqF0foVy8YPmuzEGBrZwXEw3whoQ MnQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Cgv/Eiyx9lwjgkpl2A6sQ/WtPGxxm4pZLEOSbUVch0U=; b=NBdIHQ1JlWauAaP1obWXbEqcgRHnUXTfoqzpiJQTnhpEqbQ+rZtaxG7IT447VMHJ5c Eb7p8CyHCi713yeVODigiPV+Ae11JGcZt29ksw24ClH+Er7THFMp4F8xfkA9WcTHM+5n t+DdQWFoAv8pKjL3CkeS5mZCZSwyQTR2dQx57IVSnFZNDmuLffvKjjSjPsdgeHNVOPUY zSgg+CiwUb8fJf/keksQ3HDbXVgEJcdoqltUMfl7Asol3VBtIgBZpYV9YUPDNqBCoDYg NHWU60nrdnceWN4GBtqW5oRWPEcv0Kr48C3LpSuyJWhnvm8CNwFiJ77PD0yBCYcexTSo VCrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=R7IJK1g9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v13si19396018pgr.282.2019.07.25.15.03.32; Thu, 25 Jul 2019 15:03:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=R7IJK1g9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726937AbfGYWCp (ORCPT + 99 others); Thu, 25 Jul 2019 18:02:45 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:47206 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726723AbfGYWCo (ORCPT ); Thu, 25 Jul 2019 18:02:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1564092161; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cgv/Eiyx9lwjgkpl2A6sQ/WtPGxxm4pZLEOSbUVch0U=; b=R7IJK1g97S4k1gcbeoey4ogXdrzb3s9X+T39rMxayhmX4cpAGcFsbT9iIkPOYMoh4FUSvm iMTR60Ab/vbRsW6z7htwMM1jOfRt7lC4YoKs+PTwPNADPMHZOW6bhu/q7EG9x778CbbYA0 nyLqmuqyOFIpFW0ZrTMCL8bDdP9LOoM= From: Paul Cercueil To: Ralf Baechle , Paul Burton , James Hogan , Rob Herring , Mark Rutland , Vinod Koul , Jean Delvare , Guenter Roeck , Lee Jones , Miquel Raynal , Richard Weinberger , Sebastian Reichel , Bartlomiej Zolnierkiewicz , Liam Girdwood , Mark Brown Cc: od@zcrc.me, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-mtd@lists.infradead.org, linux-pm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, alsa-devel@alsa-project.org, Paul Cercueil , Artur Rojek Subject: [PATCH 01/11] MIPS: DTS: jz4740: Add missing nodes Date: Thu, 25 Jul 2019 18:02:05 -0400 Message-Id: <20190725220215.460-2-paul@crapouillou.net> In-Reply-To: <20190725220215.460-1-paul@crapouillou.net> References: <20190725220215.460-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add nodes for the MMC, AIC, ADC, CODEC, MUSB, LCD, memory, and BCH controllers. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- arch/mips/boot/dts/ingenic/jz4740.dtsi | 84 ++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/jz4740.dtsi b/arch/mips/boot/dts/ingenic/jz4740.dtsi index 3ffaf63f22dd..bceabf494af5 100644 --- a/arch/mips/boot/dts/ingenic/jz4740.dtsi +++ b/arch/mips/boot/dts/ingenic/jz4740.dtsi @@ -132,6 +132,35 @@ }; }; + aic: audio-controller@10020000 { + compatible = "ingenic,jz4740-i2s"; + reg = <0x10020000 0x38>; + + #sound-dai-cells = <0>; + + interrupt-parent = <&intc>; + interrupts = <18>; + + clocks = <&cgu JZ4740_CLK_AIC>, + <&cgu JZ4740_CLK_I2S>, + <&cgu JZ4740_CLK_EXT>, + <&cgu JZ4740_CLK_PLL_HALF>; + clock-names = "aic", "i2s", "ext", "pll half"; + + dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>; + dma-names = "rx", "tx"; + }; + + codec: audio-codec@100200a4 { + compatible = "ingenic,jz4740-codec"; + reg = <0x10020080 0x8>; + + #sound-dai-cells = <0>; + + clocks = <&cgu JZ4740_CLK_AIC>; + clock-names = "aic"; + }; + mmc: mmc@10021000 { compatible = "ingenic,jz4740-mmc"; reg = <0x10021000 0x1000>; @@ -172,6 +201,38 @@ clock-names = "baud", "module"; }; + adc: adc@10070000 { + compatible = "ingenic,jz4740-adc"; + reg = <0x10070000 0x30>; + #io-channel-cells = <1>; + + clocks = <&cgu JZ4740_CLK_ADC>; + clock-names = "adc"; + + interrupt-parent = <&intc>; + interrupts = <12>; + }; + + nemc: memory-controller@13010000 { + compatible = "ingenic,jz4740-nemc"; + reg = <0x13010000 0x54>; + #address-cells = <2>; + #size-cells = <1>; + ranges = <1 0 0x18000000 0x4000000 + 2 0 0x14000000 0x4000000 + 3 0 0x0c000000 0x4000000 + 4 0 0x08000000 0x4000000>; + + clocks = <&cgu JZ4740_CLK_MCLK>; + }; + + ecc: ecc-controller@13010100 { + compatible = "ingenic,jz4740-ecc"; + reg = <0x13010100 0x2C>; + + clocks = <&cgu JZ4740_CLK_MCLK>; + }; + dmac: dma-controller@13020000 { compatible = "ingenic,jz4740-dma"; reg = <0x13020000 0xbc @@ -197,4 +258,27 @@ status = "disabled"; }; + + udc: usb@13040000 { + compatible = "ingenic,jz4740-musb"; + reg = <0x13040000 0x10000>; + + interrupt-parent = <&intc>; + interrupts = <24>; + interrupt-names = "mc"; + + clocks = <&cgu JZ4740_CLK_UDC>; + clock-names = "udc"; + }; + + lcd: lcd-controller@13050000 { + compatible = "ingenic,jz4740-lcd"; + reg = <0x13050000 0x1000>; + + interrupt-parent = <&intc>; + interrupts = <30>; + + clocks = <&cgu JZ4740_CLK_LCD_PCLK>, <&cgu JZ4740_CLK_LCD>; + clock-names = "lcd_pclk", "lcd"; + }; }; -- 2.21.0.593.g511ec345e18