Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1097588imm; Thu, 13 Sep 2018 12:37:56 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda1JEwbHTapKSI4M3Q7vLVoVNRyTTXKCB8hYdsiK9DpGAax+ZD7PF5F5yZYYCCdYfW7L9kZ X-Received: by 2002:a17:902:1566:: with SMTP id b35-v6mr8583846plh.135.1536867476819; Thu, 13 Sep 2018 12:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536867476; cv=none; d=google.com; s=arc-20160816; b=e70YyLTgfY6A1rI67f017mE3/y7sAR2RP1eoCauqcE66DisLL2Q8Y2cCcnGgxOSx8P MdTsOTVpSFgGjAYvpm7SNUlgpIEzRim9+827MTfIjNulDkqCrcegVvun2Fcx2sQC2/p1 6VtWy9kvqU1w7O/noCZ6UX/kcI0da/suR/vfi7NM4YpbT42P7osdzKElKPsRyqUg5osE 3GVdRzx7yBe49f+1TKqqq7B2P99kmpXWSPFp6M2KXAfKoEHbY6zA73QnPIqrWaJJDdn4 XMn2gT8SWp30FuE9Ia/LPzNi/D7g+Aq12KqhUsYQsGoUTtko77zgIEIWjmMR7VY2x25i 3jUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=TLay83rhbdOSh1R8v4f/4skX1sZzTJoBpxhLCIzt2ss=; b=ueVSt/o3Zw7/tcXKW5R73kS0P+Z1GvxCSJ+6lWvxV7ql+/XQImTNKghnyEzt4iGWA2 pF7t345ZYen8DJFrECVJixeNxJ2HvJsHZoXPDEzAHSBRy2dwLcA49n4r7RCXrVl14Kgd o0vYuPSF+NecspY9XcQGDDWPNYIlwgIYOSrClllZ4iLWRuvDJXy8zelt3ZQV0uT9zwh8 k4gOPbgMEyQ7AfP8tMhFMrJkpiVJhweLasYvp0ewho3FuxvXNdz+EUqInIYXwobSYq2N N8m86UIRMji3FwdRn8iT96b8Oowq2QDPnPleV7HMOt+c0q0AU0nQa6vTEGnL0KXjLH7x XfjQ== ARC-Authentication-Results: i=1; mx.google.com; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5-v6si5512713pgb.234.2018.09.13.12.37.42; Thu, 13 Sep 2018 12:37:56 -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; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728369AbeINAk3 (ORCPT + 99 others); Thu, 13 Sep 2018 20:40:29 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:47640 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728325AbeINAk3 (ORCPT ); Thu, 13 Sep 2018 20:40:29 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8DJTPZA025984 for ; Thu, 13 Sep 2018 15:29:35 -0400 Received: from e35.co.us.ibm.com (e35.co.us.ibm.com [32.97.110.153]) by mx0b-001b2d01.pphosted.com with ESMTP id 2mfvxrax0y-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 13 Sep 2018 15:29:35 -0400 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 13 Sep 2018 13:29:33 -0600 Received: from b03cxnp07028.gho.boulder.ibm.com (9.17.130.15) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 13 Sep 2018 13:29:30 -0600 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w8DJTTmN66322484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 13 Sep 2018 12:29:29 -0700 Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 09B7F7805C; Thu, 13 Sep 2018 13:29:29 -0600 (MDT) Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 534B97805E; Thu, 13 Sep 2018 13:29:27 -0600 (MDT) Received: from oc6728276242.ibm.com (unknown [9.85.164.21]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 13 Sep 2018 13:29:27 -0600 (MDT) From: Eddie James To: linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, robh+dt@kernel.org, mchehab@kernel.org, linux-media@vger.kernel.org, andrew@aj.id.au, joel@jms.id.au, Eddie James Subject: [PATCH v2 0/2] media: platform: Add Aspeed Video Engine Driver Date: Thu, 13 Sep 2018 14:29:22 -0500 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 18091319-0012-0000-0000-000016B2F992 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009715; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000266; SDB=6.01087845; UDB=6.00561774; IPR=6.00867856; MB=3.00023274; MTD=3.00000008; XFM=3.00000015; UTC=2018-09-13 19:29:32 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18091319-0013-0000-0000-00005464254B Message-Id: <1536866964-71593-1-git-send-email-eajames@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-13_11:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809130196 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Video Engine (VE) embedded in the Aspeed AST2400 and AST2500 SOCs can capture and compress video data from digital or analog sources. With the Aspeed chip acting as a service processor, the Video Engine can capture the host processor graphics output. This series adds a V4L2 driver for the VE, providing a read() interface only. The driver triggers the hardware to capture the host graphics output and compress it to JPEG format. v4l2-compliance output: v4l2-compliance SHA : not available Driver Info: Driver name : aspeed-video Card type : Aspeed Video Engine Bus info : platform:aspeed-video Driver version: 4.18.7 Capabilities : 0x81200001 Video Capture Read/Write Extended Pix Format Device Capabilities Device Caps : 0x01200001 Video Capture Read/Write Extended Pix Format Compliance test for device /dev/video0 (not using libv4l2): Required ioctls: test VIDIOC_QUERYCAP: OK Allow for multiple opens: test second video open: OK test VIDIOC_QUERYCAP: OK test VIDIOC_G/S_PRIORITY: OK test for unlimited opens: OK Debug ioctls: test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported) Input ioctls: test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported) test VIDIOC_G/S/ENUMINPUT: OK test VIDIOC_G/S_AUDIO: OK (Not Supported) Inputs: 1 Audio Inputs: 0 Tuners: 0 Output ioctls: test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported) Outputs: 0 Audio Outputs: 0 Modulators: 0 Input/Output configuration ioctls: test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported) Test input 0: Control ioctls: test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK test VIDIOC_QUERYCTRL: OK test VIDIOC_G/S_CTRL: OK test VIDIOC_G/S/TRY_EXT_CTRLS: OK test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 3 Private Controls: 0 Format ioctls: test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK test VIDIOC_TRY_FMT: OK test VIDIOC_S_FMT: OK test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported) test Composing: OK (Not Supported) test Scaling: OK (Not Supported) Codec ioctls: test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer ioctls: test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) test VIDIOC_EXPBUF: OK (Not Supported) Test input 0: Streaming ioctls: test read/write: OK test MMAP: OK (Not Supported) test USERPTR: OK (Not Supported) test DMABUF: OK (Not Supported) Total: 47, Succeeded: 47, Failed: 0, Warnings: 0 Changes since v1: - Removed le32_to_cpu calls for JPEG header data - Reworked v4l2 ioctls to be compliant. - Added JPEG controls - Updated devicetree docs according to Rob's suggestions. - Added myself to MAINTAINERS Eddie James (2): dt-bindings: media: Add Aspeed Video Engine binding documentation media: platform: Add Aspeed Video Engine driver .../devicetree/bindings/media/aspeed-video.txt | 26 + MAINTAINERS | 8 + drivers/media/platform/Kconfig | 8 + drivers/media/platform/Makefile | 1 + drivers/media/platform/aspeed-video.c | 1469 ++++++++++++++++++++ 5 files changed, 1512 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/aspeed-video.txt create mode 100644 drivers/media/platform/aspeed-video.c -- 1.8.3.1