From patchwork Fri Apr 12 08:30:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10897401 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7B90F922 for ; Fri, 12 Apr 2019 08:31:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C4AD28E29 for ; Fri, 12 Apr 2019 08:31:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DC2E28E5E; Fri, 12 Apr 2019 08:31:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F087728E5B for ; Fri, 12 Apr 2019 08:31:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+AA4mm9m4uSJEQMF+5I+UsICZiirPZrxUWV8EKFqFak=; b=uP+kJGHe/nOG+x 2mFNhb9jxu9rOUNt6gDJSeuHKD5A0sd0gn/ok8p2FFlggN5/P6p0rhNcghWLgFQaSwonTpzRT98kT YMgnjTjSYHS8e8iQ4OnGAfqU2kQ9ZuegDpJ0pbiAjbQNHPUTxiwxbi2HZZA3HFje9khzZa74pX19N 1YdV85645wEE/iMoGfkuczowAAMVRdmTsvlSErDZCG0qV3hgKduJ5wDuABkzJzGCK87z6u7my6nAG IWM1WNOOIAc6Q35dV9BZrjsQszKWO0q0A9x/wGVC/6DiElegZQV1WkBVrQC8ykZj/J3lo8dzKfcrc V9JIDkX3WC5a9ntpV0UA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hErao-00027t-M6; Fri, 12 Apr 2019 08:31:26 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hErad-0001wB-Ku for linux-amlogic@lists.infradead.org; Fri, 12 Apr 2019 08:31:19 +0000 Received: by mail-wm1-x343.google.com with SMTP id 4so10111372wmf.1 for ; Fri, 12 Apr 2019 01:31:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wPCsPseQBMIVb8GXk16egJLLB0THHe+Jag2FwI16saY=; b=TokifnblVN/AL2lzCyPRHQtwKEIcmZ61PGo1mGX/g1gY2mLrOFNjSrn+97PJAjmYVc wtDq4baeeX76+Pga/vON4FrS7Ta8irmkPwoVu6sl5LRqacxLx8o9ZWVshho4QapreWge BsfAZboFA4TKVBxrg7ufKsUV18ROpfbZm/POO9P3tb89i2nN5ieOHLqhG3ZJBEWzxg6v l67WLaEIKangD1YhknKxSxlSC9x6sXrxLoiFv9gZFigQpAvSbxO1Qn/Uiim1zJCsZKcI 9CSmxhgr2HLeTMLw8AAlVwhIWj3gtojLpkgwhgSP8xE25qqBSkx1ScbA8X1ta8k7auFY ZHGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wPCsPseQBMIVb8GXk16egJLLB0THHe+Jag2FwI16saY=; b=Z5qthye29B9ZCBPSzSshxRaUv9Mx8XNNwhADA1jgdK08e8CqvnwRQKH1IEN6f/Q08u Y1Gd7PcMY7JNJE/UxRJrD+rdhHfML9EOMnC/I8xzNC93ivG94lELmzd022C9J1vhPsq3 81OarMGLGH82LH40hAE8Fr0BRDn0BoG5qcq4D1c9QNVs37GNUCiu+Fy8u/Q2d9SPltLv +3D2hvKl/q/rtosfJAT6HbOCTosprNxoF+GIyEnf6jlsO3JEQPsusKCUpa3yk8GerZcs t2WK6szjmgzX/DjliDVWItaFOgOsTT6Y/+PjghPmiloRom0879C+rSXMzwsNKnsGjYp3 mYhQ== X-Gm-Message-State: APjAAAVfAQH5L9YbAxqYWGNIejiUphDXGv8+hePPBhpXG92GOLt+9KjQ pj9XEW3UeciwM3y55JGJ1py4Ow== X-Google-Smtp-Source: APXvYqwk+GMGNMXDefYCGmfvStfKE3+MTsKFrKBj7tmmZ6wsghwSENP/smaIkJroQtDFTcUgf9+apQ== X-Received: by 2002:a1c:b189:: with SMTP id a131mr9647469wmf.107.1555057872283; Fri, 12 Apr 2019 01:31:12 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id w11sm116054702wre.15.2019.04.12.01.31.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Apr 2019 01:31:11 -0700 (PDT) From: Neil Armstrong To: hverkuil@xs4all.nl, mchehab@kernel.org, devicetree@vger.kernel.org Subject: [PATCH v5 1/3] media: dt-bindings: media: meson-ao-cec: Add G12A AO-CEC-B Compatible Date: Fri, 12 Apr 2019 10:30:58 +0200 Message-Id: <20190412083100.4070-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190412083100.4070-1-narmstrong@baylibre.com> References: <20190412083100.4070-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190412_013115_683062_8B4EE89E X-CRM114-Status: GOOD ( 10.88 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Neil Armstrong , baylibre-upstreaming@groups.io, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Amlogic G12A embeds a second CEC controller named AO-CEC-B, and the other one is AO-CEC-A described by the current bindings. The register interface is very close but the internal architecture is totally different. The other difference is the clock source, the AO-CEC-B takes the "oscin", the Always-On Oscillator clock, as input and embeds a dual-divider clock divider to provide the precise 32768Hz base clock for CEC communication. Signed-off-by: Neil Armstrong Reviewed-by: Rob Herring --- .../devicetree/bindings/media/meson-ao-cec.txt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/media/meson-ao-cec.txt b/Documentation/devicetree/bindings/media/meson-ao-cec.txt index 8671bdb08080..c67fc41d4aa2 100644 --- a/Documentation/devicetree/bindings/media/meson-ao-cec.txt +++ b/Documentation/devicetree/bindings/media/meson-ao-cec.txt @@ -4,16 +4,23 @@ The Amlogic Meson AO-CEC module is present is Amlogic SoCs and its purpose is to handle communication between HDMI connected devices over the CEC bus. Required properties: - - compatible : value should be following + - compatible : value should be following depending on the SoC : + For GXBB, GXL, GXM and G12A (AO_CEC_A module) : "amlogic,meson-gx-ao-cec" + For G12A (AO_CEC_B module) : + "amlogic,meson-g12a-ao-cec" - reg : Physical base address of the IP registers and length of memory mapped region. - interrupts : AO-CEC interrupt number to the CPU. - clocks : from common clock binding: handle to AO-CEC clock. - - clock-names : from common clock binding: must contain "core", - corresponding to entry in the clocks property. + - clock-names : from common clock binding, must contain : + For GXBB, GXL, GXM and G12A (AO_CEC_A module) : + - "core" + For G12A (AO_CEC_B module) : + - "oscin" + corresponding to entry in the clocks property. - hdmi-phandle: phandle to the HDMI controller Example: