From patchwork Tue Nov 22 08:57:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marvin Lin X-Patchwork-Id: 24208 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2086468wrr; Tue, 22 Nov 2022 00:59:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf7hASrd/xJWK3ITpjJ76TbcjMTl5DT9IGXLzdzkjRcHAjzu4cHRCrocaXLV1VcMtD0dG5oj X-Received: by 2002:a17:903:41c8:b0:17d:b9c:cd64 with SMTP id u8-20020a17090341c800b0017d0b9ccd64mr5398654ple.40.1669107570970; Tue, 22 Nov 2022 00:59:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669107570; cv=none; d=google.com; s=arc-20160816; b=e8mc+qq0Owyz0E/pkrxNke808kVc2Hx5AM9lhtXZvHS9C53agXRso7g4PwqR9KXh39 3oCDBV9HA0KzKDyiQ1x6jaLN3ULDND26Kepdg7BluViAa95WkQYu1D+sHZxX2N+X2XGN IfMlpA+y1LdLLrFQDN5GvaPd5T7V+lGQ1d9w5aJMmwA6Qa5aNarBmWCdzM2SNmdWo3OK yiHsDPTv2IEeOKJ7dvd8O6d/thDcNtkON4fdSE24Vce9vViGxespVdfGzjGGja4qEQsj RpkG/XE/Nk5fcz8tQGzmpPMu/+9qNoHe2WszKL41fH22pMbK5Zjz9lKF9JeZ+wRGtshW azlQ== 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=t/LrnywkrjZ6Qfs+hNXfBn9CmvlX0OVs2pAPszfej7k=; b=mFAi4X/Yv0n8f7FfWCTypfUi8qAyWbxRK/OhmbI6GOEkyDKMXySymabobxg4gyHpDN 8gYYAQvkM25qivani17nrYDf6DiqlvVa8OVnIoaf7/G9RB47tyHDp/0d6QpRQsHm9A2w QdWfU9onyYovcw2em2npVLPChmWaubxPgSy/q642gQ+yIDPWG+dCev79i0UqVarCQm2e QvfUNSrh3HkUewYsyWVaUUZy9raiAKJpW2p26GOmqmDMAQoiHnlykt4OMJhsbPR/loaA na8IfoWpxyUN6GVRfNx9kV2HDp3/m/hWJDWKJzmW5LvuwrkKRaFoyh64HgWMUknL8CWj sKqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eMKfnKwM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x22-20020a170902b41600b00186c5e8ceddsi11964963plr.618.2022.11.22.00.59.16; Tue, 22 Nov 2022 00:59:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eMKfnKwM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233000AbiKVI6H (ORCPT + 99 others); Tue, 22 Nov 2022 03:58:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232869AbiKVI5t (ORCPT ); Tue, 22 Nov 2022 03:57:49 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F88B13E23; Tue, 22 Nov 2022 00:57:49 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id a1-20020a17090abe0100b00218a7df7789so5641437pjs.5; Tue, 22 Nov 2022 00:57:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=t/LrnywkrjZ6Qfs+hNXfBn9CmvlX0OVs2pAPszfej7k=; b=eMKfnKwMv28riF4/1YDHxxK8upeNNMiNDjQpW6o9YVS+Jr8+795bfHT9iV16JsLvVT 4R+DuRyRxtrXCFUOBSu0J0PQ7ZpTWro+WvQLwMhOA79LC7qatKMKILooHW7d2VUIRj4Q GFaDzHR3rQSNzlxn+SMa8IYGvvUA9KBlwR4VITz1PmSXik6FSxoKLpMddVwACxNbBnki aGmXJdVDkULulIV32etotTLKAzx+PpuDJT7+2fcvalTs1ExuB0b1MZN57NbvCz17ubmM PJ8ll8jP0cAamxd/I1a7jj7HwGHzn5E8lDfXrlUbmUXTW2iLZ+IHdg6JH+1G/8qxMYU+ rDxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=t/LrnywkrjZ6Qfs+hNXfBn9CmvlX0OVs2pAPszfej7k=; b=PnqnJuhMRgkvaYcJ15YsXaMDP8Fcuqa8OLU0MqmLTWHaD6lEhP9OWC/ea7uULLOKoO iZ7KVnBD8cQnyFJDcGDdeYVgb9yIuZ20oF24CA9lPEdzd1GRRIBaTqpO6lV5GcLYIGpK sBzwbdv8pMxdVTTROu3xbSoBKRsgCwLMRfeRu7XiyHuzVB94NSW5RASnrLbPs3KRzIPY 111pEi7Yc7gHILG8omvjrrR31po2DGLyxJMpdtlGNpsAGAgWXJA+UdHe2GQODCeRDtOa MeHD4abQK68OEogSCIRQyS5q98xFRiCFvXartXPYlUAeTYwxLQylvfaoO4qi2k9XHrOj 3e5Q== X-Gm-Message-State: ANoB5pnzo2gEkqJU5jCA5XxPrqo84kYnaL5JJtmPBusPF465fB3tiiaA rDs/MAZHYR45kwL6geCKr2g= X-Received: by 2002:a17:90b:3d7:b0:200:2538:1ca8 with SMTP id go23-20020a17090b03d700b0020025381ca8mr30950096pjb.79.1669107468489; Tue, 22 Nov 2022 00:57:48 -0800 (PST) Received: from hcdev-d520mt2.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id u9-20020a17090341c900b0017a0668befasm11400246ple.124.2022.11.22.00.57.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 00:57:48 -0800 (PST) From: Marvin Lin To: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: openbmc@lists.ozlabs.org, avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, kwliu@nuvoton.com, kflin@nuvoton.com, Marvin Lin Subject: [PATCH v7 1/7] ARM: dts: nuvoton: Add node for NPCM VCD and ECE engine Date: Tue, 22 Nov 2022 16:57:18 +0800 Message-Id: <20221122085724.3245078-2-milkfafa@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221122085724.3245078-1-milkfafa@gmail.com> References: <20221122085724.3245078-1-milkfafa@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750186140258501510?= X-GMAIL-MSGID: =?utf-8?q?1750186140258501510?= Add node for Video Capture/Differentiation Engine (VCD) and Encoding Compression Engine (ECE) present on Nuvoton NPCM SoCs. Tested with Nuvoton NPCM750 evaluation board. Signed-off-by: Marvin Lin --- arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi b/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi index c7b5ef15b716..293a550955bb 100644 --- a/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi +++ b/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi @@ -179,6 +179,19 @@ fiux: spi@fb001000 { status = "disabled"; }; + video: video@f0810000 { + compatible = "nuvoton,npcm750-video"; + reg = <0xf0810000 0x10000>, <0xf0820000 0x2000>; + reg-names = "vcd", "ece"; + interrupts = ; + resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_VCD>, + <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_ECE>; + reset-names = "vcd", "ece"; + nuvoton,syscon-gcr = <&gcr>; + nuvoton,syscon-gfxi = <&gfxi>; + status = "disabled"; + }; + apb { #address-cells = <1>; #size-cells = <1>; @@ -554,6 +567,12 @@ i2c15: i2c@8f000 { pinctrl-0 = <&smb15_pins>; status = "disabled"; }; + + gfxi: gfxi@e000 { + compatible = "nuvoton,npcm750-gfxi", "syscon", + "simple-mfd"; + reg = <0xe000 0x100>; + }; }; };