From patchwork Sun May 26 22:25:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 1105615 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qvVdO1Ye"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45Bvnp4DzVz9s6w for ; Mon, 27 May 2019 08:25:50 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726062AbfEZWZr (ORCPT ); Sun, 26 May 2019 18:25:47 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:54113 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbfEZWZr (ORCPT ); Sun, 26 May 2019 18:25:47 -0400 Received: by mail-wm1-f68.google.com with SMTP id d17so1075205wmb.3; Sun, 26 May 2019 15:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K/XHCO5OpLMI7hm5w9MXtKPLk5GaTtp3symSRQtLrEY=; b=qvVdO1Ye4+/XAXtZVdsjjXyBiA9UbG/W56OF45mm+eREeUn7sXXC3zn78MNG9RDc74 m8SFOUOKex8fNj8gGw2zWgBNxPQcy84SJLJmYhZTNJ46S7ua13TWTvBSnvrhO1rtqnT2 DPGzNpLOW7TMds16+uLtVPJL3XjpKV1sauyZrR30M8iPCi/4cQo4iPZnnC9cmq2+z27s 9xQ0TB6H2PHnVJ46ZjDYf9AoXA+/Ig7In+UyImznSlah8/ZWMQ+nuQqaXJcqI6NnBCpY UsvUN9eIRyqdtvPU8E85lWMoTdZZ4uPC5A5Z0PyLooWY8fXyA9j+Sed97RzBqFVRJ4c7 Btmw== 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=K/XHCO5OpLMI7hm5w9MXtKPLk5GaTtp3symSRQtLrEY=; b=bpy3Yj87WuwptT/5LJfOJLStOjU7HcGEr3M9YiUOQlwo32EXGuvkE+gmSFoUk/1UP1 GLCY/UR9CzY8eK8wbGh+quMHjRQuRz9lGQIXzAArAXtbqnzDFyKyfo26myFU/mrmd493 8tmBwbitGbej8W+wtIQTMV/eJyo9rA2YMDbMA0CWC1Hzm0t2PfMg+vEfuyWH0mOW4J8z hnnX7Ff0zeNkXIurE9iTQ2eyC253M+F6tuqcQJJPQ7S20a9OM5R3U6FwXAnubnOC4k0I KTs1XDlikxOUiTj7lB+jxGby3S6AdrNt/UxqmTSGxMnQzZZBYJcSsHAPfymOMEo2AxBp fZrg== X-Gm-Message-State: APjAAAWSdFNULyimsFy4j2QdOsloaK/YcTrhCSiuDVbeahDw5OE1O9vX nnYqK3W+XOnLDwPt4zJ5KcQ= X-Google-Smtp-Source: APXvYqwtHkAdpnDNLrKU8l3gQJCnqk74qB0FWxy3k2YmQonc0nW5ibfTNdfHiHYs9fHfC/i44RKzOg== X-Received: by 2002:a1c:1b4a:: with SMTP id b71mr7822601wmb.177.1558909544853; Sun, 26 May 2019 15:25:44 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id o20sm10368398wro.2.2019.05.26.15.25.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 May 2019 15:25:43 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= Subject: [PATCH v2 01/10] dt-bindings: media: sunxi-ir: add A31 compatible Date: Mon, 27 May 2019 00:25:27 +0200 Message-Id: <20190526222536.10917-2-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190526222536.10917-1-peron.clem@gmail.com> References: <20190526222536.10917-1-peron.clem@gmail.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Allwinner A31 has introduced a new memory mapping and a reset line. The difference in memory mapping are : - In the configure register there is a new sample bit and Allwinner has introduced the active threshold feature. - In the status register a new STAT bit is present. Note: CGPO and DRQ_EN bits are removed on A31 but present on A13 and on new SoCs like A64/H6. This is actually not an issue as these bits are togglable and new SoCs have a dedicated bindings. Introduce this bindings to make a difference since this generation. And declare the reset line required since A31. Signed-off-by: Clément Péron --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/media/sunxi-ir.txt b/Documentation/devicetree/bindings/media/sunxi-ir.txt index 278098987edb..2e59a32a7e33 100644 --- a/Documentation/devicetree/bindings/media/sunxi-ir.txt +++ b/Documentation/devicetree/bindings/media/sunxi-ir.txt @@ -1,16 +1,21 @@ Device-Tree bindings for SUNXI IR controller found in sunXi SoC family Required properties: -- compatible : "allwinner,sun4i-a10-ir" or "allwinner,sun5i-a13-ir" +- compatible : + "allwinner,sun4i-a10-ir" + "allwinner,sun5i-a13-ir" + "allwinner,sun6i-a31-ir" - clocks : list of clock specifiers, corresponding to entries in clock-names property; - clock-names : should contain "apb" and "ir" entries; - interrupts : should contain IR IRQ number; - reg : should contain IO map address for IR. +Required properties since A31: +- resets : phandle + reset specifier pair + Optional properties: - linux,rc-map-name: see rc.txt file in the same directory. -- resets : phandle + reset specifier pair - clock-frequency : IR Receiver clock frequency, in Hertz. Defaults to 8 MHz if missing. From patchwork Sun May 26 22:25:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 1105618 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="klAOx+Hf"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45BvpT6qfcz9sCJ for ; Mon, 27 May 2019 08:26:25 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726160AbfEZWZu (ORCPT ); Sun, 26 May 2019 18:25:50 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44418 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbfEZWZu (ORCPT ); Sun, 26 May 2019 18:25:50 -0400 Received: by mail-wr1-f65.google.com with SMTP id w13so6617743wru.11; Sun, 26 May 2019 15:25:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Lc9tkqKyrUQ5ybnMKprgGIZIid5kSZLfkgDo+bRAOdQ=; b=klAOx+HfmYTw/8Yq5Z9Z7zoBFd0OBdip2dn3Rmyo4lHbtZsRaeyaDNO7P9DSMFFGdN glJOISUhVbNcyEGaatP61u8UYu9Xaa3Yqqo2N/4y+VbCpAxvUE2gNrAEy/COEyn3oh3/ jkIaplzNNdkTrkPsgeMyzXiW9lcq/WwXneLVDkNJErDm9sf+23Wq+7ZD0al9sqwuVl81 PSIXQY53c6iXav4ck3FsJyS9S6pLwvKdoJ8YJ4NJX23yGKFuVzLIZt/L0ZO4vkXjkiOT 93Vp60xAKV+vac25lK13kKK8bAun4yyuJq6hfLY/VTDotDIX0DFNcXUMjCBcxAc6wBE4 fusA== 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=Lc9tkqKyrUQ5ybnMKprgGIZIid5kSZLfkgDo+bRAOdQ=; b=bD71EDy+FWYp3QoQZKJSc97E8Q/nKQ6ynlJ2vLoGdSh2MQo/QRMZOPj+wJKdbKPh1y EKeX70ewI3rMRo+3vStD6/tqWfQojUxCJ0CjPuihZG0w9n2sHKgYVL0MiMAEMcYt4XT/ iZ7FvPgXGVDXl7jJMXlJiXeCAXNafa8XZIkPqbwCo76Uf86ZrV4jVvJQg2R2v+D9cwVl vY5oLu/VmbYcB9OXgYg7bFLAwID/Lq4jhoBqaL8HJkMiwMcO5+cw4Ni4mwIj7bd7lADF NAZ2tR7mgIWXOQB+vMCTlUJ+kqWLNmNsoXBsl4TALMKGPIFvJQO+8ldPmvGOCUaqkMEH FXQw== X-Gm-Message-State: APjAAAVn5DZ3xNxy0AB6V48aBJXegnIgnuHy39WnITzAD/xMlIshXIFE IfBvPhEVoJUKErqY2MDxMeY= X-Google-Smtp-Source: APXvYqxsbYPyxTGP5DkswvSnejLVACIIPGGCwxeFSFdOifI61ffIiR4kdft4KEdZ6jhd1Ba8cfpkSg== X-Received: by 2002:a5d:528b:: with SMTP id c11mr10869878wrv.25.1558909548083; Sun, 26 May 2019 15:25:48 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id o20sm10368398wro.2.2019.05.26.15.25.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 May 2019 15:25:47 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= Subject: [PATCH v2 04/10] dt-bindings: media: sunxi-ir: Add A64 compatible Date: Mon, 27 May 2019 00:25:30 +0200 Message-Id: <20190526222536.10917-5-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190526222536.10917-1-peron.clem@gmail.com> References: <20190526222536.10917-1-peron.clem@gmail.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org There are some minor differences between A31 and A64 driver. But A31 IR driver is compatible with A64. Signed-off-by: Clément Péron --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/sunxi-ir.txt b/Documentation/devicetree/bindings/media/sunxi-ir.txt index 2e59a32a7e33..1dd287a4ab3a 100644 --- a/Documentation/devicetree/bindings/media/sunxi-ir.txt +++ b/Documentation/devicetree/bindings/media/sunxi-ir.txt @@ -5,6 +5,7 @@ Required properties: "allwinner,sun4i-a10-ir" "allwinner,sun5i-a13-ir" "allwinner,sun6i-a31-ir" + "allwinner,sun50i-a64-ir", "allwinner,sun6i-a31-ir" - clocks : list of clock specifiers, corresponding to entries in clock-names property; - clock-names : should contain "apb" and "ir" entries; From patchwork Sun May 26 22:25:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 1105617 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TmLyQMTz"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45BvpH234Vz9s3Z for ; Mon, 27 May 2019 08:26:15 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726262AbfEZWZy (ORCPT ); Sun, 26 May 2019 18:25:54 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36925 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbfEZWZx (ORCPT ); Sun, 26 May 2019 18:25:53 -0400 Received: by mail-wr1-f66.google.com with SMTP id h1so847102wro.4; Sun, 26 May 2019 15:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pfFUA/FtBsg0My+1YWgyWmibdI4dMuoplvWrY93VZPg=; b=TmLyQMTzxNlDvMDpq/v4obLZ5cBfs+Eah78F1fP5yW3/ULBAsc8S6q/MYlBl7JnaIx cuY7bjgKYs2TpF+qrkAghyFpMKx/O2WNsISJKc/zPMDvZFVz5VaPy0fEQXzVrl0fZd8O xsrxhDIXZdMMywYDMF040JBk2hizL6lIKXLhCquwfdHGA1CSGGFb5WDucx4DXPelJhQT UPIUq5i81N/o5um8/RMKBN0bq2KkmlAQxzwB2AXv6AOQb7CSsYU2D6ipR7G6oY62sUPF 5BUUDHAWyaHYHMJ95CJazAoZKqeJ81joOfoyzLP6uewG6Xts431qtFKeZ0NRkA675k5l 02CA== 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=pfFUA/FtBsg0My+1YWgyWmibdI4dMuoplvWrY93VZPg=; b=SKyoBL8tiGqqVvZ1YPW5vecM5/BNGHED4sf8aLXEUcUISDzgUqIVtLjp6DfZAzK0YD iI0fJqG5iQbAHTJPQm6TQddxZZwdGy+cySh0jzcXdbqYs8EnmzXoNGdaB1mcJBbre7Xg FwkrjHpi1G0V2QgELMnT6ZhHrsaVtSKExYka0vktfcdB55Rz8978lxGK/Ew07Kjj54cd noDyYU4N3evmwpIdcwO9wnuChhr6I0wK+7O0tc3cQY3KaTXVQ0z/NC19DiRhVMU+BCzw FZmKiQw8IEAPWSrrKyx5fuF6vrhLHf5/KkihFEQmt4XczTygQsqfBDH6EkoRgiKWND46 W9vA== X-Gm-Message-State: APjAAAWDfNFFsLEt5AcHIDiHU3FtqSCq6VJYEv2M/GlOl3GXqPiKT7dH 96stbZtGTsljr4k++o59cdM= X-Google-Smtp-Source: APXvYqyear9blP86T2MNWn79SUP2m1/FCW8iYuubkJwpsPjuck36zawUuWPezuETPh26SIP94gxRXQ== X-Received: by 2002:adf:d84e:: with SMTP id k14mr6520699wrl.76.1558909551466; Sun, 26 May 2019 15:25:51 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id o20sm10368398wro.2.2019.05.26.15.25.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 May 2019 15:25:50 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= Subject: [PATCH v2 07/10] dt-bindings: media: sunxi-ir: Add H6 compatible Date: Mon, 27 May 2019 00:25:33 +0200 Message-Id: <20190526222536.10917-8-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190526222536.10917-1-peron.clem@gmail.com> References: <20190526222536.10917-1-peron.clem@gmail.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org There are some minor differences between A31 or A64 with H6 IR peripheral. But A31 IR driver is compatible with H6. Signed-off-by: Clément Péron --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/sunxi-ir.txt b/Documentation/devicetree/bindings/media/sunxi-ir.txt index 1dd287a4ab3a..81eaf95fb764 100644 --- a/Documentation/devicetree/bindings/media/sunxi-ir.txt +++ b/Documentation/devicetree/bindings/media/sunxi-ir.txt @@ -6,6 +6,7 @@ Required properties: "allwinner,sun5i-a13-ir" "allwinner,sun6i-a31-ir" "allwinner,sun50i-a64-ir", "allwinner,sun6i-a31-ir" + "allwinner,sun50i-h6-ir", "allwinner,sun6i-a31-ir" - clocks : list of clock specifiers, corresponding to entries in clock-names property; - clock-names : should contain "apb" and "ir" entries;